@sikka/hawa 0.26.28 → 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 -7835
  194. package/dist/elements/index.mjs +0 -3418
  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 -12126
  214. package/dist/index.mjs +0 -11911
  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 -353
  360. package/dist/toaster/index.mjs +0 -184
  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,887 +0,0 @@
1
- import {
2
- cn
3
- } from "../chunk-TWNGV3RE.mjs";
4
-
5
- // layout/docsLayout/DocsLayout.tsx
6
- import React7, { useEffect as useEffect2, useRef, useState as useState2 } from "react";
7
-
8
- // elements/button/Button.tsx
9
- import * as React2 from "react";
10
- import { cva } from "class-variance-authority";
11
-
12
- // elements/loading/Loading.tsx
13
- import React from "react";
14
- var Loading = ({
15
- design = "spinner",
16
- size = "sm",
17
- themeMode = "light",
18
- color,
19
- ...props
20
- }) => {
21
- let sizeStyles = {
22
- button: "hawa-h-4 hawa-w-4",
23
- xs: "hawa-h-1 hawa-w-1",
24
- sm: "hawa-h-6 hawa-w-6",
25
- normal: "hawa-h-8 hawa-w-8",
26
- lg: "hawa-h-14 hawa-w-14",
27
- xl: "hawa-h-24 hawa-w-24"
28
- };
29
- let animationStyles = {
30
- pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
31
- bounce: "hawa-animate-bounce"
32
- };
33
- switch (design.split("-")[0]) {
34
- case "dots":
35
- return /* @__PURE__ */ React.createElement(
36
- "div",
37
- {
38
- className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
39
- },
40
- /* @__PURE__ */ React.createElement(
41
- "div",
42
- {
43
- className: cn(
44
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
45
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
46
- animationStyles[design.split("-")[1]],
47
- color ? color : "hawa-bg-primary"
48
- )
49
- }
50
- ),
51
- /* @__PURE__ */ React.createElement(
52
- "div",
53
- {
54
- className: cn(
55
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
56
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
57
- animationStyles[design.split("-")[1]],
58
- color ? color : "hawa-bg-primary"
59
- )
60
- }
61
- ),
62
- /* @__PURE__ */ React.createElement(
63
- "div",
64
- {
65
- className: cn(
66
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
67
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
68
- animationStyles[design.split("-")[1]],
69
- color ? color : "hawa-bg-primary"
70
- )
71
- }
72
- )
73
- );
74
- case "square":
75
- return /* @__PURE__ */ React.createElement(
76
- "svg",
77
- {
78
- className: cn("squircle-container", sizeStyles[size]),
79
- viewBox: "0 0 35 35",
80
- height: "35",
81
- width: "35"
82
- },
83
- /* @__PURE__ */ React.createElement(
84
- "rect",
85
- {
86
- className: "squircle-track",
87
- x: "2.5",
88
- y: "2.5",
89
- fill: "none",
90
- strokeWidth: "5px",
91
- width: "32.5",
92
- height: "32.5"
93
- }
94
- ),
95
- /* @__PURE__ */ React.createElement(
96
- "rect",
97
- {
98
- className: "square-car",
99
- x: "2.5",
100
- y: "2.5",
101
- fill: "none",
102
- strokeWidth: "5px",
103
- width: "32.5",
104
- height: "32.5",
105
- pathLength: "100"
106
- }
107
- )
108
- );
109
- case "squircle":
110
- return /* @__PURE__ */ React.createElement(
111
- "svg",
112
- {
113
- className: cn("squircle-container", sizeStyles[size]),
114
- x: "0px",
115
- y: "0px",
116
- viewBox: "0 0 37 37",
117
- height: "37",
118
- width: "37",
119
- preserveAspectRatio: "xMidYMid meet"
120
- },
121
- /* @__PURE__ */ React.createElement(
122
- "path",
123
- {
124
- className: "squircle-track",
125
- fill: "none",
126
- strokeWidth: "5",
127
- pathLength: "100",
128
- 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"
129
- }
130
- ),
131
- /* @__PURE__ */ React.createElement(
132
- "path",
133
- {
134
- className: "squircle-car",
135
- fill: "none",
136
- strokeWidth: "5",
137
- pathLength: "100",
138
- 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"
139
- }
140
- )
141
- );
142
- case "progress":
143
- return /* @__PURE__ */ React.createElement("div", { className: "progress-loading" });
144
- case "orbit":
145
- return /* @__PURE__ */ React.createElement("div", { className: "orbit-container" });
146
- default:
147
- return /* @__PURE__ */ React.createElement(
148
- "svg",
149
- {
150
- className: cn("circle-container", sizeStyles[size]),
151
- viewBox: "0 0 40 40",
152
- height: "40",
153
- width: "40"
154
- },
155
- /* @__PURE__ */ React.createElement(
156
- "circle",
157
- {
158
- className: cn("circle-track", {
159
- "hawa-stroke-primary-foreground": themeMode === "dark",
160
- "hawa-stroke-primary": themeMode === "light"
161
- }),
162
- cx: "20",
163
- cy: "20",
164
- r: "17.5",
165
- pathLength: "100",
166
- strokeWidth: "5px",
167
- fill: "none"
168
- }
169
- ),
170
- /* @__PURE__ */ React.createElement(
171
- "circle",
172
- {
173
- className: cn("circle-car", {
174
- "hawa-stroke-primary-foreground": themeMode === "dark",
175
- "hawa-stroke-primary": themeMode === "light"
176
- }),
177
- cx: "20",
178
- cy: "20",
179
- r: "17.5",
180
- pathLength: "100",
181
- strokeWidth: "5px",
182
- fill: "none"
183
- }
184
- )
185
- );
186
- }
187
- };
188
-
189
- // elements/button/Button.tsx
190
- var buttonVariants = cva(
191
- "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",
192
- {
193
- variants: {
194
- variant: {
195
- default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
196
- light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
197
- destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
198
- outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
199
- secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
200
- ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
201
- link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
202
- combobox: "hawa-bg-background hawa-border",
203
- neoBrutalism: "neo-brutalism"
204
- // "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",
205
- },
206
- size: {
207
- default: "hawa-h-10 hawa-px-4 hawa-py-2",
208
- heightless: "hawa-px-4 hawa-py-4",
209
- xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
210
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
211
- lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
212
- xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
213
- icon: "hawa-h-10 hawa-w-10",
214
- smallIcon: "hawa-h-7 hawa-w-7"
215
- }
216
- },
217
- defaultVariants: {
218
- variant: "default",
219
- size: "default"
220
- }
221
- }
222
- );
223
- var Button = React2.forwardRef(
224
- ({
225
- className,
226
- variant,
227
- size,
228
- asChild = false,
229
- centered = true,
230
- isLoading,
231
- children,
232
- ...props
233
- }, ref) => {
234
- const Comp = "button";
235
- const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
236
- return /* @__PURE__ */ React2.createElement(
237
- Comp,
238
- {
239
- className: cn(
240
- buttonVariants({ variant, size, className }),
241
- centered && "hawa-justify-center"
242
- // "hawa-bg-red-500"
243
- ),
244
- ref,
245
- ...props
246
- },
247
- isLoading ? /* @__PURE__ */ React2.createElement(
248
- Loading,
249
- {
250
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
251
- themeMode: variant === "outline" ? "light" : "dark",
252
- color: loadingColor,
253
- size: size === "sm" || size === "xs" ? "xs" : "button"
254
- }
255
- ) : children
256
- );
257
- }
258
- );
259
- Button.displayName = "Button";
260
-
261
- // elements/logos/Logos.tsx
262
- import React3 from "react";
263
- var Logos = {
264
- hawa: (props) => /* @__PURE__ */ React3.createElement(
265
- "svg",
266
- {
267
- xmlns: "http://www.w3.org/2000/svg",
268
- xmlSpace: "preserve",
269
- viewBox: "0 0 765 765",
270
- ...props
271
- },
272
- /* @__PURE__ */ React3.createElement(
273
- "path",
274
- {
275
- 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",
276
- fill: "currentColor"
277
- }
278
- )
279
- ),
280
- sikka: (props) => /* @__PURE__ */ React3.createElement(
281
- "svg",
282
- {
283
- xmlns: "http://www.w3.org/2000/svg",
284
- xmlnsXlink: "http://www.w3.org/1999/xlink",
285
- xmlSpace: "preserve",
286
- viewBox: "0 0 916.5 765",
287
- fill: "currentColor",
288
- ...props
289
- },
290
- /* @__PURE__ */ React3.createElement("defs", null, /* @__PURE__ */ React3.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
291
- /* @__PURE__ */ React3.createElement("clipPath", { id: "b" }, /* @__PURE__ */ React3.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
292
- /* @__PURE__ */ React3.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ React3.createElement("defs", null, /* @__PURE__ */ React3.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ React3.createElement("clipPath", { id: "d" }, /* @__PURE__ */ React3.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ React3.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ React3.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" })))
293
- ),
294
- mail: (props) => /* @__PURE__ */ React3.createElement(
295
- "svg",
296
- {
297
- stroke: "currentColor",
298
- fill: "none",
299
- strokeWidth: "2",
300
- viewBox: "0 0 24 24",
301
- strokeLinecap: "round",
302
- strokeLinejoin: "round",
303
- xmlns: "http://www.w3.org/2000/svg",
304
- ...props
305
- },
306
- /* @__PURE__ */ React3.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" }),
307
- /* @__PURE__ */ React3.createElement("polyline", { points: "22,6 12,13 2,6" })
308
- ),
309
- phone: (props) => /* @__PURE__ */ React3.createElement(
310
- "svg",
311
- {
312
- stroke: "currentColor",
313
- fill: "none",
314
- strokeWidth: "2",
315
- viewBox: "0 0 24 24",
316
- "aria-hidden": "true",
317
- xmlns: "http://www.w3.org/2000/svg",
318
- ...props
319
- },
320
- /* @__PURE__ */ React3.createElement(
321
- "path",
322
- {
323
- strokeLinecap: "round",
324
- strokeLinejoin: "round",
325
- 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"
326
- }
327
- )
328
- ),
329
- twitter: (props) => /* @__PURE__ */ React3.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
330
- "path",
331
- {
332
- fill: "currentColor",
333
- 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"
334
- }
335
- )),
336
- instagram: (props) => /* @__PURE__ */ React3.createElement(
337
- "svg",
338
- {
339
- xmlns: "http://www.w3.org/2000/svg",
340
- fill: "currentColor",
341
- viewBox: "0 0 16 16",
342
- ...props
343
- },
344
- /* @__PURE__ */ React3.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" })
345
- ),
346
- microsoft: (props) => /* @__PURE__ */ React3.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React3.createElement(
347
- "path",
348
- {
349
- fill: "currentColor",
350
- d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
351
- }
352
- )),
353
- github: (props) => /* @__PURE__ */ React3.createElement(
354
- "svg",
355
- {
356
- xmlns: "http://www.w3.org/2000/svg",
357
- viewBox: "0 0 438.549 438.549",
358
- ...props
359
- },
360
- /* @__PURE__ */ React3.createElement(
361
- "path",
362
- {
363
- fill: "currentColor",
364
- 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"
365
- }
366
- )
367
- ),
368
- radix: (props) => /* @__PURE__ */ React3.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ React3.createElement(
369
- "path",
370
- {
371
- d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
372
- fill: "currentcolor"
373
- }
374
- ), /* @__PURE__ */ React3.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ React3.createElement(
375
- "path",
376
- {
377
- 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",
378
- fill: "currentcolor"
379
- }
380
- )),
381
- aria: (props) => /* @__PURE__ */ React3.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ React3.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" })),
382
- npm: (props) => /* @__PURE__ */ React3.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
383
- "path",
384
- {
385
- 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",
386
- fill: "currentColor"
387
- }
388
- )),
389
- yarn: (props) => /* @__PURE__ */ React3.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
390
- "path",
391
- {
392
- 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",
393
- fill: "currentColor"
394
- }
395
- )),
396
- pnpm: (props) => /* @__PURE__ */ React3.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
397
- "path",
398
- {
399
- 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",
400
- fill: "currentColor"
401
- }
402
- )),
403
- react: (props) => /* @__PURE__ */ React3.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
404
- "path",
405
- {
406
- 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",
407
- fill: "currentColor"
408
- }
409
- )),
410
- tailwind: (props) => /* @__PURE__ */ React3.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
411
- "path",
412
- {
413
- 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",
414
- fill: "currentColor"
415
- }
416
- )),
417
- google: (props) => /* @__PURE__ */ React3.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
418
- "path",
419
- {
420
- fill: "currentColor",
421
- 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"
422
- }
423
- )),
424
- apple: (props) => /* @__PURE__ */ React3.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
425
- "path",
426
- {
427
- 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",
428
- fill: "currentColor"
429
- }
430
- )),
431
- paypal: (props) => /* @__PURE__ */ React3.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React3.createElement(
432
- "path",
433
- {
434
- 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",
435
- fill: "currentColor"
436
- }
437
- )),
438
- spinner: (props) => /* @__PURE__ */ React3.createElement(
439
- "svg",
440
- {
441
- xmlns: "http://www.w3.org/2000/svg",
442
- width: "24",
443
- height: "24",
444
- viewBox: "0 0 24 24",
445
- fill: "none",
446
- stroke: "currentColor",
447
- strokeWidth: "2",
448
- strokeLinecap: "round",
449
- strokeLinejoin: "round",
450
- ...props
451
- },
452
- /* @__PURE__ */ React3.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
453
- ),
454
- whatsapp: (props) => /* @__PURE__ */ React3.createElement(
455
- "svg",
456
- {
457
- xmlns: "http://www.w3.org/2000/svg",
458
- viewBox: "0 0 24 24",
459
- fill: "currentColor",
460
- ...props
461
- },
462
- /* @__PURE__ */ React3.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" })
463
- )
464
- };
465
-
466
- // elements/sheet/Sheet.tsx
467
- import * as React4 from "react";
468
- import * as SheetPrimitive from "@radix-ui/react-dialog";
469
- import { cva as cva2 } from "class-variance-authority";
470
- var Sheet = SheetPrimitive.Root;
471
- var SheetTrigger = SheetPrimitive.Trigger;
472
- var SheetPortal = SheetPrimitive.Portal;
473
- var SheetOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(
474
- SheetPrimitive.Overlay,
475
- {
476
- className: cn(
477
- "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",
478
- className
479
- ),
480
- ...props,
481
- ref
482
- }
483
- ));
484
- var sheetVariants = cva2(
485
- "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",
486
- {
487
- variants: {
488
- side: {
489
- 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",
490
- 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",
491
- 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",
492
- 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"
493
- }
494
- },
495
- defaultVariants: {
496
- side: "right"
497
- }
498
- }
499
- );
500
- var SheetContent = React4.forwardRef(
501
- ({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React4.createElement(SheetPortal, null, /* @__PURE__ */ React4.createElement(SheetOverlay, null), /* @__PURE__ */ React4.createElement(
502
- SheetPrimitive.Content,
503
- {
504
- ref,
505
- className: cn(sheetVariants({ side }), className),
506
- onPointerDownOutside: (e) => {
507
- if (persist) {
508
- e.preventDefault();
509
- }
510
- },
511
- ...props
512
- },
513
- children,
514
- !hideCloseButton && /* @__PURE__ */ React4.createElement(
515
- SheetPrimitive.Close,
516
- {
517
- className: cn(
518
- "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",
519
- {
520
- "hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
521
- "hawa-left-4 hawa-top-4": side === "right",
522
- "hawa-bottom-4 hawa-right-4": side === "top"
523
- }
524
- )
525
- },
526
- /* @__PURE__ */ React4.createElement(
527
- "svg",
528
- {
529
- "aria-label": "Close Icon",
530
- "aria-hidden": "true",
531
- className: "hawa-h-5 hawa-w-5",
532
- fill: "currentColor",
533
- viewBox: "0 0 20 20"
534
- },
535
- /* @__PURE__ */ React4.createElement(
536
- "path",
537
- {
538
- fillRule: "evenodd",
539
- 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",
540
- clipRule: "evenodd"
541
- }
542
- )
543
- ),
544
- /* @__PURE__ */ React4.createElement("span", { className: "hawa-sr-only" }, "Close")
545
- )
546
- ))
547
- );
548
- var SheetHeader = ({
549
- className,
550
- ...props
551
- }) => /* @__PURE__ */ React4.createElement(
552
- "div",
553
- {
554
- className: cn(
555
- "hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left",
556
- className
557
- ),
558
- ...props
559
- }
560
- );
561
- var SheetFooter = ({
562
- className,
563
- ...props
564
- }) => /* @__PURE__ */ React4.createElement(
565
- "div",
566
- {
567
- className: cn(
568
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2",
569
- className
570
- ),
571
- ...props
572
- }
573
- );
574
- var SheetTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(
575
- SheetPrimitive.Title,
576
- {
577
- ref,
578
- className: cn(
579
- "hawa-text-lg hawa-font-semibold hawa-text-foreground",
580
- className
581
- ),
582
- ...props
583
- }
584
- ));
585
- var SheetDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(
586
- SheetPrimitive.Description,
587
- {
588
- ref,
589
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
590
- ...props
591
- }
592
- ));
593
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
594
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
595
- SheetContent.displayName = SheetPrimitive.Content.displayName;
596
- SheetHeader.displayName = "SheetHeader";
597
- SheetFooter.displayName = "SheetFooter";
598
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
599
-
600
- // hooks/useBreakpoint.ts
601
- import { useState, useEffect } from "react";
602
- var useBreakpoint = () => {
603
- const [breakpoint, setBreakpoint] = useState(null);
604
- useEffect(() => {
605
- if (typeof window !== "undefined") {
606
- const resize = () => {
607
- setBreakpoint(window.innerWidth);
608
- };
609
- resize();
610
- window.addEventListener("resize", resize);
611
- return () => {
612
- window.removeEventListener("resize", resize);
613
- };
614
- }
615
- }, []);
616
- return breakpoint;
617
- };
618
-
619
- // layout/docsSidebar/DocsSidebar.tsx
620
- import React6 from "react";
621
- var DocsSidebar = ({
622
- currentPage: propCurrentPage,
623
- pages,
624
- direction
625
- }) => {
626
- const [activePage, setActivePage] = React6.useState(pages[0]);
627
- const handlePageClick = (page, event) => {
628
- event.preventDefault();
629
- setTimeout(() => {
630
- setActivePage(page);
631
- }, 50);
632
- const element = document.getElementById(page);
633
- element == null ? void 0 : element.scrollIntoView({ behavior: "smooth", block: "start" });
634
- };
635
- const getCurrentSection = () => {
636
- for (let i = pages.length - 1; i >= 0; i--) {
637
- const page = pages[i];
638
- const element = document.getElementById(page);
639
- const rect = element == null ? void 0 : element.getBoundingClientRect();
640
- if (rect) {
641
- if (rect.top < window.innerHeight && rect.bottom >= 0) {
642
- return page;
643
- }
644
- }
645
- }
646
- return pages[0];
647
- };
648
- React6.useEffect(() => {
649
- const handleScroll = () => {
650
- setActivePage(getCurrentSection());
651
- };
652
- window.addEventListener("scroll", handleScroll);
653
- return () => {
654
- window.removeEventListener("scroll", handleScroll);
655
- };
656
- }, []);
657
- let selectedStyles = {
658
- rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
659
- ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
660
- };
661
- return /* @__PURE__ */ React6.createElement(
662
- "div",
663
- {
664
- className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
665
- dir: direction
666
- },
667
- pages.map((page, index) => /* @__PURE__ */ React6.createElement(
668
- "div",
669
- {
670
- key: index,
671
- className: cn(
672
- "hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hawa-py-1 hawa-text-xs hawa-transition-all hover:hawa-bg-gray-100",
673
- (propCurrentPage || activePage) === page ? selectedStyles[direction || "rtl"] : ""
674
- ),
675
- onClick: (event) => handlePageClick(page, event)
676
- },
677
- page
678
- ))
679
- );
680
- };
681
-
682
- // layout/docsLayout/DocsLayout.tsx
683
- var DocsLayout = ({
684
- direction = "ltr",
685
- drawerSize = "md",
686
- DrawerFooterActions,
687
- clickedItem,
688
- keepOpen,
689
- pages,
690
- setKeepOpen,
691
- ...props
692
- }) => {
693
- let closeDrawerWidth = 0;
694
- let openDrawerWidth = 200;
695
- let drawerSizeStyle = {
696
- opened: {
697
- sm: "100",
698
- md: openDrawerWidth,
699
- lg: "250"
700
- },
701
- closed: {
702
- sm: closeDrawerWidth,
703
- md: closeDrawerWidth,
704
- lg: closeDrawerWidth
705
- }
706
- };
707
- const ref = useRef(null);
708
- const isRTL = direction === "rtl";
709
- let size = useBreakpoint();
710
- if (typeof window == "undefined") {
711
- size = 1200;
712
- }
713
- const [currentPage, setCurrentPage] = useState2("Introduction");
714
- const [openSideMenu, setOpenSideMenu] = useState2(true);
715
- useEffect2(() => {
716
- const handleClickOutside = (event) => {
717
- if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
718
- setOpenSideMenu(false);
719
- }
720
- };
721
- document.addEventListener("click", handleClickOutside, true);
722
- return () => {
723
- document.removeEventListener("click", handleClickOutside, true);
724
- };
725
- }, [openSideMenu]);
726
- useEffect2(() => {
727
- const handleResize = () => {
728
- setOpenSideMenu(window.innerWidth > 600 ? true : false);
729
- };
730
- handleResize();
731
- window.addEventListener("resize", handleResize);
732
- return () => {
733
- window.removeEventListener("resize", handleResize);
734
- };
735
- }, [keepOpen]);
736
- const observerRef = React7.useRef(null);
737
- const handleIntersection = (entries) => {
738
- const entry = entries.find((entry2) => entry2.isIntersecting);
739
- if (entry) {
740
- setCurrentPage(entry.target.id);
741
- }
742
- };
743
- useEffect2(() => {
744
- observerRef.current = new IntersectionObserver(handleIntersection, {
745
- threshold: 0.5
746
- // Adjust threshold as needed to determine when a section is in view
747
- });
748
- React7.Children.forEach(props.children, (child) => {
749
- if (child && child.props.id) {
750
- const element = document.getElementById(child.props.id);
751
- if (element && observerRef.current) {
752
- observerRef.current.observe(element);
753
- }
754
- }
755
- });
756
- return () => {
757
- if (observerRef.current) {
758
- observerRef.current.disconnect();
759
- }
760
- };
761
- }, [props.children]);
762
- let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
763
- return /* @__PURE__ */ React7.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ React7.createElement(
764
- "div",
765
- {
766
- className: cn(
767
- "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",
768
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
769
- )
770
- },
771
- size > 600 ? /* @__PURE__ */ React7.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ React7.createElement(
772
- "img",
773
- {
774
- className: cn(
775
- "hawa-h-8 hawa-opacity-0 hawa-transition-all",
776
- !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"
777
- ),
778
- src: props.logoLink
779
- }
780
- )) : (
781
- // Mobile Drawer Menu Button
782
- /* @__PURE__ */ React7.createElement(
783
- "div",
784
- {
785
- dir: direction,
786
- className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
787
- },
788
- /* @__PURE__ */ React7.createElement(Sheet, null, /* @__PURE__ */ React7.createElement(SheetTrigger, null, " ", /* @__PURE__ */ React7.createElement(
789
- "div",
790
- {
791
- className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
792
- },
793
- /* @__PURE__ */ React7.createElement(
794
- "svg",
795
- {
796
- "aria-label": "Menu Icon",
797
- stroke: "currentColor",
798
- fill: "currentColor",
799
- strokeWidth: 0,
800
- viewBox: "0 0 20 20",
801
- "aria-hidden": "true",
802
- height: "1.6em",
803
- width: "1.6em"
804
- },
805
- /* @__PURE__ */ React7.createElement(
806
- "path",
807
- {
808
- fillRule: "evenodd",
809
- clipRule: "evenodd",
810
- 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"
811
- }
812
- )
813
- )
814
- )), /* @__PURE__ */ React7.createElement(
815
- SheetContent,
816
- {
817
- side: isRTL ? "right" : "left",
818
- className: "hawa-pt-10"
819
- },
820
- /* @__PURE__ */ React7.createElement(DocsSidebar, { direction, pages: pages || [] })
821
- ))
822
- )
823
- ),
824
- /* @__PURE__ */ React7.createElement(
825
- "div",
826
- {
827
- className: cn(
828
- "hawa-flex hawa-gap-2 dark:hawa-text-white",
829
- isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
830
- )
831
- },
832
- /* @__PURE__ */ React7.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React7.createElement(Logos.github, { className: "hawa-icon" }))
833
- )
834
- ), /* @__PURE__ */ React7.createElement(
835
- "div",
836
- {
837
- className: cn(
838
- "hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-bg-primary-foreground hawa-transition-all",
839
- isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full",
840
- "hawa-fixed hawa-overflow-x-clip hawa-p-0 hawa-py-2 hawa-transition-all",
841
- "hawa-top-14",
842
- openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
843
- ),
844
- style: {
845
- width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
846
- },
847
- onMouseEnter: () => {
848
- setOpenSideMenu(true);
849
- },
850
- onMouseLeave: () => {
851
- if (size < 600) {
852
- setOpenSideMenu(!openSideMenu);
853
- }
854
- },
855
- ref
856
- },
857
- /* @__PURE__ */ React7.createElement(
858
- DocsSidebar,
859
- {
860
- direction,
861
- pages: pages || [],
862
- currentPage
863
- }
864
- )
865
- ), /* @__PURE__ */ React7.createElement(
866
- "div",
867
- {
868
- className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
869
- style: isRTL ? {
870
- height: "calc(100% - 56px)",
871
- width: `calc(100% - ${drawerSizeCondition}px)`,
872
- left: "0px",
873
- top: "56px"
874
- } : {
875
- height: "calc(100% - 56px)",
876
- width: `calc(100% - ${drawerSizeCondition}px)`,
877
- left: `${drawerSizeCondition}px`,
878
- right: `${drawerSizeCondition}px`,
879
- top: "56px"
880
- }
881
- },
882
- props.children
883
- ));
884
- };
885
- export {
886
- DocsLayout
887
- };