@akanjs/ui 0.0.150 → 0.0.152

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 (405) hide show
  1. package/BottomSheet.d.ts +13 -0
  2. package/Button.d.ts +9 -0
  3. package/ClientSide.d.ts +6 -0
  4. package/Copy.d.ts +6 -0
  5. package/CsrImage.d.ts +11 -0
  6. package/Data/CardList.d.ts +36 -0
  7. package/Data/Dashboard.d.ts +15 -0
  8. package/Data/Insight.d.ts +8 -0
  9. package/Data/Item.d.ts +74 -0
  10. package/Data/ListContainer.d.ts +38 -0
  11. package/Data/Pagination.d.ts +6 -0
  12. package/Data/QueryMaker.d.ts +9 -0
  13. package/Data/TableList.d.ts +26 -0
  14. package/Data/index.d.ts +10 -0
  15. package/Data/index_.d.ts +8 -0
  16. package/DatePicker.d.ts +37 -0
  17. package/Dialog/Action.d.ts +5 -0
  18. package/Dialog/Close.d.ts +5 -0
  19. package/Dialog/Content.d.ts +6 -0
  20. package/Dialog/Modal.d.ts +8 -0
  21. package/Dialog/Provider.d.ts +7 -0
  22. package/Dialog/Title.d.ts +5 -0
  23. package/Dialog/Trigger.d.ts +5 -0
  24. package/Dialog/context.d.ts +10 -0
  25. package/Dialog/index.d.ts +9 -0
  26. package/DragAction.d.ts +24 -0
  27. package/DraggableList.d.ts +25 -0
  28. package/Dropdown.d.ts +10 -0
  29. package/Empty.d.ts +9 -0
  30. package/Field.d.ts +404 -0
  31. package/FontFace.d.ts +6 -0
  32. package/Image.d.ts +17 -0
  33. package/InfiniteScroll.d.ts +10 -0
  34. package/Input.d.ts +85 -0
  35. package/KeyboardAvoiding.d.ts +7 -0
  36. package/Layout/BottomAction.d.ts +5 -0
  37. package/Layout/BottomInset.d.ts +6 -0
  38. package/Layout/BottomTab.d.ts +14 -0
  39. package/Layout/Header.d.ts +7 -0
  40. package/Layout/LeftSider.d.ts +8 -0
  41. package/Layout/Navbar.d.ts +11 -0
  42. package/Layout/RightSider.d.ts +9 -0
  43. package/Layout/Sider.d.ts +6 -0
  44. package/Layout/Template.d.ts +5 -0
  45. package/Layout/TopLeftAction.d.ts +5 -0
  46. package/Layout/Unit.d.ts +6 -0
  47. package/Layout/View.d.ts +5 -0
  48. package/Layout/Zone.d.ts +5 -0
  49. package/Layout/index.d.ts +14 -0
  50. package/Link/Back.d.ts +6 -0
  51. package/Link/Close.d.ts +6 -0
  52. package/Link/CsrLink.d.ts +2 -0
  53. package/Link/NextLink.d.ts +2 -0
  54. package/Link/index.d.ts +8 -0
  55. package/Link/types.d.ts +22 -0
  56. package/Load/Edit.d.ts +4 -0
  57. package/Load/Edit_Client.d.ts +25 -0
  58. package/Load/Page.d.ts +10 -0
  59. package/Load/PageCSR.d.ts +11 -0
  60. package/Load/Pagination.d.ts +8 -0
  61. package/Load/Units.d.ts +34 -0
  62. package/Load/View.d.ts +17 -0
  63. package/Load/index.d.ts +8 -0
  64. package/Load/index_.d.ts +3 -0
  65. package/Loading/Area.d.ts +1 -0
  66. package/Loading/Button.d.ts +7 -0
  67. package/Loading/Input.d.ts +7 -0
  68. package/Loading/ProgressBar.d.ts +6 -0
  69. package/Loading/Skeleton.d.ts +7 -0
  70. package/Loading/Spin.d.ts +7 -0
  71. package/Loading/index.d.ts +8 -0
  72. package/Menu.d.ts +26 -0
  73. package/Modal.d.ts +23 -0
  74. package/Model/Edit.d.ts +15 -0
  75. package/Model/EditModal.d.ts +33 -0
  76. package/Model/EditWrapper.d.ts +11 -0
  77. package/Model/LoadInit.d.ts +10 -0
  78. package/Model/New.d.ts +15 -0
  79. package/Model/NewWrapper.d.ts +12 -0
  80. package/Model/NewWrapper_Client.d.ts +12 -0
  81. package/Model/Remove.d.ts +10 -0
  82. package/Model/RemoveWrapper.d.ts +11 -0
  83. package/Model/SureToRemove.d.ts +10 -0
  84. package/Model/View.d.ts +19 -0
  85. package/Model/ViewEditModal.d.ts +11 -0
  86. package/Model/ViewModal.d.ts +13 -0
  87. package/Model/ViewWrapper.d.ts +11 -0
  88. package/Model/index.d.ts +15 -0
  89. package/Model/index_.d.ts +13 -0
  90. package/More.d.ts +12 -0
  91. package/ObjectId.d.ts +5 -0
  92. package/Pagination.d.ts +14 -0
  93. package/Popconfirm.d.ts +18 -0
  94. package/Portal.d.ts +6 -0
  95. package/Radio.d.ts +19 -0
  96. package/RecentTime.d.ts +7 -0
  97. package/Refresh.d.ts +7 -0
  98. package/ScreenNavigator.d.ts +18 -0
  99. package/Select.d.ts +29 -0
  100. package/Signal/Arg.d.ts +75 -0
  101. package/Signal/Doc.d.ts +19 -0
  102. package/Signal/GraphQL.d.ts +31 -0
  103. package/Signal/Listener.d.ts +9 -0
  104. package/Signal/Message.d.ts +26 -0
  105. package/Signal/Object.d.ts +19 -0
  106. package/Signal/PubSub.d.ts +26 -0
  107. package/Signal/Request.d.ts +8 -0
  108. package/Signal/Response.d.ts +16 -0
  109. package/Signal/RestApi.d.ts +39 -0
  110. package/Signal/WebSocket.d.ts +9 -0
  111. package/Signal/index.d.ts +20 -0
  112. package/System/CSR.d.ts +31 -0
  113. package/System/Client.d.ts +48 -0
  114. package/System/Common.d.ts +66 -0
  115. package/System/DevModeToggle.d.ts +1 -0
  116. package/System/Gtag.d.ts +3 -0
  117. package/System/HealthCheck.d.ts +5 -0
  118. package/System/Messages.d.ts +1 -0
  119. package/System/Reconnect.d.ts +6 -0
  120. package/System/Root.d.ts +5 -0
  121. package/System/SSR.d.ts +26 -0
  122. package/System/SelectLanguage.d.ts +5 -0
  123. package/System/ThemeToggle.d.ts +1 -0
  124. package/System/index.d.ts +11 -0
  125. package/Tab/Menu.d.ts +11 -0
  126. package/Tab/Menus.d.ts +5 -0
  127. package/Tab/Panel.d.ts +7 -0
  128. package/Tab/Provider.d.ts +6 -0
  129. package/Tab/context.d.ts +9 -0
  130. package/Tab/index.d.ts +7 -0
  131. package/Table.d.ts +26 -0
  132. package/ToggleSelect.d.ts +31 -0
  133. package/Unauthorized.d.ts +9 -0
  134. package/cjs/BottomSheet.js +109 -0
  135. package/cjs/Button.js +71 -0
  136. package/cjs/ClientSide.js +27 -0
  137. package/cjs/Copy.js +38 -0
  138. package/cjs/CsrImage.js +51 -0
  139. package/cjs/Data/CardList.js +127 -0
  140. package/cjs/Data/Dashboard.js +64 -0
  141. package/cjs/Data/Insight.js +42 -0
  142. package/cjs/Data/Item.js +219 -0
  143. package/cjs/Data/ListContainer.js +285 -0
  144. package/cjs/Data/Pagination.js +65 -0
  145. package/cjs/Data/QueryMaker.js +326 -0
  146. package/cjs/Data/TableList.js +150 -0
  147. package/cjs/Data/index.js +33 -0
  148. package/cjs/Data/index_.js +49 -0
  149. package/cjs/DatePicker.js +178 -0
  150. package/cjs/Dialog/Action.js +32 -0
  151. package/cjs/Dialog/Close.js +39 -0
  152. package/cjs/Dialog/Content.js +28 -0
  153. package/cjs/Dialog/Modal.js +166 -0
  154. package/cjs/Dialog/Provider.js +47 -0
  155. package/cjs/Dialog/Title.js +32 -0
  156. package/cjs/Dialog/Trigger.js +39 -0
  157. package/cjs/Dialog/context.js +32 -0
  158. package/cjs/Dialog/index.js +37 -0
  159. package/cjs/DragAction.js +112 -0
  160. package/cjs/DraggableList.js +142 -0
  161. package/cjs/Dropdown.js +67 -0
  162. package/cjs/Empty.js +45 -0
  163. package/cjs/Field.js +1231 -0
  164. package/cjs/FontFace.js +77 -0
  165. package/cjs/Image.js +62 -0
  166. package/cjs/InfiniteScroll.js +70 -0
  167. package/cjs/Input.js +457 -0
  168. package/cjs/KeyboardAvoiding.js +66 -0
  169. package/cjs/Layout/BottomAction.js +27 -0
  170. package/cjs/Layout/BottomInset.js +54 -0
  171. package/cjs/Layout/BottomTab.js +62 -0
  172. package/cjs/Layout/Header.js +56 -0
  173. package/cjs/Layout/LeftSider.js +52 -0
  174. package/cjs/Layout/Navbar.js +45 -0
  175. package/cjs/Layout/RightSider.js +58 -0
  176. package/cjs/Layout/Sider.js +52 -0
  177. package/cjs/Layout/Template.js +27 -0
  178. package/cjs/Layout/TopLeftAction.js +40 -0
  179. package/cjs/Layout/Unit.js +28 -0
  180. package/cjs/Layout/View.js +27 -0
  181. package/cjs/Layout/Zone.js +27 -0
  182. package/cjs/Layout/index.js +48 -0
  183. package/cjs/Link/Back.js +28 -0
  184. package/cjs/Link/Close.js +37 -0
  185. package/cjs/Link/CsrLink.js +50 -0
  186. package/cjs/Link/NextLink.js +72 -0
  187. package/cjs/Link/index.js +48 -0
  188. package/cjs/{src/index.js → Link/types.js} +2 -10
  189. package/cjs/Load/Edit.js +43 -0
  190. package/cjs/Load/Edit_Client.js +94 -0
  191. package/cjs/Load/Page.js +35 -0
  192. package/cjs/Load/PageCSR.js +68 -0
  193. package/cjs/Load/Pagination.js +90 -0
  194. package/cjs/Load/Units.js +239 -0
  195. package/cjs/Load/View.js +89 -0
  196. package/cjs/Load/index.js +42 -0
  197. package/cjs/Load/index_.js +39 -0
  198. package/cjs/Loading/Area.js +29 -0
  199. package/cjs/Loading/Button.js +34 -0
  200. package/cjs/Loading/Input.js +34 -0
  201. package/cjs/Loading/ProgressBar.js +30 -0
  202. package/cjs/Loading/Skeleton.js +33 -0
  203. package/cjs/Loading/Spin.js +28 -0
  204. package/cjs/Loading/index.js +29 -0
  205. package/cjs/Menu.js +231 -0
  206. package/cjs/Modal.js +88 -0
  207. package/cjs/Model/Edit.js +67 -0
  208. package/cjs/Model/EditModal.js +253 -0
  209. package/cjs/Model/EditWrapper.js +49 -0
  210. package/cjs/Model/LoadInit.js +28 -0
  211. package/cjs/Model/New.js +67 -0
  212. package/cjs/Model/NewWrapper.js +29 -0
  213. package/cjs/Model/NewWrapper_Client.js +67 -0
  214. package/cjs/Model/Remove.js +92 -0
  215. package/cjs/Model/RemoveWrapper.js +49 -0
  216. package/cjs/Model/SureToRemove.js +125 -0
  217. package/cjs/Model/View.js +54 -0
  218. package/cjs/Model/ViewEditModal.js +129 -0
  219. package/cjs/Model/ViewModal.js +93 -0
  220. package/cjs/Model/ViewWrapper.js +49 -0
  221. package/cjs/Model/index.js +38 -0
  222. package/cjs/Model/index_.js +58 -0
  223. package/cjs/More.js +71 -0
  224. package/cjs/ObjectId.js +41 -0
  225. package/cjs/Pagination.js +115 -0
  226. package/cjs/Popconfirm.js +124 -0
  227. package/cjs/Portal.js +27 -0
  228. package/cjs/Radio.js +57 -0
  229. package/cjs/RecentTime.js +87 -0
  230. package/cjs/Refresh.js +46 -0
  231. package/cjs/ScreenNavigator.js +122 -0
  232. package/cjs/Select.js +283 -0
  233. package/cjs/Signal/Arg.js +277 -0
  234. package/cjs/Signal/Doc.js +258 -0
  235. package/cjs/Signal/GraphQL.js +261 -0
  236. package/cjs/Signal/Listener.js +66 -0
  237. package/cjs/Signal/Message.js +276 -0
  238. package/cjs/Signal/Object.js +131 -0
  239. package/cjs/Signal/PubSub.js +273 -0
  240. package/cjs/Signal/Request.js +45 -0
  241. package/cjs/Signal/Response.js +66 -0
  242. package/cjs/Signal/RestApi.js +357 -0
  243. package/cjs/Signal/WebSocket.js +69 -0
  244. package/cjs/Signal/index.js +42 -0
  245. package/cjs/System/CSR.js +395 -0
  246. package/cjs/System/Client.js +204 -0
  247. package/cjs/System/Common.js +68 -0
  248. package/cjs/System/DevModeToggle.js +42 -0
  249. package/cjs/System/Gtag.js +71 -0
  250. package/cjs/System/HealthCheck.js +61 -0
  251. package/cjs/System/Messages.js +173 -0
  252. package/cjs/System/Reconnect.js +86 -0
  253. package/cjs/System/Root.js +31 -0
  254. package/cjs/System/SSR.js +162 -0
  255. package/cjs/System/SelectLanguage.js +62 -0
  256. package/cjs/System/ThemeToggle.js +44 -0
  257. package/cjs/System/index.js +56 -0
  258. package/cjs/Tab/Menu.js +71 -0
  259. package/cjs/Tab/Menus.js +27 -0
  260. package/cjs/Tab/Panel.js +43 -0
  261. package/cjs/Tab/Provider.js +32 -0
  262. package/cjs/Tab/context.js +30 -0
  263. package/cjs/Tab/index.js +33 -0
  264. package/cjs/Table.js +84 -0
  265. package/cjs/ToggleSelect.js +123 -0
  266. package/cjs/Unauthorized.js +45 -0
  267. package/cjs/index.js +88 -2
  268. package/esm/BottomSheet.js +90 -0
  269. package/esm/Button.js +52 -0
  270. package/esm/ClientSide.js +8 -0
  271. package/esm/Copy.js +19 -0
  272. package/esm/CsrImage.js +32 -0
  273. package/esm/Data/CardList.js +98 -0
  274. package/esm/Data/Dashboard.js +45 -0
  275. package/esm/Data/Insight.js +23 -0
  276. package/esm/Data/Item.js +200 -0
  277. package/esm/Data/ListContainer.js +262 -0
  278. package/esm/Data/Pagination.js +46 -0
  279. package/esm/Data/QueryMaker.js +315 -0
  280. package/esm/Data/TableList.js +121 -0
  281. package/esm/Data/index.js +14 -0
  282. package/esm/Data/index_.js +20 -0
  283. package/esm/DatePicker.js +149 -0
  284. package/esm/Dialog/Action.js +13 -0
  285. package/esm/Dialog/Close.js +20 -0
  286. package/esm/Dialog/Content.js +9 -0
  287. package/esm/Dialog/Modal.js +137 -0
  288. package/esm/Dialog/Provider.js +18 -0
  289. package/esm/Dialog/Title.js +13 -0
  290. package/esm/Dialog/Trigger.js +20 -0
  291. package/esm/Dialog/context.js +13 -0
  292. package/esm/Dialog/index.js +18 -0
  293. package/esm/DragAction.js +93 -0
  294. package/esm/DraggableList.js +113 -0
  295. package/esm/Dropdown.js +48 -0
  296. package/esm/Empty.js +26 -0
  297. package/esm/Field.js +1212 -0
  298. package/esm/FontFace.js +58 -0
  299. package/esm/Image.js +33 -0
  300. package/esm/InfiniteScroll.js +51 -0
  301. package/esm/Input.js +442 -0
  302. package/esm/KeyboardAvoiding.js +47 -0
  303. package/esm/Layout/BottomAction.js +8 -0
  304. package/esm/Layout/BottomInset.js +35 -0
  305. package/esm/Layout/BottomTab.js +43 -0
  306. package/esm/Layout/Header.js +37 -0
  307. package/esm/Layout/LeftSider.js +33 -0
  308. package/esm/Layout/Navbar.js +26 -0
  309. package/esm/Layout/RightSider.js +39 -0
  310. package/esm/Layout/Sider.js +33 -0
  311. package/esm/Layout/Template.js +8 -0
  312. package/esm/Layout/TopLeftAction.js +21 -0
  313. package/esm/Layout/Unit.js +9 -0
  314. package/esm/Layout/View.js +8 -0
  315. package/esm/Layout/Zone.js +8 -0
  316. package/esm/Layout/index.js +29 -0
  317. package/esm/Link/Back.js +9 -0
  318. package/esm/Link/Close.js +18 -0
  319. package/esm/Link/CsrLink.js +31 -0
  320. package/esm/Link/NextLink.js +43 -0
  321. package/esm/Link/index.js +19 -0
  322. package/esm/Link/types.js +0 -0
  323. package/esm/Load/Edit.js +14 -0
  324. package/esm/Load/Edit_Client.js +75 -0
  325. package/esm/Load/Page.js +16 -0
  326. package/esm/Load/PageCSR.js +49 -0
  327. package/esm/Load/Pagination.js +71 -0
  328. package/esm/Load/Units.js +220 -0
  329. package/esm/Load/View.js +70 -0
  330. package/esm/Load/index.js +13 -0
  331. package/esm/Load/index_.js +10 -0
  332. package/esm/Loading/Area.js +10 -0
  333. package/esm/Loading/Button.js +15 -0
  334. package/esm/Loading/Input.js +15 -0
  335. package/esm/Loading/ProgressBar.js +11 -0
  336. package/esm/Loading/Skeleton.js +14 -0
  337. package/esm/Loading/Spin.js +9 -0
  338. package/esm/Loading/index.js +10 -0
  339. package/esm/Menu.js +212 -0
  340. package/esm/Modal.js +59 -0
  341. package/esm/Model/Edit.js +38 -0
  342. package/esm/Model/EditModal.js +234 -0
  343. package/esm/Model/EditWrapper.js +30 -0
  344. package/esm/Model/LoadInit.js +9 -0
  345. package/esm/Model/New.js +38 -0
  346. package/esm/Model/NewWrapper.js +10 -0
  347. package/esm/Model/NewWrapper_Client.js +48 -0
  348. package/esm/Model/Remove.js +73 -0
  349. package/esm/Model/RemoveWrapper.js +30 -0
  350. package/esm/Model/SureToRemove.js +106 -0
  351. package/esm/Model/View.js +35 -0
  352. package/esm/Model/ViewEditModal.js +100 -0
  353. package/esm/Model/ViewModal.js +64 -0
  354. package/esm/Model/ViewWrapper.js +30 -0
  355. package/esm/Model/index.js +33 -0
  356. package/esm/Model/index_.js +29 -0
  357. package/esm/More.js +42 -0
  358. package/esm/ObjectId.js +22 -0
  359. package/esm/Pagination.js +96 -0
  360. package/esm/Popconfirm.js +105 -0
  361. package/esm/Portal.js +8 -0
  362. package/esm/Radio.js +38 -0
  363. package/esm/RecentTime.js +58 -0
  364. package/esm/Refresh.js +17 -0
  365. package/esm/ScreenNavigator.js +103 -0
  366. package/esm/Select.js +264 -0
  367. package/esm/Signal/Arg.js +248 -0
  368. package/esm/Signal/Doc.js +229 -0
  369. package/esm/Signal/GraphQL.js +240 -0
  370. package/esm/Signal/Listener.js +47 -0
  371. package/esm/Signal/Message.js +247 -0
  372. package/esm/Signal/Object.js +112 -0
  373. package/esm/Signal/PubSub.js +244 -0
  374. package/esm/Signal/Request.js +26 -0
  375. package/esm/Signal/Response.js +47 -0
  376. package/esm/Signal/RestApi.js +336 -0
  377. package/esm/Signal/WebSocket.js +40 -0
  378. package/esm/Signal/index.js +13 -0
  379. package/esm/System/CSR.js +376 -0
  380. package/esm/System/Client.js +195 -0
  381. package/esm/System/Common.js +49 -0
  382. package/esm/System/DevModeToggle.js +23 -0
  383. package/esm/System/Gtag.js +52 -0
  384. package/esm/System/HealthCheck.js +42 -0
  385. package/esm/System/Messages.js +159 -0
  386. package/esm/System/Reconnect.js +67 -0
  387. package/esm/System/Root.js +12 -0
  388. package/esm/System/SSR.js +143 -0
  389. package/esm/System/SelectLanguage.js +43 -0
  390. package/esm/System/ThemeToggle.js +25 -0
  391. package/esm/System/index.js +27 -0
  392. package/esm/Tab/Menu.js +52 -0
  393. package/esm/Tab/Menus.js +8 -0
  394. package/esm/Tab/Panel.js +24 -0
  395. package/esm/Tab/Provider.js +13 -0
  396. package/esm/Tab/context.js +11 -0
  397. package/esm/Tab/index.js +14 -0
  398. package/esm/Table.js +65 -0
  399. package/esm/ToggleSelect.js +104 -0
  400. package/esm/Unauthorized.js +26 -0
  401. package/esm/index.js +84 -1
  402. package/index.d.ts +41 -1
  403. package/package.json +23 -2
  404. package/esm/src/index.js +0 -4
  405. package/src/index.d.ts +0 -1
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var KeyboardAvoiding_exports = {};
20
+ __export(KeyboardAvoiding_exports, {
21
+ KeyboardAvoiding: () => KeyboardAvoiding
22
+ });
23
+ module.exports = __toCommonJS(KeyboardAvoiding_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_client = require("@akanjs/client");
26
+ var import_store = require("@akanjs/store");
27
+ var import_react = require("react");
28
+ var import_react_spring = require("react-spring");
29
+ const KeyboardAvoiding = ({ children, className }) => {
30
+ const keyboardHeight = import_store.st.use.keyboardHeight();
31
+ const defaultHeight = (0, import_react.useRef)(null);
32
+ const pageState = import_store.st.use.pageState();
33
+ const { pageContentRef } = (0, import_client.useCsr)();
34
+ const [{ height }, setSpring] = (0, import_react_spring.useSpring)(() => ({
35
+ height: 0,
36
+ config: { duration: 100 }
37
+ }));
38
+ const onChange = async (height2) => {
39
+ await Promise.all([setSpring.start({ height: height2 })]);
40
+ };
41
+ (0, import_react.useEffect)(() => {
42
+ const test = async () => {
43
+ if (!pageContentRef.current)
44
+ return;
45
+ const newHeight = keyboardHeight ? keyboardHeight - pageState.bottomSafeArea : 0;
46
+ await onChange(newHeight);
47
+ if (Math.floor(pageContentRef.current.scrollTop + pageContentRef.current.clientHeight) === pageContentRef.current.scrollHeight)
48
+ setTimeout(() => {
49
+ if (!pageContentRef.current)
50
+ return;
51
+ pageContentRef.current.scrollTo({
52
+ top: pageContentRef.current.scrollHeight,
53
+ behavior: "smooth"
54
+ });
55
+ }, 200);
56
+ };
57
+ void test();
58
+ }, [keyboardHeight]);
59
+ (0, import_react.useEffect)(() => {
60
+ if (pageContentRef.current) {
61
+ const heightNum = parseInt(pageContentRef.current.style.height.replace("px", ""));
62
+ defaultHeight.current = heightNum;
63
+ }
64
+ }, []);
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_spring.a.div, { className: "h-auto", style: { marginBottom: height }, children });
66
+ };
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var BottomAction_exports = {};
19
+ __export(BottomAction_exports, {
20
+ BottomAction: () => BottomAction
21
+ });
22
+ module.exports = __toCommonJS(BottomAction_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
24
+ var import_Portal = require("../Portal");
25
+ const BottomAction = ({ className, children }) => {
26
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Portal.Portal, { id: "bottomActionContent", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className, children }) });
27
+ };
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var BottomInset_exports = {};
20
+ __export(BottomInset_exports, {
21
+ BottomInset: () => BottomInset
22
+ });
23
+ module.exports = __toCommonJS(BottomInset_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_base = require("@akanjs/base");
26
+ var import_client = require("@akanjs/client");
27
+ var import_store = require("@akanjs/store");
28
+ var import_react = require("react");
29
+ var import_Portal = require("../Portal");
30
+ const BottomInset = ({ className, children, keyboardSticky }) => {
31
+ const [render, setRender] = (0, import_react.useState)(false);
32
+ const { location } = (0, import_client.usePathCtx)();
33
+ const suffix = import_base.baseClientEnv.renderMode === "csr" ? `-${location.pathRoute.path}` : "";
34
+ const keyboardHeight = import_store.st.use.keyboardHeight();
35
+ (0, import_react.useEffect)(() => {
36
+ setRender(true);
37
+ }, []);
38
+ if (!render)
39
+ return null;
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Portal.Portal, { id: `bottomInsetContent${suffix}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
41
+ "div",
42
+ {
43
+ className: (0, import_client.clsx)(className, `size-full transition-all ease-out`, {
44
+ "duration-[285ms]": keyboardHeight,
45
+ "duration-0": !keyboardHeight,
46
+ absolute: keyboardSticky && keyboardHeight
47
+ }),
48
+ style: {
49
+ bottom: keyboardSticky && keyboardHeight ? keyboardHeight - location.pathRoute.pageState.bottomSafeArea : 0
50
+ },
51
+ children
52
+ }
53
+ ) });
54
+ };
@@ -0,0 +1,62 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var BottomTab_exports = {};
20
+ __export(BottomTab_exports, {
21
+ BottomTab: () => BottomTab
22
+ });
23
+ module.exports = __toCommonJS(BottomTab_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_client = require("@akanjs/client");
26
+ var import_next = require("@akanjs/next");
27
+ var import_Link = require("../Link");
28
+ var import_BottomInset = require("./BottomInset");
29
+ const BottomTab = ({ className, tabs, height = 64 }) => {
30
+ const { lang } = (0, import_next.usePage)();
31
+ const isActiveTab = (tabHref) => {
32
+ const locationPath = window.location.pathname.startsWith(`/${lang}`) ? window.location.pathname.slice(lang.length + 1) === "" ? "/" : window.location.pathname.slice(lang.length + 1) : window.location.pathname;
33
+ return tabHref === "/" ? locationPath === tabHref : locationPath.startsWith(tabHref);
34
+ };
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_BottomInset.BottomInset, { className: "h-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
36
+ "div",
37
+ {
38
+ className: (0, import_client.clsx)(
39
+ `bg-base-100 border-base-200 flex size-full items-center justify-around rounded-t-xl border border-b-0`,
40
+ className
41
+ ),
42
+ children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
43
+ import_Link.Link,
44
+ {
45
+ href: tab.href,
46
+ className: `relative flex w-full flex-col items-center justify-end gap-1 ${isActiveTab(tab.href) ? "" : "opacity-60"}`,
47
+ children: [
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "indicator", children: [
49
+ isActiveTab(tab.href) ? tab.activeIcon ?? tab.icon : tab.icon,
50
+ tab.notiCount && tab.notiCount > 0 ? (
51
+ // <div className="absolute top-1 right-2 bg-error w-5 h-5 rounded-full flex items-center justify-center text-base-100">
52
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "indicator-item text-base-100 bg-secondary flex size-2 items-center justify-center rounded-full text-[10px]" })
53
+ ) : null
54
+ ] }),
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: tab.name })
56
+ ]
57
+ },
58
+ tab.name
59
+ ))
60
+ }
61
+ ) });
62
+ };
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Header_exports = {};
20
+ __export(Header_exports, {
21
+ Header: () => Header
22
+ });
23
+ module.exports = __toCommonJS(Header_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_client = require("@akanjs/client");
26
+ var import_react = require("react");
27
+ const Header = ({ className, type, children, height = 40 }) => {
28
+ const [visible, setVisible] = (0, import_react.useState)(true);
29
+ const position = (0, import_react.useRef)(0);
30
+ (0, import_react.useEffect)(() => {
31
+ if (type === "static")
32
+ return;
33
+ const handleScroll = () => {
34
+ const isVisible = window.scrollY < 64 ? true : position.current > window.scrollY;
35
+ position.current = window.scrollY;
36
+ setVisible(isVisible);
37
+ };
38
+ window.addEventListener("scroll", handleScroll);
39
+ return () => {
40
+ window.removeEventListener("scroll", handleScroll);
41
+ };
42
+ }, []);
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height } }),
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
46
+ "div",
47
+ {
48
+ className: (0, import_client.clsx)(
49
+ `fixed top-0 z-[9] flex duration-300 ${!visible && "md:-translate-y-full"} bg-base-100 w-full shadow-sm backdrop-blur-lg`,
50
+ className
51
+ ),
52
+ children
53
+ }
54
+ )
55
+ ] });
56
+ };
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var LeftSider_exports = {};
20
+ __export(LeftSider_exports, {
21
+ LeftSider: () => LeftSider
22
+ });
23
+ module.exports = __toCommonJS(LeftSider_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_client = require("@akanjs/client");
26
+ var import_bi = require("react-icons/bi");
27
+ const LeftSider = ({ className, children, open, width, onCancel }) => {
28
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
29
+ "div",
30
+ {
31
+ className: (0, import_client.clsx)(
32
+ "bg-base-100 border-base-200 absolute top-0 border-r transition-all duration-150",
33
+ { "translate-x-0": open, "translate-x-[-100%]": !open },
34
+ className
35
+ ),
36
+ style: { width },
37
+ children: [
38
+ children,
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ "button",
41
+ {
42
+ className: "btn btn-ghost btn-square absolute top-0 right-0",
43
+ onClick: () => {
44
+ onCancel();
45
+ },
46
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bi.BiX, {})
47
+ }
48
+ )
49
+ ]
50
+ }
51
+ );
52
+ };
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Navbar_exports = {};
20
+ __export(Navbar_exports, {
21
+ Navbar: () => Navbar
22
+ });
23
+ module.exports = __toCommonJS(Navbar_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_base = require("@akanjs/base");
26
+ var import_client = require("@akanjs/client");
27
+ var import_react = require("react");
28
+ var import_bi = require("react-icons/bi");
29
+ var import_Link = require("../Link");
30
+ var import_Portal = require("../Portal");
31
+ const Navbar = ({ back = false, className, height, children, title, left, right }) => {
32
+ const [render, setRender] = (0, import_react.useState)(false);
33
+ //! 이거 왜 쓰는지 모르겠음 삭제해도 될듯
34
+ const { location } = (0, import_client.usePathCtx)();
35
+ const suffix = import_base.baseClientEnv.renderMode === "csr" ? `-${location.pathRoute.path}` : "";
36
+ (0, import_react.useEffect)(() => {
37
+ setRender(true);
38
+ }, []);
39
+ if (!render)
40
+ return null;
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
42
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Portal.Portal, { id: `topInsetContent${suffix}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_client.clsx)("size-full", className), children }) }),
43
+ back ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Portal.Portal, { id: `topLeftActionContent${suffix}`, children: typeof back === "boolean" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Link.Link.Back, { className: "text-4xl", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bi.BiChevronLeft, {}) }) : back }) : null
44
+ ] });
45
+ };
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var RightSider_exports = {};
20
+ __export(RightSider_exports, {
21
+ RightSider: () => RightSider
22
+ });
23
+ module.exports = __toCommonJS(RightSider_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_client = require("@akanjs/client");
26
+ var import_ai = require("react-icons/ai");
27
+ const RightSider = ({ className, children, open, title, width, onCancel }) => {
28
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
29
+ "div",
30
+ {
31
+ className: (0, import_client.clsx)(
32
+ "bg-base-100 border-base-200 group absolute top-0 right-0 overflow-y-auto border-l pt-14 transition-all duration-150",
33
+ { "translate-x-0": open, "translate-x-[100%]": !open },
34
+ className
35
+ ),
36
+ style: { width },
37
+ children: [
38
+ children,
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "absolute top-2 left-4 flex items-center gap-4 pt-2 text-xl", children: [
40
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
41
+ "div",
42
+ {
43
+ className: (0, import_client.clsx)("bg-base-100 border-base-200 cursor-pointer transition-all duration-150", {
44
+ "opacity-100": open,
45
+ "opacity-0": !open
46
+ }),
47
+ onClick: () => {
48
+ onCancel();
49
+ },
50
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineClose, {})
51
+ }
52
+ ),
53
+ title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "whitespace-nowrap", children: title }) : null
54
+ ] })
55
+ ]
56
+ }
57
+ ) });
58
+ };
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Sider_exports = {};
20
+ __export(Sider_exports, {
21
+ Sider: () => Sider
22
+ });
23
+ module.exports = __toCommonJS(Sider_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_client = require("@akanjs/client");
26
+ var import_ai = require("react-icons/ai");
27
+ var import_bi = require("react-icons/bi");
28
+ const Sider = ({ className, bgClassName, children }) => {
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
30
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "drawer-content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { htmlFor: "sider", className: "btn btn-ghost", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineMenu, {}) }) }),
31
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "drawer drawer-start fixed", children: [
32
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { id: "sider", type: "checkbox", className: "drawer-toggle" }),
33
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "drawer-side", children: [
34
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { htmlFor: "sider", className: (0, import_client.clsx)("drawer-overlay", bgClassName) }),
35
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_client.clsx)("bg-base-200 text-base-content h-full w-3/4 p-4 md:w-80", className), children: [
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
37
+ "button",
38
+ {
39
+ className: "absolute top-4 left-4 text-lg",
40
+ onClick: (e) => {
41
+ e.preventDefault();
42
+ document.getElementById("sider")?.click();
43
+ },
44
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bi.BiX, {})
45
+ }
46
+ ),
47
+ children
48
+ ] })
49
+ ] })
50
+ ] })
51
+ ] });
52
+ };
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Template_exports = {};
19
+ __export(Template_exports, {
20
+ Template: () => Template
21
+ });
22
+ module.exports = __toCommonJS(Template_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
24
+ var import_client = require("@akanjs/client");
25
+ const Template = ({ className, children }) => {
26
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_client.clsx)("flex w-full max-w-[100vw] flex-col gap-6 p-2 lg:max-w-screen-md", className), children });
27
+ };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var TopLeftAction_exports = {};
20
+ __export(TopLeftAction_exports, {
21
+ TopLeftAction: () => TopLeftAction
22
+ });
23
+ module.exports = __toCommonJS(TopLeftAction_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_base = require("@akanjs/base");
26
+ var import_client = require("@akanjs/client");
27
+ var import_react = require("react");
28
+ var import_Portal = require("../Portal");
29
+ const TopLeftAction = ({ className, children }) => {
30
+ const [render, setRender] = (0, import_react.useState)(false);
31
+ //! 이거 왜 쓰는지 모르겠음 삭제해도 될듯
32
+ const { location } = (0, import_client.usePathCtx)();
33
+ const suffix = import_base.baseClientEnv.renderMode === "csr" ? `-${location.pathRoute.path}` : "";
34
+ (0, import_react.useEffect)(() => {
35
+ setRender(true);
36
+ }, []);
37
+ if (!render)
38
+ return null;
39
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Portal.Portal, { id: `topLeftActionContent${suffix}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className, children }) });
40
+ };
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Unit_exports = {};
19
+ __export(Unit_exports, {
20
+ Unit: () => Unit
21
+ });
22
+ module.exports = __toCommonJS(Unit_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
24
+ var import_client = require("@akanjs/client");
25
+ var import_Link = require("../Link");
26
+ const Unit = ({ className, children, href }) => {
27
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Link.Link, { href, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_client.clsx)("flex w-full flex-col gap-2 p-4", { "cursor-pointer": !!href }, className), children }) });
28
+ };
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var View_exports = {};
19
+ __export(View_exports, {
20
+ View: () => View
21
+ });
22
+ module.exports = __toCommonJS(View_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
24
+ var import_client = require("@akanjs/client");
25
+ const View = ({ className, children }) => {
26
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_client.clsx)("flex size-full max-w-screen-lg flex-col gap-6 px-2", className), children });
27
+ };
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Zone_exports = {};
19
+ __export(Zone_exports, {
20
+ Zone: () => Zone
21
+ });
22
+ module.exports = __toCommonJS(Zone_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
24
+ var import_client = require("@akanjs/client");
25
+ const Zone = ({ className, children }) => {
26
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_client.clsx)("flex size-full max-w-screen-lg flex-col gap-6 px-2", className), children });
27
+ };