@alepha/ui 0.15.0 → 0.15.2

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 (207) hide show
  1. package/dist/admin/AdminAudits-BlGGKLof.js +3 -0
  2. package/dist/admin/{AdminAudits-DIrCCPk3.js → AdminAudits-C0DPYw0W.js} +4 -4
  3. package/dist/admin/AdminAudits-C0DPYw0W.js.map +1 -0
  4. package/dist/admin/AdminFiles-Bg9feLFH.js +3 -0
  5. package/dist/admin/{AdminFiles-RsL178Ta.js → AdminFiles-Cu8GHgQ3.js} +5 -5
  6. package/dist/admin/AdminFiles-Cu8GHgQ3.js.map +1 -0
  7. package/dist/admin/AdminLayout-BfeFXiul.js +3 -0
  8. package/dist/admin/{AdminLayout-XiSivwWH.js → AdminLayout-QJLIesuG.js} +1 -1
  9. package/dist/admin/{AdminLayout-XiSivwWH.js.map → AdminLayout-QJLIesuG.js.map} +1 -1
  10. package/dist/admin/{AdminNotifications-cIbywWKi.js → AdminNotifications-CgYkBuG_.js} +5 -5
  11. package/dist/admin/AdminNotifications-CgYkBuG_.js.map +1 -0
  12. package/dist/admin/AdminNotifications-DmfGPqHe.js +3 -0
  13. package/dist/admin/{AdminParameters-BKObzzpN.js → AdminParameters-Cl-R0nXt.js} +1 -1
  14. package/dist/admin/{AdminParameters-D-q3Qmhv.js → AdminParameters-hjNG_KXb.js} +4 -4
  15. package/dist/admin/AdminParameters-hjNG_KXb.js.map +1 -0
  16. package/dist/admin/{AdminSessions-vOgkrQ2U.js → AdminSessions-Bey9cuy1.js} +6 -6
  17. package/dist/admin/AdminSessions-Bey9cuy1.js.map +1 -0
  18. package/dist/admin/AdminSessions-Cn4_jB04.js +3 -0
  19. package/dist/admin/{AdminUserAudits-CSsN1fIC.js → AdminUserAudits-C7AN9jx7.js} +4 -4
  20. package/dist/admin/AdminUserAudits-C7AN9jx7.js.map +1 -0
  21. package/dist/admin/{AdminUserAudits-DmAnivo3.js → AdminUserAudits-Cp_ERd2g.js} +1 -1
  22. package/dist/admin/{AdminUserCreate-DpA13zwj.js → AdminUserCreate-Chr-7hLk.js} +1 -1
  23. package/dist/admin/{AdminUserCreate-B72nu-3W.js → AdminUserCreate-DiXi1EWB.js} +4 -4
  24. package/dist/admin/AdminUserCreate-DiXi1EWB.js.map +1 -0
  25. package/dist/admin/{AdminUserDetails-Zib_B6Al.js → AdminUserDetails-Dcn3OwMC.js} +1 -1
  26. package/dist/admin/{AdminUserDetails-CKM2IEMr.js → AdminUserDetails-yM4x8JE6.js} +5 -5
  27. package/dist/admin/AdminUserDetails-yM4x8JE6.js.map +1 -0
  28. package/dist/admin/{AdminUserLayout-BNBOEiAO.js → AdminUserLayout-CfeQHH6e.js} +1 -1
  29. package/dist/admin/{AdminUserLayout-D7En9UBq.js → AdminUserLayout-D9bqGt6T.js} +3 -3
  30. package/dist/admin/AdminUserLayout-D9bqGt6T.js.map +1 -0
  31. package/dist/admin/{AdminUserSessions-DEaGu6n6.js → AdminUserSessions-kmkXG-xf.js} +4 -4
  32. package/dist/admin/AdminUserSessions-kmkXG-xf.js.map +1 -0
  33. package/dist/admin/AdminUserSessions-rvA0ztxn.js +3 -0
  34. package/dist/admin/{AdminUserSettings-Di73D7g2.js → AdminUserSettings-BnzRAcqV.js} +4 -4
  35. package/dist/admin/AdminUserSettings-BnzRAcqV.js.map +1 -0
  36. package/dist/admin/AdminUserSettings-CXs-jtRv.js +3 -0
  37. package/dist/admin/{AdminUsers-BnGIRvmV.js → AdminUsers-CYkcUWCg.js} +6 -6
  38. package/dist/admin/AdminUsers-CYkcUWCg.js.map +1 -0
  39. package/dist/admin/AdminUsers-DdFXzrEn.js +3 -0
  40. package/dist/admin/index.d.ts +33 -18
  41. package/dist/admin/index.d.ts.map +1 -1
  42. package/dist/admin/index.js +48 -33
  43. package/dist/admin/index.js.map +1 -1
  44. package/dist/auth/{AuthLayout-B1sUB8fB.js → AuthLayout-Dj5K4SIN.js} +2 -2
  45. package/dist/auth/AuthLayout-Dj5K4SIN.js.map +1 -0
  46. package/dist/{demo/IconGoogle-DvmFiEDB.js → auth/IconGoogle-DpSlPZ1u.js} +1 -1
  47. package/dist/auth/{IconGoogle-Cm5d8J3f.js.map → IconGoogle-DpSlPZ1u.js.map} +1 -1
  48. package/dist/auth/{Login-Cjxv3EDi.js → Login-BAFVcX_J.js} +6 -6
  49. package/dist/auth/Login-BAFVcX_J.js.map +1 -0
  50. package/dist/auth/Login-C5PUsp8I.js +4 -0
  51. package/dist/auth/{Register-CGlbQ50l.js → Register-CZRXEcWy.js} +7 -7
  52. package/dist/auth/Register-CZRXEcWy.js.map +1 -0
  53. package/dist/auth/Register-DMTs5ep_.js +4 -0
  54. package/dist/auth/ResetPassword-D-mhMtmx.js +3 -0
  55. package/dist/auth/{ResetPassword-DvqD_1SJ.js → ResetPassword-DTYNsBIj.js} +5 -5
  56. package/dist/auth/ResetPassword-DTYNsBIj.js.map +1 -0
  57. package/dist/auth/VerifyEmail-BsrCmncc.js +3 -0
  58. package/dist/auth/{VerifyEmail-VaBruOnO.js → VerifyEmail-DolENWGn.js} +4 -4
  59. package/dist/auth/VerifyEmail-DolENWGn.js.map +1 -0
  60. package/dist/auth/index.d.ts +34 -23
  61. package/dist/auth/index.d.ts.map +1 -1
  62. package/dist/auth/index.js +25 -14
  63. package/dist/auth/index.js.map +1 -1
  64. package/dist/core/index.d.ts +272 -209
  65. package/dist/core/index.d.ts.map +1 -1
  66. package/dist/core/index.js +314 -99
  67. package/dist/core/index.js.map +1 -1
  68. package/dist/demo/{DemoDataTable-2mzzf__a.js → DemoDataTable-CguplbR7.js} +2 -2
  69. package/dist/demo/{DemoDataTable-2mzzf__a.js.map → DemoDataTable-CguplbR7.js.map} +1 -1
  70. package/dist/demo/{DemoHome-CnuL5WV9.js → DemoHome-Cce2bWmg.js} +1 -1
  71. package/dist/demo/{DemoHome-CnuL5WV9.js.map → DemoHome-Cce2bWmg.js.map} +1 -1
  72. package/dist/demo/DemoHome-DC9qkMNe.js +3 -0
  73. package/dist/demo/DemoJsonViewer-DIssGVlJ.js +4 -0
  74. package/dist/demo/{DemoJsonViewer-NUGst5wW.js → DemoJsonViewer-Dgdk3Txb.js} +3 -3
  75. package/dist/demo/{DemoJsonViewer-NUGst5wW.js.map → DemoJsonViewer-Dgdk3Txb.js.map} +1 -1
  76. package/dist/demo/{DemoLayout-dvbeuBBf.js → DemoLayout-B20TEuhV.js} +2 -2
  77. package/dist/demo/DemoLayout-B20TEuhV.js.map +1 -0
  78. package/dist/demo/DemoLayout-DSRyf4qJ.js +3 -0
  79. package/dist/demo/{DemoLogin-DvltFTER.js → DemoLogin-mtkN6340.js} +7 -7
  80. package/dist/demo/DemoLogin-mtkN6340.js.map +1 -0
  81. package/dist/demo/{DemoRegister-Vu6ZPWib.js → DemoRegister-C0MW7anp.js} +8 -8
  82. package/dist/demo/DemoRegister-C0MW7anp.js.map +1 -0
  83. package/dist/demo/{DemoResetPassword-BFwmqwec.js → DemoResetPassword-CPTy88iK.js} +6 -6
  84. package/dist/demo/DemoResetPassword-CPTy88iK.js.map +1 -0
  85. package/dist/demo/{DemoSidebar-DWnjYHoP.js → DemoSidebar-MVmQKfMt.js} +2 -2
  86. package/dist/demo/{DemoSidebar-DWnjYHoP.js.map → DemoSidebar-MVmQKfMt.js.map} +1 -1
  87. package/dist/demo/{DemoTypeForm-P5_VInW2.js → DemoTypeForm-w-qtfRlC.js} +3 -3
  88. package/dist/demo/DemoTypeForm-w-qtfRlC.js.map +1 -0
  89. package/dist/demo/{DemoVerifyEmail-C_ooC5u8.js → DemoVerifyEmail-C8FFJT5A.js} +5 -5
  90. package/dist/demo/DemoVerifyEmail-C8FFJT5A.js.map +1 -0
  91. package/dist/{auth/IconGoogle-Cm5d8J3f.js → demo/IconGoogle-CbBF8Hqq.js} +1 -1
  92. package/dist/demo/{IconGoogle-DvmFiEDB.js.map → IconGoogle-CbBF8Hqq.js.map} +1 -1
  93. package/dist/demo/{Showcase-vemLuO2t.js → Showcase-CQrMWars.js} +4 -4
  94. package/dist/demo/Showcase-CQrMWars.js.map +1 -0
  95. package/dist/demo/index.d.ts +37 -27
  96. package/dist/demo/index.d.ts.map +1 -1
  97. package/dist/demo/index.js +26 -16
  98. package/dist/demo/index.js.map +1 -1
  99. package/dist/json/index.d.ts +17 -17
  100. package/dist/json/index.d.ts.map +1 -1
  101. package/package.json +13 -14
  102. package/src/admin/AdminRouter.ts +2 -2
  103. package/src/admin/MainRouter.ts +1 -1
  104. package/src/admin/components/audits/AdminAudits.tsx +3 -3
  105. package/src/admin/components/files/AdminFiles.tsx +2 -2
  106. package/src/admin/components/jobs/AdminJobs.tsx +2 -2
  107. package/src/admin/components/notifications/AdminNotifications.tsx +2 -2
  108. package/src/admin/components/parameters/AdminParameters.tsx +1 -1
  109. package/src/admin/components/parameters/ParameterDetails.tsx +2 -2
  110. package/src/admin/components/parameters/ParameterHistory.tsx +1 -1
  111. package/src/admin/components/parameters/types.ts +9 -3
  112. package/src/admin/components/sessions/AdminSessions.tsx +3 -3
  113. package/src/admin/components/shared/AdminResourceHeader.tsx +1 -1
  114. package/src/admin/components/shared/AdminResourceTabs.tsx +1 -1
  115. package/src/admin/components/users/AdminUserAudits.tsx +3 -3
  116. package/src/admin/components/users/AdminUserCreate.tsx +3 -3
  117. package/src/admin/components/users/AdminUserDetails.tsx +4 -4
  118. package/src/admin/components/users/AdminUserLayout.tsx +2 -2
  119. package/src/admin/components/users/AdminUserSessions.tsx +3 -3
  120. package/src/admin/components/users/AdminUserSettings.tsx +3 -3
  121. package/src/admin/components/users/AdminUsers.tsx +3 -3
  122. package/src/admin/index.ts +16 -1
  123. package/src/auth/AuthI18n.ts +1 -1
  124. package/src/auth/AuthRouter.ts +2 -2
  125. package/src/auth/components/AuthLayout.tsx +1 -1
  126. package/src/auth/components/Login.tsx +4 -4
  127. package/src/auth/components/Register.tsx +5 -5
  128. package/src/auth/components/ResetPassword.tsx +4 -4
  129. package/src/auth/components/VerifyEmail.tsx +3 -3
  130. package/src/auth/components/buttons/UserButton.tsx +2 -2
  131. package/src/auth/index.ts +14 -3
  132. package/src/core/RootRouter.ts +1 -1
  133. package/src/core/atoms/alephaSidebarAtom.ts +57 -0
  134. package/src/core/components/buttons/ActionButton.tsx +9 -9
  135. package/src/core/components/buttons/BurgerButton.tsx +5 -4
  136. package/src/core/components/buttons/LanguageButton.tsx +1 -1
  137. package/src/core/components/buttons/OmnibarButton.tsx +20 -1
  138. package/src/core/components/buttons/ThemeButton.tsx +1 -1
  139. package/src/core/components/buttons/ToggleSidebarButton.tsx +33 -23
  140. package/src/core/components/form/Control.tsx +1 -1
  141. package/src/core/components/form/ControlArray.tsx +2 -2
  142. package/src/core/components/form/ControlDate.tsx +1 -1
  143. package/src/core/components/form/ControlNumber.tsx +2 -2
  144. package/src/core/components/form/ControlObject.tsx +1 -1
  145. package/src/core/components/form/ControlQueryBuilder.tsx +1 -1
  146. package/src/core/components/form/ControlSelect.tsx +1 -1
  147. package/src/core/components/form/TypeForm.tsx +2 -2
  148. package/src/core/components/layout/AdminShell.tsx +205 -27
  149. package/src/core/components/layout/AlephaMantineProvider.tsx +3 -3
  150. package/src/core/components/layout/Omnibar.tsx +2 -2
  151. package/src/core/components/layout/Sidebar.tsx +42 -77
  152. package/src/core/components/table/DataTable.tsx +2 -2
  153. package/src/core/components/table/DataTableFilters.tsx +1 -1
  154. package/src/core/components/table/types.ts +1 -1
  155. package/src/core/hooks/useDialog.ts +1 -1
  156. package/src/core/hooks/useTheme.ts +1 -1
  157. package/src/core/hooks/useToast.ts +1 -1
  158. package/src/core/index.ts +57 -6
  159. package/src/core/providers/ThemeProvider.ts +1 -1
  160. package/src/core/styles.css +58 -0
  161. package/src/core/utils/parseInput.ts +1 -1
  162. package/src/demo/DemoRouter.ts +1 -1
  163. package/src/demo/components/DemoLayout.tsx +1 -1
  164. package/src/demo/components/core/DemoTypeForm.tsx +1 -1
  165. package/src/demo/components/json/DemoJsonViewer.tsx +1 -1
  166. package/src/demo/components/shared/Showcase.tsx +1 -1
  167. package/src/demo/index.ts +11 -1
  168. package/src/json/index.ts +13 -0
  169. package/dist/admin/AdminAudits-B3EhKhN7.js +0 -3
  170. package/dist/admin/AdminAudits-DIrCCPk3.js.map +0 -1
  171. package/dist/admin/AdminFiles-C8OG4dtD.js +0 -3
  172. package/dist/admin/AdminFiles-RsL178Ta.js.map +0 -1
  173. package/dist/admin/AdminLayout-BnSmtA4x.js +0 -3
  174. package/dist/admin/AdminNotifications-BSL4B2fQ.js +0 -3
  175. package/dist/admin/AdminNotifications-cIbywWKi.js.map +0 -1
  176. package/dist/admin/AdminParameters-D-q3Qmhv.js.map +0 -1
  177. package/dist/admin/AdminSessions-DHG9zPfr.js +0 -3
  178. package/dist/admin/AdminSessions-vOgkrQ2U.js.map +0 -1
  179. package/dist/admin/AdminUserAudits-CSsN1fIC.js.map +0 -1
  180. package/dist/admin/AdminUserCreate-B72nu-3W.js.map +0 -1
  181. package/dist/admin/AdminUserDetails-CKM2IEMr.js.map +0 -1
  182. package/dist/admin/AdminUserLayout-D7En9UBq.js.map +0 -1
  183. package/dist/admin/AdminUserSessions-D9X2_HMA.js +0 -3
  184. package/dist/admin/AdminUserSessions-DEaGu6n6.js.map +0 -1
  185. package/dist/admin/AdminUserSettings-Di73D7g2.js.map +0 -1
  186. package/dist/admin/AdminUserSettings-yI-JECf5.js +0 -3
  187. package/dist/admin/AdminUsers-BnGIRvmV.js.map +0 -1
  188. package/dist/admin/AdminUsers-CG9-2Z8W.js +0 -3
  189. package/dist/auth/AuthLayout-B1sUB8fB.js.map +0 -1
  190. package/dist/auth/Login-BWi-pPbO.js +0 -4
  191. package/dist/auth/Login-Cjxv3EDi.js.map +0 -1
  192. package/dist/auth/Register-CGlbQ50l.js.map +0 -1
  193. package/dist/auth/Register-CWdkXWkc.js +0 -4
  194. package/dist/auth/ResetPassword-BUdM7T_R.js +0 -3
  195. package/dist/auth/ResetPassword-DvqD_1SJ.js.map +0 -1
  196. package/dist/auth/VerifyEmail-BYmtnkEl.js +0 -3
  197. package/dist/auth/VerifyEmail-VaBruOnO.js.map +0 -1
  198. package/dist/demo/DemoHome-D6Z7EE4V.js +0 -3
  199. package/dist/demo/DemoJsonViewer-CYUggLop.js +0 -4
  200. package/dist/demo/DemoLayout-ZFDzyvY3.js +0 -3
  201. package/dist/demo/DemoLayout-dvbeuBBf.js.map +0 -1
  202. package/dist/demo/DemoLogin-DvltFTER.js.map +0 -1
  203. package/dist/demo/DemoRegister-Vu6ZPWib.js.map +0 -1
  204. package/dist/demo/DemoResetPassword-BFwmqwec.js.map +0 -1
  205. package/dist/demo/DemoTypeForm-P5_VInW2.js.map +0 -1
  206. package/dist/demo/DemoVerifyEmail-C_ooC5u8.js.map +0 -1
  207. package/dist/demo/Showcase-vemLuO2t.js.map +0 -1
@@ -1,21 +1,64 @@
1
- import { BaseInputField, FormModel } from "@alepha/react/form";
2
- import * as _alepha_react_head0 from "@alepha/react/head";
3
1
  import * as alepha1 from "alepha";
4
2
  import { Alepha, Async, Page, PageMetadata, Static, TObject, TProperties } from "alepha";
3
+ import { BaseInputField, FormModel } from "alepha/react/form";
4
+ import * as alepha_react_head0 from "alepha/react/head";
5
5
  import * as alepha_server_cookies0 from "alepha/server/cookies";
6
- import * as _alepha_react_router0 from "@alepha/react/router";
7
- import { RouterGoOptions, UseActiveOptions } from "@alepha/react/router";
8
- import { UseActionReturn } from "@alepha/react";
6
+ import * as alepha_react_router0 from "alepha/react/router";
7
+ import { RouterGoOptions, UseActiveOptions } from "alepha/react/router";
9
8
  import { AnchorProps, AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, BurgerProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MantineThemeOverride, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SliderProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
10
9
  import { ModalsProviderProps } from "@mantine/modals";
11
10
  import * as _mantine_notifications0 from "@mantine/notifications";
12
11
  import { NotificationData, NotificationsProps } from "@mantine/notifications";
13
12
  import { NavigationProgressProps } from "@mantine/nprogress";
14
- import * as react_jsx_runtime12 from "react/jsx-runtime";
13
+ import { UseActionReturn } from "alepha/react";
14
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
15
15
  import { ComponentType, ReactElement, ReactNode } from "react";
16
16
  import { DateInputProps, DateTimePickerProps, TimeInputProps } from "@mantine/dates";
17
17
  import { DurationLike } from "alepha/datetime";
18
18
 
19
+ //#region ../../src/core/atoms/alephaSidebarAtom.d.ts
20
+ declare const alephaSidebarAtom: alepha1.Atom<alepha1.TObject<{
21
+ /**
22
+ * Whether the sidebar is opened or closed (mobile).
23
+ */
24
+ opened: alepha1.TBoolean;
25
+ /**
26
+ * Whether the sidebar is collapsed (narrow) or expanded (wide).
27
+ */
28
+ collapsed: alepha1.TBoolean;
29
+ /**
30
+ * Current width of the sidebar when expanded (can be changed by resizing).
31
+ * @default 300
32
+ */
33
+ width: alepha1.TNumber;
34
+ /**
35
+ * Default width used when expanding from collapsed state or on hover.
36
+ * @default 300
37
+ */
38
+ defaultWidth: alepha1.TNumber;
39
+ /**
40
+ * Width of the sidebar when collapsed.
41
+ * @default 78
42
+ */
43
+ collapsedWidth: alepha1.TNumber;
44
+ /**
45
+ * Maximum width when resizing.
46
+ * @default 500
47
+ */
48
+ maxWidth: alepha1.TNumber;
49
+ /**
50
+ * Minimum width before auto-collapse triggers.
51
+ * @default 150
52
+ */
53
+ collapseThreshold: alepha1.TNumber;
54
+ /**
55
+ * Delay in ms before sidebar expands on hover when collapsed.
56
+ * @default 300
57
+ */
58
+ hoverDelay: alepha1.TNumber;
59
+ }>, "alepha.ui.sidebar">;
60
+ type AlephaSidebarState = Static<typeof alephaSidebarAtom.schema>;
61
+ //#endregion
19
62
  //#region ../../src/core/atoms/alephaThemeAtom.d.ts
20
63
  declare const alephaThemeAtom: alepha1.Atom<alepha1.TObject<{
21
64
  index: alepha1.TInteger;
@@ -35,45 +78,45 @@ interface GenericControlProps {
35
78
  //#region ../../src/core/components/form/ControlArray.d.ts
36
79
  interface ControlArrayProps extends GenericControlProps {
37
80
  /**
38
- * Minimum number of items allowed.
39
- * @default 0
40
- */
81
+ * Minimum number of items allowed.
82
+ * @default 0
83
+ */
41
84
  min?: number;
42
85
  /**
43
- * Maximum number of items allowed.
44
- * @default Infinity
45
- */
86
+ * Maximum number of items allowed.
87
+ * @default Infinity
88
+ */
46
89
  max?: number;
47
90
  /**
48
- * Label for the add button.
49
- * @default "Add item"
50
- */
91
+ * Label for the add button.
92
+ * @default "Add item"
93
+ */
51
94
  addLabel?: string;
52
95
  /**
53
- * Number of columns for object item fields.
54
- * @default 1
55
- */
96
+ * Number of columns for object item fields.
97
+ * @default 1
98
+ */
56
99
  columns?: number;
57
100
  /**
58
- * Variant for the container.
59
- * - "fieldset": Uses Mantine Fieldset with legend
60
- * - "plain": No container, just renders items
61
- * @default "fieldset"
62
- */
101
+ * Variant for the container.
102
+ * - "fieldset": Uses Mantine Fieldset with legend
103
+ * - "plain": No container, just renders items
104
+ * @default "fieldset"
105
+ */
63
106
  variant?: "fieldset" | "plain";
64
107
  /**
65
- * Per-field control props override for object items.
66
- * Keys are field names from the item schema.
67
- */
108
+ * Per-field control props override for object items.
109
+ * Keys are field names from the item schema.
110
+ */
68
111
  controlProps?: Record<string, Partial<Omit<ControlProps, "input">>>;
69
112
  /**
70
- * Control props for primitive items.
71
- */
113
+ * Control props for primitive items.
114
+ */
72
115
  itemControlProps?: Partial<Omit<ControlProps, "input">>;
73
116
  /**
74
- * Show drag handle for reordering.
75
- * @default false
76
- */
117
+ * Show drag handle for reordering.
118
+ * @default false
119
+ */
77
120
  sortable?: boolean;
78
121
  }
79
122
  /**
@@ -106,7 +149,7 @@ interface ControlArrayProps extends GenericControlProps {
106
149
  * />
107
150
  * ```
108
151
  */
109
- declare const ControlArray: (props: ControlArrayProps) => react_jsx_runtime12.JSX.Element | null;
152
+ declare const ControlArray: (props: ControlArrayProps) => react_jsx_runtime11.JSX.Element | null;
110
153
  //#endregion
111
154
  //#region ../../src/core/components/form/ControlNumber.d.ts
112
155
  interface ControlNumberProps extends GenericControlProps {
@@ -116,26 +159,26 @@ interface ControlNumberProps extends GenericControlProps {
116
159
  /**
117
160
  *
118
161
  */
119
- declare const ControlNumber: (props: ControlNumberProps) => react_jsx_runtime12.JSX.Element | null;
162
+ declare const ControlNumber: (props: ControlNumberProps) => react_jsx_runtime11.JSX.Element | null;
120
163
  //#endregion
121
164
  //#region ../../src/core/components/form/ControlObject.d.ts
122
165
  interface ControlObjectProps extends GenericControlProps {
123
166
  /**
124
- * Number of columns for the grid layout.
125
- * @default 1
126
- */
167
+ * Number of columns for the grid layout.
168
+ * @default 1
169
+ */
127
170
  columns?: number;
128
171
  /**
129
- * Variant for the container.
130
- * - "fieldset": Uses Mantine Fieldset with legend
131
- * - "plain": No container, just renders fields
132
- * @default "fieldset"
133
- */
172
+ * Variant for the container.
173
+ * - "fieldset": Uses Mantine Fieldset with legend
174
+ * - "plain": No container, just renders fields
175
+ * @default "fieldset"
176
+ */
134
177
  variant?: "fieldset" | "plain";
135
178
  /**
136
- * Per-field control props override.
137
- * Keys are field names from the schema.
138
- */
179
+ * Per-field control props override.
180
+ * Keys are field names from the schema.
181
+ */
139
182
  controlProps?: Record<string, Partial<Omit<ControlProps, "input">>>;
140
183
  }
141
184
  /**
@@ -170,7 +213,7 @@ interface ControlObjectProps extends GenericControlProps {
170
213
  * />
171
214
  * ```
172
215
  */
173
- declare const ControlObject: (props: ControlObjectProps) => react_jsx_runtime12.JSX.Element | null;
216
+ declare const ControlObject: (props: ControlObjectProps) => react_jsx_runtime11.JSX.Element | null;
174
217
  //#endregion
175
218
  //#region ../../src/core/components/form/ControlSelect.d.ts
176
219
  type SelectValueLabel = string | {
@@ -199,7 +242,7 @@ interface ControlSelectProps extends GenericControlProps {
199
242
  *
200
243
  * Automatically detects enum values and array types from schema.
201
244
  */
202
- declare const ControlSelect: (props: ControlSelectProps) => react_jsx_runtime12.JSX.Element | null;
245
+ declare const ControlSelect: (props: ControlSelectProps) => react_jsx_runtime11.JSX.Element | null;
203
246
  //#endregion
204
247
  //#region ../../src/core/components/form/Control.d.ts
205
248
  interface ControlProps extends GenericControlProps {
@@ -245,12 +288,17 @@ interface ControlProps extends GenericControlProps {
245
288
  *
246
289
  * Automatically handles labels, descriptions, error messages, required state, and default icons.
247
290
  */
248
- declare const Control: (_props: ControlProps) => react_jsx_runtime12.JSX.Element | null;
291
+ declare const Control: (_props: ControlProps) => react_jsx_runtime11.JSX.Element | null;
249
292
  type CustomControlProps = {
250
293
  defaultValue: any;
251
294
  onChange: (value: any) => void;
252
295
  };
253
296
  //#endregion
297
+ //#region ../../src/core/RootRouter.d.ts
298
+ declare class RootRouter {
299
+ readonly root: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
300
+ }
301
+ //#endregion
254
302
  //#region ../../src/core/atoms/alephaThemeListAtom.d.ts
255
303
  declare const alephaThemeListAtom: alepha1.Atom<alepha1.TArray<alepha1.TRecord<string, alepha1.TAny>>, "alepha.ui.themeList">;
256
304
  //#endregion
@@ -270,54 +318,54 @@ declare const midnightTheme: AlephaTheme;
270
318
  //#region ../../src/core/components/buttons/ActionButton.d.ts
271
319
  interface ActionMenuItem {
272
320
  /**
273
- * Menu item type
274
- */
321
+ * Menu item type
322
+ */
275
323
  type?: "item" | "divider" | "label";
276
324
  /**
277
- * Label text for the menu item
278
- */
325
+ * Label text for the menu item
326
+ */
279
327
  label?: string | ReactNode;
280
328
  /**
281
- * Icon element to display before the label
282
- */
329
+ * Icon element to display before the label
330
+ */
283
331
  icon?: ReactNode;
284
332
  /**
285
- * Click handler for menu items
286
- */
333
+ * Click handler for menu items
334
+ */
287
335
  onClick?: () => void;
288
336
  /**
289
- * Href for navigation menu items
290
- */
337
+ * Href for navigation menu items
338
+ */
291
339
  href?: string;
292
340
  /**
293
- * Color for the menu item (e.g., "red" for danger actions)
294
- */
341
+ * Color for the menu item (e.g., "red" for danger actions)
342
+ */
295
343
  color?: string;
296
344
  /**
297
- * Nested submenu items
298
- */
345
+ * Nested submenu items
346
+ */
299
347
  children?: ActionMenuItem[];
300
348
  /**
301
- * Whether the menu item is active
302
- */
349
+ * Whether the menu item is active
350
+ */
303
351
  active?: boolean;
304
352
  }
305
353
  interface ActionMenuConfig {
306
354
  /**
307
- * Array of menu items to display
308
- */
355
+ * Array of menu items to display
356
+ */
309
357
  items: ActionMenuItem[];
310
358
  /**
311
- * Menu position relative to the button
312
- */
359
+ * Menu position relative to the button
360
+ */
313
361
  position?: "bottom" | "bottom-start" | "bottom-end" | "top" | "top-start" | "top-end" | "left" | "right";
314
362
  /**
315
- * Menu width
316
- */
363
+ * Menu width
364
+ */
317
365
  width?: number | string;
318
366
  /**
319
- * Menu shadow
320
- */
367
+ * Menu shadow
368
+ */
321
369
  shadow?: "xs" | "sm" | "md" | "lg" | "xl";
322
370
  on?: "hover" | "click";
323
371
  targetProps?: MenuTargetProps;
@@ -327,40 +375,40 @@ interface ActionCommonProps extends ButtonProps {
327
375
  children?: ReactNode;
328
376
  textVisibleFrom?: "xs" | "sm" | "md" | "lg" | "xl";
329
377
  /**
330
- * Tooltip to display on hover. Can be a string for simple tooltips
331
- * or a TooltipProps object for advanced configuration.
332
- */
378
+ * Tooltip to display on hover. Can be a string for simple tooltips
379
+ * or a TooltipProps object for advanced configuration.
380
+ */
333
381
  tooltip?: string | number | TooltipProps;
334
382
  /**
335
- * Menu configuration. When provided, the action will display a dropdown menu.
336
- */
383
+ * Menu configuration. When provided, the action will display a dropdown menu.
384
+ */
337
385
  menu?: ActionMenuConfig;
338
386
  /**
339
- * If set, a confirmation dialog will be shown before performing the action.
340
- * If `true`, a default title and message will be used.
341
- * If a string, it will be used as the message with a default title.
342
- * If an object, it can contain `title` and `message` properties to customize the dialog.
343
- */
387
+ * If set, a confirmation dialog will be shown before performing the action.
388
+ * If `true`, a default title and message will be used.
389
+ * If a string, it will be used as the message with a default title.
390
+ * If an object, it can contain `title` and `message` properties to customize the dialog.
391
+ */
344
392
  confirm?: boolean | string | {
345
393
  title?: string;
346
394
  message: string;
347
395
  };
348
396
  /**
349
- * Icon to display on the left side of the button.
350
- * If no children are provided, the button will be styled as an icon-only button.
351
- */
397
+ * Icon to display on the left side of the button.
398
+ * If no children are provided, the button will be styled as an icon-only button.
399
+ */
352
400
  icon?: ReactNode | ComponentType;
353
401
  /**
354
- * Additional props to pass to the ThemeIcon wrapping the icon.
355
- */
402
+ * Additional props to pass to the ThemeIcon wrapping the icon.
403
+ */
356
404
  themeIconProps?: ThemeIconProps;
357
405
  /**
358
- * Visual intent of the action button.
359
- */
406
+ * Visual intent of the action button.
407
+ */
360
408
  intent?: "primary" | "success" | "danger" | "warning" | "info" | "none";
361
409
  }
362
410
  type ActionProps = ActionCommonProps & (ActionNavigationButtonProps | ActionClickButtonProps | ActionSubmitButtonProps | ActionHookButtonProps | {});
363
- declare const ActionButton: (_props: ActionProps) => react_jsx_runtime12.JSX.Element;
411
+ declare const ActionButton: (_props: ActionProps) => react_jsx_runtime11.JSX.Element;
364
412
  interface ActionSubmitButtonProps extends ButtonProps {
365
413
  form: FormModel<any>;
366
414
  type?: "submit" | "reset";
@@ -383,28 +431,28 @@ interface ActionNavigationButtonProps extends ButtonProps {
383
431
  //#endregion
384
432
  //#region ../../src/core/components/buttons/BurgerButton.d.ts
385
433
  interface BurgerButtonProps extends BurgerProps {}
386
- declare const BurgerButton: (props: BurgerButtonProps) => react_jsx_runtime12.JSX.Element;
434
+ declare const BurgerButton: (props: BurgerButtonProps) => react_jsx_runtime11.JSX.Element;
387
435
  //#endregion
388
436
  //#region ../../src/core/components/buttons/ClipboardButton.d.ts
389
437
  interface ClipboardButtonProps extends Omit<ActionCommonProps, "onClick" | "icon"> {
390
438
  /**
391
- * The value to copy to the clipboard
392
- */
439
+ * The value to copy to the clipboard
440
+ */
393
441
  value: string;
394
442
  /**
395
- * Timeout in ms to show the "Copied" state (default: 2000)
396
- */
443
+ * Timeout in ms to show the "Copied" state (default: 2000)
444
+ */
397
445
  timeout?: number;
398
446
  /**
399
- * Label to show in tooltip when not copied (default: "Copy")
400
- */
447
+ * Label to show in tooltip when not copied (default: "Copy")
448
+ */
401
449
  copyLabel?: string;
402
450
  /**
403
- * Label to show in tooltip when copied (default: "Copied")
404
- */
451
+ * Label to show in tooltip when copied (default: "Copied")
452
+ */
405
453
  copiedLabel?: string;
406
454
  }
407
- declare const ClipboardButton: (props: ClipboardButtonProps) => react_jsx_runtime12.JSX.Element;
455
+ declare const ClipboardButton: (props: ClipboardButtonProps) => react_jsx_runtime11.JSX.Element;
408
456
  //#endregion
409
457
  //#region ../../src/core/components/buttons/DarkModeButton.d.ts
410
458
  interface DarkModeButtonProps {
@@ -415,27 +463,31 @@ interface DarkModeButtonProps {
415
463
  segmentedProps?: Partial<SegmentedControlProps>;
416
464
  actionProps?: Partial<ActionProps>;
417
465
  }
418
- declare const DarkModeButton: (props: DarkModeButtonProps) => react_jsx_runtime12.JSX.Element;
466
+ declare const DarkModeButton: (props: DarkModeButtonProps) => react_jsx_runtime11.JSX.Element;
419
467
  //#endregion
420
468
  //#region ../../src/core/components/buttons/LanguageButton.d.ts
421
469
  interface LanguageButtonProps {
422
470
  languages?: string[];
423
471
  actionProps?: ActionProps;
424
472
  }
425
- declare const LanguageButton: (props: LanguageButtonProps) => react_jsx_runtime12.JSX.Element;
473
+ declare const LanguageButton: (props: LanguageButtonProps) => react_jsx_runtime11.JSX.Element;
426
474
  //#endregion
427
475
  //#region ../../src/core/components/buttons/OmnibarButton.d.ts
428
476
  interface OmnibarButtonProps {
429
477
  actionProps?: ActionProps;
430
478
  collapsed?: boolean;
431
479
  }
432
- declare const OmnibarButton: (props: OmnibarButtonProps) => react_jsx_runtime12.JSX.Element;
480
+ declare const OmnibarButton: (props: OmnibarButtonProps) => react_jsx_runtime11.JSX.Element;
433
481
  //#endregion
434
482
  //#region ../../src/core/components/buttons/ThemeButton.d.ts
435
483
  interface ThemeButtonProps {
436
484
  actionProps?: Partial<ActionProps>;
437
485
  }
438
- declare const ThemeButton: (props: ThemeButtonProps) => react_jsx_runtime12.JSX.Element;
486
+ declare const ThemeButton: (props: ThemeButtonProps) => react_jsx_runtime11.JSX.Element;
487
+ //#endregion
488
+ //#region ../../src/core/components/buttons/ToggleSidebarButton.d.ts
489
+ type Props = ActionProps;
490
+ declare const ToggleSidebarButton: (props: Props) => react_jsx_runtime11.JSX.Element;
439
491
  //#endregion
440
492
  //#region ../../src/core/services/DialogService.d.ts
441
493
  interface BaseDialogOptions extends Partial<ModalProps> {
@@ -477,44 +529,44 @@ interface DialogServiceOptions {
477
529
  declare class DialogService {
478
530
  readonly options: DialogServiceOptions;
479
531
  /**
480
- * Show an alert dialog with a message
481
- */
532
+ * Show an alert dialog with a message
533
+ */
482
534
  alert(options?: AlertDialogOptions): Promise<void>;
483
535
  /**
484
- * Show a confirmation dialog that returns a promise
485
- */
536
+ * Show a confirmation dialog that returns a promise
537
+ */
486
538
  confirm(options?: ConfirmDialogOptions): Promise<boolean>;
487
539
  /**
488
- * Show a prompt dialog to get user input
489
- */
540
+ * Show a prompt dialog to get user input
541
+ */
490
542
  prompt(options?: PromptDialogOptions): Promise<string | null>;
491
543
  /**
492
- * Open a custom dialog with provided content
493
- */
544
+ * Open a custom dialog with provided content
545
+ */
494
546
  open(options?: BaseDialogOptions): string;
495
547
  /**
496
- * Close the currently open dialog or a specific dialog by ID
497
- */
548
+ * Close the currently open dialog or a specific dialog by ID
549
+ */
498
550
  close(modalId?: string): void;
499
551
  /**
500
- * Show an error viewer dialog
501
- */
552
+ * Show an error viewer dialog
553
+ */
502
554
  error(error: Error | unknown, options?: BaseDialogOptions & {
503
555
  showStack?: boolean;
504
556
  }): void;
505
557
  /**
506
- * Show a form dialog for structured input
507
- */
558
+ * Show a form dialog for structured input
559
+ */
508
560
  form(options?: BaseDialogOptions): Promise<any>;
509
561
  /**
510
- * Show a loading/progress dialog with optional progress percentage
511
- */
562
+ * Show a loading/progress dialog with optional progress percentage
563
+ */
512
564
  loading(options?: BaseDialogOptions & {
513
565
  progress?: number;
514
566
  }): void;
515
567
  /**
516
- * Show an image viewer/gallery dialog
517
- */
568
+ * Show an image viewer/gallery dialog
569
+ */
518
570
  image(src: string | string[], options?: BaseDialogOptions): void;
519
571
  }
520
572
  //#endregion
@@ -522,19 +574,19 @@ declare class DialogService {
522
574
  declare const AlertDialog: ({
523
575
  options,
524
576
  onClose
525
- }: AlertDialogProps) => react_jsx_runtime12.JSX.Element;
577
+ }: AlertDialogProps) => react_jsx_runtime11.JSX.Element;
526
578
  //#endregion
527
579
  //#region ../../src/core/components/dialogs/ConfirmDialog.d.ts
528
580
  declare const ConfirmDialog: ({
529
581
  options,
530
582
  onConfirm
531
- }: ConfirmDialogProps) => react_jsx_runtime12.JSX.Element;
583
+ }: ConfirmDialogProps) => react_jsx_runtime11.JSX.Element;
532
584
  //#endregion
533
585
  //#region ../../src/core/components/dialogs/PromptDialog.d.ts
534
586
  declare const PromptDialog: ({
535
587
  options,
536
588
  onSubmit
537
- }: PromptDialogProps) => react_jsx_runtime12.JSX.Element;
589
+ }: PromptDialogProps) => react_jsx_runtime11.JSX.Element;
538
590
  //#endregion
539
591
  //#region ../../src/core/components/form/ControlDate.d.ts
540
592
  interface ControlDateProps extends GenericControlProps {
@@ -552,7 +604,7 @@ interface ControlDateProps extends GenericControlProps {
552
604
  *
553
605
  * Automatically detects date formats from schema and renders appropriate picker.
554
606
  */
555
- declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime12.JSX.Element | null;
607
+ declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime11.JSX.Element | null;
556
608
  //#endregion
557
609
  //#region ../../src/core/components/form/ControlQueryBuilder.d.ts
558
610
  interface ControlQueryBuilderProps extends Omit<TextInputProps, "value" | "onChange"> {
@@ -571,7 +623,7 @@ declare const ControlQueryBuilder: ({
571
623
  onChange,
572
624
  placeholder,
573
625
  ...textInputProps
574
- }: ControlQueryBuilderProps) => react_jsx_runtime12.JSX.Element;
626
+ }: ControlQueryBuilderProps) => react_jsx_runtime11.JSX.Element;
575
627
  //#endregion
576
628
  //#region ../../src/core/components/form/TypeForm.d.ts
577
629
  interface TypeFormProps<T extends TObject> {
@@ -587,13 +639,13 @@ interface TypeFormProps<T extends TObject> {
587
639
  schema?: TObject;
588
640
  children?: (input: FormModel<T>["input"]) => ReactNode;
589
641
  /**
590
- * Control props applied to all fields.
591
- */
642
+ * Control props applied to all fields.
643
+ */
592
644
  controlProps?: Partial<Omit<ControlProps, "input">>;
593
645
  /**
594
- * Per-field control props override.
595
- * Keys are field names from the schema.
596
- */
646
+ * Per-field control props override.
647
+ * Keys are field names from the schema.
648
+ */
597
649
  fieldControlProps?: Record<string, Partial<Omit<ControlProps, "input">>>;
598
650
  skipFormElement?: boolean;
599
651
  skipSubmitButton?: boolean;
@@ -616,7 +668,7 @@ interface TypeFormProps<T extends TObject> {
616
668
  * @example
617
669
  * ```tsx
618
670
  * import { t } from "alepha";
619
- * import { useForm } from "@alepha/react/form";
671
+ * import { useForm } from "alepha/react/form";
620
672
  * import { TypeForm } from "@alepha/ui";
621
673
  *
622
674
  * const form = useForm({
@@ -643,7 +695,7 @@ interface TypeFormProps<T extends TObject> {
643
695
  * return <TypeForm form={form} columns={2} />;
644
696
  * ```
645
697
  */
646
- declare const TypeForm: <T extends TObject>(props: TypeFormProps<T>) => react_jsx_runtime12.JSX.Element | null;
698
+ declare const TypeForm: <T extends TObject>(props: TypeFormProps<T>) => react_jsx_runtime11.JSX.Element | null;
647
699
  //#endregion
648
700
  //#region ../../src/core/components/layout/AppBar.d.ts
649
701
  type AppBarItem = AppBarElement | AppBarBurger | AppBarDark | AppBarSearch | AppBarLang | AppBarSpacer | AppBarDivider;
@@ -682,7 +734,7 @@ interface AppBarProps {
682
734
  flexProps?: FlexProps;
683
735
  items?: AppBarItem[];
684
736
  }
685
- declare const AppBar: (props: AppBarProps) => react_jsx_runtime12.JSX.Element;
737
+ declare const AppBar: (props: AppBarProps) => react_jsx_runtime11.JSX.Element;
686
738
  //#endregion
687
739
  //#region ../../src/core/components/layout/Sidebar.d.ts
688
740
  interface SidebarProps {
@@ -697,13 +749,13 @@ interface SidebarProps {
697
749
  paths?: string[];
698
750
  };
699
751
  /**
700
- * Automatically populate the menu from the router's pages.
701
- */
752
+ * Automatically populate the menu from the router's pages.
753
+ */
702
754
  autoPopulateMenu?: boolean | {
703
755
  startsWith: string;
704
756
  };
705
757
  }
706
- declare const Sidebar: (props: SidebarProps) => react_jsx_runtime12.JSX.Element;
758
+ declare const Sidebar: (props: SidebarProps) => react_jsx_runtime11.JSX.Element;
707
759
  interface SidebarItemProps {
708
760
  item: SidebarMenuItem;
709
761
  level: number;
@@ -775,26 +827,19 @@ interface AdminShellProps {
775
827
  header?: ReactNode;
776
828
  footer?: ReactNode;
777
829
  children?: ReactNode;
830
+ /**
831
+ * Enable drag-to-resize for the sidebar.
832
+ * Width and constraints are configured in alephaSidebarAtom.
833
+ */
834
+ resizable?: boolean;
778
835
  noSidebarWhen?: {
779
836
  /**
780
- * Paths where the sidebar should be hidden.
781
- */
837
+ * Paths where the sidebar should be hidden.
838
+ */
782
839
  paths?: string[];
783
840
  };
784
841
  }
785
- declare module "alepha" {
786
- interface State {
787
- /**
788
- * Whether the sidebar is opened or closed.
789
- */
790
- "alepha.ui.sidebar.opened"?: boolean;
791
- /**
792
- * Whether the sidebar is collapsed (narrow) or expanded (wide).
793
- */
794
- "alepha.ui.sidebar.collapsed"?: boolean;
795
- }
796
- }
797
- declare const AdminShell: (props: AdminShellProps) => react_jsx_runtime12.JSX.Element;
842
+ declare const AdminShell: (props: AdminShellProps) => react_jsx_runtime11.JSX.Element;
798
843
  //#endregion
799
844
  //#region ../../src/core/components/layout/Omnibar.d.ts
800
845
  interface OmnibarProps {
@@ -802,7 +847,7 @@ interface OmnibarProps {
802
847
  searchPlaceholder?: string;
803
848
  nothingFound?: ReactNode;
804
849
  }
805
- declare const Omnibar: (props: OmnibarProps) => react_jsx_runtime12.JSX.Element;
850
+ declare const Omnibar: (props: OmnibarProps) => react_jsx_runtime11.JSX.Element;
806
851
  //#endregion
807
852
  //#region ../../src/core/components/layout/AlephaMantineProvider.d.ts
808
853
  interface AlephaMantineProviderProps {
@@ -814,7 +859,7 @@ interface AlephaMantineProviderProps {
814
859
  modals?: ModalsProviderProps;
815
860
  omnibar?: OmnibarProps | false;
816
861
  }
817
- declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => react_jsx_runtime12.JSX.Element;
862
+ declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => react_jsx_runtime11.JSX.Element;
818
863
  //#endregion
819
864
  //#region ../../src/core/components/table/types.d.ts
820
865
  interface ColumnVisibility {
@@ -833,13 +878,13 @@ interface DataTableColumn<T extends object, Filters extends TObject> {
833
878
  value: (item: T, ctx: DataTableColumnContext<Filters>) => ReactNode;
834
879
  fit?: boolean;
835
880
  /**
836
- * Enable sorting for this column. When true, clicking the header will sort by this column.
837
- */
881
+ * Enable sorting for this column. When true, clicking the header will sort by this column.
882
+ */
838
883
  sortable?: boolean;
839
884
  /**
840
- * The field name to use for sorting. If not provided, the column key is used.
841
- * Follows Alepha sort convention: 'field' for ASC, '-field' for DESC.
842
- */
885
+ * The field name to use for sorting. If not provided, the column key is used.
886
+ * Follows Alepha sort convention: 'field' for ASC, '-field' for DESC.
887
+ */
843
888
  sortKey?: string;
844
889
  }
845
890
  type MaybePage<T> = Omit<Page<T>, "page"> & {
@@ -860,16 +905,16 @@ interface CheckboxAction<T extends object> {
860
905
  }
861
906
  interface DataTableProps<T extends object, Filters extends TObject> {
862
907
  /**
863
- * The items to display in the table. Can be a static page of items or a function that returns a promise resolving to a page of items.
864
- */
908
+ * The items to display in the table. Can be a static page of items or a function that returns a promise resolving to a page of items.
909
+ */
865
910
  items: MaybePage<T> | ((filters: Static<Filters> & {
866
911
  page: number;
867
912
  size: number;
868
913
  sort?: string;
869
914
  }, ctx: DataTableSubmitContext<T>) => Async<MaybePage<T>>);
870
915
  /**
871
- * The columns to display in the table. Each column is defined by a key and a DataTableColumn object.
872
- */
916
+ * The columns to display in the table. Each column is defined by a key and a DataTableColumn object.
917
+ */
873
918
  columns: {
874
919
  [key: string]: DataTableColumn<T, Filters>;
875
920
  };
@@ -877,8 +922,8 @@ interface DataTableProps<T extends object, Filters extends TObject> {
877
922
  typeFormProps?: Partial<Omit<TypeFormProps<Filters>, "form">>;
878
923
  onFilterChange?: (key: string, value: unknown, form: FormModel<Filters>) => void;
879
924
  /**
880
- * Optional filters to apply to the data.
881
- */
925
+ * Optional filters to apply to the data.
926
+ */
882
927
  filters?: TObject;
883
928
  panel?: (item: T) => ReactNode;
884
929
  canPanel?: (item: T) => boolean;
@@ -886,57 +931,57 @@ interface DataTableProps<T extends object, Filters extends TObject> {
886
931
  submitEvery?: DurationLike;
887
932
  withLineNumbers?: boolean;
888
933
  /**
889
- * Enable row selection with checkboxes. When true, a checkbox column is added as the first column.
890
- */
934
+ * Enable row selection with checkboxes. When true, a checkbox column is added as the first column.
935
+ */
891
936
  withCheckbox?: boolean;
892
937
  /**
893
- * Function to get a unique key for each item. Required when withCheckbox is true.
894
- * Used to track selected items across pagination.
895
- */
938
+ * Function to get a unique key for each item. Required when withCheckbox is true.
939
+ * Used to track selected items across pagination.
940
+ */
896
941
  getItemKey?: (item: T) => string;
897
942
  /**
898
- * Actions to display when items are selected. Each action receives the selected items.
899
- */
943
+ * Actions to display when items are selected. Each action receives the selected items.
944
+ */
900
945
  checkboxActions?: Array<CheckboxAction<T>>;
901
946
  actions?: Array<ActionProps & {
902
947
  label?: ReactNode;
903
948
  }>;
904
949
  /**
905
- * Enable infinity scroll mode. When true, pagination controls are hidden and new items are loaded automatically when scrolling to the bottom.
906
- */
950
+ * Enable infinity scroll mode. When true, pagination controls are hidden and new items are loaded automatically when scrolling to the bottom.
951
+ */
907
952
  infinityScroll?: boolean;
908
953
  /**
909
- * Initial column visibility state. By default, first 10 columns are visible.
910
- */
954
+ * Initial column visibility state. By default, first 10 columns are visible.
955
+ */
911
956
  defaultColumnVisibility?: ColumnVisibility;
912
957
  /**
913
- * Maximum number of columns to show by default. Default is 10.
914
- */
958
+ * Maximum number of columns to show by default. Default is 10.
959
+ */
915
960
  defaultVisibleColumnCount?: number;
916
961
  /**
917
- * Callback when column visibility changes.
918
- */
962
+ * Callback when column visibility changes.
963
+ */
919
964
  onColumnVisibilityChange?: (visibility: ColumnVisibility) => void;
920
965
  /**
921
- * Initial filter visibility state. By default, all filters are visible.
922
- */
966
+ * Initial filter visibility state. By default, all filters are visible.
967
+ */
923
968
  defaultFilterVisibility?: FilterVisibility;
924
969
  /**
925
- * Callback when filter visibility changes.
926
- */
970
+ * Callback when filter visibility changes.
971
+ */
927
972
  onFilterVisibilityChange?: (visibility: FilterVisibility) => void;
928
973
  /**
929
- * Props to pass to the Mantine Table component.
930
- */
974
+ * Props to pass to the Mantine Table component.
975
+ */
931
976
  tableProps?: TableProps;
932
977
  /**
933
- * Function to generate props for each table row based on the item.
934
- */
978
+ * Function to generate props for each table row based on the item.
979
+ */
935
980
  tableTrProps?: (item: T) => TableTrProps;
936
981
  }
937
982
  //#endregion
938
983
  //#region ../../src/core/components/table/DataTable.d.ts
939
- declare const DataTable: <T extends object, Filters extends TObject>(props: DataTableProps<T, Filters>) => react_jsx_runtime12.JSX.Element;
984
+ declare const DataTable: <T extends object, Filters extends TObject>(props: DataTableProps<T, Filters>) => react_jsx_runtime11.JSX.Element;
940
985
  //#endregion
941
986
  //#region ../../src/core/constants/ui.d.ts
942
987
  declare const ui: {
@@ -1012,17 +1057,12 @@ declare class ThemeProvider {
1012
1057
  protected readonly cookie: alepha_server_cookies0.AbstractCookiePrimitive<alepha1.TObject<{
1013
1058
  index: alepha1.TInteger;
1014
1059
  }>>;
1015
- protected readonly head: _alepha_react_head0.HeadPrimitive;
1060
+ protected readonly head: alepha_react_head0.HeadPrimitive;
1016
1061
  setTheme(index: number): void;
1017
1062
  getTheme(): AlephaTheme;
1018
1063
  protected getThemeIndex(): number;
1019
1064
  }
1020
1065
  //#endregion
1021
- //#region ../../src/core/RootRouter.d.ts
1022
- declare class RootRouter {
1023
- readonly root: _alepha_react_router0.PagePrimitive<_alepha_react_router0.PageConfigSchema, any, _alepha_react_router0.TPropsParentDefault>;
1024
- }
1025
- //#endregion
1026
1066
  //#region ../../src/core/utils/extractSchemaFields.d.ts
1027
1067
  interface SchemaField {
1028
1068
  name: string;
@@ -1091,36 +1131,59 @@ declare module "typebox" {
1091
1131
  }
1092
1132
  declare module "alepha" {
1093
1133
  interface State {
1134
+ [alephaSidebarAtom.key]?: Static<typeof alephaSidebarAtom.schema>;
1094
1135
  [alephaThemeAtom.key]?: Static<typeof alephaThemeAtom.schema>;
1095
1136
  }
1096
1137
  }
1097
- declare module "@alepha/react/router" {
1138
+ declare module "alepha/react/router" {
1098
1139
  interface PagePrimitiveOptions {
1099
1140
  /**
1100
- * Human-readable title for the page.
1101
- * - for Sidebar navigation
1102
- * - for Omnibar navigation
1103
- * (soon)
1104
- * - for Breadcrumbs
1105
- * - for document title (with AlephaReactHead)
1106
- */
1141
+ * Human-readable title for the page.
1142
+ * - for Sidebar navigation
1143
+ * - for Omnibar navigation
1144
+ * (soon)
1145
+ * - for Breadcrumbs
1146
+ * - for document title (with AlephaReactHead)
1147
+ */
1107
1148
  label?: string;
1108
1149
  /**
1109
- * Optional description of the page.
1110
- */
1150
+ * Optional description of the page.
1151
+ */
1111
1152
  description?: string;
1112
1153
  /**
1113
- * Optional icon for the page.
1114
- */
1154
+ * Optional icon for the page.
1155
+ */
1115
1156
  icon?: ReactNode | ComponentType;
1116
1157
  }
1117
1158
  }
1118
1159
  /**
1119
- * Mantine
1160
+ * | type | quality | stability |
1161
+ * |------|---------|-----------|
1162
+ * | frontend | rare | experimental |
1163
+ *
1164
+ * Core UI components based on Mantine UI v8.
1165
+ *
1166
+ * **Features:**
1167
+ * - Mantine integration with theme support
1168
+ * - ActionButton, BurgerButton, ClipboardButton, DarkModeButton, LanguageButton, ThemeButton
1169
+ * - AlertDialog, ConfirmDialog, PromptDialog
1170
+ * - Form controls: Control, ControlArray, ControlDate, ControlNumber, ControlObject, ControlSelect, ControlQueryBuilder
1171
+ * - TypeForm for automatic form generation from TypeBox schemas
1172
+ * - AdminShell layout component
1173
+ * - AppBar with configurable elements
1174
+ * - Sidebar navigation with sections and menu items
1175
+ * - Omnibar for command palette / search
1176
+ * - DataTable with filtering, sorting, pagination
1177
+ * - Toast notifications
1178
+ * - Theme system with dark mode
1120
1179
  *
1121
1180
  * @module alepha.ui
1122
1181
  */
1123
1182
  declare const AlephaUI: alepha1.Service<alepha1.Module>;
1183
+ /**
1184
+ * Register UI components and get the RootRouter instance.
1185
+ */
1186
+ declare const $ui: (opts?: {}) => RootRouter;
1124
1187
  //#endregion
1125
- export { ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, type AdminShellProps, AlephaMantineProvider, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, BurgerButton, type CheckboxAction, type CheckboxActionContext, ClipboardButton, type ClipboardButtonProps, type ColumnVisibility, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlArray, ControlDate, ControlNumber, ControlObject, ControlQueryBuilder, ControlSelect, CurrentAlephaTheme, DarkModeButton, DataTable, type DataTableColumn, type DataTableColumnContext, type DataTableProps, type DataTableSubmitContext, DialogService, type FilterVisibility, Flex, IconSize, LanguageButton, type MaybePage, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps, RootRouter, SchemaField, Sidebar, type SidebarAbstractItem, type SidebarButtonTheme, type SidebarDivider, type SidebarElement, type SidebarItemProps, type SidebarMenuItem, type SidebarNode, type SidebarProps, type SidebarSearch, type SidebarSection, type SidebarSpacer, type SidebarTheme, Text, ThemeButton, type ThemeButtonProps, ThemeProvider, ToastService, TypeForm, alephaThemeAtom, alephaThemeListAtom, capitalize, defaultTheme, extractSchemaFields, getDefaultIcon, getOperatorsForField, midnightTheme, prettyName, ui, useDialog, useToast };
1188
+ export { $ui, ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, type AdminShellProps, AlephaMantineProvider, AlephaSidebarState, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, BurgerButton, type CheckboxAction, type CheckboxActionContext, ClipboardButton, type ClipboardButtonProps, type ColumnVisibility, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlArray, ControlDate, ControlNumber, ControlObject, ControlQueryBuilder, ControlSelect, CurrentAlephaTheme, DarkModeButton, DataTable, type DataTableColumn, type DataTableColumnContext, type DataTableProps, type DataTableSubmitContext, DialogService, type FilterVisibility, Flex, IconSize, LanguageButton, type MaybePage, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps, RootRouter, SchemaField, Sidebar, type SidebarAbstractItem, type SidebarButtonTheme, type SidebarDivider, type SidebarElement, type SidebarItemProps, type SidebarMenuItem, type SidebarNode, type SidebarProps, type SidebarSearch, type SidebarSection, type SidebarSpacer, type SidebarTheme, Text, ThemeButton, type ThemeButtonProps, ThemeProvider, ToastService, ToggleSidebarButton, TypeForm, alephaSidebarAtom, alephaThemeAtom, alephaThemeListAtom, capitalize, defaultTheme, extractSchemaFields, getDefaultIcon, getOperatorsForField, midnightTheme, prettyName, ui, useDialog, useToast };
1126
1189
  //# sourceMappingURL=index.d.ts.map