@akanjs/ui 0.0.151 → 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 (351) hide show
  1. package/Button.d.ts +1 -1
  2. package/ClientSide.d.ts +1 -1
  3. package/Copy.d.ts +1 -1
  4. package/CsrImage.d.ts +1 -1
  5. package/Data/CardList.d.ts +1 -1
  6. package/Data/Dashboard.d.ts +1 -1
  7. package/Data/Insight.d.ts +1 -1
  8. package/Data/Item.d.ts +6 -6
  9. package/Data/ListContainer.d.ts +2 -2
  10. package/Data/Pagination.d.ts +1 -1
  11. package/Data/QueryMaker.d.ts +1 -1
  12. package/Data/TableList.d.ts +2 -2
  13. package/DatePicker.d.ts +3 -4
  14. package/Dialog/Close.d.ts +1 -1
  15. package/Dialog/Content.d.ts +1 -1
  16. package/Dialog/Modal.d.ts +1 -1
  17. package/Dialog/Provider.d.ts +1 -1
  18. package/Dialog/Trigger.d.ts +1 -1
  19. package/Dialog/index.d.ts +4 -4
  20. package/DragAction.d.ts +4 -4
  21. package/DraggableList.d.ts +2 -2
  22. package/Dropdown.d.ts +1 -1
  23. package/Empty.d.ts +2 -2
  24. package/Field.d.ts +22 -22
  25. package/Image.d.ts +1 -1
  26. package/InfiniteScroll.d.ts +1 -1
  27. package/Input.d.ts +6 -6
  28. package/KeyboardAvoiding.d.ts +1 -1
  29. package/Layout/BottomAction.d.ts +1 -1
  30. package/Layout/BottomInset.d.ts +1 -1
  31. package/Layout/BottomTab.d.ts +1 -1
  32. package/Layout/Header.d.ts +1 -1
  33. package/Layout/LeftSider.d.ts +1 -1
  34. package/Layout/Navbar.d.ts +2 -2
  35. package/Layout/RightSider.d.ts +1 -1
  36. package/Layout/Sider.d.ts +1 -1
  37. package/Layout/Template.d.ts +1 -1
  38. package/Layout/TopLeftAction.d.ts +1 -1
  39. package/Layout/Unit.d.ts +1 -1
  40. package/Layout/View.d.ts +1 -1
  41. package/Layout/Zone.d.ts +1 -1
  42. package/Layout/index.d.ts +12 -12
  43. package/Link/Back.d.ts +1 -1
  44. package/Link/Close.d.ts +1 -1
  45. package/Link/CsrLink.d.ts +1 -1
  46. package/Link/NextLink.d.ts +1 -1
  47. package/Link/index.d.ts +1 -1
  48. package/Load/Edit.d.ts +1 -1
  49. package/Load/Edit_Client.d.ts +1 -1
  50. package/Load/Page.d.ts +1 -1
  51. package/Load/PageCSR.d.ts +1 -1
  52. package/Load/Pagination.d.ts +1 -1
  53. package/Load/Units.d.ts +1 -1
  54. package/Load/View.d.ts +1 -1
  55. package/Load/index.d.ts +1 -1
  56. package/Loading/Area.d.ts +1 -1
  57. package/Loading/Button.d.ts +1 -1
  58. package/Loading/Input.d.ts +1 -1
  59. package/Loading/ProgressBar.d.ts +1 -1
  60. package/Loading/Skeleton.d.ts +1 -1
  61. package/Loading/Spin.d.ts +1 -1
  62. package/Loading/index.d.ts +6 -6
  63. package/Menu.d.ts +1 -1
  64. package/Modal.d.ts +3 -3
  65. package/Model/Edit.d.ts +1 -1
  66. package/Model/EditModal.d.ts +2 -2
  67. package/Model/EditWrapper.d.ts +1 -1
  68. package/Model/LoadInit.d.ts +1 -1
  69. package/Model/New.d.ts +1 -1
  70. package/Model/NewWrapper.d.ts +1 -1
  71. package/Model/NewWrapper_Client.d.ts +1 -1
  72. package/Model/Remove.d.ts +1 -1
  73. package/Model/RemoveWrapper.d.ts +1 -1
  74. package/Model/SureToRemove.d.ts +1 -1
  75. package/Model/View.d.ts +1 -1
  76. package/Model/ViewEditModal.d.ts +1 -1
  77. package/Model/ViewModal.d.ts +1 -1
  78. package/Model/ViewWrapper.d.ts +1 -1
  79. package/More.d.ts +1 -1
  80. package/ObjectId.d.ts +1 -1
  81. package/Popconfirm.d.ts +2 -2
  82. package/Radio.d.ts +2 -2
  83. package/RecentTime.d.ts +1 -1
  84. package/Refresh.d.ts +1 -1
  85. package/ScreenNavigator.d.ts +3 -3
  86. package/Select.d.ts +1 -1
  87. package/Signal/Arg.d.ts +13 -13
  88. package/Signal/Doc.d.ts +6 -6
  89. package/Signal/GraphQL.d.ts +5 -6
  90. package/Signal/Listener.d.ts +2 -2
  91. package/Signal/Message.d.ts +4 -5
  92. package/Signal/Object.d.ts +4 -4
  93. package/Signal/PubSub.d.ts +4 -4
  94. package/Signal/Request.d.ts +2 -2
  95. package/Signal/Response.d.ts +3 -3
  96. package/Signal/RestApi.d.ts +5 -6
  97. package/Signal/WebSocket.d.ts +2 -2
  98. package/System/CSR.d.ts +5 -5
  99. package/System/Client.d.ts +8 -8
  100. package/System/Common.d.ts +2 -2
  101. package/System/DevModeToggle.d.ts +1 -1
  102. package/System/Gtag.d.ts +1 -1
  103. package/System/HealthCheck.d.ts +1 -1
  104. package/System/Messages.d.ts +1 -1
  105. package/System/Reconnect.d.ts +1 -1
  106. package/System/Root.d.ts +1 -1
  107. package/System/SSR.d.ts +4 -4
  108. package/System/SelectLanguage.d.ts +1 -1
  109. package/System/ThemeToggle.d.ts +1 -1
  110. package/System/index.d.ts +7 -7
  111. package/Tab/Menu.d.ts +1 -1
  112. package/Tab/Menus.d.ts +1 -1
  113. package/Tab/Panel.d.ts +1 -1
  114. package/Tab/Provider.d.ts +1 -1
  115. package/Tab/index.d.ts +4 -4
  116. package/Table.d.ts +1 -1
  117. package/ToggleSelect.d.ts +2 -2
  118. package/Unauthorized.d.ts +2 -2
  119. package/cjs/BottomSheet.js +38 -42
  120. package/cjs/Button.js +36 -34
  121. package/cjs/ClientSide.js +2 -1
  122. package/cjs/Copy.js +5 -4
  123. package/cjs/CsrImage.js +2 -1
  124. package/cjs/Data/CardList.js +41 -33
  125. package/cjs/Data/Dashboard.js +22 -12
  126. package/cjs/Data/Insight.js +7 -3
  127. package/cjs/Data/Item.js +54 -39
  128. package/cjs/Data/ListContainer.js +104 -70
  129. package/cjs/Data/Pagination.js +3 -2
  130. package/cjs/Data/QueryMaker.js +104 -82
  131. package/cjs/Data/TableList.js +45 -34
  132. package/cjs/DatePicker.js +38 -33
  133. package/cjs/Dialog/Close.js +5 -4
  134. package/cjs/Dialog/Content.js +2 -1
  135. package/cjs/Dialog/Modal.js +60 -49
  136. package/cjs/Dialog/Provider.js +2 -1
  137. package/cjs/Dialog/Trigger.js +5 -4
  138. package/cjs/Dialog/index.js +2 -1
  139. package/cjs/DragAction.js +11 -10
  140. package/cjs/DraggableList.js +10 -9
  141. package/cjs/Dropdown.js +32 -29
  142. package/cjs/Empty.js +17 -22
  143. package/cjs/Field.js +695 -573
  144. package/cjs/Image.js +2 -1
  145. package/cjs/InfiniteScroll.js +6 -1
  146. package/cjs/Input.js +171 -154
  147. package/cjs/KeyboardAvoiding.js +2 -1
  148. package/cjs/Layout/BottomAction.js +2 -1
  149. package/cjs/Layout/BottomInset.js +6 -5
  150. package/cjs/Layout/BottomTab.js +23 -17
  151. package/cjs/Layout/Header.js +14 -10
  152. package/cjs/Layout/LeftSider.js +17 -14
  153. package/cjs/Layout/Navbar.js +6 -12
  154. package/cjs/Layout/RightSider.js +24 -18
  155. package/cjs/Layout/Sider.js +24 -11
  156. package/cjs/Layout/Template.js +2 -1
  157. package/cjs/Layout/TopLeftAction.js +2 -1
  158. package/cjs/Layout/Unit.js +2 -1
  159. package/cjs/Layout/View.js +2 -1
  160. package/cjs/Layout/Zone.js +2 -1
  161. package/cjs/Link/Back.js +2 -1
  162. package/cjs/Link/Close.js +5 -4
  163. package/cjs/Link/CsrLink.js +5 -4
  164. package/cjs/Link/NextLink.js +5 -4
  165. package/cjs/Link/index.js +4 -3
  166. package/cjs/Load/Edit.js +2 -1
  167. package/cjs/Load/Edit_Client.js +6 -5
  168. package/cjs/Load/PageCSR.js +2 -1
  169. package/cjs/Load/Pagination.js +4 -3
  170. package/cjs/Load/Units.js +34 -27
  171. package/cjs/Load/View.js +3 -2
  172. package/cjs/Loading/Area.js +5 -1
  173. package/cjs/Loading/Button.js +2 -1
  174. package/cjs/Loading/Input.js +2 -1
  175. package/cjs/Loading/ProgressBar.js +2 -1
  176. package/cjs/Loading/Skeleton.js +7 -1
  177. package/cjs/Loading/Spin.js +2 -1
  178. package/cjs/Menu.js +105 -89
  179. package/cjs/Modal.js +33 -20
  180. package/cjs/Model/Edit.js +18 -12
  181. package/cjs/Model/EditModal.js +43 -45
  182. package/cjs/Model/EditWrapper.js +5 -4
  183. package/cjs/Model/LoadInit.js +2 -1
  184. package/cjs/Model/New.js +18 -12
  185. package/cjs/Model/NewWrapper.js +2 -1
  186. package/cjs/Model/NewWrapper_Client.js +5 -4
  187. package/cjs/Model/Remove.js +45 -39
  188. package/cjs/Model/RemoveWrapper.js +6 -5
  189. package/cjs/Model/SureToRemove.js +70 -54
  190. package/cjs/Model/View.js +13 -3
  191. package/cjs/Model/ViewEditModal.js +30 -19
  192. package/cjs/Model/ViewModal.js +9 -8
  193. package/cjs/Model/ViewWrapper.js +5 -4
  194. package/cjs/More.js +10 -6
  195. package/cjs/ObjectId.js +5 -1
  196. package/cjs/Pagination.js +45 -40
  197. package/cjs/Popconfirm.js +53 -45
  198. package/cjs/Radio.js +26 -22
  199. package/cjs/RecentTime.js +16 -15
  200. package/cjs/Refresh.js +5 -4
  201. package/cjs/ScreenNavigator.js +7 -6
  202. package/cjs/Select.js +156 -135
  203. package/cjs/Signal/Arg.js +94 -54
  204. package/cjs/Signal/Doc.js +175 -98
  205. package/cjs/Signal/GraphQL.js +143 -59
  206. package/cjs/Signal/Listener.js +28 -21
  207. package/cjs/Signal/Message.js +166 -80
  208. package/cjs/Signal/Object.js +75 -39
  209. package/cjs/Signal/PubSub.js +161 -79
  210. package/cjs/Signal/Request.js +16 -9
  211. package/cjs/Signal/Response.js +30 -17
  212. package/cjs/Signal/RestApi.js +186 -84
  213. package/cjs/Signal/WebSocket.js +6 -5
  214. package/cjs/System/CSR.js +184 -165
  215. package/cjs/System/Client.js +24 -20
  216. package/cjs/System/Common.js +29 -25
  217. package/cjs/System/DevModeToggle.js +14 -10
  218. package/cjs/System/Gtag.js +11 -7
  219. package/cjs/System/HealthCheck.js +2 -1
  220. package/cjs/System/Messages.js +39 -36
  221. package/cjs/System/Reconnect.js +25 -3
  222. package/cjs/System/Root.js +2 -1
  223. package/cjs/System/SSR.js +72 -54
  224. package/cjs/System/SelectLanguage.js +25 -21
  225. package/cjs/System/ThemeToggle.js +5 -1
  226. package/cjs/System/index.js +3 -2
  227. package/cjs/Tab/Menu.js +5 -4
  228. package/cjs/Tab/Menus.js +2 -1
  229. package/cjs/Tab/Panel.js +3 -2
  230. package/cjs/Tab/Provider.js +2 -1
  231. package/cjs/Tab/index.js +2 -1
  232. package/cjs/Table.js +25 -26
  233. package/cjs/ToggleSelect.js +59 -54
  234. package/cjs/Unauthorized.js +17 -22
  235. package/esm/BottomSheet.js +38 -32
  236. package/esm/Button.js +36 -24
  237. package/esm/ClientSide.js +2 -1
  238. package/esm/Copy.js +5 -4
  239. package/esm/CsrImage.js +2 -1
  240. package/esm/Data/CardList.js +41 -33
  241. package/esm/Data/Dashboard.js +22 -12
  242. package/esm/Data/Insight.js +7 -3
  243. package/esm/Data/Item.js +54 -29
  244. package/esm/Data/ListContainer.js +104 -70
  245. package/esm/Data/Pagination.js +3 -2
  246. package/esm/Data/QueryMaker.js +104 -82
  247. package/esm/Data/TableList.js +45 -34
  248. package/esm/DatePicker.js +38 -33
  249. package/esm/Dialog/Close.js +5 -4
  250. package/esm/Dialog/Content.js +2 -1
  251. package/esm/Dialog/Modal.js +60 -49
  252. package/esm/Dialog/Provider.js +2 -1
  253. package/esm/Dialog/Trigger.js +5 -4
  254. package/esm/Dialog/index.js +2 -1
  255. package/esm/DragAction.js +11 -10
  256. package/esm/DraggableList.js +10 -9
  257. package/esm/Dropdown.js +32 -29
  258. package/esm/Empty.js +17 -12
  259. package/esm/Field.js +695 -573
  260. package/esm/Image.js +2 -1
  261. package/esm/InfiniteScroll.js +6 -1
  262. package/esm/Input.js +171 -144
  263. package/esm/KeyboardAvoiding.js +2 -1
  264. package/esm/Layout/BottomAction.js +2 -1
  265. package/esm/Layout/BottomInset.js +6 -5
  266. package/esm/Layout/BottomTab.js +23 -17
  267. package/esm/Layout/Header.js +14 -10
  268. package/esm/Layout/LeftSider.js +17 -14
  269. package/esm/Layout/Navbar.js +6 -2
  270. package/esm/Layout/RightSider.js +24 -18
  271. package/esm/Layout/Sider.js +24 -11
  272. package/esm/Layout/Template.js +2 -1
  273. package/esm/Layout/TopLeftAction.js +2 -1
  274. package/esm/Layout/Unit.js +2 -1
  275. package/esm/Layout/View.js +2 -1
  276. package/esm/Layout/Zone.js +2 -1
  277. package/esm/Link/Back.js +2 -1
  278. package/esm/Link/Close.js +5 -4
  279. package/esm/Link/CsrLink.js +5 -4
  280. package/esm/Link/NextLink.js +5 -4
  281. package/esm/Link/index.js +4 -3
  282. package/esm/Load/Edit.js +2 -1
  283. package/esm/Load/Edit_Client.js +6 -5
  284. package/esm/Load/PageCSR.js +2 -1
  285. package/esm/Load/Pagination.js +4 -3
  286. package/esm/Load/Units.js +34 -27
  287. package/esm/Load/View.js +3 -2
  288. package/esm/Loading/Area.js +5 -1
  289. package/esm/Loading/Button.js +2 -1
  290. package/esm/Loading/Input.js +2 -1
  291. package/esm/Loading/ProgressBar.js +2 -1
  292. package/esm/Loading/Skeleton.js +7 -1
  293. package/esm/Loading/Spin.js +2 -1
  294. package/esm/Menu.js +105 -89
  295. package/esm/Modal.js +33 -20
  296. package/esm/Model/Edit.js +18 -12
  297. package/esm/Model/EditModal.js +43 -35
  298. package/esm/Model/EditWrapper.js +5 -4
  299. package/esm/Model/LoadInit.js +2 -1
  300. package/esm/Model/New.js +18 -12
  301. package/esm/Model/NewWrapper.js +2 -1
  302. package/esm/Model/NewWrapper_Client.js +5 -4
  303. package/esm/Model/Remove.js +45 -39
  304. package/esm/Model/RemoveWrapper.js +6 -5
  305. package/esm/Model/SureToRemove.js +70 -54
  306. package/esm/Model/View.js +13 -3
  307. package/esm/Model/ViewEditModal.js +30 -19
  308. package/esm/Model/ViewModal.js +9 -8
  309. package/esm/Model/ViewWrapper.js +5 -4
  310. package/esm/More.js +10 -6
  311. package/esm/ObjectId.js +5 -1
  312. package/esm/Pagination.js +45 -40
  313. package/esm/Popconfirm.js +53 -35
  314. package/esm/Radio.js +26 -22
  315. package/esm/RecentTime.js +16 -15
  316. package/esm/Refresh.js +5 -4
  317. package/esm/ScreenNavigator.js +7 -6
  318. package/esm/Select.js +156 -135
  319. package/esm/Signal/Arg.js +94 -54
  320. package/esm/Signal/Doc.js +175 -98
  321. package/esm/Signal/GraphQL.js +143 -59
  322. package/esm/Signal/Listener.js +28 -21
  323. package/esm/Signal/Message.js +166 -80
  324. package/esm/Signal/Object.js +75 -39
  325. package/esm/Signal/PubSub.js +161 -79
  326. package/esm/Signal/Request.js +16 -9
  327. package/esm/Signal/Response.js +30 -17
  328. package/esm/Signal/RestApi.js +186 -84
  329. package/esm/Signal/WebSocket.js +6 -5
  330. package/esm/System/CSR.js +184 -165
  331. package/esm/System/Client.js +24 -20
  332. package/esm/System/Common.js +29 -25
  333. package/esm/System/DevModeToggle.js +14 -10
  334. package/esm/System/Gtag.js +11 -7
  335. package/esm/System/HealthCheck.js +2 -1
  336. package/esm/System/Messages.js +39 -36
  337. package/esm/System/Reconnect.js +25 -3
  338. package/esm/System/Root.js +2 -1
  339. package/esm/System/SSR.js +72 -54
  340. package/esm/System/SelectLanguage.js +25 -21
  341. package/esm/System/ThemeToggle.js +5 -1
  342. package/esm/System/index.js +3 -2
  343. package/esm/Tab/Menu.js +5 -4
  344. package/esm/Tab/Menus.js +2 -1
  345. package/esm/Tab/Panel.js +3 -2
  346. package/esm/Tab/Provider.js +2 -1
  347. package/esm/Tab/index.js +2 -1
  348. package/esm/Table.js +25 -16
  349. package/esm/ToggleSelect.js +59 -54
  350. package/esm/Unauthorized.js +17 -12
  351. package/package.json +1 -1
package/esm/System/CSR.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
3
  import { clsx, device, getPathInfo, router, useCsr } from "@akanjs/client";
3
4
  import { usePushNoti } from "@akanjs/next";
4
5
  import { st } from "@akanjs/store";
@@ -10,7 +11,7 @@ import { Load } from "../Load";
10
11
  import { Client, ClientPathWrapper } from "./Client";
11
12
  import { Common } from "./Common";
12
13
  const CSR = ({ children }) => {
13
- return /* @__PURE__ */ React.createElement("div", null);
14
+ return /* @__PURE__ */ jsx("div", {});
14
15
  };
15
16
  const CSRProvider = ({
16
17
  className,
@@ -31,7 +32,7 @@ const CSRProvider = ({
31
32
  fetchMe,
32
33
  fetchSelf
33
34
  }) => {
34
- return /* @__PURE__ */ React.createElement(
35
+ return /* @__PURE__ */ jsx(
35
36
  Load.Page,
36
37
  {
37
38
  of,
@@ -39,42 +40,50 @@ const CSRProvider = ({
39
40
  const { lang } = await params;
40
41
  return { lang };
41
42
  },
42
- render: ({ lang }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Client.Wrapper, { theme }, /* @__PURE__ */ React.createElement(
43
- CSRWrapper,
44
- {
45
- className,
46
- appName,
47
- lang,
48
- head,
49
- fonts,
50
- prefix,
51
- layoutStyle
52
- },
53
- children,
54
- /* @__PURE__ */ React.createElement(Client.Inner, null),
55
- /* @__PURE__ */ React.createElement(CSRInner, null)
56
- )), /* @__PURE__ */ React.createElement(
57
- Common.Wrapper,
58
- {
59
- fetch,
60
- environment: env.environment,
61
- fetchPing,
62
- fetchMe,
63
- fetchSelf,
64
- render: ({ mePromise, selfPromise }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
65
- Client.Bridge,
66
- {
67
- lang,
68
- env,
69
- mePromise,
70
- selfPromise,
71
- theme,
72
- prefix,
73
- gaTrackingId
74
- }
75
- ), /* @__PURE__ */ React.createElement(CSRBridge, { lang, prefix }))
76
- }
77
- ))
43
+ render: ({ lang }) => /* @__PURE__ */ jsxs(Fragment, { children: [
44
+ /* @__PURE__ */ jsx(Client.Wrapper, { theme, children: /* @__PURE__ */ jsxs(
45
+ CSRWrapper,
46
+ {
47
+ className,
48
+ appName,
49
+ lang,
50
+ head,
51
+ fonts,
52
+ prefix,
53
+ layoutStyle,
54
+ children: [
55
+ children,
56
+ /* @__PURE__ */ jsx(Client.Inner, {}),
57
+ /* @__PURE__ */ jsx(CSRInner, {})
58
+ ]
59
+ }
60
+ ) }),
61
+ /* @__PURE__ */ jsx(
62
+ Common.Wrapper,
63
+ {
64
+ fetch,
65
+ environment: env.environment,
66
+ fetchPing,
67
+ fetchMe,
68
+ fetchSelf,
69
+ render: ({ mePromise, selfPromise }) => /* @__PURE__ */ jsxs(Fragment, { children: [
70
+ /* @__PURE__ */ jsx(
71
+ Client.Bridge,
72
+ {
73
+ lang,
74
+ env,
75
+ mePromise,
76
+ selfPromise,
77
+ theme,
78
+ prefix,
79
+ gaTrackingId
80
+ }
81
+ ),
82
+ /* @__PURE__ */ jsx(CSRBridge, { lang, prefix })
83
+ ] })
84
+ }
85
+ )
86
+ ] })
78
87
  }
79
88
  );
80
89
  };
@@ -107,64 +116,69 @@ const CSRWrapper = ({
107
116
  router.init({ type: "csr", lang, prefix, router: reactRouter });
108
117
  st.do.setCsrLoaded(true);
109
118
  }, []);
110
- return /* @__PURE__ */ React.createElement(React.Fragment, null, fonts.map((font, idx) => /* @__PURE__ */ React.createElement(FontFace, { key: idx, font })), /* @__PURE__ */ React.createElement(
111
- "div",
112
- {
113
- id: "frameRoot",
114
- className: clsx(className, "h-screen w-full overflow-hidden", {
115
- "bg-base-200": layoutStyle === "mobile"
116
- }),
117
- ref: frameRootRef
118
- },
119
- /* @__PURE__ */ React.createElement("div", { id: "pageContainers", className: "isolate" }),
120
- csrLoaded ? pathRoutes.map((pathRoute) => /* @__PURE__ */ React.createElement(CSRPageContainer, { key: pathRoute.path, pathRoute, prefix, layoutStyle })) : null,
121
- /* @__PURE__ */ React.createElement(
122
- a.div,
123
- {
124
- id: "topSafeArea",
125
- className: clsx("bg-base-100 fixed inset-x-0 top-0", {}),
126
- ref: topSafeAreaRef,
127
- style: topSafeArea?.containerStyle
128
- }
129
- ),
130
- /* @__PURE__ */ React.createElement(
131
- a.div,
132
- {
133
- id: "topInsetContainer",
134
- className: clsx("bg-base-100 fixed inset-x-0 isolate", {}),
135
- style: topInset?.containerStyle
136
- }
137
- ),
138
- /* @__PURE__ */ React.createElement(
139
- a.div,
140
- {
141
- id: "topLeftActionContainer",
142
- className: clsx("aspect-1 absolute top-0 isolate flex items-center justify-center", {}),
143
- style: topLeftAction?.containerStyle
144
- }
145
- ),
146
- /* @__PURE__ */ React.createElement(
147
- a.div,
119
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
120
+ fonts.map((font, idx) => /* @__PURE__ */ jsx(FontFace, { font }, idx)),
121
+ /* @__PURE__ */ jsxs(
122
+ "div",
148
123
  {
149
- id: "bottomInsetContainer",
150
- className: clsx("fixed inset-x-0 isolate", {}),
151
- style: bottomInset?.containerStyle
152
- }
153
- ),
154
- /* @__PURE__ */ React.createElement(
155
- a.div,
156
- {
157
- id: "bottomSafeArea",
158
- className: "bg-base-100 fixed inset-x-0",
159
- ref: bottomSafeAreaRef,
160
- style: bottomSafeArea?.containerStyle
124
+ id: "frameRoot",
125
+ className: clsx(className, "h-screen w-full overflow-hidden", {
126
+ "bg-base-200": layoutStyle === "mobile"
127
+ }),
128
+ ref: frameRootRef,
129
+ children: [
130
+ /* @__PURE__ */ jsx("div", { id: "pageContainers", className: "isolate" }),
131
+ csrLoaded ? pathRoutes.map((pathRoute) => /* @__PURE__ */ jsx(CSRPageContainer, { pathRoute, prefix, layoutStyle }, pathRoute.path)) : null,
132
+ /* @__PURE__ */ jsx(
133
+ a.div,
134
+ {
135
+ id: "topSafeArea",
136
+ className: clsx("bg-base-100 fixed inset-x-0 top-0", {}),
137
+ ref: topSafeAreaRef,
138
+ style: topSafeArea?.containerStyle
139
+ }
140
+ ),
141
+ /* @__PURE__ */ jsx(
142
+ a.div,
143
+ {
144
+ id: "topInsetContainer",
145
+ className: clsx("bg-base-100 fixed inset-x-0 isolate", {}),
146
+ style: topInset?.containerStyle
147
+ }
148
+ ),
149
+ /* @__PURE__ */ jsx(
150
+ a.div,
151
+ {
152
+ id: "topLeftActionContainer",
153
+ className: clsx("aspect-1 absolute top-0 isolate flex items-center justify-center", {}),
154
+ style: topLeftAction?.containerStyle
155
+ }
156
+ ),
157
+ /* @__PURE__ */ jsx(
158
+ a.div,
159
+ {
160
+ id: "bottomInsetContainer",
161
+ className: clsx("fixed inset-x-0 isolate", {}),
162
+ style: bottomInset?.containerStyle
163
+ }
164
+ ),
165
+ /* @__PURE__ */ jsx(
166
+ a.div,
167
+ {
168
+ id: "bottomSafeArea",
169
+ className: "bg-base-100 fixed inset-x-0",
170
+ ref: bottomSafeAreaRef,
171
+ style: bottomSafeArea?.containerStyle
172
+ }
173
+ )
174
+ ]
161
175
  }
162
176
  )
163
- ));
177
+ ] });
164
178
  };
165
179
  CSR.Wrapper = CSRWrapper;
166
180
  const CSRInner = () => {
167
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
181
+ return /* @__PURE__ */ jsx(Fragment, {});
168
182
  };
169
183
  CSR.Inner = CSRInner;
170
184
  const CSRBridge = ({ lang, prefix = "" }) => {
@@ -267,88 +281,93 @@ const CSRPageContainer = ({ pathRoute, prefix, layoutStyle }) => {
267
281
  if (!location)
268
282
  return null;
269
283
  const Page = pathRoute.Page;
270
- return /* @__PURE__ */ React.createElement(React.Fragment, null, createPortal(
271
- /* @__PURE__ */ React.createElement(
272
- a.div,
273
- {
274
- id: `pageContainer-${pathRoute.path}`,
275
- style: { ...page?.containerStyle ?? {}, zIndex },
276
- className: clsx("absolute top-0 left-0 isolate w-screen", {
277
- absolute: pageType !== "current",
278
- hidden: pageType === "cached"
279
- })
280
- },
281
- /* @__PURE__ */ React.createElement(
282
- ClientPathWrapper,
284
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
285
+ createPortal(
286
+ /* @__PURE__ */ jsx(
287
+ a.div,
283
288
  {
284
- id: "pageContent",
285
- wrapperRef: pageContentRef,
286
- bind: pageBind,
287
- className: clsx("bg-base-100 relative isolate w-full overflow-x-hidden shadow-inner", {
288
- "bg-base-100 relative isolate overflow-x-hidden shadow-inner": pageType === "current",
289
- "isolate h-screen w-screen overflow-hidden": pageType === "prev",
290
- [pageClassName]: pathRoute.pageState.gesture
289
+ id: `pageContainer-${pathRoute.path}`,
290
+ style: { ...page?.containerStyle ?? {}, zIndex },
291
+ className: clsx("absolute top-0 left-0 isolate w-screen", {
292
+ absolute: pageType !== "current",
293
+ hidden: pageType === "cached"
291
294
  }),
292
- style: page?.contentStyle,
295
+ children: /* @__PURE__ */ jsx(
296
+ ClientPathWrapper,
297
+ {
298
+ id: "pageContent",
299
+ wrapperRef: pageContentRef,
300
+ bind: pageBind,
301
+ className: clsx("bg-base-100 relative isolate w-full overflow-x-hidden shadow-inner", {
302
+ "bg-base-100 relative isolate overflow-x-hidden shadow-inner": pageType === "current",
303
+ "isolate h-screen w-screen overflow-hidden": pageType === "prev",
304
+ [pageClassName]: pathRoute.pageState.gesture
305
+ }),
306
+ style: page?.contentStyle,
307
+ pageType,
308
+ location,
309
+ prefix,
310
+ children: pathRoute.Layouts.reduceRight(
311
+ (children, Layout) => {
312
+ return /* @__PURE__ */ jsx(Layout, { params: location.params, searchParams: location.searchParams, children });
313
+ },
314
+ /* @__PURE__ */ jsx(Page, { params: location.params, searchParams: location.searchParams })
315
+ )
316
+ }
317
+ )
318
+ }
319
+ ),
320
+ pageContainers
321
+ ),
322
+ createPortal(
323
+ /* @__PURE__ */ jsx(
324
+ ClientPathWrapper,
325
+ {
326
+ id: `topInsetContent-${pathRoute.path}`,
327
+ className: clsx("absolute top-0 left-0 isolate size-full", { hidden: pageType === "cached" }),
328
+ style: { ...topInsetContentStyle, zIndex },
293
329
  pageType,
294
330
  location,
295
331
  prefix
296
- },
297
- pathRoute.Layouts.reduceRight(
298
- (children, Layout) => {
299
- return /* @__PURE__ */ React.createElement(Layout, { params: location.params, searchParams: location.searchParams }, children);
300
- },
301
- /* @__PURE__ */ React.createElement(Page, { params: location.params, searchParams: location.searchParams })
302
- )
303
- )
304
- ),
305
- pageContainers
306
- ), createPortal(
307
- /* @__PURE__ */ React.createElement(
308
- ClientPathWrapper,
309
- {
310
- id: `topInsetContent-${pathRoute.path}`,
311
- className: clsx("absolute top-0 left-0 isolate size-full", { hidden: pageType === "cached" }),
312
- style: { ...topInsetContentStyle, zIndex },
313
- pageType,
314
- location,
315
- prefix
316
- }
317
- ),
318
- topInsetContainer
319
- ), createPortal(
320
- /* @__PURE__ */ React.createElement(
321
- ClientPathWrapper,
322
- {
323
- id: `topLeftActionContent-${pathRoute.path}`,
324
- className: clsx("absolute left-0 isolate flex h-full items-center justify-center", {
325
- hidden: pageType === "cached"
326
- }),
327
- style: { ...topLeftActionContentStyle, zIndex },
328
- pageType,
329
- location,
330
- prefix
331
- }
332
+ }
333
+ ),
334
+ topInsetContainer
332
335
  ),
333
- topLeftActionContainer
334
- ), createPortal(
335
- /* @__PURE__ */ React.createElement(
336
- ClientPathWrapper,
337
- {
338
- id: `bottomInsetContent-${pathRoute.path}`,
339
- className: clsx("bottom-0 isolate size-full", {
340
- hidden: pageType === "cached",
341
- absolute: pageType === "prev",
342
- relative: pageType === "current"
343
- }),
344
- style: { ...bottomInsetContentStyle, zIndex },
345
- pageType,
346
- location,
347
- prefix
348
- }
336
+ createPortal(
337
+ /* @__PURE__ */ jsx(
338
+ ClientPathWrapper,
339
+ {
340
+ id: `topLeftActionContent-${pathRoute.path}`,
341
+ className: clsx("absolute left-0 isolate flex h-full items-center justify-center", {
342
+ hidden: pageType === "cached"
343
+ }),
344
+ style: { ...topLeftActionContentStyle, zIndex },
345
+ pageType,
346
+ location,
347
+ prefix
348
+ }
349
+ ),
350
+ topLeftActionContainer
349
351
  ),
350
- bottomInsetContainer
351
- ));
352
+ createPortal(
353
+ /* @__PURE__ */ jsx(
354
+ ClientPathWrapper,
355
+ {
356
+ id: `bottomInsetContent-${pathRoute.path}`,
357
+ className: clsx("bottom-0 isolate size-full", {
358
+ hidden: pageType === "cached",
359
+ absolute: pageType === "prev",
360
+ relative: pageType === "current"
361
+ }),
362
+ style: { ...bottomInsetContentStyle, zIndex },
363
+ pageType,
364
+ location,
365
+ prefix
366
+ }
367
+ ),
368
+ bottomInsetContainer
369
+ )
370
+ ] });
352
371
  };
353
372
  var CSR_default = CSRProvider;
354
373
  export {
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
3
  import { dayjs, logo } from "@akanjs/base";
3
4
  import {
4
5
  clsx,
@@ -22,13 +23,13 @@ import { useEffect, useState } from "react";
22
23
  import { Gtag } from "./Gtag";
23
24
  import { Messages } from "./Messages";
24
25
  const Client = () => {
25
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
26
+ return /* @__PURE__ */ jsx(Fragment, {});
26
27
  };
27
28
  const ClientWrapper = ({ children, theme }) => {
28
29
  useEffect(() => {
29
30
  Logger.rawLog(logo);
30
31
  }, []);
31
- return /* @__PURE__ */ React.createElement(ThemeProvider, { defaultTheme: theme }, children);
32
+ return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme: theme, children });
32
33
  };
33
34
  Client.Wrapper = ClientWrapper;
34
35
  const ClientPathWrapper = ({
@@ -50,13 +51,13 @@ const ClientPathWrapper = ({
50
51
  const pathRoute = location?.pathRoute ?? {
51
52
  path: "/" + pathname.split("/").slice(2).join("/"),
52
53
  pathSegments: pathname.split("/").slice(2),
53
- Page: () => /* @__PURE__ */ React.createElement(React.Fragment, null),
54
+ Page: () => /* @__PURE__ */ jsx(Fragment, {}),
54
55
  pageState: defaultPageState,
55
56
  RootLayouts: [],
56
57
  Layouts: []
57
58
  };
58
59
  const [gestureEnabled, setGestureEnabled] = useState(true);
59
- return /* @__PURE__ */ React.createElement(
60
+ return /* @__PURE__ */ jsx(
60
61
  pathContext.Provider,
61
62
  {
62
63
  value: {
@@ -64,21 +65,21 @@ const ClientPathWrapper = ({
64
65
  location: { pathname, params, searchParams, search, pathRoute },
65
66
  gestureEnabled,
66
67
  setGestureEnabled
67
- }
68
- },
69
- /* @__PURE__ */ React.createElement(
70
- a.div,
71
- {
72
- ...bind && pathRoute.pageState.gesture && gestureEnabled ? bind() : {},
73
- className: clsx("group/path size-full"),
74
- ref: wrapperRef,
75
- ...props,
76
- "data-lang": lang,
77
- "data-basepath": prefix,
78
- "data-firstpath": firstPath
79
68
  },
80
- children
81
- )
69
+ children: /* @__PURE__ */ jsx(
70
+ a.div,
71
+ {
72
+ ...bind && pathRoute.pageState.gesture && gestureEnabled ? bind() : {},
73
+ className: clsx("group/path size-full"),
74
+ ref: wrapperRef,
75
+ ...props,
76
+ "data-lang": lang,
77
+ "data-basepath": prefix,
78
+ "data-firstpath": firstPath,
79
+ children
80
+ }
81
+ )
82
+ }
82
83
  );
83
84
  };
84
85
  const ClientBridge = ({ env, lang, mePromise, selfPromise, theme, prefix, gaTrackingId }) => {
@@ -151,12 +152,15 @@ const ClientBridge = ({ env, lang, mePromise, selfPromise, theme, prefix, gaTrac
151
152
  setCookie("path", path);
152
153
  Logger.log(`pathChange-finished:${path}`);
153
154
  }, [pathname]);
154
- return gaTrackingId && /* @__PURE__ */ React.createElement(Gtag, { trackingId: gaTrackingId });
155
+ return gaTrackingId && /* @__PURE__ */ jsx(Gtag, { trackingId: gaTrackingId });
155
156
  };
156
157
  Client.Bridge = ClientBridge;
157
158
  const ClientInner = () => {
158
159
  const uiOperation = st.use.uiOperation();
159
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { id: "modal-root" }), uiOperation === "idle" ? /* @__PURE__ */ React.createElement(Messages, null) : null);
160
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
161
+ /* @__PURE__ */ jsx("div", { id: "modal-root" }),
162
+ uiOperation === "idle" ? /* @__PURE__ */ jsx(Messages, {}) : null
163
+ ] });
160
164
  };
161
165
  Client.Inner = ClientInner;
162
166
  const ClientNextBridge = ({ lang, prefix = "" }) => {
@@ -1,9 +1,10 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
2
  import "dayjs/locale/ko";
2
3
  import { getAccount } from "@akanjs/client";
3
4
  import { Load } from "../Load";
4
5
  import { HealthCheck } from "./HealthCheck";
5
6
  const Common = () => {
6
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
7
+ return /* @__PURE__ */ jsx(Fragment, {});
7
8
  };
8
9
  const CommonWrapper = ({
9
10
  fetch,
@@ -14,30 +15,33 @@ const CommonWrapper = ({
14
15
  fetchSelf = fetch.getSelf
15
16
  }) => {
16
17
  const account = getAccount();
17
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(HealthCheck, { fetchPing }), /* @__PURE__ */ React.createElement(
18
- Load.Page,
19
- {
20
- of: CommonWrapper,
21
- loader: async () => {
22
- const mePromise = (async () => {
23
- try {
24
- return account.me ? await fetchMe?.({ crystalize: false }) : null;
25
- } catch (e) {
26
- return null;
27
- }
28
- })();
29
- const selfPromise = (async () => {
30
- try {
31
- return account.self ? await fetchSelf?.({ crystalize: false }) : null;
32
- } catch (e) {
33
- return null;
34
- }
35
- })();
36
- return Promise.resolve({ mePromise, selfPromise });
37
- },
38
- render
39
- }
40
- ));
18
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
19
+ /* @__PURE__ */ jsx(HealthCheck, { fetchPing }),
20
+ /* @__PURE__ */ jsx(
21
+ Load.Page,
22
+ {
23
+ of: CommonWrapper,
24
+ loader: async () => {
25
+ const mePromise = (async () => {
26
+ try {
27
+ return account.me ? await fetchMe?.({ crystalize: false }) : null;
28
+ } catch (e) {
29
+ return null;
30
+ }
31
+ })();
32
+ const selfPromise = (async () => {
33
+ try {
34
+ return account.self ? await fetchSelf?.({ crystalize: false }) : null;
35
+ } catch (e) {
36
+ return null;
37
+ }
38
+ })();
39
+ return Promise.resolve({ mePromise, selfPromise });
40
+ },
41
+ render
42
+ }
43
+ )
44
+ ] });
41
45
  };
42
46
  Common.Wrapper = CommonWrapper;
43
47
  export {
@@ -1,18 +1,22 @@
1
1
  "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
2
3
  import { st } from "@akanjs/store";
3
4
  const DevModeToggle = () => {
4
5
  const devMode = st.use.devMode();
5
- return /* @__PURE__ */ React.createElement("div", { className: "form-control" }, /* @__PURE__ */ React.createElement("label", { className: "label cursor-pointer" }, /* @__PURE__ */ React.createElement("span", { className: "label-text mr-2 text-sm whitespace-nowrap" }, "Dev Mode"), /* @__PURE__ */ React.createElement(
6
- "input",
7
- {
8
- type: "checkbox",
9
- className: "toggle",
10
- checked: devMode,
11
- onChange: (e) => {
12
- st.do.setDevMode(e.target.checked);
6
+ return /* @__PURE__ */ jsx("div", { className: "form-control", children: /* @__PURE__ */ jsxs("label", { className: "label cursor-pointer", children: [
7
+ /* @__PURE__ */ jsx("span", { className: "label-text mr-2 text-sm whitespace-nowrap", children: "Dev Mode" }),
8
+ /* @__PURE__ */ jsx(
9
+ "input",
10
+ {
11
+ type: "checkbox",
12
+ className: "toggle",
13
+ checked: devMode,
14
+ onChange: (e) => {
15
+ st.do.setDevMode(e.target.checked);
16
+ }
13
17
  }
14
- }
15
- )));
18
+ )
19
+ ] }) });
16
20
  };
17
21
  export {
18
22
  DevModeToggle
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
3
  import { st } from "@akanjs/store";
3
4
  import { useEffect } from "react";
4
5
  const Gtag = ({ trackingId }) => {
@@ -27,11 +28,13 @@ const Gtag = ({ trackingId }) => {
27
28
  pathname + (Object.keys(searchParams).length ? new URLSearchParams(searchParams).toString() : "")
28
29
  );
29
30
  }, [pathname, searchParams]);
30
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("script", { async: true, src: `https://www.googletagmanager.com/gtag/js?id=${trackingId}` }), /* @__PURE__ */ React.createElement(
31
- "script",
32
- {
33
- dangerouslySetInnerHTML: {
34
- __html: `
31
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
32
+ /* @__PURE__ */ jsx("script", { async: true, src: `https://www.googletagmanager.com/gtag/js?id=${trackingId}` }),
33
+ /* @__PURE__ */ jsx(
34
+ "script",
35
+ {
36
+ dangerouslySetInnerHTML: {
37
+ __html: `
35
38
  window.dataLayer = window.dataLayer || [];
36
39
  function gtag(){dataLayer.push(arguments);}
37
40
  gtag('js', new Date());
@@ -39,9 +42,10 @@ const Gtag = ({ trackingId }) => {
39
42
  page_path: window.location.pathname,
40
43
  });
41
44
  `
45
+ }
42
46
  }
43
- }
44
- ));
47
+ )
48
+ ] });
45
49
  };
46
50
  export {
47
51
  Gtag
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { Fragment, jsx } from "react/jsx-runtime";
2
3
  import { router } from "@akanjs/client";
3
4
  import { useInterval } from "@akanjs/next";
4
5
  import { fetch } from "@akanjs/signal";
@@ -34,7 +35,7 @@ const HealthCheck = ({ fetchPing = () => fetch.ping() }) => {
34
35
  return;
35
36
  await pingCheck();
36
37
  }, 1e4);
37
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
38
+ return /* @__PURE__ */ jsx(Fragment, {});
38
39
  };
39
40
  export {
40
41
  HealthCheck