@alepha/ui 0.13.3 → 0.13.5
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/AdminFiles-B-0UcHVV.js +3 -0
- package/dist/admin/{AdminFiles-BjofP3OC.js → AdminFiles-B_jfB_Py.js} +4 -4
- package/dist/admin/{AdminFiles-BjofP3OC.js.map → AdminFiles-B_jfB_Py.js.map} +1 -1
- package/dist/admin/{AdminLayout-JakF7ESb.js → AdminLayout-BMtiXAzS.js} +37 -29
- package/dist/admin/AdminLayout-BMtiXAzS.js.map +1 -0
- package/dist/admin/AdminLayout-BNo3GoHR.js +3 -0
- package/dist/admin/{AdminNotifications-BPrxALdS.js → AdminNotifications-BFEjqpqx.js} +3 -3
- package/dist/admin/{AdminNotifications-BPrxALdS.js.map → AdminNotifications-BFEjqpqx.js.map} +1 -1
- package/dist/admin/AdminNotifications-DJs2ZjNj.js +3 -0
- package/dist/admin/{AdminSessions-CMmBtbSw.js → AdminSessions-D7DESfWK.js} +4 -4
- package/dist/admin/{AdminSessions-CMmBtbSw.js.map → AdminSessions-D7DESfWK.js.map} +1 -1
- package/dist/admin/AdminSessions-PS2M8iXi.js +3 -0
- package/dist/admin/{AdminUserCreate-Coa_yi6m.js → AdminUserCreate-Bhxsn92l.js} +3 -3
- package/dist/admin/{AdminUserCreate-Coa_yi6m.js.map → AdminUserCreate-Bhxsn92l.js.map} +1 -1
- package/dist/admin/{AdminUserCreate-DjiCcAk0.js → AdminUserCreate-CYI_xW5T.js} +1 -1
- package/dist/admin/{AdminUserDetails-BCFwOm9w.js → AdminUserDetails-C2y1Ig4n.js} +5 -5
- package/dist/admin/{AdminUserDetails-BCFwOm9w.js.map → AdminUserDetails-C2y1Ig4n.js.map} +1 -1
- package/dist/admin/{AdminUserDetails-C5yeJNa3.js → AdminUserDetails-Cmzx9HxH.js} +1 -1
- package/dist/admin/{AdminUserLayout-B8ga5QvP.js → AdminUserLayout-DGSf612u.js} +1 -1
- package/dist/admin/{AdminUserLayout-CR2OqV9Z.js → AdminUserLayout-sW6cjZL0.js} +3 -3
- package/dist/admin/{AdminUserLayout-CR2OqV9Z.js.map → AdminUserLayout-sW6cjZL0.js.map} +1 -1
- package/dist/admin/{AdminUserSessions-Bcf6-rjG.js → AdminUserSessions-CvN15wPe.js} +4 -4
- package/dist/admin/{AdminUserSessions-Bcf6-rjG.js.map → AdminUserSessions-CvN15wPe.js.map} +1 -1
- package/dist/admin/AdminUserSessions-D-aOcZgV.js +3 -0
- package/dist/admin/AdminUserSettings-CEMhIYrI.js +3 -0
- package/dist/admin/{AdminUserSettings-DRYVdW6S.js → AdminUserSettings-DvaaxgcV.js} +3 -3
- package/dist/admin/{AdminUserSettings-DRYVdW6S.js.map → AdminUserSettings-DvaaxgcV.js.map} +1 -1
- package/dist/admin/{AdminUsers-IN_2yHKt.js → AdminUsers-BR3C-jrg.js} +3 -3
- package/dist/admin/{AdminUsers-IN_2yHKt.js.map → AdminUsers-BR3C-jrg.js.map} +1 -1
- package/dist/admin/AdminUsers-CMW9vN09.js +3 -0
- package/dist/admin/index.d.ts +1169 -1163
- package/dist/admin/index.js +31 -29
- package/dist/admin/index.js.map +1 -1
- package/dist/auth/{AuthLayout-BSL8ZHgr.js → AuthLayout-CzwUKD9y.js} +2 -2
- package/dist/auth/{AuthLayout-BSL8ZHgr.js.map → AuthLayout-CzwUKD9y.js.map} +1 -1
- package/dist/auth/{IconGoogle-v_58os2T.js → IconGoogle-Cm5d8J3f.js} +3 -3
- package/dist/auth/{IconGoogle-v_58os2T.js.map → IconGoogle-Cm5d8J3f.js.map} +1 -1
- package/dist/auth/{Login-kBfaRgKG.js → Login-7HlBjDeV.js} +4 -4
- package/dist/auth/{Login-kBfaRgKG.js.map → Login-7HlBjDeV.js.map} +1 -1
- package/dist/auth/Login-C-e27DGb.js +4 -0
- package/dist/auth/{Register-BxJmOqpF.js → Register-CuQr3kgi.js} +3 -3
- package/dist/auth/{Register-BxJmOqpF.js.map → Register-CuQr3kgi.js.map} +1 -1
- package/dist/auth/Register-DbvXwgbG.js +4 -0
- package/dist/auth/{ResetPassword-BhyZ9ek4.js → ResetPassword-BzU-cdd4.js} +2 -2
- package/dist/auth/{ResetPassword-BhyZ9ek4.js.map → ResetPassword-BzU-cdd4.js.map} +1 -1
- package/dist/auth/ResetPassword-DSvrdpaA.js +3 -0
- package/dist/auth/VerifyEmail-Dc9ABKUw.js +3 -0
- package/dist/auth/{VerifyEmail-DeLct3oQ.js → VerifyEmail-R79sSej_.js} +2 -2
- package/dist/auth/{VerifyEmail-DeLct3oQ.js.map → VerifyEmail-R79sSej_.js.map} +1 -1
- package/dist/auth/index.d.ts +534 -534
- package/dist/auth/index.js +15 -14
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +187 -187
- package/dist/core/index.js +51 -59
- package/dist/core/index.js.map +1 -1
- package/package.json +5 -4
- package/src/admin/AdminSidebar.ts +31 -0
- package/src/admin/components/AdminLayout.tsx +5 -26
- package/src/admin/index.ts +4 -1
- package/src/auth/components/Login.tsx +1 -1
- package/src/auth/components/buttons/UserButton.tsx +7 -1
- package/src/core/components/buttons/ActionButton.tsx +1 -0
- package/src/core/components/layout/Sidebar.tsx +0 -2
- package/src/core/hooks/useTheme.ts +2 -2
- package/src/core/providers/ThemeProvider.ts +11 -8
- package/src/core/themes/midnight.ts +1 -7
- package/styles.css +84 -0
- package/dist/admin/AdminFiles-DldZB7oo.js +0 -3
- package/dist/admin/AdminLayout-JakF7ESb.js.map +0 -1
- package/dist/admin/AdminLayout-qNsIyl30.js +0 -3
- package/dist/admin/AdminNotifications-DV-35Fi3.js +0 -3
- package/dist/admin/AdminSessions-Df2VYzlE.js +0 -3
- package/dist/admin/AdminUserSessions-A_5KkqTY.js +0 -3
- package/dist/admin/AdminUserSettings-DAsAhFjX.js +0 -3
- package/dist/admin/AdminUsers-Dd9a5UqO.js +0 -3
- package/dist/auth/Login-DDsyCNAA.js +0 -4
- package/dist/auth/Register-D10MnlQc.js +0 -4
- package/dist/auth/ResetPassword-llBG-STp.js +0 -3
- package/dist/auth/VerifyEmail-BvOG-IUC.js +0 -3
package/dist/core/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { parseQueryString } from "alepha/orm";
|
|
|
17
17
|
import { useDebouncedCallback } from "@mantine/hooks";
|
|
18
18
|
import { DateTimeProvider } from "alepha/datetime";
|
|
19
19
|
|
|
20
|
-
//#region src/core/themes/aurora.ts
|
|
20
|
+
//#region ../../src/core/themes/aurora.ts
|
|
21
21
|
const auroraTheme = {
|
|
22
22
|
id: "aurora",
|
|
23
23
|
label: "Aurora",
|
|
@@ -147,7 +147,7 @@ const auroraTheme = {
|
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
//#endregion
|
|
150
|
-
//#region src/core/themes/crystal.ts
|
|
150
|
+
//#region ../../src/core/themes/crystal.ts
|
|
151
151
|
const crystalTheme = {
|
|
152
152
|
id: "crystal",
|
|
153
153
|
label: "Crystal",
|
|
@@ -277,7 +277,7 @@ const crystalTheme = {
|
|
|
277
277
|
};
|
|
278
278
|
|
|
279
279
|
//#endregion
|
|
280
|
-
//#region src/core/themes/default.ts
|
|
280
|
+
//#region ../../src/core/themes/default.ts
|
|
281
281
|
const defaultTheme = {
|
|
282
282
|
id: "default",
|
|
283
283
|
label: "Default",
|
|
@@ -285,7 +285,7 @@ const defaultTheme = {
|
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
//#endregion
|
|
288
|
-
//#region src/core/themes/ember.ts
|
|
288
|
+
//#region ../../src/core/themes/ember.ts
|
|
289
289
|
const emberTheme = {
|
|
290
290
|
id: "ember",
|
|
291
291
|
label: "Ember",
|
|
@@ -415,7 +415,7 @@ const emberTheme = {
|
|
|
415
415
|
};
|
|
416
416
|
|
|
417
417
|
//#endregion
|
|
418
|
-
//#region src/core/themes/midnight.ts
|
|
418
|
+
//#region ../../src/core/themes/midnight.ts
|
|
419
419
|
const midnightTheme = {
|
|
420
420
|
id: "midnight",
|
|
421
421
|
label: "Midnight",
|
|
@@ -458,13 +458,6 @@ const midnightTheme = {
|
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
|
-
fontSizes: {
|
|
462
|
-
xs: "0.75rem",
|
|
463
|
-
sm: "0.875rem",
|
|
464
|
-
md: "0.875rem",
|
|
465
|
-
lg: "1rem",
|
|
466
|
-
xl: "1.25rem"
|
|
467
|
-
},
|
|
468
461
|
radius: {
|
|
469
462
|
xs: "3px",
|
|
470
463
|
sm: "6px",
|
|
@@ -538,7 +531,7 @@ const midnightTheme = {
|
|
|
538
531
|
};
|
|
539
532
|
|
|
540
533
|
//#endregion
|
|
541
|
-
//#region src/core/themes/remoraid.ts
|
|
534
|
+
//#region ../../src/core/themes/remoraid.ts
|
|
542
535
|
const remoraidTheme = {
|
|
543
536
|
id: "remoraid",
|
|
544
537
|
label: "Remoraid",
|
|
@@ -815,7 +808,7 @@ const remoraidTheme = {
|
|
|
815
808
|
};
|
|
816
809
|
|
|
817
810
|
//#endregion
|
|
818
|
-
//#region src/core/themes/slate.ts
|
|
811
|
+
//#region ../../src/core/themes/slate.ts
|
|
819
812
|
const slateTheme = {
|
|
820
813
|
id: "slate",
|
|
821
814
|
label: "Slate",
|
|
@@ -916,15 +909,15 @@ const slateTheme = {
|
|
|
916
909
|
};
|
|
917
910
|
|
|
918
911
|
//#endregion
|
|
919
|
-
//#region src/core/providers/ThemeProvider.ts
|
|
920
|
-
const
|
|
912
|
+
//#region ../../src/core/providers/ThemeProvider.ts
|
|
913
|
+
const mantineThemeAtom = $atom({
|
|
921
914
|
name: "alepha.ui.theme",
|
|
922
915
|
schema: t.object({ id: t.string() }),
|
|
923
916
|
default: { id: "default" }
|
|
924
917
|
});
|
|
925
918
|
var ThemeProvider = class {
|
|
926
919
|
alepha = $inject(Alepha);
|
|
927
|
-
themeCookie = $cookie(
|
|
920
|
+
themeCookie = $cookie(mantineThemeAtom);
|
|
928
921
|
themes = [
|
|
929
922
|
defaultTheme,
|
|
930
923
|
remoraidTheme,
|
|
@@ -939,24 +932,24 @@ var ThemeProvider = class {
|
|
|
939
932
|
});
|
|
940
933
|
setTheme(theme) {
|
|
941
934
|
this.themeCookie.set(theme);
|
|
942
|
-
this.alepha.store.set(
|
|
935
|
+
this.alepha.store.set(mantineThemeAtom, theme);
|
|
943
936
|
if (typeof document === "undefined") return;
|
|
944
937
|
document.documentElement.removeAttribute("data-theme");
|
|
945
938
|
if (theme.id !== "default") document.documentElement.setAttribute("data-theme", theme.id);
|
|
946
939
|
}
|
|
947
940
|
getTheme() {
|
|
948
941
|
try {
|
|
949
|
-
return this.themeCookie.get() ?? this.alepha.store.get(
|
|
942
|
+
return this.themeCookie.get() ?? this.alepha.store.get(mantineThemeAtom) ?? mantineThemeAtom.options.default;
|
|
950
943
|
} catch {
|
|
951
|
-
return this.alepha.store.get(
|
|
944
|
+
return this.alepha.store.get(mantineThemeAtom) ?? mantineThemeAtom.options.default;
|
|
952
945
|
}
|
|
953
946
|
}
|
|
954
947
|
};
|
|
955
948
|
|
|
956
949
|
//#endregion
|
|
957
|
-
//#region src/core/hooks/useTheme.ts
|
|
950
|
+
//#region ../../src/core/hooks/useTheme.ts
|
|
958
951
|
const useTheme = () => {
|
|
959
|
-
useStore(
|
|
952
|
+
useStore(mantineThemeAtom);
|
|
960
953
|
const themeService = useInject(ThemeProvider);
|
|
961
954
|
const currentTheme = themeService.getTheme();
|
|
962
955
|
const fullTheme = themeService.themes.find((t$1) => t$1.id === currentTheme.id) ?? themeService.themes[0];
|
|
@@ -967,7 +960,7 @@ const useTheme = () => {
|
|
|
967
960
|
};
|
|
968
961
|
|
|
969
962
|
//#endregion
|
|
970
|
-
//#region src/core/services/ToastService.tsx
|
|
963
|
+
//#region ../../src/core/services/ToastService.tsx
|
|
971
964
|
var ToastService = class {
|
|
972
965
|
raw = notifications;
|
|
973
966
|
options = { default: {
|
|
@@ -1026,7 +1019,7 @@ var ToastService = class {
|
|
|
1026
1019
|
};
|
|
1027
1020
|
|
|
1028
1021
|
//#endregion
|
|
1029
|
-
//#region src/core/hooks/useToast.ts
|
|
1022
|
+
//#region ../../src/core/hooks/useToast.ts
|
|
1030
1023
|
/**
|
|
1031
1024
|
* Use this hook to access the Toast Service for showing notifications.
|
|
1032
1025
|
*
|
|
@@ -1042,7 +1035,7 @@ const useToast = () => {
|
|
|
1042
1035
|
};
|
|
1043
1036
|
|
|
1044
1037
|
//#endregion
|
|
1045
|
-
//#region src/core/constants/ui.ts
|
|
1038
|
+
//#region ../../src/core/constants/ui.ts
|
|
1046
1039
|
const ui = {
|
|
1047
1040
|
colors: {
|
|
1048
1041
|
transparent: "transparent",
|
|
@@ -1061,7 +1054,7 @@ const ui = {
|
|
|
1061
1054
|
};
|
|
1062
1055
|
|
|
1063
1056
|
//#endregion
|
|
1064
|
-
//#region src/core/components/buttons/ActionButton.tsx
|
|
1057
|
+
//#region ../../src/core/components/buttons/ActionButton.tsx
|
|
1065
1058
|
const ActionMenuItem = (props) => {
|
|
1066
1059
|
const { item, index } = props;
|
|
1067
1060
|
const router = useRouter();
|
|
@@ -1106,6 +1099,7 @@ const ActionButton = (_props) => {
|
|
|
1106
1099
|
};
|
|
1107
1100
|
const { tooltip, menu, icon, ...restProps } = props;
|
|
1108
1101
|
restProps.color ??= "gray";
|
|
1102
|
+
restProps.c ??= "var(--mantine-color-text)";
|
|
1109
1103
|
if (props.icon) {
|
|
1110
1104
|
const icon$1 = isComponentType(props.icon) ? /* @__PURE__ */ jsx(props.icon, { size: ui.sizes.icon.md }) : /* @__PURE__ */ jsx(ThemeIcon, {
|
|
1111
1105
|
w: 24,
|
|
@@ -1340,7 +1334,7 @@ const renderIcon = (icon) => {
|
|
|
1340
1334
|
};
|
|
1341
1335
|
|
|
1342
1336
|
//#endregion
|
|
1343
|
-
//#region src/core/components/layout/Omnibar.tsx
|
|
1337
|
+
//#region ../../src/core/components/layout/Omnibar.tsx
|
|
1344
1338
|
const Omnibar = (props) => {
|
|
1345
1339
|
const shortcut = props.shortcut ?? "mod+K";
|
|
1346
1340
|
const searchPlaceholder = props.searchPlaceholder ?? "Search...";
|
|
@@ -1373,7 +1367,7 @@ const Omnibar = (props) => {
|
|
|
1373
1367
|
var Omnibar_default = Omnibar;
|
|
1374
1368
|
|
|
1375
1369
|
//#endregion
|
|
1376
|
-
//#region src/core/components/layout/AlephaMantineProvider.tsx
|
|
1370
|
+
//#region ../../src/core/components/layout/AlephaMantineProvider.tsx
|
|
1377
1371
|
const AlephaMantineProvider = (props) => {
|
|
1378
1372
|
const toast = useToast();
|
|
1379
1373
|
const [theme] = useTheme();
|
|
@@ -1414,7 +1408,7 @@ const AlephaMantineProvider = (props) => {
|
|
|
1414
1408
|
var AlephaMantineProvider_default = AlephaMantineProvider;
|
|
1415
1409
|
|
|
1416
1410
|
//#endregion
|
|
1417
|
-
//#region src/core/RootRouter.ts
|
|
1411
|
+
//#region ../../src/core/RootRouter.ts
|
|
1418
1412
|
var RootRouter = class {
|
|
1419
1413
|
root = $page({
|
|
1420
1414
|
path: "/",
|
|
@@ -1423,7 +1417,7 @@ var RootRouter = class {
|
|
|
1423
1417
|
};
|
|
1424
1418
|
|
|
1425
1419
|
//#endregion
|
|
1426
|
-
//#region src/core/components/data/JsonViewer.tsx
|
|
1420
|
+
//#region ../../src/core/components/data/JsonViewer.tsx
|
|
1427
1421
|
const getSizeConfig = (size = "sm") => {
|
|
1428
1422
|
const configs = {
|
|
1429
1423
|
xs: {
|
|
@@ -1711,7 +1705,7 @@ const JsonViewer = ({ data, defaultExpanded = true, maxDepth = 10, copyable = tr
|
|
|
1711
1705
|
var JsonViewer_default = JsonViewer;
|
|
1712
1706
|
|
|
1713
1707
|
//#endregion
|
|
1714
|
-
//#region src/core/components/dialogs/AlertDialog.tsx
|
|
1708
|
+
//#region ../../src/core/components/dialogs/AlertDialog.tsx
|
|
1715
1709
|
const AlertDialog = ({ options, onClose }) => /* @__PURE__ */ jsxs(Fragment, { children: [options?.message && /* @__PURE__ */ jsx(Text$1, {
|
|
1716
1710
|
mb: "md",
|
|
1717
1711
|
children: options.message
|
|
@@ -1725,7 +1719,7 @@ const AlertDialog = ({ options, onClose }) => /* @__PURE__ */ jsxs(Fragment, { c
|
|
|
1725
1719
|
var AlertDialog_default = AlertDialog;
|
|
1726
1720
|
|
|
1727
1721
|
//#endregion
|
|
1728
|
-
//#region src/core/components/dialogs/ConfirmDialog.tsx
|
|
1722
|
+
//#region ../../src/core/components/dialogs/ConfirmDialog.tsx
|
|
1729
1723
|
const ConfirmDialog = ({ options, onConfirm }) => /* @__PURE__ */ jsxs(Fragment, { children: [options?.message && /* @__PURE__ */ jsx(Text$1, {
|
|
1730
1724
|
mb: "md",
|
|
1731
1725
|
children: options.message
|
|
@@ -1744,7 +1738,7 @@ const ConfirmDialog = ({ options, onConfirm }) => /* @__PURE__ */ jsxs(Fragment,
|
|
|
1744
1738
|
var ConfirmDialog_default = ConfirmDialog;
|
|
1745
1739
|
|
|
1746
1740
|
//#endregion
|
|
1747
|
-
//#region src/core/components/dialogs/PromptDialog.tsx
|
|
1741
|
+
//#region ../../src/core/components/dialogs/PromptDialog.tsx
|
|
1748
1742
|
const PromptDialog = ({ options, onSubmit }) => {
|
|
1749
1743
|
const [value, setValue] = useState(options?.defaultValue || "");
|
|
1750
1744
|
const inputRef = useRef(null);
|
|
@@ -1789,7 +1783,7 @@ const PromptDialog = ({ options, onSubmit }) => {
|
|
|
1789
1783
|
var PromptDialog_default = PromptDialog;
|
|
1790
1784
|
|
|
1791
1785
|
//#endregion
|
|
1792
|
-
//#region src/core/services/DialogService.tsx
|
|
1786
|
+
//#region ../../src/core/services/DialogService.tsx
|
|
1793
1787
|
var DialogService = class {
|
|
1794
1788
|
options = { default: {
|
|
1795
1789
|
centered: true,
|
|
@@ -1917,7 +1911,7 @@ var DialogService = class {
|
|
|
1917
1911
|
};
|
|
1918
1912
|
|
|
1919
1913
|
//#endregion
|
|
1920
|
-
//#region src/core/components/buttons/BurgerButton.tsx
|
|
1914
|
+
//#region ../../src/core/components/buttons/BurgerButton.tsx
|
|
1921
1915
|
const BurgerButton = (props) => {
|
|
1922
1916
|
const [opened, setOpened] = useStore("alepha.ui.sidebar.opened");
|
|
1923
1917
|
return /* @__PURE__ */ jsx(Burger, {
|
|
@@ -1931,7 +1925,7 @@ const BurgerButton = (props) => {
|
|
|
1931
1925
|
var BurgerButton_default = BurgerButton;
|
|
1932
1926
|
|
|
1933
1927
|
//#endregion
|
|
1934
|
-
//#region src/core/components/buttons/ClipboardButton.tsx
|
|
1928
|
+
//#region ../../src/core/components/buttons/ClipboardButton.tsx
|
|
1935
1929
|
const ClipboardButton = (props) => {
|
|
1936
1930
|
const { value, timeout = 2e3, copyLabel = "Copy", copiedLabel = "Copied", children, ...buttonProps } = props;
|
|
1937
1931
|
return /* @__PURE__ */ jsx(CopyButton, {
|
|
@@ -1953,7 +1947,7 @@ const ClipboardButton = (props) => {
|
|
|
1953
1947
|
var ClipboardButton_default = ClipboardButton;
|
|
1954
1948
|
|
|
1955
1949
|
//#endregion
|
|
1956
|
-
//#region src/core/components/buttons/DarkModeButton.tsx
|
|
1950
|
+
//#region ../../src/core/components/buttons/DarkModeButton.tsx
|
|
1957
1951
|
const DarkModeButton = (props) => {
|
|
1958
1952
|
const { setColorScheme } = useMantineColorScheme();
|
|
1959
1953
|
const computedColorScheme = useComputedColorScheme("light");
|
|
@@ -2003,7 +1997,7 @@ const DarkModeButton = (props) => {
|
|
|
2003
1997
|
var DarkModeButton_default = DarkModeButton;
|
|
2004
1998
|
|
|
2005
1999
|
//#endregion
|
|
2006
|
-
//#region src/core/components/buttons/LanguageButton.tsx
|
|
2000
|
+
//#region ../../src/core/components/buttons/LanguageButton.tsx
|
|
2007
2001
|
const LanguageButton = (props) => {
|
|
2008
2002
|
const i18n = useI18n();
|
|
2009
2003
|
return /* @__PURE__ */ jsx(ActionButton_default, {
|
|
@@ -2020,7 +2014,7 @@ const LanguageButton = (props) => {
|
|
|
2020
2014
|
var LanguageButton_default = LanguageButton;
|
|
2021
2015
|
|
|
2022
2016
|
//#endregion
|
|
2023
|
-
//#region src/core/components/buttons/OmnibarButton.tsx
|
|
2017
|
+
//#region ../../src/core/components/buttons/OmnibarButton.tsx
|
|
2024
2018
|
const OmnibarButton = (props) => {
|
|
2025
2019
|
return /* @__PURE__ */ jsx(ActionButton_default, {
|
|
2026
2020
|
variant: "default",
|
|
@@ -2054,7 +2048,7 @@ const OmnibarButton = (props) => {
|
|
|
2054
2048
|
var OmnibarButton_default = OmnibarButton;
|
|
2055
2049
|
|
|
2056
2050
|
//#endregion
|
|
2057
|
-
//#region src/core/components/buttons/ThemeButton.tsx
|
|
2051
|
+
//#region ../../src/core/components/buttons/ThemeButton.tsx
|
|
2058
2052
|
const ThemeButton = (props) => {
|
|
2059
2053
|
const [theme, setTheme] = useTheme();
|
|
2060
2054
|
const themes = useInject(ThemeProvider).themes;
|
|
@@ -2072,7 +2066,7 @@ const ThemeButton = (props) => {
|
|
|
2072
2066
|
var ThemeButton_default = ThemeButton;
|
|
2073
2067
|
|
|
2074
2068
|
//#endregion
|
|
2075
|
-
//#region src/core/utils/icons.tsx
|
|
2069
|
+
//#region ../../src/core/utils/icons.tsx
|
|
2076
2070
|
/**
|
|
2077
2071
|
* Get the default icon for an input based on its type, format, or name.
|
|
2078
2072
|
*/
|
|
@@ -2114,7 +2108,7 @@ const getDefaultIcon = (params) => {
|
|
|
2114
2108
|
};
|
|
2115
2109
|
|
|
2116
2110
|
//#endregion
|
|
2117
|
-
//#region src/core/utils/string.ts
|
|
2111
|
+
//#region ../../src/core/utils/string.ts
|
|
2118
2112
|
/**
|
|
2119
2113
|
* Capitalizes the first letter of a string.
|
|
2120
2114
|
*
|
|
@@ -2137,7 +2131,7 @@ const prettyName = (name) => {
|
|
|
2137
2131
|
};
|
|
2138
2132
|
|
|
2139
2133
|
//#endregion
|
|
2140
|
-
//#region src/core/utils/parseInput.ts
|
|
2134
|
+
//#region ../../src/core/utils/parseInput.ts
|
|
2141
2135
|
const parseInput = (props, form) => {
|
|
2142
2136
|
const disabled = false;
|
|
2143
2137
|
const id = props.input.props.id;
|
|
@@ -2175,7 +2169,7 @@ const parseInput = (props, form) => {
|
|
|
2175
2169
|
};
|
|
2176
2170
|
|
|
2177
2171
|
//#endregion
|
|
2178
|
-
//#region src/core/components/form/ControlDate.tsx
|
|
2172
|
+
//#region ../../src/core/components/form/ControlDate.tsx
|
|
2179
2173
|
/**
|
|
2180
2174
|
* ControlDate component for handling date, datetime, and time inputs.
|
|
2181
2175
|
*
|
|
@@ -2233,7 +2227,7 @@ const ControlDate = (props) => {
|
|
|
2233
2227
|
var ControlDate_default = ControlDate;
|
|
2234
2228
|
|
|
2235
2229
|
//#endregion
|
|
2236
|
-
//#region src/core/components/form/ControlNumber.tsx
|
|
2230
|
+
//#region ../../src/core/components/form/ControlNumber.tsx
|
|
2237
2231
|
/**
|
|
2238
2232
|
*
|
|
2239
2233
|
*/
|
|
@@ -2285,7 +2279,7 @@ const ControlNumber = (props) => {
|
|
|
2285
2279
|
var ControlNumber_default = ControlNumber;
|
|
2286
2280
|
|
|
2287
2281
|
//#endregion
|
|
2288
|
-
//#region src/core/utils/extractSchemaFields.ts
|
|
2282
|
+
//#region ../../src/core/utils/extractSchemaFields.ts
|
|
2289
2283
|
/**
|
|
2290
2284
|
* Extract field information from a TypeBox schema for query building.
|
|
2291
2285
|
* Supports nested objects and provides field metadata for autocomplete.
|
|
@@ -2403,7 +2397,7 @@ const OPERATOR_INFO = {
|
|
|
2403
2397
|
};
|
|
2404
2398
|
|
|
2405
2399
|
//#endregion
|
|
2406
|
-
//#region src/core/components/form/ControlQueryBuilder.tsx
|
|
2400
|
+
//#region ../../src/core/components/form/ControlQueryBuilder.tsx
|
|
2407
2401
|
/**
|
|
2408
2402
|
* Query builder with text input and help popover.
|
|
2409
2403
|
* Generates query strings for parseQueryString syntax.
|
|
@@ -2650,7 +2644,7 @@ function QueryHelp({ fields, onInsert }) {
|
|
|
2650
2644
|
var ControlQueryBuilder_default = ControlQueryBuilder;
|
|
2651
2645
|
|
|
2652
2646
|
//#endregion
|
|
2653
|
-
//#region src/core/components/form/ControlSelect.tsx
|
|
2647
|
+
//#region ../../src/core/components/form/ControlSelect.tsx
|
|
2654
2648
|
/**
|
|
2655
2649
|
* ControlSelect component for handling Select, MultiSelect, and TagsInput.
|
|
2656
2650
|
*
|
|
@@ -2750,7 +2744,7 @@ const ControlSelect = (props) => {
|
|
|
2750
2744
|
var ControlSelect_default = ControlSelect;
|
|
2751
2745
|
|
|
2752
2746
|
//#endregion
|
|
2753
|
-
//#region src/core/components/form/Control.tsx
|
|
2747
|
+
//#region ../../src/core/components/form/Control.tsx
|
|
2754
2748
|
/**
|
|
2755
2749
|
* Generic form control that renders the appropriate input based on the schema and props.
|
|
2756
2750
|
*
|
|
@@ -2918,7 +2912,7 @@ const Control = (_props) => {
|
|
|
2918
2912
|
var Control_default = Control;
|
|
2919
2913
|
|
|
2920
2914
|
//#endregion
|
|
2921
|
-
//#region src/core/components/form/TypeForm.tsx
|
|
2915
|
+
//#region ../../src/core/components/form/TypeForm.tsx
|
|
2922
2916
|
/**
|
|
2923
2917
|
* TypeForm component that automatically renders all form inputs based on schema.
|
|
2924
2918
|
* Uses the Control component to render individual fields and Mantine Grid for responsive layout.
|
|
@@ -3008,7 +3002,7 @@ const TypeForm = (props) => {
|
|
|
3008
3002
|
var TypeForm_default = TypeForm;
|
|
3009
3003
|
|
|
3010
3004
|
//#endregion
|
|
3011
|
-
//#region src/core/components/layout/AppBar.tsx
|
|
3005
|
+
//#region ../../src/core/components/layout/AppBar.tsx
|
|
3012
3006
|
const AppBar = (props) => {
|
|
3013
3007
|
const { items = [] } = props;
|
|
3014
3008
|
const renderItem = (item, index) => {
|
|
@@ -3062,7 +3056,7 @@ const AppBar = (props) => {
|
|
|
3062
3056
|
var AppBar_default = AppBar;
|
|
3063
3057
|
|
|
3064
3058
|
//#endregion
|
|
3065
|
-
//#region src/core/components/layout/Sidebar.tsx
|
|
3059
|
+
//#region ../../src/core/components/layout/Sidebar.tsx
|
|
3066
3060
|
const Sidebar = (props) => {
|
|
3067
3061
|
const router = useRouter();
|
|
3068
3062
|
const { top = [], bottom = [], onItemClick } = props;
|
|
@@ -3183,7 +3177,6 @@ const SidebarItem = (props) => {
|
|
|
3183
3177
|
href: props.item.href,
|
|
3184
3178
|
target: props.item.target,
|
|
3185
3179
|
size: props.item.theme?.size ?? props.theme.button?.size ?? (level === 0 ? "sm" : "xs"),
|
|
3186
|
-
color: "var(--alepha-text)",
|
|
3187
3180
|
variant: "subtle",
|
|
3188
3181
|
variantActive: "default",
|
|
3189
3182
|
radius: props.item.theme?.radius ?? props.theme.button?.radius ?? "md",
|
|
@@ -3246,7 +3239,6 @@ const SidebarCollapsedItem = (props) => {
|
|
|
3246
3239
|
};
|
|
3247
3240
|
return /* @__PURE__ */ jsx(ActionButton_default, {
|
|
3248
3241
|
size: props.item.theme?.size ?? props.theme.button?.size ?? (level === 0 ? "sm" : "xs"),
|
|
3249
|
-
color: "var(--alepha-text)",
|
|
3250
3242
|
variant: "subtle",
|
|
3251
3243
|
variantActive: "default",
|
|
3252
3244
|
tooltip: item.children ? void 0 : {
|
|
@@ -3273,7 +3265,7 @@ const SidebarCollapsedItem = (props) => {
|
|
|
3273
3265
|
};
|
|
3274
3266
|
|
|
3275
3267
|
//#endregion
|
|
3276
|
-
//#region src/core/components/layout/AdminShell.tsx
|
|
3268
|
+
//#region ../../src/core/components/layout/AdminShell.tsx
|
|
3277
3269
|
const AdminShell = (props) => {
|
|
3278
3270
|
const router = useRouter();
|
|
3279
3271
|
const [opened, setOpened] = useStore("alepha.ui.sidebar.opened");
|
|
@@ -3344,7 +3336,7 @@ const AdminShell = (props) => {
|
|
|
3344
3336
|
var AdminShell_default = AdminShell;
|
|
3345
3337
|
|
|
3346
3338
|
//#endregion
|
|
3347
|
-
//#region src/core/components/table/DataTable.tsx
|
|
3339
|
+
//#region ../../src/core/components/table/DataTable.tsx
|
|
3348
3340
|
const DataTable = (props) => {
|
|
3349
3341
|
const [items, setItems] = useState(typeof props.items === "function" ? { content: [] } : props.items);
|
|
3350
3342
|
const defaultSize = props.infinityScroll ? 100 : props.defaultSize || 10;
|
|
@@ -3525,7 +3517,7 @@ const DataTable = (props) => {
|
|
|
3525
3517
|
var DataTable_default = DataTable;
|
|
3526
3518
|
|
|
3527
3519
|
//#endregion
|
|
3528
|
-
//#region src/core/hooks/useDialog.ts
|
|
3520
|
+
//#region ../../src/core/hooks/useDialog.ts
|
|
3529
3521
|
/**
|
|
3530
3522
|
* Use this hook to access the Dialog Service for showing various dialog types.
|
|
3531
3523
|
*
|
|
@@ -3542,7 +3534,7 @@ const useDialog = () => {
|
|
|
3542
3534
|
};
|
|
3543
3535
|
|
|
3544
3536
|
//#endregion
|
|
3545
|
-
//#region src/core/index.ts
|
|
3537
|
+
//#region ../../src/core/index.ts
|
|
3546
3538
|
/**
|
|
3547
3539
|
* Mantine
|
|
3548
3540
|
*
|
|
@@ -3567,5 +3559,5 @@ const AlephaUI = $module({
|
|
|
3567
3559
|
});
|
|
3568
3560
|
|
|
3569
3561
|
//#endregion
|
|
3570
|
-
export { ActionButton_default as ActionButton, AdminShell_default as AdminShell, AlephaMantineProvider_default as AlephaMantineProvider, AlephaUI, AlertDialog_default as AlertDialog, AppBar_default as AppBar, BurgerButton_default as BurgerButton, ClipboardButton_default as ClipboardButton, ConfirmDialog_default as ConfirmDialog, Control_default as Control, ControlDate_default as ControlDate, ControlQueryBuilder_default as ControlQueryBuilder, ControlSelect_default as ControlSelect, DarkModeButton_default as DarkModeButton, DataTable_default as DataTable, DialogService, Flex, JsonViewer_default as JsonViewer, LanguageButton_default as LanguageButton, OPERATOR_INFO, Omnibar_default as Omnibar, OmnibarButton_default as OmnibarButton, PromptDialog_default as PromptDialog, RootRouter, Sidebar, Text, ThemeButton_default as ThemeButton, ThemeProvider, ToastService, TypeForm_default as TypeForm, capitalize, extractSchemaFields, getDefaultIcon, getOperatorsForField,
|
|
3562
|
+
export { ActionButton_default as ActionButton, AdminShell_default as AdminShell, AlephaMantineProvider_default as AlephaMantineProvider, AlephaUI, AlertDialog_default as AlertDialog, AppBar_default as AppBar, BurgerButton_default as BurgerButton, ClipboardButton_default as ClipboardButton, ConfirmDialog_default as ConfirmDialog, Control_default as Control, ControlDate_default as ControlDate, ControlQueryBuilder_default as ControlQueryBuilder, ControlSelect_default as ControlSelect, DarkModeButton_default as DarkModeButton, DataTable_default as DataTable, DialogService, Flex, JsonViewer_default as JsonViewer, LanguageButton_default as LanguageButton, OPERATOR_INFO, Omnibar_default as Omnibar, OmnibarButton_default as OmnibarButton, PromptDialog_default as PromptDialog, RootRouter, Sidebar, Text, ThemeButton_default as ThemeButton, ThemeProvider, ToastService, TypeForm_default as TypeForm, capitalize, extractSchemaFields, getDefaultIcon, getOperatorsForField, mantineThemeAtom, prettyName, ui, useDialog, useToast };
|
|
3571
3563
|
//# sourceMappingURL=index.js.map
|