@alepha/ui 0.11.11 → 0.11.12
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/README.md +17 -306
- package/dist/{AlephaMantineProvider-DCF5kidi.cjs → AlephaMantineProvider-CGpgWDt8.cjs} +1 -1
- package/dist/{AlephaMantineProvider-CzMrw7V3.js → AlephaMantineProvider-D8cHYAge.js} +3 -1
- package/dist/AlephaMantineProvider-D8cHYAge.js.map +1 -0
- package/dist/{AlephaMantineProvider-DlOEv9f0.cjs → AlephaMantineProvider-DuvZFAuk.cjs} +3 -1
- package/dist/AlephaMantineProvider-DuvZFAuk.cjs.map +1 -0
- package/dist/AlephaMantineProvider-twBqV4IO.js +3 -0
- package/dist/index.cjs +43 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -28
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +36 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -24
- package/dist/index.js.map +1 -1
- package/package.json +55 -74
- package/src/components/buttons/ActionButton.tsx +1 -1
- package/src/components/buttons/LanguageButton.tsx +1 -1
- package/src/components/form/Control.tsx +1 -1
- package/src/components/form/ControlDate.tsx +1 -1
- package/src/components/form/ControlNumber.tsx +1 -1
- package/src/components/form/ControlQueryBuilder.tsx +2 -2
- package/src/components/form/ControlSelect.tsx +1 -1
- package/src/components/form/TypeForm.tsx +3 -3
- package/src/components/layout/AdminShell.tsx +1 -1
- package/src/components/table/DataTable.tsx +11 -11
- package/src/hooks/useDialog.ts +2 -0
- package/src/hooks/useToast.ts +2 -0
- package/src/index.ts +9 -5
- package/src/utils/extractSchemaFields.ts +1 -1
- package/src/utils/parseInput.ts +2 -2
- package/dist/AlephaMantineProvider-B4TwQ4tY.js +0 -3
- package/dist/AlephaMantineProvider-CzMrw7V3.js.map +0 -1
- package/dist/AlephaMantineProvider-DlOEv9f0.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as ToastService, n as Omnibar_default, r as useToast, t as AlephaMantineProvider_default } from "./AlephaMantineProvider-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { i as ToastService, n as Omnibar_default, r as useToast, t as AlephaMantineProvider_default } from "./AlephaMantineProvider-D8cHYAge.js";
|
|
2
|
+
import { AlephaReactForm, useForm, useFormState } from "@alepha/react/form";
|
|
3
|
+
import { AlephaReactHead } from "@alepha/react/head";
|
|
4
|
+
import { AlephaReactI18n, useI18n } from "@alepha/react/i18n";
|
|
5
|
+
import { $module, Alepha, TypeBoxError, t } from "alepha";
|
|
6
6
|
import { $page, NestedView, useAction, useActive, useEvents, useInject, useRouter, useStore } from "@alepha/react";
|
|
7
7
|
import { ActionIcon, AppShell, Autocomplete, Badge, Box, Burger, Button, Collapse, ColorInput, CopyButton, Divider, FileInput, Flex, Flex as Flex$1, Grid, Group, Input, Kbd, Menu, MultiSelect, NumberInput, Pagination, PasswordInput, Popover, SegmentedControl, Select, Slider, Stack, Switch, Table, TagsInput, Text, Text as Text$1, TextInput, Textarea, ThemeIcon, Tooltip, useComputedColorScheme, useMantineColorScheme } from "@mantine/core";
|
|
8
8
|
import { modals } from "@mantine/modals";
|
|
@@ -11,15 +11,15 @@ import { useCallback, useEffect, useRef, useState } from "react";
|
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { spotlight } from "@mantine/spotlight";
|
|
13
13
|
import { DateInput, DateTimePicker, TimeInput } from "@mantine/dates";
|
|
14
|
-
import { parseQueryString } from "
|
|
15
|
-
import { DateTimeProvider } from "@alepha/datetime";
|
|
14
|
+
import { parseQueryString } from "alepha/orm";
|
|
16
15
|
import { useDebouncedCallback } from "@mantine/hooks";
|
|
16
|
+
import { DateTimeProvider } from "alepha/datetime";
|
|
17
17
|
|
|
18
18
|
//#region src/RootRouter.ts
|
|
19
19
|
var RootRouter = class {
|
|
20
20
|
root = $page({
|
|
21
21
|
path: "/",
|
|
22
|
-
lazy: () => import("./AlephaMantineProvider-
|
|
22
|
+
lazy: () => import("./AlephaMantineProvider-twBqV4IO.js")
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -792,6 +792,20 @@ const ActionHrefButton = (props) => {
|
|
|
792
792
|
});
|
|
793
793
|
};
|
|
794
794
|
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region src/components/buttons/BurgerButton.tsx
|
|
797
|
+
const BurgerButton = (props) => {
|
|
798
|
+
const [opened, setOpened] = useStore("alepha.ui.sidebar.opened");
|
|
799
|
+
return /* @__PURE__ */ jsx(Burger, {
|
|
800
|
+
opened,
|
|
801
|
+
onClick: () => setOpened(!opened),
|
|
802
|
+
hiddenFrom: "sm",
|
|
803
|
+
size: "sm",
|
|
804
|
+
...props
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
var BurgerButton_default = BurgerButton;
|
|
808
|
+
|
|
795
809
|
//#endregion
|
|
796
810
|
//#region src/components/buttons/DarkModeButton.tsx
|
|
797
811
|
const DarkModeButton = (props) => {
|
|
@@ -1748,7 +1762,7 @@ var Control_default = Control;
|
|
|
1748
1762
|
* @example
|
|
1749
1763
|
* ```tsx
|
|
1750
1764
|
* import { t } from "alepha";
|
|
1751
|
-
* import { useForm } from "@alepha/react
|
|
1765
|
+
* import { useForm } from "@alepha/react/form";
|
|
1752
1766
|
* import { TypeForm } from "@alepha/ui";
|
|
1753
1767
|
*
|
|
1754
1768
|
* const form = useForm({
|
|
@@ -1829,20 +1843,6 @@ const TypeForm = (props) => {
|
|
|
1829
1843
|
};
|
|
1830
1844
|
var TypeForm_default = TypeForm;
|
|
1831
1845
|
|
|
1832
|
-
//#endregion
|
|
1833
|
-
//#region src/components/buttons/BurgerButton.tsx
|
|
1834
|
-
const BurgerButton = (props) => {
|
|
1835
|
-
const [opened, setOpened] = useStore("alepha.ui.sidebar.opened");
|
|
1836
|
-
return /* @__PURE__ */ jsx(Burger, {
|
|
1837
|
-
opened,
|
|
1838
|
-
onClick: () => setOpened(!opened),
|
|
1839
|
-
hiddenFrom: "sm",
|
|
1840
|
-
size: "sm",
|
|
1841
|
-
...props
|
|
1842
|
-
});
|
|
1843
|
-
};
|
|
1844
|
-
var BurgerButton_default = BurgerButton;
|
|
1845
|
-
|
|
1846
1846
|
//#endregion
|
|
1847
1847
|
//#region src/components/buttons/LanguageButton.tsx
|
|
1848
1848
|
const LanguageButton = (props) => {
|
|
@@ -2364,10 +2364,12 @@ var DataTable_default = DataTable;
|
|
|
2364
2364
|
* Use this hook to access the Dialog Service for showing various dialog types.
|
|
2365
2365
|
*
|
|
2366
2366
|
* @example
|
|
2367
|
+
* ```tsx
|
|
2367
2368
|
* const dialog = useDialog();
|
|
2368
2369
|
* await dialog.alert({ title: "Alert", message: "This is an alert message" });
|
|
2369
2370
|
* const confirmed = await dialog.confirm({ title: "Confirm", message: "Are you sure?" });
|
|
2370
2371
|
* const input = await dialog.prompt({ title: "Input", message: "Enter your name:" });
|
|
2372
|
+
* ```
|
|
2371
2373
|
*/
|
|
2372
2374
|
const useDialog = () => {
|
|
2373
2375
|
return useInject(DialogService);
|
|
@@ -2397,5 +2399,5 @@ const AlephaUI = $module({
|
|
|
2397
2399
|
});
|
|
2398
2400
|
|
|
2399
2401
|
//#endregion
|
|
2400
|
-
export { ActionButton_default as ActionButton, AdminShell_default as AdminShell, AlephaMantineProvider_default as AlephaMantineProvider, AlephaUI, AlertDialog_default as AlertDialog, AppBar_default as AppBar, 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, ICON_SIZES, JsonViewer_default as JsonViewer, OPERATOR_INFO, Omnibar_default as Omnibar, OmnibarButton_default as OmnibarButton, PromptDialog_default as PromptDialog, RootRouter, Sidebar, Text, ToastService, TypeForm_default as TypeForm, capitalize, extractSchemaFields, getDefaultIcon, getOperatorsForField, prettyName, ui, useDialog, useToast };
|
|
2402
|
+
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, 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, ICON_SIZES, JsonViewer_default as JsonViewer, OPERATOR_INFO, Omnibar_default as Omnibar, OmnibarButton_default as OmnibarButton, PromptDialog_default as PromptDialog, RootRouter, Sidebar, Text, ToastService, TypeForm_default as TypeForm, capitalize, extractSchemaFields, getDefaultIcon, getOperatorsForField, prettyName, ui, useDialog, useToast };
|
|
2401
2403
|
//# sourceMappingURL=index.js.map
|