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