@alepha/ui 0.15.1 → 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.
- package/dist/admin/AdminAudits-BlGGKLof.js +3 -0
- package/dist/admin/{AdminAudits-DClGEVBj.js → AdminAudits-C0DPYw0W.js} +4 -4
- package/dist/admin/AdminAudits-C0DPYw0W.js.map +1 -0
- package/dist/admin/AdminFiles-Bg9feLFH.js +3 -0
- package/dist/admin/{AdminFiles-C76r1_Xz.js → AdminFiles-Cu8GHgQ3.js} +3 -3
- package/dist/admin/AdminFiles-Cu8GHgQ3.js.map +1 -0
- package/dist/admin/{AdminNotifications-Bsalygm5.js → AdminNotifications-CgYkBuG_.js} +3 -3
- package/dist/admin/AdminNotifications-CgYkBuG_.js.map +1 -0
- package/dist/admin/AdminNotifications-DmfGPqHe.js +3 -0
- package/dist/admin/{AdminParameters-CpmAWwqN.js → AdminParameters-Cl-R0nXt.js} +1 -1
- package/dist/admin/{AdminParameters-Bmxtnpv-.js → AdminParameters-hjNG_KXb.js} +4 -4
- package/dist/admin/AdminParameters-hjNG_KXb.js.map +1 -0
- package/dist/admin/{AdminSessions-DmK3R6pP.js → AdminSessions-Bey9cuy1.js} +4 -4
- package/dist/admin/AdminSessions-Bey9cuy1.js.map +1 -0
- package/dist/admin/AdminSessions-Cn4_jB04.js +3 -0
- package/dist/admin/{AdminUserAudits-BPMP1Qd2.js → AdminUserAudits-C7AN9jx7.js} +4 -4
- package/dist/admin/AdminUserAudits-C7AN9jx7.js.map +1 -0
- package/dist/admin/{AdminUserAudits-Brcenss9.js → AdminUserAudits-Cp_ERd2g.js} +1 -1
- package/dist/admin/{AdminUserCreate-Cx8bkYC2.js → AdminUserCreate-Chr-7hLk.js} +1 -1
- package/dist/admin/{AdminUserCreate-CZjB6NKc.js → AdminUserCreate-DiXi1EWB.js} +4 -4
- package/dist/admin/AdminUserCreate-DiXi1EWB.js.map +1 -0
- package/dist/admin/{AdminUserDetails-8TYsqQBy.js → AdminUserDetails-Dcn3OwMC.js} +1 -1
- package/dist/admin/{AdminUserDetails-DuqCOBJK.js → AdminUserDetails-yM4x8JE6.js} +5 -5
- package/dist/admin/AdminUserDetails-yM4x8JE6.js.map +1 -0
- package/dist/admin/{AdminUserLayout-Bz2u_zQ4.js → AdminUserLayout-CfeQHH6e.js} +1 -1
- package/dist/admin/{AdminUserLayout-Dgk8s7Cd.js → AdminUserLayout-D9bqGt6T.js} +3 -3
- package/dist/admin/AdminUserLayout-D9bqGt6T.js.map +1 -0
- package/dist/admin/{AdminUserSessions-DCpe8_T6.js → AdminUserSessions-kmkXG-xf.js} +4 -4
- package/dist/admin/AdminUserSessions-kmkXG-xf.js.map +1 -0
- package/dist/admin/AdminUserSessions-rvA0ztxn.js +3 -0
- package/dist/admin/{AdminUserSettings-qxDfowqh.js → AdminUserSettings-BnzRAcqV.js} +4 -4
- package/dist/admin/AdminUserSettings-BnzRAcqV.js.map +1 -0
- package/dist/admin/AdminUserSettings-CXs-jtRv.js +3 -0
- package/dist/admin/{AdminUsers-ZlPsDz0T.js → AdminUsers-CYkcUWCg.js} +4 -4
- package/dist/admin/AdminUsers-CYkcUWCg.js.map +1 -0
- package/dist/admin/AdminUsers-DdFXzrEn.js +3 -0
- package/dist/admin/index.d.ts +33 -18
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +44 -29
- package/dist/admin/index.js.map +1 -1
- package/dist/auth/{AuthLayout-CWzQ8rCe.js → AuthLayout-Dj5K4SIN.js} +2 -2
- package/dist/auth/AuthLayout-Dj5K4SIN.js.map +1 -0
- package/dist/auth/{Login-CyvKwy5e.js → Login-BAFVcX_J.js} +5 -5
- package/dist/auth/Login-BAFVcX_J.js.map +1 -0
- package/dist/auth/Login-C5PUsp8I.js +4 -0
- package/dist/auth/{Register-C7Zp09Ks.js → Register-CZRXEcWy.js} +6 -6
- package/dist/auth/Register-CZRXEcWy.js.map +1 -0
- package/dist/auth/Register-DMTs5ep_.js +4 -0
- package/dist/auth/ResetPassword-D-mhMtmx.js +3 -0
- package/dist/auth/{ResetPassword-DYJSUC6B.js → ResetPassword-DTYNsBIj.js} +5 -5
- package/dist/auth/ResetPassword-DTYNsBIj.js.map +1 -0
- package/dist/auth/VerifyEmail-BsrCmncc.js +3 -0
- package/dist/auth/{VerifyEmail-CNXFIwWW.js → VerifyEmail-DolENWGn.js} +4 -4
- package/dist/auth/VerifyEmail-DolENWGn.js.map +1 -0
- package/dist/auth/index.d.ts +30 -19
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +24 -13
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +115 -52
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +302 -87
- package/dist/core/index.js.map +1 -1
- package/dist/demo/{DemoDataTable-DYbDYbs5.js → DemoDataTable-CguplbR7.js} +2 -2
- package/dist/demo/{DemoDataTable-DYbDYbs5.js.map → DemoDataTable-CguplbR7.js.map} +1 -1
- package/dist/demo/DemoJsonViewer-DIssGVlJ.js +4 -0
- package/dist/demo/{DemoJsonViewer-D_Hff1Q2.js → DemoJsonViewer-Dgdk3Txb.js} +3 -3
- package/dist/demo/{DemoJsonViewer-D_Hff1Q2.js.map → DemoJsonViewer-Dgdk3Txb.js.map} +1 -1
- package/dist/demo/{DemoLayout-DjIDm93B.js → DemoLayout-B20TEuhV.js} +2 -2
- package/dist/demo/DemoLayout-B20TEuhV.js.map +1 -0
- package/dist/demo/DemoLayout-DSRyf4qJ.js +3 -0
- package/dist/demo/{DemoLogin-BA_HiIRZ.js → DemoLogin-mtkN6340.js} +6 -6
- package/dist/demo/DemoLogin-mtkN6340.js.map +1 -0
- package/dist/demo/{DemoRegister-B6syaxP9.js → DemoRegister-C0MW7anp.js} +7 -7
- package/dist/demo/DemoRegister-C0MW7anp.js.map +1 -0
- package/dist/demo/{DemoResetPassword-BOcLG4GF.js → DemoResetPassword-CPTy88iK.js} +6 -6
- package/dist/demo/DemoResetPassword-CPTy88iK.js.map +1 -0
- package/dist/demo/{DemoSidebar-DpZXf7GO.js → DemoSidebar-MVmQKfMt.js} +2 -2
- package/dist/demo/{DemoSidebar-DpZXf7GO.js.map → DemoSidebar-MVmQKfMt.js.map} +1 -1
- package/dist/demo/{DemoTypeForm-BlLAcQqZ.js → DemoTypeForm-w-qtfRlC.js} +3 -3
- package/dist/demo/DemoTypeForm-w-qtfRlC.js.map +1 -0
- package/dist/demo/{DemoVerifyEmail-C-J7bXUQ.js → DemoVerifyEmail-C8FFJT5A.js} +5 -5
- package/dist/demo/DemoVerifyEmail-C8FFJT5A.js.map +1 -0
- package/dist/demo/{Showcase-HchhcsHV.js → Showcase-CQrMWars.js} +2 -2
- package/dist/demo/Showcase-CQrMWars.js.map +1 -0
- package/dist/demo/index.d.ts +25 -15
- package/dist/demo/index.d.ts.map +1 -1
- package/dist/demo/index.js +24 -14
- package/dist/demo/index.js.map +1 -1
- package/package.json +5 -6
- package/src/admin/AdminRouter.ts +2 -2
- package/src/admin/MainRouter.ts +1 -1
- package/src/admin/components/audits/AdminAudits.tsx +3 -3
- package/src/admin/components/files/AdminFiles.tsx +2 -2
- package/src/admin/components/jobs/AdminJobs.tsx +2 -2
- package/src/admin/components/notifications/AdminNotifications.tsx +2 -2
- package/src/admin/components/parameters/AdminParameters.tsx +1 -1
- package/src/admin/components/parameters/ParameterDetails.tsx +2 -2
- package/src/admin/components/parameters/ParameterHistory.tsx +1 -1
- package/src/admin/components/parameters/types.ts +9 -3
- package/src/admin/components/sessions/AdminSessions.tsx +3 -3
- package/src/admin/components/shared/AdminResourceHeader.tsx +1 -1
- package/src/admin/components/shared/AdminResourceTabs.tsx +1 -1
- package/src/admin/components/users/AdminUserAudits.tsx +3 -3
- package/src/admin/components/users/AdminUserCreate.tsx +3 -3
- package/src/admin/components/users/AdminUserDetails.tsx +4 -4
- package/src/admin/components/users/AdminUserLayout.tsx +2 -2
- package/src/admin/components/users/AdminUserSessions.tsx +3 -3
- package/src/admin/components/users/AdminUserSettings.tsx +3 -3
- package/src/admin/components/users/AdminUsers.tsx +3 -3
- package/src/admin/index.ts +16 -1
- package/src/auth/AuthI18n.ts +1 -1
- package/src/auth/AuthRouter.ts +2 -2
- package/src/auth/components/AuthLayout.tsx +1 -1
- package/src/auth/components/Login.tsx +4 -4
- package/src/auth/components/Register.tsx +5 -5
- package/src/auth/components/ResetPassword.tsx +4 -4
- package/src/auth/components/VerifyEmail.tsx +3 -3
- package/src/auth/components/buttons/UserButton.tsx +2 -2
- package/src/auth/index.ts +14 -3
- package/src/core/RootRouter.ts +1 -1
- package/src/core/atoms/alephaSidebarAtom.ts +57 -0
- package/src/core/components/buttons/ActionButton.tsx +9 -9
- package/src/core/components/buttons/BurgerButton.tsx +5 -4
- package/src/core/components/buttons/LanguageButton.tsx +1 -1
- package/src/core/components/buttons/OmnibarButton.tsx +20 -1
- package/src/core/components/buttons/ThemeButton.tsx +1 -1
- package/src/core/components/buttons/ToggleSidebarButton.tsx +33 -23
- package/src/core/components/form/Control.tsx +1 -1
- package/src/core/components/form/ControlArray.tsx +2 -2
- package/src/core/components/form/ControlDate.tsx +1 -1
- package/src/core/components/form/ControlNumber.tsx +2 -2
- package/src/core/components/form/ControlObject.tsx +1 -1
- package/src/core/components/form/ControlQueryBuilder.tsx +1 -1
- package/src/core/components/form/ControlSelect.tsx +1 -1
- package/src/core/components/form/TypeForm.tsx +2 -2
- package/src/core/components/layout/AdminShell.tsx +205 -27
- package/src/core/components/layout/AlephaMantineProvider.tsx +3 -3
- package/src/core/components/layout/Omnibar.tsx +2 -2
- package/src/core/components/layout/Sidebar.tsx +42 -77
- package/src/core/components/table/DataTable.tsx +2 -2
- package/src/core/components/table/DataTableFilters.tsx +1 -1
- package/src/core/components/table/types.ts +1 -1
- package/src/core/hooks/useDialog.ts +1 -1
- package/src/core/hooks/useTheme.ts +1 -1
- package/src/core/hooks/useToast.ts +1 -1
- package/src/core/index.ts +57 -6
- package/src/core/providers/ThemeProvider.ts +1 -1
- package/src/core/styles.css +58 -0
- package/src/core/utils/parseInput.ts +1 -1
- package/src/demo/DemoRouter.ts +1 -1
- package/src/demo/components/DemoLayout.tsx +1 -1
- package/src/demo/components/core/DemoTypeForm.tsx +1 -1
- package/src/demo/components/json/DemoJsonViewer.tsx +1 -1
- package/src/demo/components/shared/Showcase.tsx +1 -1
- package/src/demo/index.ts +11 -1
- package/src/json/index.ts +13 -0
- package/dist/admin/AdminAudits-ColpiP4T.js +0 -3
- package/dist/admin/AdminAudits-DClGEVBj.js.map +0 -1
- package/dist/admin/AdminFiles-C5pqXN5B.js +0 -3
- package/dist/admin/AdminFiles-C76r1_Xz.js.map +0 -1
- package/dist/admin/AdminNotifications-BXixCBu9.js +0 -3
- package/dist/admin/AdminNotifications-Bsalygm5.js.map +0 -1
- package/dist/admin/AdminParameters-Bmxtnpv-.js.map +0 -1
- package/dist/admin/AdminSessions-CrkRvey3.js +0 -3
- package/dist/admin/AdminSessions-DmK3R6pP.js.map +0 -1
- package/dist/admin/AdminUserAudits-BPMP1Qd2.js.map +0 -1
- package/dist/admin/AdminUserCreate-CZjB6NKc.js.map +0 -1
- package/dist/admin/AdminUserDetails-DuqCOBJK.js.map +0 -1
- package/dist/admin/AdminUserLayout-Dgk8s7Cd.js.map +0 -1
- package/dist/admin/AdminUserSessions-DCpe8_T6.js.map +0 -1
- package/dist/admin/AdminUserSessions-beiJqY2D.js +0 -3
- package/dist/admin/AdminUserSettings-CxlInVnu.js +0 -3
- package/dist/admin/AdminUserSettings-qxDfowqh.js.map +0 -1
- package/dist/admin/AdminUsers-Bd0wMP8v.js +0 -3
- package/dist/admin/AdminUsers-ZlPsDz0T.js.map +0 -1
- package/dist/auth/AuthLayout-CWzQ8rCe.js.map +0 -1
- package/dist/auth/Login-CxOPyNFP.js +0 -4
- package/dist/auth/Login-CyvKwy5e.js.map +0 -1
- package/dist/auth/Register-C7Zp09Ks.js.map +0 -1
- package/dist/auth/Register-Cacr7YbA.js +0 -4
- package/dist/auth/ResetPassword-CMkx8Ibf.js +0 -3
- package/dist/auth/ResetPassword-DYJSUC6B.js.map +0 -1
- package/dist/auth/VerifyEmail-CNXFIwWW.js.map +0 -1
- package/dist/auth/VerifyEmail-DKyDlz96.js +0 -3
- package/dist/demo/DemoJsonViewer-DbWVDdz_.js +0 -4
- package/dist/demo/DemoLayout-DjIDm93B.js.map +0 -1
- package/dist/demo/DemoLayout-nNMajP_9.js +0 -3
- package/dist/demo/DemoLogin-BA_HiIRZ.js.map +0 -1
- package/dist/demo/DemoRegister-B6syaxP9.js.map +0 -1
- package/dist/demo/DemoResetPassword-BOcLG4GF.js.map +0 -1
- package/dist/demo/DemoTypeForm-BlLAcQqZ.js.map +0 -1
- package/dist/demo/DemoVerifyEmail-C-J7bXUQ.js.map +0 -1
- package/dist/demo/Showcase-HchhcsHV.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { TypeForm, ui } from "@alepha/ui";
|
|
|
2
2
|
import { Box, Card, Flex, SegmentedControl, Text } from "@mantine/core";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useState } from "react";
|
|
5
|
-
import { useForm } from "
|
|
5
|
+
import { useForm } from "alepha/react/form";
|
|
6
6
|
|
|
7
7
|
//#region ../../src/demo/components/shared/MacWindow.tsx
|
|
8
8
|
const MacWindow = ({ children, title, containerProps, fill }) => {
|
|
@@ -184,4 +184,4 @@ var Showcase_default = Showcase;
|
|
|
184
184
|
|
|
185
185
|
//#endregion
|
|
186
186
|
export { MacWindow_default as n, Showcase_default as t };
|
|
187
|
-
//# sourceMappingURL=Showcase-
|
|
187
|
+
//# sourceMappingURL=Showcase-CQrMWars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Showcase-CQrMWars.js","names":["MacWindow"],"sources":["../../src/demo/components/shared/MacWindow.tsx","../../src/demo/components/shared/Showcase.tsx"],"sourcesContent":["import { Box, type BoxProps, Flex, SegmentedControl } from \"@mantine/core\";\nimport { type ReactNode, useState } from \"react\";\n\nexport interface MacWindowProps {\n children: ReactNode;\n title?: string;\n containerProps?: BoxProps;\n fill?: boolean;\n}\n\ntype WindowSize = \"25\" | \"50\" | \"75\" | \"100\";\n\nconst MacWindow = ({\n children,\n title,\n containerProps,\n fill,\n}: MacWindowProps) => {\n const [size, setSize] = useState<WindowSize>(\"100\");\n\n const getWidth = () => {\n return `${size}%`;\n };\n\n return (\n <Flex\n direction=\"column\"\n flex={fill ? 1 : undefined}\n h={fill ? \"100%\" : undefined}\n bdrs={\"md\"}\n style={{\n width: getWidth(),\n border: \"1px solid var(--mantine-color-default-border)\",\n overflow: \"hidden\",\n background: \"var(--mantine-color-body)\",\n boxShadow: \"0 4px 12px rgba(0, 0, 0, 0.15)\",\n transition: \"width 0.3s ease\",\n }}\n >\n <Flex\n h={36}\n px=\"sm\"\n align=\"center\"\n gap={8}\n style={{\n background: \"var(--mantine-color-default)\",\n borderBottom: \"1px solid var(--mantine-color-default-border)\",\n }}\n >\n <Flex gap={6}>\n <Box\n w={12}\n h={12}\n style={{ borderRadius: \"50%\", background: \"#ff5f57\" }}\n />\n <Box\n w={12}\n h={12}\n style={{ borderRadius: \"50%\", background: \"#febc2e\" }}\n />\n <Box\n w={12}\n h={12}\n style={{ borderRadius: \"50%\", background: \"#28c840\" }}\n />\n </Flex>\n\n <Box\n style={{\n flex: 1,\n textAlign: \"center\",\n fontSize: 13,\n color: \"var(--mantine-color-dimmed)\",\n }}\n >\n {title}\n </Box>\n\n {fill ? undefined : (\n <SegmentedControl\n size=\"xs\"\n value={size}\n onChange={(v) => setSize(v as WindowSize)}\n data={[\n { label: \"25\", value: \"25\" },\n { label: \"50\", value: \"50\" },\n { label: \"75\", value: \"75\" },\n { label: \"100\", value: \"100\" },\n ]}\n />\n )}\n </Flex>\n <Flex\n direction={\"column\"}\n flex={fill ? 1 : undefined}\n p=\"md\"\n {...containerProps}\n >\n {children}\n </Flex>\n </Flex>\n );\n};\n\nexport default MacWindow;\n","import { TypeForm, ui } from \"@alepha/ui\";\nimport { Box, Card, Flex, Text } from \"@mantine/core\";\nimport type { Static, TObject } from \"alepha\";\nimport { useForm } from \"alepha/react/form\";\nimport { type ReactNode, useState } from \"react\";\nimport MacWindow, { type MacWindowProps } from \"./MacWindow.tsx\";\n\nexport interface ShowcaseProps<T extends TObject> {\n /**\n * Component title\n */\n title: string;\n /**\n * Schema for the props configuration\n */\n schema: T;\n /**\n * Initial values for the props\n */\n initialValues?: Partial<Static<T>>;\n /**\n * Number of columns for the props form\n */\n columns?: number;\n /**\n * Render function that receives the current props values\n */\n children: (props: Static<T>) => ReactNode;\n /**\n * Additional props for the MacWindow container\n */\n windowProps?: Partial<MacWindowProps>;\n}\n\n/**\n * Showcase component for demonstrating UI components with interactive props configuration.\n * Uses TypeForm to render a form based on the props schema and displays the component preview.\n */\nconst Showcase = <T extends TObject>({\n title,\n schema,\n initialValues,\n columns = 3,\n children,\n windowProps,\n}: ShowcaseProps<T>) => {\n const [values, setValues] = useState<Record<string, any>>(\n initialValues ?? {},\n );\n\n const form = useForm(\n {\n schema,\n initialValues,\n handler: (values) => {\n setValues(values as Record<string, any>);\n },\n onChange: (key, value) => {\n console.log(\"onChange\", key, value);\n form.submit();\n },\n },\n [schema],\n );\n\n return (\n <Flex flex={1} h={\"100%\"}>\n <Flex\n flex={1}\n bg={ui.colors.background}\n h={\"100%\"}\n p=\"xl\"\n justify=\"center\"\n align=\"flex-start\"\n style={{ flex: 1, minWidth: 0, overflow: \"auto\" }}\n >\n <MacWindow title={title} {...windowProps}>\n {children(values as Static<T>)}\n </MacWindow>\n </Flex>\n\n <Box\n bg={ui.colors.surface}\n h={\"100%\"}\n p={\"md\"}\n style={{\n flex: \"0 0 300px\",\n overflow: \"auto\",\n }}\n >\n <Card withBorder shadow=\"sm\" radius=\"md\" bg={ui.colors.elevated}>\n <Card.Section withBorder py={\"xs\"} inheritPadding>\n <Text size={\"xs\"} fw={500}>\n {title} Props\n </Text>\n </Card.Section>\n\n <Card.Section p={\"sm\"}>\n <TypeForm\n form={form}\n columns={columns}\n skipSubmitButton\n skipFormElement\n />\n </Card.Section>\n </Card>\n </Box>\n </Flex>\n );\n};\n\nexport default Showcase;\n"],"mappings":";;;;;;;AAYA,MAAM,aAAa,EACjB,UACA,OACA,gBACA,WACoB;CACpB,MAAM,CAAC,MAAM,WAAW,SAAqB,MAAM;CAEnD,MAAM,iBAAiB;AACrB,SAAO,GAAG,KAAK;;AAGjB,QACE,qBAAC;EACC,WAAU;EACV,MAAM,OAAO,IAAI;EACjB,GAAG,OAAO,SAAS;EACnB,MAAM;EACN,OAAO;GACL,OAAO,UAAU;GACjB,QAAQ;GACR,UAAU;GACV,YAAY;GACZ,WAAW;GACX,YAAY;GACb;aAED,qBAAC;GACC,GAAG;GACH,IAAG;GACH,OAAM;GACN,KAAK;GACL,OAAO;IACL,YAAY;IACZ,cAAc;IACf;;IAED,qBAAC;KAAK,KAAK;;MACT,oBAAC;OACC,GAAG;OACH,GAAG;OACH,OAAO;QAAE,cAAc;QAAO,YAAY;QAAW;QACrD;MACF,oBAAC;OACC,GAAG;OACH,GAAG;OACH,OAAO;QAAE,cAAc;QAAO,YAAY;QAAW;QACrD;MACF,oBAAC;OACC,GAAG;OACH,GAAG;OACH,OAAO;QAAE,cAAc;QAAO,YAAY;QAAW;QACrD;;MACG;IAEP,oBAAC;KACC,OAAO;MACL,MAAM;MACN,WAAW;MACX,UAAU;MACV,OAAO;MACR;eAEA;MACG;IAEL,OAAO,SACN,oBAAC;KACC,MAAK;KACL,OAAO;KACP,WAAW,MAAM,QAAQ,EAAgB;KACzC,MAAM;MACJ;OAAE,OAAO;OAAM,OAAO;OAAM;MAC5B;OAAE,OAAO;OAAM,OAAO;OAAM;MAC5B;OAAE,OAAO;OAAM,OAAO;OAAM;MAC5B;OAAE,OAAO;OAAO,OAAO;OAAO;MAC/B;MACD;;IAEC,EACP,oBAAC;GACC,WAAW;GACX,MAAM,OAAO,IAAI;GACjB,GAAE;GACF,GAAI;GAEH;IACI;GACF;;AAIX,wBAAe;;;;;;;;AClEf,MAAM,YAA+B,EACnC,OACA,QACA,eACA,UAAU,GACV,UACA,kBACsB;CACtB,MAAM,CAAC,QAAQ,aAAa,SAC1B,iBAAiB,EAAE,CACpB;CAED,MAAM,OAAO,QACX;EACE;EACA;EACA,UAAU,WAAW;AACnB,aAAU,OAA8B;;EAE1C,WAAW,KAAK,UAAU;AACxB,WAAQ,IAAI,YAAY,KAAK,MAAM;AACnC,QAAK,QAAQ;;EAEhB,EACD,CAAC,OAAO,CACT;AAED,QACE,qBAAC;EAAK,MAAM;EAAG,GAAG;aAChB,oBAAC;GACC,MAAM;GACN,IAAI,GAAG,OAAO;GACd,GAAG;GACH,GAAE;GACF,SAAQ;GACR,OAAM;GACN,OAAO;IAAE,MAAM;IAAG,UAAU;IAAG,UAAU;IAAQ;aAEjD,oBAACA;IAAiB;IAAO,GAAI;cAC1B,SAAS,OAAoB;KACpB;IACP,EAEP,oBAAC;GACC,IAAI,GAAG,OAAO;GACd,GAAG;GACH,GAAG;GACH,OAAO;IACL,MAAM;IACN,UAAU;IACX;aAED,qBAAC;IAAK;IAAW,QAAO;IAAK,QAAO;IAAK,IAAI,GAAG,OAAO;eACrD,oBAAC,KAAK;KAAQ;KAAW,IAAI;KAAM;eACjC,qBAAC;MAAK,MAAM;MAAM,IAAI;iBACnB,OAAM;OACF;MACM,EAEf,oBAAC,KAAK;KAAQ,GAAG;eACf,oBAAC;MACO;MACG;MACT;MACA;OACA;MACW;KACV;IACH;GACD;;AAIX,uBAAe"}
|
package/dist/demo/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as alepha0 from "alepha";
|
|
2
2
|
import { Static, TObject } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as alepha_react_router0 from "alepha/react/router";
|
|
4
4
|
import { BoxProps } from "@mantine/core";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
import { ReactNode } from "react";
|
|
@@ -70,24 +70,34 @@ declare const Showcase: <T extends TObject>({
|
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region ../../src/demo/DemoRouter.d.ts
|
|
72
72
|
declare class DemoRouter {
|
|
73
|
-
demoLayout:
|
|
74
|
-
demoHome:
|
|
75
|
-
demoCore:
|
|
76
|
-
demoTypeForm:
|
|
77
|
-
demoSidebar:
|
|
78
|
-
demoDataTable:
|
|
79
|
-
demoJson:
|
|
80
|
-
demoJsonViewer:
|
|
81
|
-
demoAuth:
|
|
82
|
-
demoLogin:
|
|
83
|
-
demoRegister:
|
|
84
|
-
demoResetPassword:
|
|
85
|
-
demoVerifyEmail:
|
|
73
|
+
demoLayout: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
74
|
+
demoHome: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
75
|
+
demoCore: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
76
|
+
demoTypeForm: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
77
|
+
demoSidebar: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
78
|
+
demoDataTable: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
79
|
+
demoJson: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
80
|
+
demoJsonViewer: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
81
|
+
demoAuth: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
82
|
+
demoLogin: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
83
|
+
demoRegister: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
84
|
+
demoResetPassword: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
85
|
+
demoVerifyEmail: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region ../../src/demo/index.d.ts
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* | type | quality | stability |
|
|
91
|
+
* |------|---------|-----------|
|
|
92
|
+
* | frontend | standard | experimental |
|
|
93
|
+
*
|
|
94
|
+
* Component showcase and documentation.
|
|
95
|
+
*
|
|
96
|
+
* **Features:**
|
|
97
|
+
* - DemoLayout for demo pages
|
|
98
|
+
* - DemoHome landing page
|
|
99
|
+
* - MacWindow component for showcases
|
|
100
|
+
* - Showcase component for component demos
|
|
91
101
|
*
|
|
92
102
|
* @module alepha.ui.demo
|
|
93
103
|
*/
|
package/dist/demo/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/demo/components/DemoHome.tsx","../../src/demo/components/DemoLayout.tsx","../../src/demo/components/json/DemoJsonViewer.tsx","../../src/demo/components/shared/MacWindow.tsx","../../src/demo/components/shared/Showcase.tsx","../../src/demo/DemoRouter.ts","../../src/demo/index.ts"],"mappings":";;;;;;;;cAaM,QAAA,QAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCRR,UAAA,QAAU,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cC6EV,cAAA,QAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UC/EH,cAAA;EACf,QAAA,EAAU,SAAA;EACV,KAAA;EACA,cAAA,GAAiB,QAAA;EACjB,IAAA;AAAA;AAAA,cAKI,SAAA;EAAa,QAAA;EAAA,KAAA;EAAA,cAAA;EAAA;AAAA,GAKhB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCVA,aAAA,WAAwB,OAAA;;;;EAIvC,KAAA;EJEI;;;EIEJ,MAAA,EAAQ,CAAA;EJWT;;;EIPC,aAAA,GAAgB,OAAA,CAAQ,MAAA,CAAO,CAAA;EHd3B;;;EGkBJ,OAAA;EH0BD;;;EGtBC,QAAA,GAAW,KAAA,EAAO,MAAA,CAAO,CAAA,MAAO,SAAA;EFuD5B;;;EEnDJ,WAAA,GAAc,OAAA,CAAQ,cAAA;AAAA;;;;AD5BxB;cCmCM,QAAA,aAAsB,OAAA;EAAS,KAAA;EAAA,MAAA;EAAA,aAAA;EAAA,OAAA;EAAA,QAAA;EAAA;AAAA,GAOlC,aAAA,CAAc,CAAA,MAAE,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cC5BN,UAAA;EACX,UAAA,EAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/demo/components/DemoHome.tsx","../../src/demo/components/DemoLayout.tsx","../../src/demo/components/json/DemoJsonViewer.tsx","../../src/demo/components/shared/MacWindow.tsx","../../src/demo/components/shared/Showcase.tsx","../../src/demo/DemoRouter.ts","../../src/demo/index.ts"],"mappings":";;;;;;;;cAaM,QAAA,QAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCRR,UAAA,QAAU,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cC6EV,cAAA,QAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UC/EH,cAAA;EACf,QAAA,EAAU,SAAA;EACV,KAAA;EACA,cAAA,GAAiB,QAAA;EACjB,IAAA;AAAA;AAAA,cAKI,SAAA;EAAa,QAAA;EAAA,KAAA;EAAA,cAAA;EAAA;AAAA,GAKhB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCVA,aAAA,WAAwB,OAAA;;;;EAIvC,KAAA;EJEI;;;EIEJ,MAAA,EAAQ,CAAA;EJWT;;;EIPC,aAAA,GAAgB,OAAA,CAAQ,MAAA,CAAO,CAAA;EHd3B;;;EGkBJ,OAAA;EH0BD;;;EGtBC,QAAA,GAAW,KAAA,EAAO,MAAA,CAAO,CAAA,MAAO,SAAA;EFuD5B;;;EEnDJ,WAAA,GAAc,OAAA,CAAQ,cAAA;AAAA;;;;AD5BxB;cCmCM,QAAA,aAAsB,OAAA;EAAS,KAAA;EAAA,MAAA;EAAA,aAAA;EAAA,OAAA;EAAA,QAAA;EAAA;AAAA,GAOlC,aAAA,CAAc,CAAA,MAAE,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cC5BN,UAAA;EACX,UAAA,EAAU,oBAAA,CAAA,aAAA,CADW,oBAAA,CACX,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAaV,QAAA,EAAQ,oBAAA,CAAA,aAAA,CAbE,oBAAA,CAaF,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAQR,QAAA,EAAQ,oBAAA,CAAA,aAAA,CARA,oBAAA,CAQA,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAOR,YAAA,EAAY,oBAAA,CAAA,aAAA,CAPJ,oBAAA,CAOI,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAOZ,WAAA,EAAW,oBAAA,CAAA,aAAA,CAPC,oBAAA,CAOD,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAOX,aAAA,EAAa,oBAAA,CAAA,aAAA,CAPF,oBAAA,CAOE,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAQb,QAAA,EAAQ,oBAAA,CAAA,aAAA,CARK,oBAAA,CAQL,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAOR,cAAA,EAAc,oBAAA,CAAA,aAAA,CAPN,oBAAA,CAOM,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAQd,QAAA,EAAQ,oBAAA,CAAA,aAAA,CARM,oBAAA,CAQN,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAYR,SAAA,EAAS,oBAAA,CAAA,aAAA,CAZD,oBAAA,CAYC,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAOT,YAAA,EAAY,oBAAA,CAAA,aAAA,CAPH,oBAAA,CAOG,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAOZ,iBAAA,EAAiB,oBAAA,CAAA,aAAA,CAPL,oBAAA,CAOK,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAOjB,eAAA,EAAe,oBAAA,CAAA,aAAA,CAPE,oBAAA,CAOF,gBAAA,OAAA,oBAAA,CAAA,mBAAA;AAAA;;;;;ALvGH;;;;;;;;ACRE;;;;;cK+BH,YAAA,EAAY,OAAA,CAAA,OAAA,CAGvB,OAAA,CAHuB,MAAA"}
|
package/dist/demo/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as DemoHome_default } from "./DemoHome-Cce2bWmg.js";
|
|
2
|
-
import { t as DemoLayout_default } from "./DemoLayout-
|
|
3
|
-
import { t as DemoJsonViewer_default } from "./DemoJsonViewer-
|
|
4
|
-
import { n as MacWindow_default, t as Showcase_default } from "./Showcase-
|
|
2
|
+
import { t as DemoLayout_default } from "./DemoLayout-B20TEuhV.js";
|
|
3
|
+
import { t as DemoJsonViewer_default } from "./DemoJsonViewer-Dgdk3Txb.js";
|
|
4
|
+
import { n as MacWindow_default, t as Showcase_default } from "./Showcase-CQrMWars.js";
|
|
5
5
|
import { AlephaUI } from "@alepha/ui";
|
|
6
6
|
import { $module } from "alepha";
|
|
7
|
-
import { $page } from "@alepha/react/router";
|
|
8
7
|
import { IconBinaryTree, IconBraces, IconForms, IconHome, IconKey, IconLayoutSidebar, IconLockQuestion, IconLogin, IconMailCheck, IconPackages, IconTable, IconUserPlus, IconWall } from "@tabler/icons-react";
|
|
8
|
+
import { $page } from "alepha/react/router";
|
|
9
9
|
|
|
10
10
|
//#region ../../src/demo/DemoRouter.ts
|
|
11
11
|
var DemoRouter = class {
|
|
@@ -13,7 +13,7 @@ var DemoRouter = class {
|
|
|
13
13
|
icon: IconPackages,
|
|
14
14
|
path: "/demo",
|
|
15
15
|
label: "Demo",
|
|
16
|
-
lazy: () => import("./DemoLayout-
|
|
16
|
+
lazy: () => import("./DemoLayout-DSRyf4qJ.js"),
|
|
17
17
|
children: () => [
|
|
18
18
|
this.demoHome,
|
|
19
19
|
this.demoCore,
|
|
@@ -41,19 +41,19 @@ var DemoRouter = class {
|
|
|
41
41
|
icon: IconForms,
|
|
42
42
|
path: "/type-form",
|
|
43
43
|
label: "TypeForm",
|
|
44
|
-
lazy: () => import("./DemoTypeForm-
|
|
44
|
+
lazy: () => import("./DemoTypeForm-w-qtfRlC.js")
|
|
45
45
|
});
|
|
46
46
|
demoSidebar = $page({
|
|
47
47
|
icon: IconLayoutSidebar,
|
|
48
48
|
path: "/sidebar",
|
|
49
49
|
label: "Sidebar",
|
|
50
|
-
lazy: () => import("./DemoSidebar-
|
|
50
|
+
lazy: () => import("./DemoSidebar-MVmQKfMt.js")
|
|
51
51
|
});
|
|
52
52
|
demoDataTable = $page({
|
|
53
53
|
icon: IconTable,
|
|
54
54
|
path: "/data-table",
|
|
55
55
|
label: "DataTable",
|
|
56
|
-
lazy: () => import("./DemoDataTable-
|
|
56
|
+
lazy: () => import("./DemoDataTable-CguplbR7.js")
|
|
57
57
|
});
|
|
58
58
|
demoJson = $page({
|
|
59
59
|
icon: IconBraces,
|
|
@@ -65,7 +65,7 @@ var DemoRouter = class {
|
|
|
65
65
|
icon: IconBinaryTree,
|
|
66
66
|
path: "/viewer",
|
|
67
67
|
label: "JsonViewer",
|
|
68
|
-
lazy: () => import("./DemoJsonViewer-
|
|
68
|
+
lazy: () => import("./DemoJsonViewer-DIssGVlJ.js")
|
|
69
69
|
});
|
|
70
70
|
demoAuth = $page({
|
|
71
71
|
icon: IconKey,
|
|
@@ -82,32 +82,42 @@ var DemoRouter = class {
|
|
|
82
82
|
icon: IconLogin,
|
|
83
83
|
path: "/login",
|
|
84
84
|
label: "Login",
|
|
85
|
-
lazy: () => import("./DemoLogin-
|
|
85
|
+
lazy: () => import("./DemoLogin-mtkN6340.js")
|
|
86
86
|
});
|
|
87
87
|
demoRegister = $page({
|
|
88
88
|
icon: IconUserPlus,
|
|
89
89
|
path: "/register",
|
|
90
90
|
label: "Register",
|
|
91
|
-
lazy: () => import("./DemoRegister-
|
|
91
|
+
lazy: () => import("./DemoRegister-C0MW7anp.js")
|
|
92
92
|
});
|
|
93
93
|
demoResetPassword = $page({
|
|
94
94
|
icon: IconLockQuestion,
|
|
95
95
|
path: "/reset-password",
|
|
96
96
|
label: "ResetPassword",
|
|
97
|
-
lazy: () => import("./DemoResetPassword-
|
|
97
|
+
lazy: () => import("./DemoResetPassword-CPTy88iK.js")
|
|
98
98
|
});
|
|
99
99
|
demoVerifyEmail = $page({
|
|
100
100
|
icon: IconMailCheck,
|
|
101
101
|
path: "/verify-email",
|
|
102
102
|
label: "VerifyEmail",
|
|
103
|
-
lazy: () => import("./DemoVerifyEmail-
|
|
103
|
+
lazy: () => import("./DemoVerifyEmail-C8FFJT5A.js")
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region ../../src/demo/index.ts
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* | type | quality | stability |
|
|
111
|
+
* |------|---------|-----------|
|
|
112
|
+
* | frontend | standard | experimental |
|
|
113
|
+
*
|
|
114
|
+
* Component showcase and documentation.
|
|
115
|
+
*
|
|
116
|
+
* **Features:**
|
|
117
|
+
* - DemoLayout for demo pages
|
|
118
|
+
* - DemoHome landing page
|
|
119
|
+
* - MacWindow component for showcases
|
|
120
|
+
* - Showcase component for component demos
|
|
111
121
|
*
|
|
112
122
|
* @module alepha.ui.demo
|
|
113
123
|
*/
|
package/dist/demo/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/demo/DemoRouter.ts","../../src/demo/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/demo/DemoRouter.ts","../../src/demo/index.ts"],"sourcesContent":["import {\n IconBinaryTree,\n IconBraces,\n IconForms,\n IconHome,\n IconKey,\n IconLayoutSidebar,\n IconLockQuestion,\n IconLogin,\n IconMailCheck,\n IconPackages,\n IconTable,\n IconUserPlus,\n IconWall,\n} from \"@tabler/icons-react\";\nimport { $page } from \"alepha/react/router\";\n\nexport class DemoRouter {\n demoLayout = $page({\n icon: IconPackages,\n path: \"/demo\",\n label: \"Demo\",\n lazy: () => import(\"./components/DemoLayout.tsx\"),\n children: () => [\n this.demoHome,\n this.demoCore,\n this.demoJson,\n this.demoAuth,\n ],\n });\n\n demoHome = $page({\n icon: IconHome,\n path: \"/\",\n label: \"Home\",\n lazy: () => import(\"./components/DemoHome.tsx\"),\n });\n\n // Core Components\n demoCore = $page({\n icon: IconWall,\n path: \"/core\",\n label: \"Core\",\n children: () => [this.demoTypeForm, this.demoSidebar, this.demoDataTable],\n });\n\n demoTypeForm = $page({\n icon: IconForms,\n path: \"/type-form\",\n label: \"TypeForm\",\n lazy: () => import(\"./components/core/DemoTypeForm.tsx\"),\n });\n\n demoSidebar = $page({\n icon: IconLayoutSidebar,\n path: \"/sidebar\",\n label: \"Sidebar\",\n lazy: () => import(\"./components/core/DemoSidebar.tsx\"),\n });\n\n demoDataTable = $page({\n icon: IconTable,\n path: \"/data-table\",\n label: \"DataTable\",\n lazy: () => import(\"./components/core/DemoDataTable.tsx\"),\n });\n\n // JSON Components\n demoJson = $page({\n icon: IconBraces,\n path: \"/json\",\n label: \"Json\",\n children: () => [this.demoJsonViewer],\n });\n\n demoJsonViewer = $page({\n icon: IconBinaryTree,\n path: \"/viewer\",\n label: \"JsonViewer\",\n lazy: () => import(\"./components/json/DemoJsonViewer.tsx\"),\n });\n\n // Auth Components\n demoAuth = $page({\n icon: IconKey,\n path: \"/auth\",\n label: \"Auth\",\n children: () => [\n this.demoLogin,\n this.demoRegister,\n this.demoResetPassword,\n this.demoVerifyEmail,\n ],\n });\n\n demoLogin = $page({\n icon: IconLogin,\n path: \"/login\",\n label: \"Login\",\n lazy: () => import(\"./components/auth/DemoLogin.tsx\"),\n });\n\n demoRegister = $page({\n icon: IconUserPlus,\n path: \"/register\",\n label: \"Register\",\n lazy: () => import(\"./components/auth/DemoRegister.tsx\"),\n });\n\n demoResetPassword = $page({\n icon: IconLockQuestion,\n path: \"/reset-password\",\n label: \"ResetPassword\",\n lazy: () => import(\"./components/auth/DemoResetPassword.tsx\"),\n });\n\n demoVerifyEmail = $page({\n icon: IconMailCheck,\n path: \"/verify-email\",\n label: \"VerifyEmail\",\n lazy: () => import(\"./components/auth/DemoVerifyEmail.tsx\"),\n });\n}\n","import { AlephaUI } from \"@alepha/ui\";\nimport { $module } from \"alepha\";\nimport { DemoRouter } from \"./DemoRouter.ts\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\nexport { default as DemoHome } from \"./components/DemoHome.tsx\";\nexport { default as DemoLayout } from \"./components/DemoLayout.tsx\";\nexport { default as DemoJsonViewer } from \"./components/json/DemoJsonViewer.tsx\";\nexport {\n default as MacWindow,\n type MacWindowProps,\n} from \"./components/shared/MacWindow.tsx\";\nexport {\n default as Showcase,\n type ShowcaseProps,\n} from \"./components/shared/Showcase.tsx\";\nexport { DemoRouter } from \"./DemoRouter.ts\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\n/**\n * | type | quality | stability |\n * |------|---------|-----------|\n * | frontend | standard | experimental |\n *\n * Component showcase and documentation.\n *\n * **Features:**\n * - DemoLayout for demo pages\n * - DemoHome landing page\n * - MacWindow component for showcases\n * - Showcase component for component demos\n *\n * @module alepha.ui.demo\n */\nexport const AlephaUIDemo = $module({\n name: \"alepha.ui.demo\",\n services: [AlephaUI, DemoRouter],\n});\n"],"mappings":";;;;;;;;;;AAiBA,IAAa,aAAb,MAAwB;CACtB,aAAa,MAAM;EACjB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACnB,gBAAgB;GACd,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACN;EACF,CAAC;CAEF,WAAW,MAAM;EACf,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAGF,WAAW,MAAM;EACf,MAAM;EACN,MAAM;EACN,OAAO;EACP,gBAAgB;GAAC,KAAK;GAAc,KAAK;GAAa,KAAK;GAAc;EAC1E,CAAC;CAEF,eAAe,MAAM;EACnB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAEF,cAAc,MAAM;EAClB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAEF,gBAAgB,MAAM;EACpB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAGF,WAAW,MAAM;EACf,MAAM;EACN,MAAM;EACN,OAAO;EACP,gBAAgB,CAAC,KAAK,eAAe;EACtC,CAAC;CAEF,iBAAiB,MAAM;EACrB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAGF,WAAW,MAAM;EACf,MAAM;EACN,MAAM;EACN,OAAO;EACP,gBAAgB;GACd,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACN;EACF,CAAC;CAEF,YAAY,MAAM;EAChB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAEF,eAAe,MAAM;EACnB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAEF,oBAAoB,MAAM;EACxB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;CAEF,kBAAkB,MAAM;EACtB,MAAM;EACN,MAAM;EACN,OAAO;EACP,YAAY,OAAO;EACpB,CAAC;;;;;;;;;;;;;;;;;;;;ACrFJ,MAAa,eAAe,QAAQ;CAClC,MAAM;CACN,UAAU,CAAC,UAAU,WAAW;CACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"mantine"
|
|
8
8
|
],
|
|
9
9
|
"author": "Nicolas Foures",
|
|
10
|
-
"version": "0.15.
|
|
10
|
+
"version": "0.15.2",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=22.0.0"
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"styles.css"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@alepha/react": "0.15.1",
|
|
26
25
|
"@mantine/core": "^8.3.13",
|
|
27
26
|
"@mantine/dates": "^8.3.13",
|
|
28
27
|
"@mantine/hooks": "^8.3.13",
|
|
@@ -31,13 +30,13 @@
|
|
|
31
30
|
"@mantine/nprogress": "^8.3.13",
|
|
32
31
|
"@mantine/spotlight": "^8.3.13",
|
|
33
32
|
"@tabler/icons-react": "^3.36.1",
|
|
34
|
-
"alepha": "0.15.
|
|
33
|
+
"alepha": "0.15.2",
|
|
35
34
|
"dayjs": "^1.11.19"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
|
-
"@biomejs/biome": "^2.3.
|
|
39
|
-
"react": "^19.2.
|
|
40
|
-
"react-dom": "^19.2.
|
|
37
|
+
"@biomejs/biome": "^2.3.13",
|
|
38
|
+
"react": "^19.2.4",
|
|
39
|
+
"react-dom": "^19.2.4",
|
|
41
40
|
"typescript": "^5.9.3",
|
|
42
41
|
"vite": "^7.3.1",
|
|
43
42
|
"vitest": "^4.0.18"
|
package/src/admin/AdminRouter.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ReactAuth } from "@alepha/react/auth";
|
|
2
|
-
import { $page, ReactRouter, Redirection } from "@alepha/react/router";
|
|
3
1
|
import type { AdminShellProps } from "@alepha/ui";
|
|
4
2
|
import { AuthRouter } from "@alepha/ui/auth";
|
|
5
3
|
import {
|
|
@@ -21,6 +19,8 @@ import type {
|
|
|
21
19
|
AdminSessionController,
|
|
22
20
|
AdminUserController,
|
|
23
21
|
} from "alepha/api/users";
|
|
22
|
+
import { ReactAuth } from "alepha/react/auth";
|
|
23
|
+
import { $page, ReactRouter, Redirection } from "alepha/react/router";
|
|
24
24
|
import { $client } from "alepha/server/links";
|
|
25
25
|
|
|
26
26
|
export class AdminRouter {
|
package/src/admin/MainRouter.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $page } from "@alepha/react/router";
|
|
2
1
|
import { AlephaMantineProvider } from "@alepha/ui";
|
|
3
2
|
import { AuthRouter } from "@alepha/ui/auth";
|
|
4
3
|
import { $inject } from "alepha";
|
|
4
|
+
import { $page } from "alepha/react/router";
|
|
5
5
|
import { AdminRouter } from "./AdminRouter.ts";
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
|
-
import { useRouter } from "@alepha/react/router";
|
|
4
1
|
import { DataTable, Flex, Text } from "@alepha/ui";
|
|
5
2
|
import { Badge, Group, Stack, Tooltip } from "@mantine/core";
|
|
6
3
|
import {
|
|
@@ -12,6 +9,9 @@ import {
|
|
|
12
9
|
} from "@tabler/icons-react";
|
|
13
10
|
import { type Page, t } from "alepha";
|
|
14
11
|
import type { AdminAuditController, AuditEntity } from "alepha/api/audits";
|
|
12
|
+
import { useClient } from "alepha/react";
|
|
13
|
+
import { useI18n } from "alepha/react/i18n";
|
|
14
|
+
import { useRouter } from "alepha/react/router";
|
|
15
15
|
import type { AdminRouter } from "../../AdminRouter.ts";
|
|
16
16
|
|
|
17
17
|
export interface AdminAuditsProps {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
1
|
import { DataTable, Flex, Text } from "@alepha/ui";
|
|
4
2
|
import { Badge } from "@mantine/core";
|
|
5
3
|
import { type Page, t } from "alepha";
|
|
6
4
|
import { type FileController, type FileEntity, files } from "alepha/api/files";
|
|
5
|
+
import { useClient } from "alepha/react";
|
|
6
|
+
import { useI18n } from "alepha/react/i18n";
|
|
7
7
|
|
|
8
8
|
const AdminFiles = () => {
|
|
9
9
|
const client = useClient<FileController>();
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
1
|
import { DataTable, Flex, Text } from "@alepha/ui";
|
|
4
2
|
import { Badge } from "@mantine/core";
|
|
5
3
|
import {
|
|
@@ -14,6 +12,8 @@ import {
|
|
|
14
12
|
type JobExecutionEntity,
|
|
15
13
|
jobExecutions,
|
|
16
14
|
} from "alepha/api/jobs";
|
|
15
|
+
import { useClient } from "alepha/react";
|
|
16
|
+
import { useI18n } from "alepha/react/i18n";
|
|
17
17
|
|
|
18
18
|
const AdminJobs = () => {
|
|
19
19
|
const client = useClient<AdminJobController>();
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
1
|
import { DataTable, Flex, Text } from "@alepha/ui";
|
|
4
2
|
import { Badge, Tooltip } from "@mantine/core";
|
|
5
3
|
import {
|
|
@@ -14,6 +12,8 @@ import type {
|
|
|
14
12
|
AdminNotificationController,
|
|
15
13
|
NotificationEntity,
|
|
16
14
|
} from "alepha/api/notifications";
|
|
15
|
+
import { useClient } from "alepha/react";
|
|
16
|
+
import { useI18n } from "alepha/react/i18n";
|
|
17
17
|
|
|
18
18
|
const AdminNotifications = () => {
|
|
19
19
|
const client = useClient<AdminNotificationController>();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
1
|
import { Flex, Text } from "@alepha/ui";
|
|
3
2
|
import { Loader, Stack } from "@mantine/core";
|
|
4
3
|
import { IconSettings } from "@tabler/icons-react";
|
|
@@ -7,6 +6,7 @@ import type {
|
|
|
7
6
|
ConfigTreeNode,
|
|
8
7
|
Parameter,
|
|
9
8
|
} from "alepha/api/parameters";
|
|
9
|
+
import { useClient } from "alepha/react";
|
|
10
10
|
import { useCallback, useEffect, useState } from "react";
|
|
11
11
|
import ParameterDetails from "./ParameterDetails.tsx";
|
|
12
12
|
import ParameterHistory from "./ParameterHistory.tsx";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { useForm } from "@alepha/react/form";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
1
|
import { Flex, Text, TypeForm } from "@alepha/ui";
|
|
4
2
|
import {
|
|
5
3
|
Badge,
|
|
@@ -13,6 +11,8 @@ import {
|
|
|
13
11
|
} from "@mantine/core";
|
|
14
12
|
import { IconClock, IconSettings } from "@tabler/icons-react";
|
|
15
13
|
import { jsonSchemaToTypeBox, type TObject } from "alepha";
|
|
14
|
+
import { useForm } from "alepha/react/form";
|
|
15
|
+
import { useI18n } from "alepha/react/i18n";
|
|
16
16
|
import { useMemo } from "react";
|
|
17
17
|
import { type ConfigValue, formatJson } from "./types.ts";
|
|
18
18
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
2
1
|
import { ActionButton, Flex, Text } from "@alepha/ui";
|
|
3
2
|
import {
|
|
4
3
|
Badge,
|
|
@@ -11,6 +10,7 @@ import {
|
|
|
11
10
|
} from "@mantine/core";
|
|
12
11
|
import { IconHistory } from "@tabler/icons-react";
|
|
13
12
|
import type { Parameter } from "alepha/api/parameters";
|
|
13
|
+
import { useI18n } from "alepha/react/i18n";
|
|
14
14
|
import { getStatusColor } from "./types.ts";
|
|
15
15
|
|
|
16
16
|
export interface ParameterHistoryProps {
|
|
@@ -3,11 +3,17 @@ import type { Parameter } from "alepha/api/parameters";
|
|
|
3
3
|
export interface ConfigValue {
|
|
4
4
|
current?: Parameter;
|
|
5
5
|
next?: Parameter;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Default value from the registered $config primitive.
|
|
8
|
+
*/
|
|
7
9
|
defaultValue?: unknown;
|
|
8
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Current in-memory value (may be default if never saved).
|
|
12
|
+
*/
|
|
9
13
|
currentValue?: unknown;
|
|
10
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* TypeBox/JSON schema for the configuration (as JSON from API).
|
|
16
|
+
*/
|
|
11
17
|
schema?: Record<string, unknown>;
|
|
12
18
|
}
|
|
13
19
|
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
|
-
import { useRouter } from "@alepha/react/router";
|
|
4
1
|
import { ActionButton, DataTable, Flex, Text } from "@alepha/ui";
|
|
5
2
|
import { Badge, Group } from "@mantine/core";
|
|
6
3
|
import {
|
|
@@ -15,6 +12,9 @@ import {
|
|
|
15
12
|
type SessionEntity,
|
|
16
13
|
sessions,
|
|
17
14
|
} from "alepha/api/users";
|
|
15
|
+
import { useClient } from "alepha/react";
|
|
16
|
+
import { useI18n } from "alepha/react/i18n";
|
|
17
|
+
import { useRouter } from "alepha/react/router";
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import type { AdminRouter } from "../../AdminRouter.ts";
|
|
20
20
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useRouter } from "@alepha/react/router";
|
|
2
1
|
import { ActionButton } from "@alepha/ui";
|
|
3
2
|
import {
|
|
4
3
|
ActionIcon,
|
|
@@ -16,6 +15,7 @@ import {
|
|
|
16
15
|
IconChevronLeft,
|
|
17
16
|
IconExternalLink,
|
|
18
17
|
} from "@tabler/icons-react";
|
|
18
|
+
import { useRouter } from "alepha/react/router";
|
|
19
19
|
import type { ComponentType, ReactNode } from "react";
|
|
20
20
|
|
|
21
21
|
export interface AdminResourceAction {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
|
-
import { useRouterState } from "@alepha/react/router";
|
|
4
1
|
import { DataTable, Flex, Text } from "@alepha/ui";
|
|
5
2
|
import { Badge, Group, Tooltip } from "@mantine/core";
|
|
6
3
|
import {
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
} from "@tabler/icons-react";
|
|
12
9
|
import { type Page, t } from "alepha";
|
|
13
10
|
import type { AdminAuditController, AuditEntity } from "alepha/api/audits";
|
|
11
|
+
import { useClient } from "alepha/react";
|
|
12
|
+
import { useI18n } from "alepha/react/i18n";
|
|
13
|
+
import { useRouterState } from "alepha/react/router";
|
|
14
14
|
|
|
15
15
|
export interface AdminUserAuditsProps {
|
|
16
16
|
userRealmName?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useForm } from "@alepha/react/form";
|
|
3
|
-
import { useRouter } from "@alepha/react/router";
|
|
4
1
|
import { ActionButton, Control, Flex } from "@alepha/ui";
|
|
5
2
|
import { Card, Stack, Text } from "@mantine/core";
|
|
6
3
|
import { t } from "alepha";
|
|
7
4
|
import type { AdminUserController } from "alepha/api/users";
|
|
5
|
+
import { useClient } from "alepha/react";
|
|
6
|
+
import { useForm } from "alepha/react/form";
|
|
7
|
+
import { useRouter } from "alepha/react/router";
|
|
8
8
|
import type { AdminRouter } from "../../AdminRouter.ts";
|
|
9
9
|
|
|
10
10
|
export interface AdminUserCreateProps {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useForm } from "@alepha/react/form";
|
|
3
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
4
|
-
import { useRouterState } from "@alepha/react/router";
|
|
5
1
|
import { ActionButton, ClipboardButton, Control } from "@alepha/ui";
|
|
6
2
|
import {
|
|
7
3
|
Badge,
|
|
@@ -30,6 +26,10 @@ import {
|
|
|
30
26
|
} from "@tabler/icons-react";
|
|
31
27
|
import { t } from "alepha";
|
|
32
28
|
import type { AdminUserController, UserEntity } from "alepha/api/users";
|
|
29
|
+
import { useClient } from "alepha/react";
|
|
30
|
+
import { useForm } from "alepha/react/form";
|
|
31
|
+
import { useI18n } from "alepha/react/i18n";
|
|
32
|
+
import { useRouterState } from "alepha/react/router";
|
|
33
33
|
import { type ReactNode, useEffect, useState } from "react";
|
|
34
34
|
|
|
35
35
|
export interface AdminUserDetailsProps {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { NestedView, useRouter, useRouterState } from "@alepha/react/router";
|
|
3
1
|
import { Box, Center, Loader, Stack, Text } from "@mantine/core";
|
|
4
2
|
import {
|
|
5
3
|
IconBan,
|
|
@@ -14,6 +12,8 @@ import {
|
|
|
14
12
|
IconUser,
|
|
15
13
|
} from "@tabler/icons-react";
|
|
16
14
|
import type { AdminUserController, UserEntity } from "alepha/api/users";
|
|
15
|
+
import { useClient } from "alepha/react";
|
|
16
|
+
import { NestedView, useRouter, useRouterState } from "alepha/react/router";
|
|
17
17
|
import { useEffect, useState } from "react";
|
|
18
18
|
import type { AdminRouter } from "../../AdminRouter.ts";
|
|
19
19
|
import AdminResourceHeader from "../shared/AdminResourceHeader.tsx";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
|
-
import { useRouterState } from "@alepha/react/router";
|
|
4
1
|
import { ActionButton, DataTable, Flex, Text } from "@alepha/ui";
|
|
5
2
|
import { Badge, Group } from "@mantine/core";
|
|
6
3
|
import {
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
} from "@tabler/icons-react";
|
|
12
9
|
import { type Page, t } from "alepha";
|
|
13
10
|
import type { AdminSessionController, SessionEntity } from "alepha/api/users";
|
|
11
|
+
import { useClient } from "alepha/react";
|
|
12
|
+
import { useI18n } from "alepha/react/i18n";
|
|
13
|
+
import { useRouterState } from "alepha/react/router";
|
|
14
14
|
import { useState } from "react";
|
|
15
15
|
|
|
16
16
|
export interface AdminUserSessionsProps {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useRouter, useRouterState } from "@alepha/react/router";
|
|
3
1
|
import { ActionButton, Flex, Text } from "@alepha/ui";
|
|
4
2
|
import { Alert, Card, Group, Loader, Stack } from "@mantine/core";
|
|
5
3
|
import {
|
|
@@ -13,6 +11,8 @@ import type {
|
|
|
13
11
|
UserController,
|
|
14
12
|
UserEntity,
|
|
15
13
|
} from "alepha/api/users";
|
|
14
|
+
import { useClient } from "alepha/react";
|
|
15
|
+
import { useRouter, useRouterState } from "alepha/react/router";
|
|
16
16
|
import { useEffect, useState } from "react";
|
|
17
17
|
import type { AdminRouter } from "../../AdminRouter.ts";
|
|
18
18
|
|
|
@@ -76,7 +76,7 @@ const AdminUserSettings = (props: AdminUserSettingsProps) => {
|
|
|
76
76
|
query: {
|
|
77
77
|
userRealmName: props.userRealmName,
|
|
78
78
|
method: "link",
|
|
79
|
-
verifyUrl: `${window.location.origin}/verify-email`,
|
|
79
|
+
verifyUrl: `${window.location.origin}/auth/verify-email`,
|
|
80
80
|
},
|
|
81
81
|
body: { email: user.email },
|
|
82
82
|
});
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { useClient } from "@alepha/react";
|
|
2
|
-
import { useI18n } from "@alepha/react/i18n";
|
|
3
|
-
import { useRouter } from "@alepha/react/router";
|
|
4
1
|
import { DataTable, Text } from "@alepha/ui";
|
|
5
2
|
import { Badge, Flex, Group } from "@mantine/core";
|
|
6
3
|
import { IconCheck, IconUsersPlus, IconX } from "@tabler/icons-react";
|
|
@@ -10,6 +7,9 @@ import {
|
|
|
10
7
|
type UserEntity,
|
|
11
8
|
users,
|
|
12
9
|
} from "alepha/api/users";
|
|
10
|
+
import { useClient } from "alepha/react";
|
|
11
|
+
import { useI18n } from "alepha/react/i18n";
|
|
12
|
+
import { useRouter } from "alepha/react/router";
|
|
13
13
|
import type { AdminRouter } from "../../AdminRouter.ts";
|
|
14
14
|
|
|
15
15
|
export interface AdminUsersProps {
|
package/src/admin/index.ts
CHANGED
|
@@ -36,7 +36,22 @@ export { MainRouter } from "./MainRouter.ts";
|
|
|
36
36
|
// ---------------------------------------------------------------------------------------------------------------------
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* | type | quality | stability |
|
|
40
|
+
* |------|---------|-----------|
|
|
41
|
+
* | frontend | rare | experimental |
|
|
42
|
+
*
|
|
43
|
+
* Admin panel UI components.
|
|
44
|
+
*
|
|
45
|
+
* **Features:**
|
|
46
|
+
* - AdminLayout for admin pages
|
|
47
|
+
* - AdminUsers with user list, create, details, settings, sessions, audits
|
|
48
|
+
* - AdminFiles for file management
|
|
49
|
+
* - AdminJobs for job monitoring
|
|
50
|
+
* - AdminNotifications for notification management
|
|
51
|
+
* - AdminParameters for configuration management
|
|
52
|
+
* - AdminSessions for session management
|
|
53
|
+
* - AdminAudits for audit log viewing
|
|
54
|
+
* - AdminVerifications for verification management
|
|
40
55
|
*
|
|
41
56
|
* @module alepha.ui.admin
|
|
42
57
|
*/
|
package/src/auth/AuthI18n.ts
CHANGED