@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,2627 +0,0 @@
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
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // layout/index.ts
31
- var layout_exports = {};
32
- __export(layout_exports, {
33
- AppLayout: () => AppLayout,
34
- AppTabs: () => AppTabs,
35
- AppTopbar: () => AppTopbar,
36
- Copyrights: () => Copyrights,
37
- DocsLayout: () => DocsLayout,
38
- DocsSidebar: () => DocsSidebar,
39
- Menubar: () => Menubar,
40
- MenubarCheckboxItem: () => MenubarCheckboxItem,
41
- MenubarContent: () => MenubarContent,
42
- MenubarGroup: () => MenubarGroup,
43
- MenubarItem: () => MenubarItem,
44
- MenubarLabel: () => MenubarLabel,
45
- MenubarMenu: () => MenubarMenu,
46
- MenubarPortal: () => MenubarPortal,
47
- MenubarRadioGroup: () => MenubarRadioGroup,
48
- MenubarRadioItem: () => MenubarRadioItem,
49
- MenubarSeparator: () => MenubarSeparator,
50
- MenubarShortcut: () => MenubarShortcut,
51
- MenubarSub: () => MenubarSub,
52
- MenubarSubContent: () => MenubarSubContent,
53
- MenubarSubTrigger: () => MenubarSubTrigger,
54
- MenubarTrigger: () => MenubarTrigger,
55
- Navbar: () => Navbar,
56
- SidebarGroup: () => SidebarGroup,
57
- SidebarItem: () => SidebarItem,
58
- Stats: () => Stats
59
- });
60
- module.exports = __toCommonJS(layout_exports);
61
-
62
- // layout/stats/Stats.tsx
63
- var import_react2 = __toESM(require("react"));
64
-
65
- // elements/card/Card.tsx
66
- var React = __toESM(require("react"));
67
-
68
- // util/index.ts
69
- var import_clsx = require("clsx");
70
- var import_tailwind_merge = require("tailwind-merge");
71
- function cn(...inputs) {
72
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
73
- }
74
-
75
- // elements/card/Card.tsx
76
- var Card = React.forwardRef(
77
- ({ className, variant = "default", clickable = false, ...props }, ref) => {
78
- let variantStyles = {
79
- default: cn(
80
- "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
81
- clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
82
- ),
83
- neoBrutalism: cn(
84
- "neo-brutalism",
85
- // "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]",
86
- 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"
87
- )
88
- };
89
- return /* @__PURE__ */ React.createElement(
90
- "div",
91
- {
92
- ref,
93
- className: cn(className, variantStyles[variant]),
94
- ...props
95
- }
96
- );
97
- }
98
- );
99
- var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
100
- "div",
101
- {
102
- ref,
103
- className: cn(
104
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
105
- className
106
- ),
107
- ...props
108
- }
109
- ));
110
- var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
111
- "h3",
112
- {
113
- ref,
114
- className: cn("hawa-text-2xl hawa-font-semibold ", className),
115
- ...props
116
- }
117
- ));
118
- var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
119
- "p",
120
- {
121
- ref,
122
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
123
- ...props
124
- }
125
- ));
126
- var CardContent = React.forwardRef(
127
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
128
- "div",
129
- {
130
- ref,
131
- className: cn(
132
- noPadding ? "hawa-p-0" : "hawa-p-6",
133
- headless ? "hawa-pt-6" : "hawa-pt-0",
134
- className
135
- ),
136
- ...props
137
- }
138
- )
139
- );
140
- var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
141
- "div",
142
- {
143
- ref,
144
- className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
145
- ...props
146
- }
147
- ));
148
- CardDescription.displayName = "CardDescription";
149
- CardContent.displayName = "CardContent";
150
- CardHeader.displayName = "CardHeader";
151
- CardFooter.displayName = "CardFooter";
152
- CardTitle.displayName = "CardTitle";
153
- Card.displayName = "Card";
154
-
155
- // elements/skeleton/Skeleton.tsx
156
- var import_react = __toESM(require("react"));
157
- function Skeleton({
158
- className,
159
- content,
160
- animation = "pulse",
161
- ...props
162
- }) {
163
- const animationStyles = {
164
- none: "hawa-rounded hawa-bg-muted",
165
- pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
166
- 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"
167
- };
168
- return /* @__PURE__ */ import_react.default.createElement(
169
- "div",
170
- {
171
- className: cn(
172
- animationStyles[animation],
173
- content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
174
- className
175
- ),
176
- ...props
177
- },
178
- content && content
179
- );
180
- }
181
-
182
- // layout/stats/Stats.tsx
183
- var Stats = ({
184
- label,
185
- icon,
186
- isLoading,
187
- number,
188
- helperText,
189
- helperTextColor = "default",
190
- chart,
191
- clickable,
192
- variant = "default",
193
- ...props
194
- }) => {
195
- let helperTextColorStyles = {
196
- default: "",
197
- positive: "hawa-text-green-600 dark:hawa-text-green-500",
198
- negative: "hawa-text-red-600 dark:hawa-text-red-500",
199
- muted: "hawa-text-muted-foreground"
200
- };
201
- return /* @__PURE__ */ import_react2.default.createElement(Card, { ...props, clickable }, /* @__PURE__ */ import_react2.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4" }, /* @__PURE__ */ import_react2.default.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ import_react2.default.createElement("span", null, icon)), /* @__PURE__ */ import_react2.default.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ import_react2.default.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ import_react2.default.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ import_react2.default.createElement(
202
- "div",
203
- {
204
- className: cn(
205
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-transition-all",
206
- helperTextColorStyles[helperTextColor],
207
- helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
208
- )
209
- },
210
- isLoading ? /* @__PURE__ */ import_react2.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : helperText
211
- ), chart && (isLoading ? /* @__PURE__ */ import_react2.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : chart)));
212
- };
213
-
214
- // layout/sidebar/Sidebar.tsx
215
- var React5 = __toESM(require("react"));
216
- var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
217
-
218
- // elements/chip/Chip.tsx
219
- var import_react3 = __toESM(require("react"));
220
- var Chip = import_react3.default.forwardRef(
221
- ({
222
- label,
223
- size = "normal",
224
- icon,
225
- color,
226
- radius = "inherit",
227
- dotType,
228
- ...rest
229
- }, ref) => {
230
- 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 ";
231
- let radiusStyles = {
232
- inherit: " hawa-rounded",
233
- full: "hawa-rounded-full",
234
- none: "hawa-rounded-none"
235
- };
236
- let sizeStyles = {
237
- small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
238
- normal: "hawa-h-fit hawa-text-xs",
239
- large: "hawa-text-base"
240
- };
241
- let dotStyles = {
242
- small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
243
- normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
244
- large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
245
- };
246
- let dotTypeStyles = {
247
- available: "hawa-bg-green-500",
248
- unavailable: "hawa-bg-red-500"
249
- };
250
- let colorStyles = {
251
- green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
252
- blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
253
- red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
254
- yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
255
- orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
256
- purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
257
- cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
258
- hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
259
- oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
260
- };
261
- if (label) {
262
- return /* @__PURE__ */ import_react3.default.createElement(
263
- "span",
264
- {
265
- ...rest,
266
- ref,
267
- className: cn(
268
- defaultStyles,
269
- sizeStyles[size],
270
- radiusStyles[radius],
271
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
272
- )
273
- },
274
- dotType && /* @__PURE__ */ import_react3.default.createElement(
275
- "span",
276
- {
277
- className: cn(dotStyles[size], dotTypeStyles[dotType])
278
- }
279
- ),
280
- icon && icon,
281
- label
282
- );
283
- } else {
284
- return /* @__PURE__ */ import_react3.default.createElement(
285
- "span",
286
- {
287
- ...rest,
288
- ref,
289
- className: cn(
290
- "hawa-h-2 hawa-w-2 hawa-rounded-full",
291
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
292
- )
293
- }
294
- );
295
- }
296
- }
297
- );
298
-
299
- // layout/sidebar/Sidebar.tsx
300
- var Accordion = AccordionPrimitive.Root;
301
- var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
302
- var AccordionItem = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
303
- AccordionItem.displayName = "AccordionItem";
304
- var AccordionTrigger = React5.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React5.createElement(
305
- AccordionPrimitive.Trigger,
306
- {
307
- ref,
308
- className: cn(triggerStyles, className),
309
- ...props
310
- },
311
- children,
312
- showArrow && /* @__PURE__ */ React5.createElement(
313
- "svg",
314
- {
315
- "aria-label": "Chevron Right Icon",
316
- stroke: "currentColor",
317
- fill: "currentColor",
318
- viewBox: "0 0 16 16",
319
- height: "1em",
320
- width: "1em",
321
- className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
322
- },
323
- /* @__PURE__ */ React5.createElement("path", { 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" })
324
- )
325
- )));
326
- AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
327
- var AccordionContent = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
328
- AccordionPrimitive.Content,
329
- {
330
- ref,
331
- className: cn(
332
- "hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down",
333
- className
334
- ),
335
- ...props
336
- },
337
- /* @__PURE__ */ React5.createElement("div", null, children)
338
- ));
339
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
340
- var SidebarGroup = ({
341
- title,
342
- items,
343
- selectedItem,
344
- openedItem,
345
- setOpenedItem,
346
- onItemClick,
347
- onSubItemClick,
348
- direction,
349
- isOpen
350
- }) => {
351
- return /* @__PURE__ */ React5.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React5.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React5.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React5.createElement(
352
- Accordion,
353
- {
354
- value: openedItem,
355
- type: "single",
356
- onValueChange: (e) => {
357
- setOpenedItem(e);
358
- },
359
- collapsible: true,
360
- className: "hawa-flex hawa-flex-col hawa-gap-1"
361
- },
362
- items.map((item, idx) => /* @__PURE__ */ React5.createElement(
363
- SidebarItem,
364
- {
365
- isOpen,
366
- selectedItem,
367
- key: idx,
368
- direction,
369
- item,
370
- onItemClick,
371
- onSubItemClick
372
- }
373
- ))
374
- )));
375
- };
376
- var SidebarItem = ({
377
- item,
378
- onItemClick,
379
- onSubItemClick,
380
- direction,
381
- isOpen = true,
382
- ...props
383
- }) => {
384
- const getSelectedStyle = (value) => {
385
- return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
386
- };
387
- if (item.subitems) {
388
- return /* @__PURE__ */ React5.createElement(
389
- AccordionItem,
390
- {
391
- value: item.value,
392
- className: "hawa-overflow-x-clip ",
393
- dir: direction
394
- },
395
- /* @__PURE__ */ React5.createElement(
396
- AccordionTrigger,
397
- {
398
- className: cn(
399
- "hawa-w-full hawa-overflow-x-clip",
400
- props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hawa-h-10 hover:hawa-bg-primary/10",
401
- item.subitems && item.subitems.some(
402
- (subitem) => props.selectedItem === subitem.value
403
- ) ? "hawa-bg-primary/80 hawa-text-primary-foreground hover:hawa-bg-primary/80" : ""
404
- ),
405
- showArrow: isOpen
406
- },
407
- /* @__PURE__ */ React5.createElement(
408
- "div",
409
- {
410
- className: cn(
411
- "hawa-flex hawa-h-fit hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2"
412
- )
413
- },
414
- item.icon && item.icon,
415
- /* @__PURE__ */ React5.createElement(
416
- "span",
417
- {
418
- className: cn(
419
- "hawa-transition-all ",
420
- isOpen ? "hawa-opacity-100" : "hawa-opacity-0"
421
- )
422
- },
423
- item.label
424
- )
425
- )
426
- ),
427
- item.subitems && /* @__PURE__ */ React5.createElement(AccordionContent, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React5.createElement(
428
- "div",
429
- {
430
- className: cn(
431
- "hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
432
- )
433
- },
434
- item.subitems.map((subitem, idx) => /* @__PURE__ */ React5.createElement(
435
- "a",
436
- {
437
- href: subitem.slug,
438
- key: idx,
439
- onMouseDown: (e) => {
440
- if (subitem.onMouseDown) {
441
- subitem.onMouseDown(e);
442
- }
443
- },
444
- onClick: (e) => {
445
- e.stopPropagation();
446
- if (subitem.onClick) {
447
- subitem.onClick(e);
448
- }
449
- if (onSubItemClick) {
450
- onSubItemClick([item.value, subitem.value]);
451
- }
452
- },
453
- className: cn(
454
- "hawa-flex hawa-h-full hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-2 hawa-overflow-x-clip hawa-whitespace-nowrap hawa-rounded hawa-p-2 hawa-transition-all",
455
- // bg-foreground/10
456
- getSelectedStyle(subitem.value)
457
- )
458
- },
459
- subitem.icon && subitem.icon,
460
- subitem.label
461
- ))
462
- ))
463
- );
464
- } else {
465
- return /* @__PURE__ */ React5.createElement(
466
- "a",
467
- {
468
- href: item.slug,
469
- dir: direction,
470
- onMouseDown: (e) => {
471
- if (item.onMouseDown) {
472
- item.onMouseDown(e);
473
- }
474
- },
475
- onClick: (e) => {
476
- if (item.onClick) {
477
- item.onClick(e);
478
- }
479
- if (onItemClick) {
480
- onItemClick([item.value]);
481
- }
482
- },
483
- className: cn(
484
- triggerStyles,
485
- getSelectedStyle(item.value),
486
- "hawa-overflow-x-clip "
487
- )
488
- },
489
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React5.createElement(
490
- "span",
491
- {
492
- className: cn(
493
- "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-transition-all",
494
- isOpen ? "hawa-opacity-100" : "hawa-opacity-0"
495
- )
496
- },
497
- item.label,
498
- " ",
499
- item.badge && /* @__PURE__ */ React5.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
500
- ))
501
- );
502
- }
503
- };
504
-
505
- // layout/copyrights/Copyrights.tsx
506
- var import_react4 = __toESM(require("react"));
507
- var Copyrights = (props) => {
508
- return /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400" }, props.withLogo ? /* @__PURE__ */ import_react4.default.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ import_react4.default.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ import_react4.default.createElement("div", null, props.version), props.credits ? props.credits : null);
509
- };
510
-
511
- // layout/navbar/Navbar.tsx
512
- var import_react5 = __toESM(require("react"));
513
-
514
- // elements/collapsible/Collapsible.tsx
515
- var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
516
- var Collapsible = CollapsiblePrimitive.Root;
517
- var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
518
- var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
519
-
520
- // layout/navbar/Navbar.tsx
521
- var Navbar = ({
522
- backgroundColor,
523
- logo,
524
- handleLogoClick,
525
- ...props
526
- }) => {
527
- var _a, _b;
528
- const [isOpen, setIsOpen] = (0, import_react5.useState)(false);
529
- return /* @__PURE__ */ import_react5.default.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ import_react5.default.createElement(
530
- Collapsible,
531
- {
532
- className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
533
- style: { backgroundColor: backgroundColor || "#1f2937" }
534
- },
535
- /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between hawa-px-3 " }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ import_react5.default.createElement(
536
- "div",
537
- {
538
- className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
539
- onClick: () => {
540
- if (handleLogoClick) {
541
- handleLogoClick();
542
- }
543
- }
544
- },
545
- logo
546
- )), /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-hidden md:hawa-flex " }, (_a = props.menuItems) == null ? void 0 : _a.map((item, i) => /* @__PURE__ */ import_react5.default.createElement(
547
- "div",
548
- {
549
- key: i,
550
- onClick: item.action,
551
- className: "hawa-cursor-pointer hawa-rounded hawa-p-1.5 hawa-px-2 hawa-text-center hawa-text-sm hawa-text-white hawa-transition-all hover:hawa-bg-gray-300 hover:hawa-text-black"
552
- },
553
- item.label
554
- ))), /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-m-0 hawa-flex hawa-h-fit hawa-p-0 md:hawa-hidden" }, /* @__PURE__ */ import_react5.default.createElement(
555
- CollapsibleTrigger2,
556
- {
557
- onClick: () => setIsOpen(!isOpen),
558
- className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
559
- "aria-label": "Toggle menu"
560
- },
561
- /* @__PURE__ */ import_react5.default.createElement(
562
- "svg",
563
- {
564
- xmlns: "http://www.w3.org/2000/svg",
565
- width: "24",
566
- height: "24",
567
- viewBox: "0 0 24 24",
568
- fill: "none",
569
- stroke: "currentColor",
570
- strokeWidth: "2",
571
- strokeLinecap: "round",
572
- strokeLinejoin: "round",
573
- className: cn(
574
- "hawa-fixed hawa-h-6 hawa-w-6",
575
- isOpen ? "hawa-invisible" : "hawa-visible"
576
- )
577
- },
578
- /* @__PURE__ */ import_react5.default.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
579
- /* @__PURE__ */ import_react5.default.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
580
- /* @__PURE__ */ import_react5.default.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
581
- ),
582
- /* @__PURE__ */ import_react5.default.createElement(
583
- "svg",
584
- {
585
- xmlns: "http://www.w3.org/2000/svg",
586
- width: "24",
587
- height: "24",
588
- viewBox: "0 0 24 24",
589
- fill: "none",
590
- stroke: "currentColor",
591
- strokeWidth: "2",
592
- strokeLinecap: "round",
593
- strokeLinejoin: "round",
594
- className: cn(
595
- "hawa-h-6 hawa-w-6",
596
- !isOpen ? "hawa-invisible" : "hawa-visible"
597
- )
598
- },
599
- /* @__PURE__ */ import_react5.default.createElement("path", { d: "M18 6 6 18" }),
600
- /* @__PURE__ */ import_react5.default.createElement("path", { d: "m6 6 12 12" })
601
- )
602
- ))),
603
- /* @__PURE__ */ import_react5.default.createElement(
604
- CollapsibleContent2,
605
- {
606
- className: cn(
607
- "data-[state=closed]:hawa-opacity-0",
608
- "data-[state=open]:hawa-animate-in",
609
- "data-[state=open]:hawa-fade-in-90",
610
- "hawa-absolute hawa-left-0 hawa-top-[60px] hawa-flex hawa-flex-col hawa-rounded hawa-border hawa-bg-gray-200 hawa-p-1 hawa-transition-all"
611
- // "hawa-transition-all hawa-bg-gray-400 hawa-fixed hawa-left-0 hawa-top-[72px] hawa-w-full hawa-flex hawa-flex-col"
612
- ),
613
- style: {
614
- width: "calc(100%)",
615
- zIndex: -100
616
- }
617
- },
618
- (_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */ import_react5.default.createElement(
619
- "div",
620
- {
621
- key: i,
622
- onClick: item.action,
623
- className: "hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-px-10 hawa-text-center hawa-text-black hawa-transition-all hover:hawa-bg-gray-300"
624
- },
625
- item.label
626
- ))
627
- )
628
- ));
629
- };
630
-
631
- // layout/appLayout/AppLayout.tsx
632
- var import_react8 = __toESM(require("react"));
633
-
634
- // elements/button/Button.tsx
635
- var React9 = __toESM(require("react"));
636
- var import_class_variance_authority = require("class-variance-authority");
637
-
638
- // elements/loading/Loading.tsx
639
- var import_react6 = __toESM(require("react"));
640
- var Loading = ({
641
- design = "spinner",
642
- size = "sm",
643
- themeMode = "light",
644
- color,
645
- ...props
646
- }) => {
647
- let sizeStyles = {
648
- button: "hawa-h-4 hawa-w-4",
649
- xs: "hawa-h-1 hawa-w-1",
650
- sm: "hawa-h-6 hawa-w-6",
651
- normal: "hawa-h-8 hawa-w-8",
652
- lg: "hawa-h-14 hawa-w-14",
653
- xl: "hawa-h-24 hawa-w-24"
654
- };
655
- let animationStyles = {
656
- pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
657
- bounce: "hawa-animate-bounce"
658
- };
659
- switch (design.split("-")[0]) {
660
- case "dots":
661
- return /* @__PURE__ */ import_react6.default.createElement(
662
- "div",
663
- {
664
- className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
665
- },
666
- /* @__PURE__ */ import_react6.default.createElement(
667
- "div",
668
- {
669
- className: cn(
670
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
671
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
672
- animationStyles[design.split("-")[1]],
673
- color ? color : "hawa-bg-primary"
674
- )
675
- }
676
- ),
677
- /* @__PURE__ */ import_react6.default.createElement(
678
- "div",
679
- {
680
- className: cn(
681
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
682
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
683
- animationStyles[design.split("-")[1]],
684
- color ? color : "hawa-bg-primary"
685
- )
686
- }
687
- ),
688
- /* @__PURE__ */ import_react6.default.createElement(
689
- "div",
690
- {
691
- className: cn(
692
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
693
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
694
- animationStyles[design.split("-")[1]],
695
- color ? color : "hawa-bg-primary"
696
- )
697
- }
698
- )
699
- );
700
- case "square":
701
- return /* @__PURE__ */ import_react6.default.createElement(
702
- "svg",
703
- {
704
- className: cn("squircle-container", sizeStyles[size]),
705
- viewBox: "0 0 35 35",
706
- height: "35",
707
- width: "35"
708
- },
709
- /* @__PURE__ */ import_react6.default.createElement(
710
- "rect",
711
- {
712
- className: "squircle-track",
713
- x: "2.5",
714
- y: "2.5",
715
- fill: "none",
716
- strokeWidth: "5px",
717
- width: "32.5",
718
- height: "32.5"
719
- }
720
- ),
721
- /* @__PURE__ */ import_react6.default.createElement(
722
- "rect",
723
- {
724
- className: "square-car",
725
- x: "2.5",
726
- y: "2.5",
727
- fill: "none",
728
- strokeWidth: "5px",
729
- width: "32.5",
730
- height: "32.5",
731
- pathLength: "100"
732
- }
733
- )
734
- );
735
- case "squircle":
736
- return /* @__PURE__ */ import_react6.default.createElement(
737
- "svg",
738
- {
739
- className: cn("squircle-container", sizeStyles[size]),
740
- x: "0px",
741
- y: "0px",
742
- viewBox: "0 0 37 37",
743
- height: "37",
744
- width: "37",
745
- preserveAspectRatio: "xMidYMid meet"
746
- },
747
- /* @__PURE__ */ import_react6.default.createElement(
748
- "path",
749
- {
750
- className: "squircle-track",
751
- fill: "none",
752
- strokeWidth: "5",
753
- pathLength: "100",
754
- 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"
755
- }
756
- ),
757
- /* @__PURE__ */ import_react6.default.createElement(
758
- "path",
759
- {
760
- className: "squircle-car",
761
- fill: "none",
762
- strokeWidth: "5",
763
- pathLength: "100",
764
- 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"
765
- }
766
- )
767
- );
768
- case "progress":
769
- return /* @__PURE__ */ import_react6.default.createElement("div", { className: "progress-loading" });
770
- case "orbit":
771
- return /* @__PURE__ */ import_react6.default.createElement("div", { className: "orbit-container" });
772
- default:
773
- return /* @__PURE__ */ import_react6.default.createElement(
774
- "svg",
775
- {
776
- className: cn("circle-container", sizeStyles[size]),
777
- viewBox: "0 0 40 40",
778
- height: "40",
779
- width: "40"
780
- },
781
- /* @__PURE__ */ import_react6.default.createElement(
782
- "circle",
783
- {
784
- className: cn("circle-track", {
785
- "hawa-stroke-primary-foreground": themeMode === "dark",
786
- "hawa-stroke-primary": themeMode === "light"
787
- }),
788
- cx: "20",
789
- cy: "20",
790
- r: "17.5",
791
- pathLength: "100",
792
- strokeWidth: "5px",
793
- fill: "none"
794
- }
795
- ),
796
- /* @__PURE__ */ import_react6.default.createElement(
797
- "circle",
798
- {
799
- className: cn("circle-car", {
800
- "hawa-stroke-primary-foreground": themeMode === "dark",
801
- "hawa-stroke-primary": themeMode === "light"
802
- }),
803
- cx: "20",
804
- cy: "20",
805
- r: "17.5",
806
- pathLength: "100",
807
- strokeWidth: "5px",
808
- fill: "none"
809
- }
810
- )
811
- );
812
- }
813
- };
814
-
815
- // elements/button/Button.tsx
816
- var buttonVariants = (0, import_class_variance_authority.cva)(
817
- "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",
818
- {
819
- variants: {
820
- variant: {
821
- default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
822
- light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
823
- destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
824
- outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
825
- secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
826
- ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
827
- link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
828
- combobox: "hawa-bg-background hawa-border",
829
- neoBrutalism: "neo-brutalism"
830
- // "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",
831
- },
832
- size: {
833
- default: "hawa-h-10 hawa-px-4 hawa-py-2",
834
- heightless: "hawa-px-4 hawa-py-4",
835
- xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
836
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
837
- lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
838
- xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
839
- icon: "hawa-h-10 hawa-w-10",
840
- smallIcon: "hawa-h-7 hawa-w-7"
841
- }
842
- },
843
- defaultVariants: {
844
- variant: "default",
845
- size: "default"
846
- }
847
- }
848
- );
849
- var Button = React9.forwardRef(
850
- ({
851
- className,
852
- variant,
853
- size,
854
- asChild = false,
855
- centered = true,
856
- isLoading,
857
- children,
858
- ...props
859
- }, ref) => {
860
- const Comp = "button";
861
- const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
862
- return /* @__PURE__ */ React9.createElement(
863
- Comp,
864
- {
865
- className: cn(
866
- buttonVariants({ variant, size, className }),
867
- centered && "hawa-justify-center"
868
- // "hawa-bg-red-500"
869
- ),
870
- ref,
871
- ...props
872
- },
873
- isLoading ? /* @__PURE__ */ React9.createElement(
874
- Loading,
875
- {
876
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
877
- themeMode: variant === "outline" ? "light" : "dark",
878
- color: loadingColor,
879
- size: size === "sm" || size === "xs" ? "xs" : "button"
880
- }
881
- ) : children
882
- );
883
- }
884
- );
885
- Button.displayName = "Button";
886
-
887
- // elements/dropdownMenu/DropdownMenu.tsx
888
- var React10 = __toESM(require("react"));
889
- var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
890
- var DropdownMenuRoot = DropdownMenuPrimitive.Root;
891
- var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
892
- var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
893
- var DropdownMenuSub = DropdownMenuPrimitive.Sub;
894
- var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React10.createElement(
895
- DropdownMenuPrimitive.SubTrigger,
896
- {
897
- ref,
898
- className: cn(
899
- "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",
900
- inset && "hawa-pl-8",
901
- className
902
- ),
903
- ...props
904
- },
905
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
906
- " ",
907
- /* @__PURE__ */ React10.createElement(
908
- "svg",
909
- {
910
- "aria-label": "Chevron Right Icon",
911
- stroke: "currentColor",
912
- fill: "currentColor",
913
- strokeWidth: "0",
914
- viewBox: "0 0 16 16",
915
- height: "1em",
916
- width: "1em",
917
- className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
918
- },
919
- /* @__PURE__ */ React10.createElement(
920
- "path",
921
- {
922
- fillRule: "evenodd",
923
- 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"
924
- }
925
- )
926
- )
927
- ));
928
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
929
- var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
930
- DropdownMenuPrimitive.SubContent,
931
- {
932
- ref,
933
- className: cn(
934
- "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",
935
- className
936
- ),
937
- ...props
938
- }
939
- ));
940
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
941
- var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React10.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React10.createElement(
942
- DropdownMenuPrimitive.Content,
943
- {
944
- ref,
945
- sideOffset,
946
- className: cn(
947
- "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",
948
- className
949
- ),
950
- ...props
951
- }
952
- )));
953
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
954
- var DropdownMenuItem = React10.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
955
- return /* @__PURE__ */ React10.createElement("a", { href: slug }, /* @__PURE__ */ React10.createElement(
956
- DropdownMenuPrimitive.Item,
957
- {
958
- disabled: props.disabled,
959
- ref,
960
- className: cn(
961
- "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",
962
- inset && "hawa-pl-8",
963
- props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
964
- className
965
- ),
966
- ...props
967
- },
968
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
969
- props.end && props.end,
970
- !props.end && props.shortcut && /* @__PURE__ */ React10.createElement(DropdownMenuShortcut, null, props.shortcut),
971
- !props.end && badged && /* @__PURE__ */ React10.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
972
- ));
973
- });
974
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
975
- var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React10.createElement(
976
- DropdownMenuPrimitive.CheckboxItem,
977
- {
978
- ref,
979
- className: cn(
980
- "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",
981
- className
982
- ),
983
- checked,
984
- ...props
985
- },
986
- /* @__PURE__ */ React10.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__ */ React10.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React10.createElement(
987
- "svg",
988
- {
989
- "aria-label": "Check Mark",
990
- stroke: "currentColor",
991
- fill: "currentColor",
992
- strokeWidth: "0",
993
- viewBox: "0 0 512 512",
994
- height: "0.60em",
995
- width: "0.60em"
996
- },
997
- /* @__PURE__ */ React10.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" })
998
- ), " ")),
999
- children
1000
- ));
1001
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
1002
- var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1003
- DropdownMenuPrimitive.RadioItem,
1004
- {
1005
- ref,
1006
- className: cn(
1007
- "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",
1008
- className
1009
- ),
1010
- ...props
1011
- },
1012
- /* @__PURE__ */ React10.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__ */ React10.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React10.createElement(
1013
- "svg",
1014
- {
1015
- xmlns: "http://www.w3.org/2000/svg",
1016
- width: "24",
1017
- "aria-label": "Circle",
1018
- height: "24",
1019
- viewBox: "0 0 24 24",
1020
- fill: "none",
1021
- stroke: "currentColor",
1022
- strokeWidth: "2",
1023
- strokeLinecap: "round",
1024
- strokeLinejoin: "round",
1025
- className: "hawa-h-2 hawa-w-2 hawa-fill-current"
1026
- },
1027
- /* @__PURE__ */ React10.createElement("circle", { cx: "12", cy: "12", r: "10" })
1028
- ))),
1029
- children
1030
- ));
1031
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
1032
- var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1033
- DropdownMenuPrimitive.Label,
1034
- {
1035
- ref,
1036
- className: cn(
1037
- "hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
1038
- inset && "hawa-pl-8",
1039
- className
1040
- ),
1041
- ...props
1042
- }
1043
- ));
1044
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1045
- var DropdownMenuSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1046
- DropdownMenuPrimitive.Separator,
1047
- {
1048
- ref,
1049
- className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
1050
- ...props
1051
- }
1052
- ));
1053
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
1054
- var DropdownMenuShortcut = ({
1055
- className,
1056
- ...props
1057
- }) => {
1058
- return /* @__PURE__ */ React10.createElement(
1059
- "span",
1060
- {
1061
- className: cn(
1062
- "hawa-text-xs hawa-tracking-widest hawa-opacity-60",
1063
- className
1064
- ),
1065
- ...props
1066
- }
1067
- );
1068
- };
1069
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
1070
- var DropdownMenu = ({
1071
- trigger,
1072
- items,
1073
- direction,
1074
- sideOffset,
1075
- side,
1076
- className,
1077
- triggerClassname,
1078
- align,
1079
- alignOffset,
1080
- onItemSelect,
1081
- size = "default",
1082
- width = "default",
1083
- header,
1084
- onOpenChange,
1085
- open
1086
- }) => {
1087
- const widthStyles = {
1088
- default: "hawa-min-w-[8rem]",
1089
- sm: "hawa-w-fit",
1090
- lg: "hawa-w-[200px]",
1091
- parent: "ddm-w-parent"
1092
- };
1093
- const sizeStyles = {
1094
- default: "hawa-px-2 hawa-py-3 ",
1095
- sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
1096
- };
1097
- return /* @__PURE__ */ React10.createElement(
1098
- DropdownMenuRoot,
1099
- {
1100
- onOpenChange,
1101
- open,
1102
- modal: false,
1103
- dir: direction
1104
- },
1105
- /* @__PURE__ */ React10.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
1106
- /* @__PURE__ */ React10.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React10.createElement(
1107
- DropdownMenuContent,
1108
- {
1109
- side,
1110
- sideOffset,
1111
- className: cn(
1112
- className,
1113
- widthStyles[width],
1114
- "hawa-flex hawa-flex-col hawa-gap-1"
1115
- ),
1116
- align,
1117
- alignOffset
1118
- },
1119
- header && header,
1120
- items && items.map((item, index) => {
1121
- if (item.itemType === "separator") {
1122
- return /* @__PURE__ */ React10.createElement(DropdownMenuSeparator, { key: index });
1123
- } else if (item.itemType === "label") {
1124
- return /* @__PURE__ */ React10.createElement(DropdownMenuLabel, { key: index }, item.label);
1125
- } else if (item.itemType === "custom") {
1126
- return /* @__PURE__ */ React10.createElement("div", { key: index }, item.content);
1127
- } else {
1128
- return item.subitems ? /* @__PURE__ */ React10.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React10.createElement(
1129
- DropdownMenuSubTrigger,
1130
- {
1131
- className: cn(sizeStyles[size]),
1132
- dir: direction
1133
- },
1134
- item.icon && item.icon,
1135
- item.label && item.label
1136
- ), /* @__PURE__ */ React10.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React10.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React10.createElement(
1137
- DropdownMenuItem,
1138
- {
1139
- slug: subitem.slug,
1140
- onMouseDown: (event) => {
1141
- if (event.button === 1 || event.button === 0 && event.ctrlKey) {
1142
- event.preventDefault();
1143
- if (subitem.onMiddleClick) {
1144
- subitem.onMiddleClick(item.value);
1145
- }
1146
- }
1147
- },
1148
- key: subIndex,
1149
- className: cn(
1150
- sizeStyles[size],
1151
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
1152
- ),
1153
- disabled: subitem.disabled,
1154
- onSelect: () => {
1155
- subitem.action && subitem.action();
1156
- if (onItemSelect) {
1157
- onItemSelect(subitem.value);
1158
- }
1159
- }
1160
- },
1161
- subitem.icon && subitem.icon,
1162
- subitem.label && subitem.label
1163
- ))))) : /* @__PURE__ */ React10.createElement(
1164
- DropdownMenuItem,
1165
- {
1166
- slug: item.slug,
1167
- key: index,
1168
- disabled: item.disabled,
1169
- onMouseDown: (event) => {
1170
- if (event.button === 1 || event.button === 0 && event.ctrlKey) {
1171
- event.preventDefault();
1172
- if (item.onMiddleClick) {
1173
- item.onMiddleClick(item.value);
1174
- }
1175
- }
1176
- },
1177
- onClick: (event) => {
1178
- if (item.onClick) {
1179
- item.onClick(item.value);
1180
- }
1181
- },
1182
- onSelect: (e) => {
1183
- if (item.presist) {
1184
- e.preventDefault();
1185
- }
1186
- if (item.action) {
1187
- item.action();
1188
- if (onItemSelect) {
1189
- onItemSelect(item.value);
1190
- }
1191
- } else {
1192
- if (onItemSelect) {
1193
- onItemSelect(item.value);
1194
- }
1195
- }
1196
- },
1197
- end: item.end,
1198
- shortcut: item.shortcut,
1199
- badged: item.badged,
1200
- className: cn(
1201
- sizeStyles[size],
1202
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
1203
- item.presist && "focus:hawa-bg-transparent"
1204
- )
1205
- },
1206
- item.icon && item.icon,
1207
- item.label && item.label
1208
- );
1209
- }
1210
- })
1211
- ))
1212
- );
1213
- };
1214
-
1215
- // elements/tooltip/Tooltip.tsx
1216
- var import_react7 = __toESM(require("react"));
1217
- var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
1218
- var TooltipContent = import_react7.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react7.default.createElement(
1219
- TooltipPrimitive.Content,
1220
- {
1221
- ref,
1222
- sideOffset,
1223
- className: cn(
1224
- "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",
1225
- className
1226
- ),
1227
- ...props
1228
- }
1229
- ));
1230
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
1231
- var TooltipArrow = import_react7.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react7.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
1232
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
1233
- var Tooltip = ({
1234
- side,
1235
- open,
1236
- content,
1237
- children,
1238
- defaultOpen,
1239
- onOpenChange,
1240
- triggerProps,
1241
- contentProps,
1242
- providerProps,
1243
- delayDuration = 300,
1244
- ...props
1245
- }) => {
1246
- return /* @__PURE__ */ import_react7.default.createElement(
1247
- TooltipPrimitive.TooltipProvider,
1248
- {
1249
- delayDuration,
1250
- ...providerProps
1251
- },
1252
- /* @__PURE__ */ import_react7.default.createElement(
1253
- TooltipPrimitive.Root,
1254
- {
1255
- open,
1256
- defaultOpen,
1257
- onOpenChange,
1258
- ...props
1259
- },
1260
- /* @__PURE__ */ import_react7.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
1261
- /* @__PURE__ */ import_react7.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
1262
- )
1263
- );
1264
- };
1265
-
1266
- // layout/appLayout/AppLayout.tsx
1267
- var AppLayout = ({
1268
- profileMenuWidth = "default",
1269
- DrawerFooterActions,
1270
- design = "default",
1271
- direction = "ltr",
1272
- drawerSize = "md",
1273
- currentPage,
1274
- clickedItem,
1275
- setKeepOpen,
1276
- keepOpen,
1277
- ...props
1278
- }) => {
1279
- var _a, _b;
1280
- let closeDrawerWidth = 56;
1281
- let openDrawerWidth = 200;
1282
- let drawerSizeStyle = {
1283
- opened: {
1284
- sm: "100",
1285
- md: openDrawerWidth,
1286
- lg: "250"
1287
- },
1288
- closed: {
1289
- sm: closeDrawerWidth,
1290
- md: closeDrawerWidth,
1291
- lg: closeDrawerWidth
1292
- }
1293
- };
1294
- const ref = (0, import_react8.useRef)(null);
1295
- const isRTL = direction === "rtl";
1296
- const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react8.useState)("");
1297
- const [size, setSize] = (0, import_react8.useState)(1200);
1298
- const [openSideMenu, setOpenSideMenu] = (0, import_react8.useState)(true);
1299
- const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
1300
- (0, import_react8.useEffect)(() => {
1301
- if (typeof window !== "undefined") {
1302
- const resize = () => {
1303
- setSize(window.innerWidth);
1304
- };
1305
- resize();
1306
- window.addEventListener("resize", resize);
1307
- return () => {
1308
- window.removeEventListener("resize", resize);
1309
- };
1310
- }
1311
- }, []);
1312
- (0, import_react8.useEffect)(() => {
1313
- if (size > 600) {
1314
- setOpenSideMenu(keepOpen);
1315
- } else {
1316
- setOpenSideMenu(false);
1317
- }
1318
- }, [size]);
1319
- (0, import_react8.useEffect)(() => {
1320
- const handleClickOutside = (event) => {
1321
- if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
1322
- setOpenSideMenu(false);
1323
- }
1324
- };
1325
- document.addEventListener("click", handleClickOutside, true);
1326
- return () => {
1327
- document.removeEventListener("click", handleClickOutside, true);
1328
- };
1329
- }, [keepOpen]);
1330
- return /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-fixed hawa-left-0" }, props.topBar && /* @__PURE__ */ import_react8.default.createElement(
1331
- "div",
1332
- {
1333
- className: cn(
1334
- "hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-0 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2",
1335
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
1336
- )
1337
- },
1338
- size > 600 ? /* @__PURE__ */ import_react8.default.createElement(
1339
- "div",
1340
- {
1341
- className: cn(
1342
- "dark:hawa-text-white",
1343
- isRTL ? [
1344
- size > 600 ? "hawa-mr-14" : "hawa-mr-2",
1345
- keepOpen ? "hawa-mr-40" : ""
1346
- ] : [
1347
- size > 600 ? "hawa-ml-14" : "hawa-ml-2",
1348
- keepOpen ? "hawa-ml-40" : ""
1349
- ]
1350
- ),
1351
- style: isRTL ? {
1352
- marginRight: `${drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize]}px`
1353
- } : {
1354
- marginLeft: `${drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize]}px`
1355
- }
1356
- },
1357
- props.pageTitle
1358
- ) : (
1359
- // Mobile Drawer Menu Button
1360
- /* @__PURE__ */ import_react8.default.createElement(
1361
- "div",
1362
- {
1363
- dir: direction,
1364
- className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
1365
- },
1366
- /* @__PURE__ */ import_react8.default.createElement(
1367
- "div",
1368
- {
1369
- onClick: () => setOpenSideMenu(true),
1370
- className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
1371
- },
1372
- /* @__PURE__ */ import_react8.default.createElement(MenuIcon, null)
1373
- ),
1374
- props.pageTitle ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ import_react8.default.createElement("div", null)
1375
- )
1376
- ),
1377
- /* @__PURE__ */ import_react8.default.createElement(
1378
- "div",
1379
- {
1380
- className: cn(
1381
- "hawa-flex hawa-gap-2 dark:hawa-text-white",
1382
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
1383
- )
1384
- },
1385
- size > 600 ? /* @__PURE__ */ import_react8.default.createElement(
1386
- "div",
1387
- {
1388
- className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
1389
- },
1390
- /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-font-bold" }, props.username),
1391
- " ",
1392
- /* @__PURE__ */ import_react8.default.createElement("div", null, props.email)
1393
- ) : null,
1394
- /* @__PURE__ */ import_react8.default.createElement(
1395
- DropdownMenu,
1396
- {
1397
- triggerClassname: "hawa-mx-2",
1398
- align: "end",
1399
- alignOffset: 8,
1400
- side: "bottom",
1401
- sideOffset: 5,
1402
- width: profileMenuWidth,
1403
- direction: isRTL ? "rtl" : "ltr",
1404
- items: props.profileMenuItems,
1405
- onItemSelect: (e) => console.log("selecting item ", e),
1406
- trigger: /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react8.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react8.default.createElement(
1407
- "svg",
1408
- {
1409
- "aria-label": "Avatar Icon",
1410
- className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
1411
- fill: "currentColor",
1412
- viewBox: "0 0 20 20"
1413
- },
1414
- /* @__PURE__ */ import_react8.default.createElement(
1415
- "path",
1416
- {
1417
- fillRule: "evenodd",
1418
- d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
1419
- clipRule: "evenodd"
1420
- }
1421
- )
1422
- ))
1423
- }
1424
- )
1425
- )
1426
- ), /* @__PURE__ */ import_react8.default.createElement(
1427
- "div",
1428
- {
1429
- className: cn(
1430
- "hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
1431
- isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
1432
- "hawa-h-[calc(100dvh)]"
1433
- ),
1434
- style: {
1435
- width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
1436
- },
1437
- onMouseEnter: () => {
1438
- setOpenSideMenu(true);
1439
- },
1440
- onMouseLeave: () => {
1441
- if (size > 600) {
1442
- if (keepOpen) {
1443
- setOpenSideMenu(true);
1444
- } else {
1445
- setOpenedSidebarItem("");
1446
- setOpenSideMenu(false);
1447
- }
1448
- } else {
1449
- setOpenSideMenu(false);
1450
- }
1451
- },
1452
- ref
1453
- },
1454
- /* @__PURE__ */ import_react8.default.createElement(
1455
- "div",
1456
- {
1457
- onClick: props.onLogoClick,
1458
- dir: direction,
1459
- className: cn(
1460
- "hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-bg-primary-foreground hawa-transition-all",
1461
- props.onLogoClick && "hawa-cursor-pointer"
1462
- ),
1463
- style: {
1464
- width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
1465
- }
1466
- },
1467
- openSideMenu && props.header && props.header,
1468
- !props.header && /* @__PURE__ */ import_react8.default.createElement(
1469
- "img",
1470
- {
1471
- className: cn(
1472
- "hawa-h-9 hawa-opacity-0 hawa-transition-all",
1473
- !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"
1474
- ),
1475
- src: props.logoLink
1476
- }
1477
- ),
1478
- size > 600 ? /* @__PURE__ */ import_react8.default.createElement(
1479
- "img",
1480
- {
1481
- className: cn(
1482
- "hawa-fixed hawa-h-9 hawa-transition-all",
1483
- isRTL ? "hawa-right-2.5 hawa-top-2.5" : "hawa-left-2.5 hawa-top-2.5",
1484
- openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"
1485
- ),
1486
- src: props.logoSymbol
1487
- }
1488
- ) : null
1489
- ),
1490
- /* @__PURE__ */ import_react8.default.createElement(
1491
- "div",
1492
- {
1493
- className: cn(
1494
- "hawa-fixed hawa-bottom-14 hawa-top-14 hawa-bg-primary-foreground hawa-p-0 hawa-py-2 hawa-transition-all",
1495
- openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
1496
- ),
1497
- style: {
1498
- width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
1499
- }
1500
- },
1501
- /* @__PURE__ */ import_react8.default.createElement(
1502
- SidebarGroup,
1503
- {
1504
- direction,
1505
- onItemClick: (values) => {
1506
- if (clickedItem) {
1507
- clickedItem(values);
1508
- }
1509
- },
1510
- onSubItemClick: (values) => {
1511
- if (clickedItem) {
1512
- clickedItem(values);
1513
- }
1514
- },
1515
- selectedItem: currentPage,
1516
- openedItem: openedSidebarItem,
1517
- setOpenedItem: (e) => setOpenedSidebarItem(e),
1518
- isOpen: keepOpen || openSideMenu,
1519
- items: props.drawerItems
1520
- }
1521
- )
1522
- ),
1523
- /* @__PURE__ */ import_react8.default.createElement(
1524
- "div",
1525
- {
1526
- className: cn(
1527
- "hawa-fixed hawa-flex hawa-h-14 hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-bg-primary-foreground hawa-transition-all",
1528
- direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row",
1529
- "hawa-bottom-0"
1530
- ),
1531
- style: {
1532
- width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
1533
- }
1534
- },
1535
- DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, DrawerFooterActions) : null,
1536
- size > 600 && openSideMenu ? /* @__PURE__ */ import_react8.default.createElement(
1537
- Tooltip,
1538
- {
1539
- side: "left",
1540
- delayDuration: 500,
1541
- content: keepOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar",
1542
- triggerProps: { asChild: true }
1543
- },
1544
- /* @__PURE__ */ import_react8.default.createElement(
1545
- Button,
1546
- {
1547
- variant: "outline",
1548
- onClick: () => {
1549
- const newKeepOpenState = !keepOpen;
1550
- if (props.onDrawerExpand) {
1551
- props.onDrawerExpand(newKeepOpenState);
1552
- }
1553
- setKeepOpen(newKeepOpenState);
1554
- },
1555
- size: "smallIcon"
1556
- },
1557
- /* @__PURE__ */ import_react8.default.createElement(
1558
- "svg",
1559
- {
1560
- className: cn(
1561
- "hawa-h-6 hawa-w-6 hawa-shrink-0 hawa-text-primary hawa-transition-all disabled:hawa-bg-gray-200 ",
1562
- keepOpen ? isRTL ? "hawa--rotate-90" : "hawa-rotate-90" : isRTL ? "hawa-rotate-90" : "hawa--rotate-90"
1563
- ),
1564
- fill: "currentColor",
1565
- viewBox: "0 0 20 20"
1566
- },
1567
- /* @__PURE__ */ import_react8.default.createElement(
1568
- "path",
1569
- {
1570
- fillRule: "evenodd",
1571
- d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
1572
- clipRule: "evenodd"
1573
- }
1574
- )
1575
- )
1576
- )
1577
- ) : null
1578
- )
1579
- ), /* @__PURE__ */ import_react8.default.createElement(
1580
- "div",
1581
- {
1582
- className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
1583
- style: isRTL ? {
1584
- height: `calc(100% - ${props.topBar ? "56" : "0"}px)`,
1585
- width: `calc(100% - ${drawerSizeCondition}px)`,
1586
- left: "0px",
1587
- top: props.topBar ? "56px" : "0px"
1588
- } : {
1589
- height: `calc(100% - ${props.topBar ? "56" : "0"}px)`,
1590
- width: `calc(100% - ${drawerSizeCondition}px)`,
1591
- left: `${drawerSizeCondition}px`,
1592
- top: props.topBar ? "56px" : "0px"
1593
- }
1594
- },
1595
- props.children
1596
- ));
1597
- };
1598
- var MenuIcon = () => /* @__PURE__ */ import_react8.default.createElement(
1599
- "svg",
1600
- {
1601
- "aria-label": "Menu Button",
1602
- stroke: "currentColor",
1603
- fill: "currentColor",
1604
- strokeWidth: 0,
1605
- viewBox: "0 0 20 20",
1606
- "aria-hidden": "true",
1607
- height: "1.6em",
1608
- width: "1.6em"
1609
- },
1610
- /* @__PURE__ */ import_react8.default.createElement(
1611
- "path",
1612
- {
1613
- fillRule: "evenodd",
1614
- clipRule: "evenodd",
1615
- d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
1616
- }
1617
- )
1618
- );
1619
-
1620
- // layout/appTopbar/AppTopbar.tsx
1621
- var import_react9 = __toESM(require("react"));
1622
- var AppTopbar = ({ ...props }) => {
1623
- const isRTL = props.direction === "ltr";
1624
- const size = 1200;
1625
- return /* @__PURE__ */ import_react9.default.createElement(
1626
- "div",
1627
- {
1628
- className: cn(
1629
- "hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-border-b hawa-bg-primary-foreground hawa-p-2",
1630
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
1631
- )
1632
- },
1633
- size > 600 ? /* @__PURE__ */ import_react9.default.createElement(
1634
- "div",
1635
- null,
1636
- "page title"
1637
- ) : (
1638
- // Mobile Drawer Menu Button
1639
- /* @__PURE__ */ import_react9.default.createElement(
1640
- "div",
1641
- {
1642
- dir: props.direction,
1643
- className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
1644
- },
1645
- /* @__PURE__ */ import_react9.default.createElement(
1646
- "div",
1647
- {
1648
- className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
1649
- },
1650
- /* @__PURE__ */ import_react9.default.createElement(
1651
- "svg",
1652
- {
1653
- stroke: "currentColor",
1654
- fill: "currentColor",
1655
- strokeWidth: 0,
1656
- viewBox: "0 0 20 20",
1657
- "aria-hidden": "true",
1658
- height: "1.6em",
1659
- width: "1.6em"
1660
- },
1661
- /* @__PURE__ */ import_react9.default.createElement(
1662
- "path",
1663
- {
1664
- fillRule: "evenodd",
1665
- clipRule: "evenodd",
1666
- d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
1667
- }
1668
- )
1669
- )
1670
- ),
1671
- "Mobile title"
1672
- )
1673
- ),
1674
- /* @__PURE__ */ import_react9.default.createElement(
1675
- "div",
1676
- {
1677
- className: cn(
1678
- "hawa-flex hawa-gap-2 dark:hawa-text-white",
1679
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
1680
- )
1681
- },
1682
- size > 600 ? /* @__PURE__ */ import_react9.default.createElement(
1683
- "div",
1684
- {
1685
- className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
1686
- },
1687
- /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-font-bold" }, props.username),
1688
- " ",
1689
- /* @__PURE__ */ import_react9.default.createElement("div", null, props.email)
1690
- ) : null,
1691
- /* @__PURE__ */ import_react9.default.createElement(
1692
- DropdownMenu,
1693
- {
1694
- triggerClassname: "hawa-mx-2",
1695
- align: "end",
1696
- alignOffset: 8,
1697
- side: "bottom",
1698
- sideOffset: 5,
1699
- direction: isRTL ? "rtl" : "ltr",
1700
- items: props.profileMenuItems,
1701
- onItemSelect: (e) => console.log("selecting item ", e),
1702
- trigger: /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react9.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react9.default.createElement(
1703
- "svg",
1704
- {
1705
- "aria-label": "Avatar Icon",
1706
- className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
1707
- fill: "currentColor",
1708
- viewBox: "0 0 20 20"
1709
- },
1710
- /* @__PURE__ */ import_react9.default.createElement(
1711
- "path",
1712
- {
1713
- fillRule: "evenodd",
1714
- d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
1715
- clipRule: "evenodd"
1716
- }
1717
- )
1718
- ))
1719
- }
1720
- )
1721
- )
1722
- );
1723
- };
1724
-
1725
- // layout/appMenubar/AppMenubar.tsx
1726
- var React14 = __toESM(require("react"));
1727
- var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
1728
- var MenubarMenu = MenubarPrimitive.Menu;
1729
- var MenubarGroup = MenubarPrimitive.Group;
1730
- var MenubarPortal = MenubarPrimitive.Portal;
1731
- var MenubarSub = MenubarPrimitive.Sub;
1732
- var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
1733
- var Menubar = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1734
- MenubarPrimitive.Root,
1735
- {
1736
- ref,
1737
- className: cn(
1738
- "hawa-flex hawa-h-10 hawa-items-center hawa-space-x-1 hawa-rounded-md hawa-border hawa-bg-background hawa-p-1",
1739
- className
1740
- ),
1741
- ...props
1742
- }
1743
- ));
1744
- Menubar.displayName = MenubarPrimitive.Root.displayName;
1745
- var MenubarTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1746
- MenubarPrimitive.Trigger,
1747
- {
1748
- ref,
1749
- className: cn(
1750
- "hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground",
1751
- className
1752
- ),
1753
- ...props
1754
- }
1755
- ));
1756
- MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
1757
- var MenubarSubTrigger = React14.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1758
- MenubarPrimitive.SubTrigger,
1759
- {
1760
- ref,
1761
- className: cn(
1762
- "hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground",
1763
- inset && "pl-8",
1764
- className
1765
- ),
1766
- ...props
1767
- },
1768
- children,
1769
- /* @__PURE__ */ React14.createElement(
1770
- "svg",
1771
- {
1772
- "aria-label": "Chevron Right Icon",
1773
- xmlns: "http://www.w3.org/2000/svg",
1774
- width: "24",
1775
- height: "24",
1776
- viewBox: "0 0 24 24",
1777
- fill: "none",
1778
- stroke: "currentColor",
1779
- strokeWidth: "2",
1780
- strokeLinecap: "round",
1781
- strokeLinejoin: "round",
1782
- className: "hawa-icon hawa-ml-auto"
1783
- },
1784
- /* @__PURE__ */ React14.createElement("path", { d: "m9 18 6-6-6-6" })
1785
- )
1786
- ));
1787
- MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
1788
- var MenubarSubContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1789
- MenubarPrimitive.SubContent,
1790
- {
1791
- ref,
1792
- className: cn(
1793
- "hawa-z-50 hawa-min-w-[8rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground 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",
1794
- className
1795
- ),
1796
- ...props
1797
- }
1798
- ));
1799
- MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
1800
- var MenubarContent = React14.forwardRef(
1801
- ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React14.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React14.createElement(
1802
- MenubarPrimitive.Content,
1803
- {
1804
- ref,
1805
- align,
1806
- alignOffset,
1807
- sideOffset,
1808
- className: cn(
1809
- "hawa-z-50 hawa-min-w-[12rem] 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-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",
1810
- className
1811
- ),
1812
- ...props
1813
- }
1814
- ))
1815
- );
1816
- MenubarContent.displayName = MenubarPrimitive.Content.displayName;
1817
- var MenubarItem = React14.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1818
- MenubarPrimitive.Item,
1819
- {
1820
- ref,
1821
- className: cn(
1822
- "hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
1823
- inset && "pl-8",
1824
- className
1825
- ),
1826
- ...props
1827
- }
1828
- ));
1829
- MenubarItem.displayName = MenubarPrimitive.Item.displayName;
1830
- var MenubarCheckboxItem = React14.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1831
- MenubarPrimitive.CheckboxItem,
1832
- {
1833
- ref,
1834
- className: cn(
1835
- "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 focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
1836
- className
1837
- ),
1838
- checked,
1839
- ...props
1840
- },
1841
- /* @__PURE__ */ React14.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__ */ React14.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React14.createElement(
1842
- "svg",
1843
- {
1844
- xmlns: "http://www.w3.org/2000/svg",
1845
- width: "24",
1846
- height: "24",
1847
- viewBox: "0 0 24 24",
1848
- fill: "none",
1849
- stroke: "currentColor",
1850
- strokeWidth: "2",
1851
- strokeLinecap: "round",
1852
- strokeLinejoin: "round",
1853
- className: "hawa-icon"
1854
- },
1855
- /* @__PURE__ */ React14.createElement("path", { d: "M20 6 9 17l-5-5" })
1856
- ))),
1857
- children
1858
- ));
1859
- MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
1860
- var MenubarRadioItem = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1861
- MenubarPrimitive.RadioItem,
1862
- {
1863
- ref,
1864
- className: cn(
1865
- "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 focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
1866
- className
1867
- ),
1868
- ...props
1869
- },
1870
- /* @__PURE__ */ React14.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__ */ React14.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React14.createElement(
1871
- "svg",
1872
- {
1873
- xmlns: "http://www.w3.org/2000/svg",
1874
- width: "24",
1875
- height: "24",
1876
- viewBox: "0 0 24 24",
1877
- fill: "none",
1878
- stroke: "currentColor",
1879
- strokeWidth: "2",
1880
- strokeLinecap: "round",
1881
- strokeLinejoin: "round",
1882
- className: "hawa-h-2 hawa-w-2 hawa-fill-current"
1883
- },
1884
- /* @__PURE__ */ React14.createElement("circle", { cx: "12", cy: "12", r: "10" })
1885
- ))),
1886
- children
1887
- ));
1888
- MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
1889
- var MenubarLabel = React14.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1890
- MenubarPrimitive.Label,
1891
- {
1892
- ref,
1893
- className: cn(
1894
- "hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
1895
- inset && "hawa-pl-8",
1896
- className
1897
- ),
1898
- ...props
1899
- }
1900
- ));
1901
- MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
1902
- var MenubarSeparator = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1903
- MenubarPrimitive.Separator,
1904
- {
1905
- ref,
1906
- className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
1907
- ...props
1908
- }
1909
- ));
1910
- MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
1911
- var MenubarShortcut = ({
1912
- className,
1913
- ...props
1914
- }) => {
1915
- return /* @__PURE__ */ React14.createElement(
1916
- "span",
1917
- {
1918
- className: cn(
1919
- "hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
1920
- className
1921
- ),
1922
- ...props
1923
- }
1924
- );
1925
- };
1926
- MenubarShortcut.displayname = "MenubarShortcut";
1927
-
1928
- // layout/appTabs/AppTabs.tsx
1929
- var import_react10 = __toESM(require("react"));
1930
- var AppTabs = ({ tabs, className }) => {
1931
- const [selectedIndex, setSelectedIndex] = (0, import_react10.useState)(0);
1932
- return /* @__PURE__ */ import_react10.default.createElement(
1933
- "div",
1934
- {
1935
- className: cn(
1936
- "hawa-w-full hawa-border-b hawa-bg-card hawa-p-6 hawa-pb-0",
1937
- className
1938
- )
1939
- },
1940
- /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
1941
- const selected = index === selectedIndex;
1942
- return /* @__PURE__ */ import_react10.default.createElement(
1943
- "a",
1944
- {
1945
- href: tab.path,
1946
- key: index,
1947
- onMouseDown: (e) => {
1948
- if (tab.onMouseDown) {
1949
- tab.onMouseDown(e);
1950
- }
1951
- },
1952
- onClick: (e) => {
1953
- if (tab.onClick) {
1954
- tab.onClick(e);
1955
- }
1956
- setSelectedIndex(index);
1957
- },
1958
- className: cn(
1959
- "hawa-z-10 hawa-flex hawa-items-center hawa-translate-y-[1.1px] hawa-select-none hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-4 hawa-py-2 hawa-text-sm hawa-transition-all ",
1960
- "hawa-border",
1961
- // Always have a border but make it transparent
1962
- selected ? "hawa-border hawa-border-b-transparent hawa-bg-background" : "hawa-cursor-pointer hawa-border-transparent hover:hawa-bg-card-foreground/5"
1963
- )
1964
- },
1965
- tab.icon && tab.icon,
1966
- tab.label
1967
- );
1968
- }))
1969
- );
1970
- };
1971
-
1972
- // layout/docsLayout/DocsLayout.tsx
1973
- var import_react14 = __toESM(require("react"));
1974
-
1975
- // elements/logos/Logos.tsx
1976
- var import_react11 = __toESM(require("react"));
1977
- var Logos = {
1978
- hawa: (props) => /* @__PURE__ */ import_react11.default.createElement(
1979
- "svg",
1980
- {
1981
- xmlns: "http://www.w3.org/2000/svg",
1982
- xmlSpace: "preserve",
1983
- viewBox: "0 0 765 765",
1984
- ...props
1985
- },
1986
- /* @__PURE__ */ import_react11.default.createElement(
1987
- "path",
1988
- {
1989
- 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",
1990
- fill: "currentColor"
1991
- }
1992
- )
1993
- ),
1994
- sikka: (props) => /* @__PURE__ */ import_react11.default.createElement(
1995
- "svg",
1996
- {
1997
- xmlns: "http://www.w3.org/2000/svg",
1998
- xmlnsXlink: "http://www.w3.org/1999/xlink",
1999
- xmlSpace: "preserve",
2000
- viewBox: "0 0 916.5 765",
2001
- fill: "currentColor",
2002
- ...props
2003
- },
2004
- /* @__PURE__ */ import_react11.default.createElement("defs", null, /* @__PURE__ */ import_react11.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
2005
- /* @__PURE__ */ import_react11.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react11.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
2006
- /* @__PURE__ */ import_react11.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react11.default.createElement("defs", null, /* @__PURE__ */ import_react11.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react11.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react11.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react11.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react11.default.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" })))
2007
- ),
2008
- mail: (props) => /* @__PURE__ */ import_react11.default.createElement(
2009
- "svg",
2010
- {
2011
- stroke: "currentColor",
2012
- fill: "none",
2013
- strokeWidth: "2",
2014
- viewBox: "0 0 24 24",
2015
- strokeLinecap: "round",
2016
- strokeLinejoin: "round",
2017
- xmlns: "http://www.w3.org/2000/svg",
2018
- ...props
2019
- },
2020
- /* @__PURE__ */ import_react11.default.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" }),
2021
- /* @__PURE__ */ import_react11.default.createElement("polyline", { points: "22,6 12,13 2,6" })
2022
- ),
2023
- phone: (props) => /* @__PURE__ */ import_react11.default.createElement(
2024
- "svg",
2025
- {
2026
- stroke: "currentColor",
2027
- fill: "none",
2028
- strokeWidth: "2",
2029
- viewBox: "0 0 24 24",
2030
- "aria-hidden": "true",
2031
- xmlns: "http://www.w3.org/2000/svg",
2032
- ...props
2033
- },
2034
- /* @__PURE__ */ import_react11.default.createElement(
2035
- "path",
2036
- {
2037
- strokeLinecap: "round",
2038
- strokeLinejoin: "round",
2039
- 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"
2040
- }
2041
- )
2042
- ),
2043
- twitter: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2044
- "path",
2045
- {
2046
- fill: "currentColor",
2047
- 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"
2048
- }
2049
- )),
2050
- instagram: (props) => /* @__PURE__ */ import_react11.default.createElement(
2051
- "svg",
2052
- {
2053
- xmlns: "http://www.w3.org/2000/svg",
2054
- fill: "currentColor",
2055
- viewBox: "0 0 16 16",
2056
- ...props
2057
- },
2058
- /* @__PURE__ */ import_react11.default.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" })
2059
- ),
2060
- microsoft: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2061
- "path",
2062
- {
2063
- fill: "currentColor",
2064
- d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
2065
- }
2066
- )),
2067
- github: (props) => /* @__PURE__ */ import_react11.default.createElement(
2068
- "svg",
2069
- {
2070
- xmlns: "http://www.w3.org/2000/svg",
2071
- viewBox: "0 0 438.549 438.549",
2072
- ...props
2073
- },
2074
- /* @__PURE__ */ import_react11.default.createElement(
2075
- "path",
2076
- {
2077
- fill: "currentColor",
2078
- 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"
2079
- }
2080
- )
2081
- ),
2082
- radix: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2083
- "path",
2084
- {
2085
- d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
2086
- fill: "currentcolor"
2087
- }
2088
- ), /* @__PURE__ */ import_react11.default.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ import_react11.default.createElement(
2089
- "path",
2090
- {
2091
- 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",
2092
- fill: "currentcolor"
2093
- }
2094
- )),
2095
- aria: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react11.default.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" })),
2096
- npm: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2097
- "path",
2098
- {
2099
- 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",
2100
- fill: "currentColor"
2101
- }
2102
- )),
2103
- yarn: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2104
- "path",
2105
- {
2106
- 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",
2107
- fill: "currentColor"
2108
- }
2109
- )),
2110
- pnpm: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2111
- "path",
2112
- {
2113
- 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",
2114
- fill: "currentColor"
2115
- }
2116
- )),
2117
- react: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2118
- "path",
2119
- {
2120
- 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",
2121
- fill: "currentColor"
2122
- }
2123
- )),
2124
- tailwind: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2125
- "path",
2126
- {
2127
- 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",
2128
- fill: "currentColor"
2129
- }
2130
- )),
2131
- google: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2132
- "path",
2133
- {
2134
- fill: "currentColor",
2135
- 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"
2136
- }
2137
- )),
2138
- apple: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2139
- "path",
2140
- {
2141
- 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",
2142
- fill: "currentColor"
2143
- }
2144
- )),
2145
- paypal: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
2146
- "path",
2147
- {
2148
- 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",
2149
- fill: "currentColor"
2150
- }
2151
- )),
2152
- spinner: (props) => /* @__PURE__ */ import_react11.default.createElement(
2153
- "svg",
2154
- {
2155
- xmlns: "http://www.w3.org/2000/svg",
2156
- width: "24",
2157
- height: "24",
2158
- viewBox: "0 0 24 24",
2159
- fill: "none",
2160
- stroke: "currentColor",
2161
- strokeWidth: "2",
2162
- strokeLinecap: "round",
2163
- strokeLinejoin: "round",
2164
- ...props
2165
- },
2166
- /* @__PURE__ */ import_react11.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2167
- ),
2168
- whatsapp: (props) => /* @__PURE__ */ import_react11.default.createElement(
2169
- "svg",
2170
- {
2171
- xmlns: "http://www.w3.org/2000/svg",
2172
- viewBox: "0 0 24 24",
2173
- fill: "currentColor",
2174
- ...props
2175
- },
2176
- /* @__PURE__ */ import_react11.default.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" })
2177
- )
2178
- };
2179
-
2180
- // elements/sheet/Sheet.tsx
2181
- var React17 = __toESM(require("react"));
2182
- var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
2183
- var import_class_variance_authority2 = require("class-variance-authority");
2184
- var Sheet = SheetPrimitive.Root;
2185
- var SheetTrigger = SheetPrimitive.Trigger;
2186
- var SheetPortal = SheetPrimitive.Portal;
2187
- var SheetOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
2188
- SheetPrimitive.Overlay,
2189
- {
2190
- className: cn(
2191
- "hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm 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",
2192
- className
2193
- ),
2194
- ...props,
2195
- ref
2196
- }
2197
- ));
2198
- var sheetVariants = (0, import_class_variance_authority2.cva)(
2199
- "hawa-fixed hawa-z-50 hawa-gap-4 hawa-bg-background hawa-p-2 hawa-shadow-lg hawa-transition hawa-ease-in-out data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-duration-300 data-[state=open]:hawa-duration-300",
2200
- {
2201
- variants: {
2202
- side: {
2203
- top: "hawa-inset-x-0 hawa-top-0 hawa-border-b data-[state=closed]:hawa-slide-out-to-top data-[state=open]:hawa-slide-in-from-top",
2204
- bottom: "hawa-inset-x-0 hawa-bottom-0 hawa-border-t data-[state=closed]:hawa-slide-out-to-bottom data-[state=open]:hawa-slide-in-from-bottom",
2205
- left: "hawa-inset-y-0 hawa-left-0 hawa-h-full hawa-w-3/4 hawa-border-r data-[state=closed]:hawa-slide-out-to-left data-[state=open]:hawa-slide-in-from-left sm:hawa-max-w-sm",
2206
- right: "hawa-inset-y-0 hawa-right-0 hawa-h-full hawa-w-3/4 hawa-border-l data-[state=closed]:hawa-slide-out-to-right data-[state=open]:hawa-slide-in-from-right sm:hawa-max-w-sm"
2207
- }
2208
- },
2209
- defaultVariants: {
2210
- side: "right"
2211
- }
2212
- }
2213
- );
2214
- var SheetContent = React17.forwardRef(
2215
- ({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React17.createElement(SheetPortal, null, /* @__PURE__ */ React17.createElement(SheetOverlay, null), /* @__PURE__ */ React17.createElement(
2216
- SheetPrimitive.Content,
2217
- {
2218
- ref,
2219
- className: cn(sheetVariants({ side }), className),
2220
- onPointerDownOutside: (e) => {
2221
- if (persist) {
2222
- e.preventDefault();
2223
- }
2224
- },
2225
- ...props
2226
- },
2227
- children,
2228
- !hideCloseButton && /* @__PURE__ */ React17.createElement(
2229
- SheetPrimitive.Close,
2230
- {
2231
- className: cn(
2232
- "hawa-absolute hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary",
2233
- {
2234
- "hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
2235
- "hawa-left-4 hawa-top-4": side === "right",
2236
- "hawa-bottom-4 hawa-right-4": side === "top"
2237
- }
2238
- )
2239
- },
2240
- /* @__PURE__ */ React17.createElement(
2241
- "svg",
2242
- {
2243
- "aria-label": "Close Icon",
2244
- "aria-hidden": "true",
2245
- className: "hawa-h-5 hawa-w-5",
2246
- fill: "currentColor",
2247
- viewBox: "0 0 20 20"
2248
- },
2249
- /* @__PURE__ */ React17.createElement(
2250
- "path",
2251
- {
2252
- fillRule: "evenodd",
2253
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
2254
- clipRule: "evenodd"
2255
- }
2256
- )
2257
- ),
2258
- /* @__PURE__ */ React17.createElement("span", { className: "hawa-sr-only" }, "Close")
2259
- )
2260
- ))
2261
- );
2262
- var SheetHeader = ({
2263
- className,
2264
- ...props
2265
- }) => /* @__PURE__ */ React17.createElement(
2266
- "div",
2267
- {
2268
- className: cn(
2269
- "hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left",
2270
- className
2271
- ),
2272
- ...props
2273
- }
2274
- );
2275
- var SheetFooter = ({
2276
- className,
2277
- ...props
2278
- }) => /* @__PURE__ */ React17.createElement(
2279
- "div",
2280
- {
2281
- className: cn(
2282
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2",
2283
- className
2284
- ),
2285
- ...props
2286
- }
2287
- );
2288
- var SheetTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
2289
- SheetPrimitive.Title,
2290
- {
2291
- ref,
2292
- className: cn(
2293
- "hawa-text-lg hawa-font-semibold hawa-text-foreground",
2294
- className
2295
- ),
2296
- ...props
2297
- }
2298
- ));
2299
- var SheetDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
2300
- SheetPrimitive.Description,
2301
- {
2302
- ref,
2303
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
2304
- ...props
2305
- }
2306
- ));
2307
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
2308
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
2309
- SheetContent.displayName = SheetPrimitive.Content.displayName;
2310
- SheetHeader.displayName = "SheetHeader";
2311
- SheetFooter.displayName = "SheetFooter";
2312
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
2313
-
2314
- // hooks/useBreakpoint.ts
2315
- var import_react12 = require("react");
2316
- var useBreakpoint = () => {
2317
- const [breakpoint, setBreakpoint] = (0, import_react12.useState)(null);
2318
- (0, import_react12.useEffect)(() => {
2319
- if (typeof window !== "undefined") {
2320
- const resize = () => {
2321
- setBreakpoint(window.innerWidth);
2322
- };
2323
- resize();
2324
- window.addEventListener("resize", resize);
2325
- return () => {
2326
- window.removeEventListener("resize", resize);
2327
- };
2328
- }
2329
- }, []);
2330
- return breakpoint;
2331
- };
2332
-
2333
- // layout/docsSidebar/DocsSidebar.tsx
2334
- var import_react13 = __toESM(require("react"));
2335
- var DocsSidebar = ({
2336
- currentPage: propCurrentPage,
2337
- pages,
2338
- direction
2339
- }) => {
2340
- const [activePage, setActivePage] = import_react13.default.useState(pages[0]);
2341
- const handlePageClick = (page, event) => {
2342
- event.preventDefault();
2343
- setTimeout(() => {
2344
- setActivePage(page);
2345
- }, 50);
2346
- const element = document.getElementById(page);
2347
- element == null ? void 0 : element.scrollIntoView({ behavior: "smooth", block: "start" });
2348
- };
2349
- const getCurrentSection = () => {
2350
- for (let i = pages.length - 1; i >= 0; i--) {
2351
- const page = pages[i];
2352
- const element = document.getElementById(page);
2353
- const rect = element == null ? void 0 : element.getBoundingClientRect();
2354
- if (rect) {
2355
- if (rect.top < window.innerHeight && rect.bottom >= 0) {
2356
- return page;
2357
- }
2358
- }
2359
- }
2360
- return pages[0];
2361
- };
2362
- import_react13.default.useEffect(() => {
2363
- const handleScroll = () => {
2364
- setActivePage(getCurrentSection());
2365
- };
2366
- window.addEventListener("scroll", handleScroll);
2367
- return () => {
2368
- window.removeEventListener("scroll", handleScroll);
2369
- };
2370
- }, []);
2371
- let selectedStyles = {
2372
- rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
2373
- ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
2374
- };
2375
- return /* @__PURE__ */ import_react13.default.createElement(
2376
- "div",
2377
- {
2378
- className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
2379
- dir: direction
2380
- },
2381
- pages.map((page, index) => /* @__PURE__ */ import_react13.default.createElement(
2382
- "div",
2383
- {
2384
- key: index,
2385
- className: cn(
2386
- "hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hawa-py-1 hawa-text-xs hawa-transition-all hover:hawa-bg-gray-100",
2387
- (propCurrentPage || activePage) === page ? selectedStyles[direction || "rtl"] : ""
2388
- ),
2389
- onClick: (event) => handlePageClick(page, event)
2390
- },
2391
- page
2392
- ))
2393
- );
2394
- };
2395
-
2396
- // layout/docsLayout/DocsLayout.tsx
2397
- var DocsLayout = ({
2398
- direction = "ltr",
2399
- drawerSize = "md",
2400
- DrawerFooterActions,
2401
- clickedItem,
2402
- keepOpen,
2403
- pages,
2404
- setKeepOpen,
2405
- ...props
2406
- }) => {
2407
- let closeDrawerWidth = 0;
2408
- let openDrawerWidth = 200;
2409
- let drawerSizeStyle = {
2410
- opened: {
2411
- sm: "100",
2412
- md: openDrawerWidth,
2413
- lg: "250"
2414
- },
2415
- closed: {
2416
- sm: closeDrawerWidth,
2417
- md: closeDrawerWidth,
2418
- lg: closeDrawerWidth
2419
- }
2420
- };
2421
- const ref = (0, import_react14.useRef)(null);
2422
- const isRTL = direction === "rtl";
2423
- let size = useBreakpoint();
2424
- if (typeof window == "undefined") {
2425
- size = 1200;
2426
- }
2427
- const [currentPage, setCurrentPage] = (0, import_react14.useState)("Introduction");
2428
- const [openSideMenu, setOpenSideMenu] = (0, import_react14.useState)(true);
2429
- (0, import_react14.useEffect)(() => {
2430
- const handleClickOutside = (event) => {
2431
- if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
2432
- setOpenSideMenu(false);
2433
- }
2434
- };
2435
- document.addEventListener("click", handleClickOutside, true);
2436
- return () => {
2437
- document.removeEventListener("click", handleClickOutside, true);
2438
- };
2439
- }, [openSideMenu]);
2440
- (0, import_react14.useEffect)(() => {
2441
- const handleResize = () => {
2442
- setOpenSideMenu(window.innerWidth > 600 ? true : false);
2443
- };
2444
- handleResize();
2445
- window.addEventListener("resize", handleResize);
2446
- return () => {
2447
- window.removeEventListener("resize", handleResize);
2448
- };
2449
- }, [keepOpen]);
2450
- const observerRef = import_react14.default.useRef(null);
2451
- const handleIntersection = (entries) => {
2452
- const entry = entries.find((entry2) => entry2.isIntersecting);
2453
- if (entry) {
2454
- setCurrentPage(entry.target.id);
2455
- }
2456
- };
2457
- (0, import_react14.useEffect)(() => {
2458
- observerRef.current = new IntersectionObserver(handleIntersection, {
2459
- threshold: 0.5
2460
- // Adjust threshold as needed to determine when a section is in view
2461
- });
2462
- import_react14.default.Children.forEach(props.children, (child) => {
2463
- if (child && child.props.id) {
2464
- const element = document.getElementById(child.props.id);
2465
- if (element && observerRef.current) {
2466
- observerRef.current.observe(element);
2467
- }
2468
- }
2469
- });
2470
- return () => {
2471
- if (observerRef.current) {
2472
- observerRef.current.disconnect();
2473
- }
2474
- };
2475
- }, [props.children]);
2476
- let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
2477
- return /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ import_react14.default.createElement(
2478
- "div",
2479
- {
2480
- className: cn(
2481
- "hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2",
2482
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
2483
- )
2484
- },
2485
- size > 600 ? /* @__PURE__ */ import_react14.default.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ import_react14.default.createElement(
2486
- "img",
2487
- {
2488
- className: cn(
2489
- "hawa-h-8 hawa-opacity-0 hawa-transition-all",
2490
- !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"
2491
- ),
2492
- src: props.logoLink
2493
- }
2494
- )) : (
2495
- // Mobile Drawer Menu Button
2496
- /* @__PURE__ */ import_react14.default.createElement(
2497
- "div",
2498
- {
2499
- dir: direction,
2500
- className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
2501
- },
2502
- /* @__PURE__ */ import_react14.default.createElement(Sheet, null, /* @__PURE__ */ import_react14.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react14.default.createElement(
2503
- "div",
2504
- {
2505
- className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
2506
- },
2507
- /* @__PURE__ */ import_react14.default.createElement(
2508
- "svg",
2509
- {
2510
- "aria-label": "Menu Icon",
2511
- stroke: "currentColor",
2512
- fill: "currentColor",
2513
- strokeWidth: 0,
2514
- viewBox: "0 0 20 20",
2515
- "aria-hidden": "true",
2516
- height: "1.6em",
2517
- width: "1.6em"
2518
- },
2519
- /* @__PURE__ */ import_react14.default.createElement(
2520
- "path",
2521
- {
2522
- fillRule: "evenodd",
2523
- clipRule: "evenodd",
2524
- d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
2525
- }
2526
- )
2527
- )
2528
- )), /* @__PURE__ */ import_react14.default.createElement(
2529
- SheetContent,
2530
- {
2531
- side: isRTL ? "right" : "left",
2532
- className: "hawa-pt-10"
2533
- },
2534
- /* @__PURE__ */ import_react14.default.createElement(DocsSidebar, { direction, pages: pages || [] })
2535
- ))
2536
- )
2537
- ),
2538
- /* @__PURE__ */ import_react14.default.createElement(
2539
- "div",
2540
- {
2541
- className: cn(
2542
- "hawa-flex hawa-gap-2 dark:hawa-text-white",
2543
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
2544
- )
2545
- },
2546
- /* @__PURE__ */ import_react14.default.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ import_react14.default.createElement(Logos.github, { className: "hawa-icon" }))
2547
- )
2548
- ), /* @__PURE__ */ import_react14.default.createElement(
2549
- "div",
2550
- {
2551
- className: cn(
2552
- "hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-bg-primary-foreground hawa-transition-all",
2553
- isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full",
2554
- "hawa-fixed hawa-overflow-x-clip hawa-p-0 hawa-py-2 hawa-transition-all",
2555
- "hawa-top-14",
2556
- openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
2557
- ),
2558
- style: {
2559
- width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
2560
- },
2561
- onMouseEnter: () => {
2562
- setOpenSideMenu(true);
2563
- },
2564
- onMouseLeave: () => {
2565
- if (size < 600) {
2566
- setOpenSideMenu(!openSideMenu);
2567
- }
2568
- },
2569
- ref
2570
- },
2571
- /* @__PURE__ */ import_react14.default.createElement(
2572
- DocsSidebar,
2573
- {
2574
- direction,
2575
- pages: pages || [],
2576
- currentPage
2577
- }
2578
- )
2579
- ), /* @__PURE__ */ import_react14.default.createElement(
2580
- "div",
2581
- {
2582
- className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
2583
- style: isRTL ? {
2584
- height: "calc(100% - 56px)",
2585
- width: `calc(100% - ${drawerSizeCondition}px)`,
2586
- left: "0px",
2587
- top: "56px"
2588
- } : {
2589
- height: "calc(100% - 56px)",
2590
- width: `calc(100% - ${drawerSizeCondition}px)`,
2591
- left: `${drawerSizeCondition}px`,
2592
- right: `${drawerSizeCondition}px`,
2593
- top: "56px"
2594
- }
2595
- },
2596
- props.children
2597
- ));
2598
- };
2599
- // Annotate the CommonJS export names for ESM import in node:
2600
- 0 && (module.exports = {
2601
- AppLayout,
2602
- AppTabs,
2603
- AppTopbar,
2604
- Copyrights,
2605
- DocsLayout,
2606
- DocsSidebar,
2607
- Menubar,
2608
- MenubarCheckboxItem,
2609
- MenubarContent,
2610
- MenubarGroup,
2611
- MenubarItem,
2612
- MenubarLabel,
2613
- MenubarMenu,
2614
- MenubarPortal,
2615
- MenubarRadioGroup,
2616
- MenubarRadioItem,
2617
- MenubarSeparator,
2618
- MenubarShortcut,
2619
- MenubarSub,
2620
- MenubarSubContent,
2621
- MenubarSubTrigger,
2622
- MenubarTrigger,
2623
- Navbar,
2624
- SidebarGroup,
2625
- SidebarItem,
2626
- Stats
2627
- });