@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
@@ -31,6 +31,7 @@ __export(Modal_exports, {
31
31
  Modal: () => Modal
32
32
  });
33
33
  module.exports = __toCommonJS(Modal_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
34
35
  var import_client = require("@akanjs/client");
35
36
  var import_next = require("@akanjs/next");
36
37
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
@@ -100,56 +101,66 @@ const Modal = ({ className, bodyClassName, confirmClose, children, onCancel }) =
100
101
  else
101
102
  void closeModal({});
102
103
  }, [open]);
103
- return /* @__PURE__ */ React.createElement(Dialog.Portal, null, /* @__PURE__ */ React.createElement(
104
- Dialog.Overlay,
105
- {
106
- onClick: () => {
107
- void closeModal({ confirmClose });
108
- }
109
- },
110
- showBackground ? /* @__PURE__ */ React.createElement("div", { className: "data-[state=open]:animate-fadeIn bg-base-content/50 fixed inset-0 z-10 backdrop-blur-md" }) : null
111
- ), /* @__PURE__ */ React.createElement(
112
- Dialog.Content,
113
- {
114
- className: "fixed top-1/2 left-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
115
- asChild: true,
116
- forceMount: true
117
- },
118
- /* @__PURE__ */ React.createElement("div", { className: "z-10" }, /* @__PURE__ */ React.createElement(import_react_spring.a.div, { ref, style: { translateY, opacity } }, /* @__PURE__ */ React.createElement(
119
- "button",
120
- {
121
- className: "btn btn-circle btn-sm absolute top-[-16px] right-0 z-20 md:top-[-40px]",
122
- onClick: () => void closeModal({ confirmClose })
123
- },
124
- /* @__PURE__ */ React.createElement(import_bi.BiX, { className: "text-3xl" })
125
- ), /* @__PURE__ */ React.createElement(
126
- "div",
104
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog.Portal, { children: [
105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
106
+ Dialog.Overlay,
127
107
  {
128
- className: (0, import_client.clsx)(
129
- "bg-base-100 animate-fadeIn mx-auto mt-6 flex max-h-[75vh] w-full max-w-[96vw] max-w-screen flex-col items-center justify-center overflow-x-hidden rounded-lg transition-all duration-100 sm:w-[90%] sm:px-2 sm:pb-2 md:mt-0 md:max-h-[90vh] md:pt-0",
130
- className
131
- )
132
- },
133
- /* @__PURE__ */ React.createElement(Dialog.Title, { asChild: true }, /* @__PURE__ */ React.createElement(
134
- import_react_spring.a.div,
135
- {
136
- ...bind(),
137
- className: "animate-fadeIn relative z-10 flex w-full cursor-pointer flex-col items-center justify-center px-4 pt-1"
108
+ onClick: () => {
109
+ void closeModal({ confirmClose });
138
110
  },
139
- /* @__PURE__ */ React.createElement("div", { className: "flex w-full cursor-pointer items-center justify-center pt-1 opacity-50" }, /* @__PURE__ */ React.createElement("div", { className: "h-1 w-24 rounded-full bg-gray-500" })),
140
- /* @__PURE__ */ React.createElement("div", { className: "flex w-full items-center justify-start" }, /* @__PURE__ */ React.createElement("div", { className: "w-full text-start text-lg font-bold" }, title))
141
- )),
142
- /* @__PURE__ */ React.createElement(
143
- "div",
144
- {
145
- className: (0, import_client.clsx)(
146
- "border-base-content/30 scrollbar-none relative m-2 flex size-full min-w-[90vw] overflow-x-hidden overflow-y-scroll border-t-[0.1px] p-4 sm:p-4 md:min-w-[384px] md:px-8 lg:min-w-[576px] xl:min-w-[768px]",
147
- bodyClassName
111
+ children: showBackground ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "data-[state=open]:animate-fadeIn bg-base-content/50 fixed inset-0 z-10 backdrop-blur-md" }) : null
112
+ }
113
+ ),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
115
+ Dialog.Content,
116
+ {
117
+ className: "fixed top-1/2 left-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
118
+ asChild: true,
119
+ forceMount: true,
120
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "z-10", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_spring.a.div, { ref, style: { translateY, opacity }, children: [
121
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
122
+ "button",
123
+ {
124
+ className: "btn btn-circle btn-sm absolute top-[-16px] right-0 z-20 md:top-[-40px]",
125
+ onClick: () => void closeModal({ confirmClose }),
126
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bi.BiX, { className: "text-3xl" })
127
+ }
128
+ ),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
130
+ "div",
131
+ {
132
+ className: (0, import_client.clsx)(
133
+ "bg-base-100 animate-fadeIn mx-auto mt-6 flex max-h-[75vh] w-full max-w-[96vw] max-w-screen flex-col items-center justify-center overflow-x-hidden rounded-lg transition-all duration-100 sm:w-[90%] sm:px-2 sm:pb-2 md:mt-0 md:max-h-[90vh] md:pt-0",
134
+ className
135
+ ),
136
+ children: [
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Title, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
138
+ import_react_spring.a.div,
139
+ {
140
+ ...bind(),
141
+ className: "animate-fadeIn relative z-10 flex w-full cursor-pointer flex-col items-center justify-center px-4 pt-1",
142
+ children: [
143
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full cursor-pointer items-center justify-center pt-1 opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-1 w-24 rounded-full bg-gray-500" }) }),
144
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full text-start text-lg font-bold", children: title }) })
145
+ ]
146
+ }
147
+ ) }),
148
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
149
+ "div",
150
+ {
151
+ className: (0, import_client.clsx)(
152
+ "border-base-content/30 scrollbar-none relative m-2 flex size-full min-w-[90vw] overflow-x-hidden overflow-y-scroll border-t-[0.1px] p-4 sm:p-4 md:min-w-[384px] md:px-8 lg:min-w-[576px] xl:min-w-[768px]",
153
+ bodyClassName
154
+ ),
155
+ children
156
+ }
157
+ ),
158
+ action ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full", children: action }) : null
159
+ ]
160
+ }
148
161
  )
149
- },
150
- children
151
- ),
152
- action ? /* @__PURE__ */ React.createElement("div", { className: "w-full" }, action) : null
153
- )))
154
- ));
162
+ ] }) })
163
+ }
164
+ )
165
+ ] });
155
166
  };
@@ -31,6 +31,7 @@ __export(Provider_exports, {
31
31
  Provider: () => Provider
32
32
  });
33
33
  module.exports = __toCommonJS(Provider_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
34
35
  var import_client = require("@akanjs/client");
35
36
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
36
37
  var import_react = require("react");
@@ -42,5 +43,5 @@ const Provider = ({ className, defaultOpen = false, open = defaultOpen, children
42
43
  (0, import_react.useEffect)(() => {
43
44
  setOpenState(open);
44
45
  }, [open]);
45
- return /* @__PURE__ */ React.createElement(import_context.DialogContext.Provider, { value: { open: openState, setOpen: setOpenState, title, setTitle, action, setAction } }, /* @__PURE__ */ React.createElement(Dialog.Root, { open: openState }, /* @__PURE__ */ React.createElement("div", { "data-open": openState, className: (0, import_client.clsx)("group/dialog", className) }, children)));
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_context.DialogContext.Provider, { value: { open: openState, setOpen: setOpenState, title, setTitle, action, setAction }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Root, { open: openState, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-open": openState, className: (0, import_client.clsx)("group/dialog", className), children }) }) });
46
47
  };
@@ -21,18 +21,19 @@ __export(Trigger_exports, {
21
21
  Trigger: () => Trigger
22
22
  });
23
23
  module.exports = __toCommonJS(Trigger_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
24
25
  var import_react = require("react");
25
26
  var import_context = require("./context");
26
27
  const Trigger = ({ className, children }) => {
27
28
  const { setOpen } = (0, import_react.useContext)(import_context.DialogContext);
28
- return /* @__PURE__ */ React.createElement(
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
29
30
  "a",
30
31
  {
31
32
  className,
32
33
  onClick: () => {
33
34
  setOpen(true);
34
- }
35
- },
36
- children
35
+ },
36
+ children
37
+ }
37
38
  );
38
39
  };
@@ -20,6 +20,7 @@ __export(Dialog_exports, {
20
20
  Dialog: () => Dialog
21
21
  });
22
22
  module.exports = __toCommonJS(Dialog_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
23
24
  var import_Action = require("./Action");
24
25
  var import_Content = require("./Content");
25
26
  var import_Modal = require("./Modal");
@@ -27,7 +28,7 @@ var import_Provider = require("./Provider");
27
28
  var import_Title = require("./Title");
28
29
  var import_Trigger = require("./Trigger");
29
30
  const Dialog = ({ children, ...props }) => {
30
- return /* @__PURE__ */ React.createElement(import_Provider.Provider, { ...props }, children);
31
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Provider.Provider, { ...props, children });
31
32
  };
32
33
  Dialog.Modal = import_Modal.Modal;
33
34
  Dialog.Title = import_Title.Title;
package/cjs/DragAction.js CHANGED
@@ -21,6 +21,7 @@ __export(DragAction_exports, {
21
21
  DragAction: () => DragAction
22
22
  });
23
23
  module.exports = __toCommonJS(DragAction_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
24
25
  var import_client = require("@akanjs/client");
25
26
  var import_react = require("@use-gesture/react");
26
27
  var import_react2 = require("react");
@@ -76,36 +77,36 @@ const DragAction = ({ className, children, onClick, onLeft, onRight }) => {
76
77
  },
77
78
  { drag: { axis: "x" } }
78
79
  );
79
- return /* @__PURE__ */ React.createElement(DragActionContext.Provider, { value: { bind, x, y, leftOpacity, leftWidth, rightOpacity, rightWidth, onClick } }, /* @__PURE__ */ React.createElement("div", { ref, className: (0, import_client.clsx)("relative overflow-x-hidden", className) }, children));
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DragActionContext.Provider, { value: { bind, x, y, leftOpacity, leftWidth, rightOpacity, rightWidth, onClick }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: (0, import_client.clsx)("relative overflow-x-hidden", className), children }) });
80
81
  };
81
82
  const Body = ({ children }) => {
82
83
  const { bind, x, onClick } = (0, import_react2.useContext)(DragActionContext);
83
- return /* @__PURE__ */ React.createElement(import_react_spring.animated.div, { className: "cursor-pointer", ...bind(), style: { x, touchAction: "pan-y" } }, children);
84
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_spring.animated.div, { className: "cursor-pointer", ...bind(), style: { x, touchAction: "pan-y" }, children });
84
85
  };
85
86
  DragAction.Body = Body;
86
87
  const Left = ({ children }) => {
87
88
  const { bind, leftOpacity, leftWidth } = (0, import_react2.useContext)(DragActionContext);
88
- return /* @__PURE__ */ React.createElement(
89
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
90
  import_react_spring.animated.div,
90
91
  {
91
92
  ...bind(),
92
93
  style: { touchAction: "pan-y", opacity: leftOpacity, width: leftWidth },
93
- className: "absolute inset-y-0 left-0 flex items-center justify-center"
94
- },
95
- children
94
+ className: "absolute inset-y-0 left-0 flex items-center justify-center",
95
+ children
96
+ }
96
97
  );
97
98
  };
98
99
  DragAction.Left = Left;
99
100
  const Right = ({ children }) => {
100
101
  const { bind, rightOpacity, rightWidth } = (0, import_react2.useContext)(DragActionContext);
101
- return /* @__PURE__ */ React.createElement(
102
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
103
  import_react_spring.animated.div,
103
104
  {
104
105
  ...bind(),
105
106
  style: { opacity: rightOpacity, width: rightWidth },
106
- className: "absolute inset-y-0 right-0 flex items-center justify-center"
107
- },
108
- children
107
+ className: "absolute inset-y-0 right-0 flex items-center justify-center",
108
+ children
109
+ }
109
110
  );
110
111
  };
111
112
  DragAction.Right = Right;
@@ -31,6 +31,7 @@ __export(DraggableList_exports, {
31
31
  DraggableList: () => DraggableList
32
32
  });
33
33
  module.exports = __toCommonJS(DraggableList_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
34
35
  var import_client = require("@akanjs/client");
35
36
  var import_web = require("@react-spring/web");
36
37
  var import_react = require("@use-gesture/react");
@@ -89,33 +90,33 @@ const DragList = ({ className, mode = "vertical", children, onChange }) => {
89
90
  }
90
91
  }
91
92
  });
92
- return /* @__PURE__ */ React.createElement("div", { className: (0, import_client.clsx)(`flex gap-0`, { "flex-col": mode === "vertical" }, className) }, springs.map(({ zIndex, shadow, movement, scale }, i) => /* @__PURE__ */ React.createElement(
93
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_client.clsx)(`flex gap-0`, { "flex-col": mode === "vertical" }, className), children: springs.map(({ zIndex, shadow, movement, scale }, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
93
94
  import_web.animated.div,
94
95
  {
95
96
  ref: (el) => {
96
97
  refs.current[i] = el;
97
98
  },
98
- key: i,
99
99
  style: {
100
100
  zIndex,
101
101
  boxShadow: shadow.to((s) => `rgba(0, 0, 0, 0.15) 0px ${s}px ${2 * s}px 0px`),
102
102
  scale,
103
103
  ...mode === "vertical" ? { y: movement } : { x: movement }
104
104
  // cursor: "grab",
105
- }
105
+ },
106
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(dragListContext.Provider, { value: { bind: () => bind(i) }, children: children[i] })
106
107
  },
107
- /* @__PURE__ */ React.createElement(dragListContext.Provider, { value: { bind: () => bind(i) } }, children[i])
108
- )));
108
+ i
109
+ )) });
109
110
  };
110
111
  DragList.Cursor = ({ className, children }) => {
111
112
  const { bind } = useDragList();
112
- return /* @__PURE__ */ React.createElement(
113
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
113
114
  "div",
114
115
  {
115
116
  className: (0, import_client.clsx)("cursor-grab duration-200 hover:scale-[1.01] hover:opacity-70 hover:shadow-xl", className),
116
- ...bind()
117
- },
118
- children
117
+ ...bind(),
118
+ children
119
+ }
119
120
  );
120
121
  };
121
122
  const Item = ({ value, children }) => {
package/cjs/Dropdown.js CHANGED
@@ -21,44 +21,47 @@ __export(Dropdown_exports, {
21
21
  Dropdown: () => Dropdown
22
22
  });
23
23
  module.exports = __toCommonJS(Dropdown_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
24
25
  var import_client = require("@akanjs/client");
25
26
  var import_react = require("react");
26
27
  const Dropdown = ({ value, content, className, buttonClassName, dropdownClassName }) => {
27
28
  const [opened, setOpened] = (0, import_react.useState)(false);
28
- return /* @__PURE__ */ React.createElement(
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
29
30
  "div",
30
31
  {
31
32
  onClick: () => {
32
33
  setOpened(true);
33
34
  },
34
- className: (0, import_client.clsx)("dropdown dropdown-end", className)
35
- },
36
- /* @__PURE__ */ React.createElement(
37
- "label",
38
- {
39
- tabIndex: 0,
40
- className: (0, import_client.clsx)("btn flex", buttonClassName),
41
- onClick: () => {
42
- setOpened(true);
43
- }
44
- },
45
- value
46
- ),
47
- /* @__PURE__ */ React.createElement(
48
- "ul",
49
- {
50
- tabIndex: 0,
51
- onClick: () => {
52
- if (opened)
53
- setOpened(false);
54
- },
55
- className: (0, import_client.clsx)(
56
- "md:scrollbar-thin md:scrollbar-thumb-rounded-md md:scrollbar-thumb-gray-300 md:scrollbar-track-transparent bg-base-100 z-[100] grid max-h-52 gap-2 overflow-auto rounded-md pr-3 whitespace-nowrap shadow-sm",
57
- opened ? "dropdown-content size-fit p-1" : "size-0 overflow-hidden",
58
- dropdownClassName
35
+ className: (0, import_client.clsx)("dropdown dropdown-end", className),
36
+ children: [
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ "label",
39
+ {
40
+ tabIndex: 0,
41
+ className: (0, import_client.clsx)("btn flex", buttonClassName),
42
+ onClick: () => {
43
+ setOpened(true);
44
+ },
45
+ children: value
46
+ }
47
+ ),
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
49
+ "ul",
50
+ {
51
+ tabIndex: 0,
52
+ onClick: () => {
53
+ if (opened)
54
+ setOpened(false);
55
+ },
56
+ className: (0, import_client.clsx)(
57
+ "md:scrollbar-thin md:scrollbar-thumb-rounded-md md:scrollbar-thumb-gray-300 md:scrollbar-track-transparent bg-base-100 z-[100] grid max-h-52 gap-2 overflow-auto rounded-md pr-3 whitespace-nowrap shadow-sm",
58
+ opened ? "dropdown-content size-fit p-1" : "size-0 overflow-hidden",
59
+ dropdownClassName
60
+ ),
61
+ children: content
62
+ }
59
63
  )
60
- },
61
- content
62
- )
64
+ ]
65
+ }
63
66
  );
64
67
  };
package/cjs/Empty.js CHANGED
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,35 +14,32 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
  var Empty_exports = {};
29
19
  __export(Empty_exports, {
30
20
  Empty: () => Empty
31
21
  });
32
22
  module.exports = __toCommonJS(Empty_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
33
24
  var import_client = require("@akanjs/client");
34
25
  var import_next = require("@akanjs/next");
35
- var import_react = __toESM(require("react"));
36
26
  var import_ai = require("react-icons/ai");
37
27
  const Empty = ({ className = "", description, children, minHeight = 300 }) => {
38
28
  const { l } = (0, import_next.usePage)();
39
- return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
40
- "div",
41
- {
42
- className: (0, import_client.clsx)(
43
- `min-h-[${minHeight}px] text-base-content/30 flex flex-col items-center justify-center gap-3 pt-6 pb-3`,
44
- className
45
- )
46
- },
47
- /* @__PURE__ */ import_react.default.createElement(import_ai.AiOutlineMeh, { className: "scale-150 text-4xl" }),
48
- /* @__PURE__ */ import_react.default.createElement("p", null, description ?? l("util.noData"))
49
- ), children);
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
30
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
31
+ "div",
32
+ {
33
+ className: (0, import_client.clsx)(
34
+ `min-h-[${minHeight}px] text-base-content/30 flex flex-col items-center justify-center gap-3 pt-6 pb-3`,
35
+ className
36
+ ),
37
+ children: [
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineMeh, { className: "scale-150 text-4xl" }),
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: description ?? l("util.noData") })
40
+ ]
41
+ }
42
+ ),
43
+ children
44
+ ] });
50
45
  };