@erxes/ui 4.0.0-v2.7 → 4.0.0-v2.9
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 +10 -3
- package/dist/hooks/use-item-keys.d.ts +10 -0
- package/dist/hooks/use-item-keys.js +23 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +10 -2
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/format.js +6 -1
- package/dist/lib/money.d.ts +10 -0
- package/dist/lib/money.js +18 -0
- package/dist/lib/text.d.ts +7 -0
- package/dist/lib/text.js +14 -0
- package/dist/modules/conditions/ConditionValueInput.d.ts +10 -0
- package/dist/modules/conditions/ConditionValueInput.js +166 -0
- package/dist/modules/conditions/ConditionsEditor.d.ts +11 -0
- package/dist/modules/conditions/ConditionsEditor.js +209 -0
- package/dist/modules/conditions/LazyConditionsEditor.d.ts +9 -0
- package/dist/modules/conditions/LazyConditionsEditor.js +10 -0
- package/dist/modules/conditions/PathPicker.d.ts +8 -0
- package/dist/modules/conditions/PathPicker.js +51 -0
- package/dist/modules/conditions/conditions.d.ts +64 -0
- package/dist/modules/conditions/conditions.js +135 -0
- package/dist/modules/list/DisplayMenu.d.ts +14 -7
- package/dist/modules/list/DisplayMenu.js +48 -28
- package/dist/modules/list/ListFilter.d.ts +25 -11
- package/dist/modules/list/ListFilter.js +30 -26
- package/dist/modules/list/filter/AdvancedFilterDialog.d.ts +5 -0
- package/dist/modules/list/filter/AdvancedFilterDialog.js +52 -0
- package/dist/modules/list/filter/FieldMenus.d.ts +5 -0
- package/dist/modules/list/filter/FieldMenus.js +184 -0
- package/dist/modules/list/filter/ListFilterBar.d.ts +6 -0
- package/dist/modules/list/filter/ListFilterBar.js +246 -0
- package/dist/modules/list/filter/RecordCount.d.ts +7 -0
- package/dist/modules/list/filter/RecordCount.js +22 -0
- package/dist/modules/list/filter/RuleChips.d.ts +2 -0
- package/dist/modules/list/filter/RuleChips.js +157 -0
- package/dist/modules/list/filter/fieldIcons.d.ts +7 -0
- package/dist/modules/list/filter/fieldIcons.js +16 -0
- package/dist/modules/list/filter/filterRules.d.ts +46 -0
- package/dist/modules/list/filter/filterRules.js +166 -0
- package/dist/modules/list/filter/listFilterContext.d.ts +29 -0
- package/dist/modules/list/filter/listFilterContext.js +34 -0
- package/dist/modules/list/filter/listFilterQuery.d.ts +15 -0
- package/dist/modules/list/filter/listFilterQuery.js +21 -0
- package/dist/modules/pickers/LookupPicker.d.ts +50 -0
- package/dist/modules/pickers/LookupPicker.js +83 -0
- package/dist/modules/record-list/RecordList.d.ts +12 -0
- package/dist/modules/record-list/RecordList.js +17 -0
- package/dist/modules/record-list/RecordListProvider.d.ts +30 -0
- package/dist/modules/record-list/RecordListProvider.js +57 -0
- package/dist/modules/record-list/RecordListRoot.d.ts +28 -0
- package/dist/modules/record-list/RecordListRoot.js +124 -0
- package/dist/modules/record-list/selection.d.ts +22 -0
- package/dist/modules/record-list/selection.js +54 -0
- package/dist/theme.css +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Selection } from "./selection.js";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
/** The groups folded away, per list, kept in this browser. */
|
|
4
|
+
export declare const collapsedGroups: import("jotai-family").AtomFamily<string, import("jotai").WritableAtom<string[], [typeof import("jotai/utils").RESET | string[] | ((prev: string[]) => typeof import("jotai/utils").RESET | string[])], void>>;
|
|
5
|
+
interface RecordListContextValue {
|
|
6
|
+
listId: string;
|
|
7
|
+
selection: Selection;
|
|
8
|
+
}
|
|
9
|
+
export declare const useRecordListContext: () => RecordListContextValue;
|
|
10
|
+
/** Renders again only when `read` of the selection changes, such as one row's own state. */
|
|
11
|
+
export declare const useSelectionState: <T>(read: (picked: ReadonlySet<string>) => T) => T;
|
|
12
|
+
/**
|
|
13
|
+
* The selection a record list and its command bar share. Rows that leave the list stay
|
|
14
|
+
* picked until `clear`, so read the selection through the rows the page shows.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useRecordListSelection: () => {
|
|
17
|
+
ids: string[];
|
|
18
|
+
has: (id: string) => boolean;
|
|
19
|
+
toggle: (id: string) => void;
|
|
20
|
+
toggleAll: (ids: readonly string[]) => void;
|
|
21
|
+
clear: () => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* `listId` names the list in this browser, where its folded groups are kept. Another
|
|
25
|
+
* `listId` is another list: its selection starts empty.
|
|
26
|
+
*/
|
|
27
|
+
export declare const RecordListProvider: ({ listId, children }: PropsWithChildren<{
|
|
28
|
+
listId: string;
|
|
29
|
+
}>) => import("react").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { storedFamily } from "../../lib/stored.js";
|
|
2
|
+
import { createSelection } from "./selection.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { createContext, useContext, useState, useSyncExternalStore } from "react";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
// src/modules/record-list/RecordListProvider.tsx
|
|
7
|
+
/** The groups folded away, per list, kept in this browser. */
|
|
8
|
+
const collapsedGroups = storedFamily({
|
|
9
|
+
key: "erxes:record-list:collapsed",
|
|
10
|
+
schema: z.array(z.string().max(200)).max(500),
|
|
11
|
+
initial: []
|
|
12
|
+
});
|
|
13
|
+
const RecordListContext = createContext(null);
|
|
14
|
+
const useRecordListContext = () => {
|
|
15
|
+
const context = useContext(RecordListContext);
|
|
16
|
+
if (!context) throw new Error("A record list must be used within RecordList.Provider.");
|
|
17
|
+
return context;
|
|
18
|
+
};
|
|
19
|
+
/** Renders again only when `read` of the selection changes, such as one row's own state. */
|
|
20
|
+
const useSelectionState = (read) => {
|
|
21
|
+
const { selection } = useRecordListContext();
|
|
22
|
+
return useSyncExternalStore(selection.subscribe, () => read(selection.picked()));
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The selection a record list and its command bar share. Rows that leave the list stay
|
|
26
|
+
* picked until `clear`, so read the selection through the rows the page shows.
|
|
27
|
+
*/
|
|
28
|
+
const useRecordListSelection = () => {
|
|
29
|
+
const { selection } = useRecordListContext();
|
|
30
|
+
const picked = useSelectionState((current) => current);
|
|
31
|
+
return {
|
|
32
|
+
ids: [...picked],
|
|
33
|
+
has: (id) => picked.has(id),
|
|
34
|
+
toggle: (id) => selection.toggle(id),
|
|
35
|
+
toggleAll: selection.toggleAll,
|
|
36
|
+
clear: selection.clear
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
const SelectionScope = ({ listId, children }) => {
|
|
40
|
+
const [context] = useState(() => ({
|
|
41
|
+
listId,
|
|
42
|
+
selection: createSelection()
|
|
43
|
+
}));
|
|
44
|
+
return /* @__PURE__ */ jsx(RecordListContext.Provider, {
|
|
45
|
+
value: context,
|
|
46
|
+
children
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* `listId` names the list in this browser, where its folded groups are kept. Another
|
|
51
|
+
* `listId` is another list: its selection starts empty.
|
|
52
|
+
*/
|
|
53
|
+
const RecordListProvider = ({ listId, children }) => /* @__PURE__ */ jsx(SelectionScope, {
|
|
54
|
+
listId,
|
|
55
|
+
children
|
|
56
|
+
}, listId);
|
|
57
|
+
export { RecordListProvider, collapsedGroups, useRecordListContext, useRecordListSelection, useSelectionState };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/** A run of rows under one header, such as the tasks in one status. */
|
|
3
|
+
export interface RecordListGroup<TRow> {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
rows: TRow[];
|
|
8
|
+
/** The header's controls on the right, such as a "+" that adds a row to this group. */
|
|
9
|
+
action?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
interface RecordListProps<TRow> {
|
|
12
|
+
groups: RecordListGroup<TRow>[];
|
|
13
|
+
rowId: (row: TRow) => string;
|
|
14
|
+
/** The row's name, for its checkbox's label. */
|
|
15
|
+
rowLabel: (row: TRow) => string;
|
|
16
|
+
/** The row's content, after its checkbox. */
|
|
17
|
+
renderRow: (row: TRow) => ReactNode;
|
|
18
|
+
/** False: one list with no headers, such as rows sorted by date. */
|
|
19
|
+
grouped?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Rows in groups, each under a sticky header that folds it away and picks all its rows; the
|
|
24
|
+
* folded groups are kept in this browser. Shift-click picks every row between two clicks, as
|
|
25
|
+
* shown. Inside `RecordList.Provider`, which holds the selection a command bar reads.
|
|
26
|
+
*/
|
|
27
|
+
export declare const RecordListRoot: <TRow>({ groups, rowId, rowLabel, renderRow, grouped, className }: RecordListProps<TRow>) => import("react").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Button } from "../../components/button.js";
|
|
2
|
+
import { Checkbox } from "../../components/checkbox.js";
|
|
3
|
+
import { useMediaQuery } from "../../hooks/use-media-query.js";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { collapsedGroups, useRecordListContext, useSelectionState } from "./RecordListProvider.js";
|
|
6
|
+
import { IconChevronDown, IconChevronRight } from "@tabler/icons-react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { useId } from "react";
|
|
9
|
+
import { useAtom } from "jotai";
|
|
10
|
+
// src/modules/record-list/RecordListRoot.tsx
|
|
11
|
+
/**
|
|
12
|
+
* A row's control that shows on hover or focus. A row's own controls (an empty date, say) can
|
|
13
|
+
* use the same classes. Where a finger may be the pointer (a phone, a touch laptop), nothing
|
|
14
|
+
* hovers first, so there they always show.
|
|
15
|
+
*/
|
|
16
|
+
const revealed = "opacity-0 group-hover/list-row:opacity-100 group-focus-within/list-row:opacity-100";
|
|
17
|
+
const useHover = () => useMediaQuery("(hover: hover) and (not (any-pointer: coarse))");
|
|
18
|
+
const GroupHeader = ({ group, ids, panelId, collapsed, onCollapse }) => {
|
|
19
|
+
const { selection } = useRecordListContext();
|
|
20
|
+
const hover = useHover();
|
|
21
|
+
const picked = useSelectionState((current) => ids.filter((id) => current.has(id)).length);
|
|
22
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
23
|
+
className: "group/list-row sticky top-0 z-10 flex h-9 items-center gap-1 border-b bg-muted px-2 text-xs font-medium",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx("span", {
|
|
26
|
+
className: cn("flex h-9 w-8 shrink-0 items-center justify-center", hover && !picked && revealed),
|
|
27
|
+
children: /* @__PURE__ */ jsx(Checkbox, {
|
|
28
|
+
checked: picked > 0 && picked === ids.length,
|
|
29
|
+
indeterminate: picked > 0 && picked < ids.length,
|
|
30
|
+
"aria-label": `Select all in ${group.label}`,
|
|
31
|
+
onCheckedChange: () => selection.toggleAll(ids)
|
|
32
|
+
})
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsxs(Button, {
|
|
35
|
+
variant: "ghost",
|
|
36
|
+
size: "sm",
|
|
37
|
+
"aria-expanded": !collapsed,
|
|
38
|
+
"aria-controls": collapsed ? void 0 : panelId,
|
|
39
|
+
onClick: () => onCollapse(!collapsed),
|
|
40
|
+
children: [
|
|
41
|
+
collapsed ? /* @__PURE__ */ jsx(IconChevronRight, { "aria-hidden": true }) : /* @__PURE__ */ jsx(IconChevronDown, { "aria-hidden": true }),
|
|
42
|
+
group.icon,
|
|
43
|
+
group.label,
|
|
44
|
+
/* @__PURE__ */ jsx("span", {
|
|
45
|
+
className: "text-muted-foreground tabular-nums",
|
|
46
|
+
children: ids.length
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
}),
|
|
50
|
+
group.action && /* @__PURE__ */ jsx("span", {
|
|
51
|
+
className: "ml-auto flex items-center",
|
|
52
|
+
children: group.action
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
const Row = ({ id, label, order, children }) => {
|
|
58
|
+
const { selection } = useRecordListContext();
|
|
59
|
+
const hover = useHover();
|
|
60
|
+
const checked = useSelectionState((current) => current.has(id));
|
|
61
|
+
const selecting = useSelectionState((current) => current.size > 0);
|
|
62
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
63
|
+
"data-record-row": id,
|
|
64
|
+
"data-selected": checked || void 0,
|
|
65
|
+
className: "group/list-row flex h-11 items-center gap-1 border-b px-2 text-sm hover:bg-muted data-selected:bg-primary/10",
|
|
66
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
67
|
+
className: cn("flex h-11 w-8 shrink-0 items-center justify-center", hover && !selecting && revealed),
|
|
68
|
+
children: /* @__PURE__ */ jsx(Checkbox, {
|
|
69
|
+
className: "relative after:absolute after:-inset-x-2 after:-inset-y-3.5",
|
|
70
|
+
checked,
|
|
71
|
+
"aria-label": `Select ${label}`,
|
|
72
|
+
onCheckedChange: (_checked, { event }) => {
|
|
73
|
+
const range = event instanceof MouseEvent && event.shiftKey;
|
|
74
|
+
if (range) window.getSelection()?.removeAllRanges();
|
|
75
|
+
selection.toggle(id, range ? order : void 0);
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
}), children]
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Rows in groups, each under a sticky header that folds it away and picks all its rows; the
|
|
83
|
+
* folded groups are kept in this browser. Shift-click picks every row between two clicks, as
|
|
84
|
+
* shown. Inside `RecordList.Provider`, which holds the selection a command bar reads.
|
|
85
|
+
*/
|
|
86
|
+
const RecordListRoot = ({ groups, rowId, rowLabel, renderRow, grouped = true, className }) => {
|
|
87
|
+
const { listId } = useRecordListContext();
|
|
88
|
+
const [collapsed, setCollapsed] = useAtom(collapsedGroups(listId));
|
|
89
|
+
const prefix = useId();
|
|
90
|
+
const folded = (group) => grouped && collapsed.includes(group.id);
|
|
91
|
+
const order = groups.filter((group) => !folded(group)).flatMap((group) => group.rows.map(rowId));
|
|
92
|
+
const rows = (list) => list.map((row) => /* @__PURE__ */ jsx(Row, {
|
|
93
|
+
id: rowId(row),
|
|
94
|
+
label: rowLabel(row),
|
|
95
|
+
order,
|
|
96
|
+
children: renderRow(row)
|
|
97
|
+
}, rowId(row)));
|
|
98
|
+
if (!grouped) return /* @__PURE__ */ jsx("div", {
|
|
99
|
+
"data-record-list": listId,
|
|
100
|
+
className,
|
|
101
|
+
children: /* @__PURE__ */ jsx("ul", { children: rows(groups.flatMap((group) => group.rows)) })
|
|
102
|
+
});
|
|
103
|
+
return /* @__PURE__ */ jsx("div", {
|
|
104
|
+
"data-record-list": listId,
|
|
105
|
+
className,
|
|
106
|
+
children: groups.map((group) => {
|
|
107
|
+
const panelId = `${prefix}-${group.id}`;
|
|
108
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
109
|
+
"aria-label": group.label,
|
|
110
|
+
children: [/* @__PURE__ */ jsx(GroupHeader, {
|
|
111
|
+
group,
|
|
112
|
+
ids: group.rows.map(rowId),
|
|
113
|
+
panelId,
|
|
114
|
+
collapsed: folded(group),
|
|
115
|
+
onCollapse: (fold) => setCollapsed((current) => fold ? [...current, group.id] : current.filter((id) => id !== group.id))
|
|
116
|
+
}), !folded(group) && /* @__PURE__ */ jsx("ul", {
|
|
117
|
+
id: panelId,
|
|
118
|
+
children: rows(group.rows)
|
|
119
|
+
})]
|
|
120
|
+
}, group.id);
|
|
121
|
+
})
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
export { RecordListRoot };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rows a click on `id` picks. With `anchor` (the row clicked before), every row from it to
|
|
3
|
+
* `id` in `order`, the rows as shown; without, or when either left the list, `id` alone.
|
|
4
|
+
*/
|
|
5
|
+
export declare const rowsBetween: (order: readonly string[], anchor: string | null, id: string) => string[];
|
|
6
|
+
/** `picked` with `ids` added (`on`) or taken out. */
|
|
7
|
+
export declare const withRows: (picked: ReadonlySet<string>, ids: readonly string[], on: boolean) => Set<string>;
|
|
8
|
+
/**
|
|
9
|
+
* One list's picked rows, outside React: each row subscribes to its own state, so a click
|
|
10
|
+
* renders only the rows it changes. Every change starts from the current state, so changes
|
|
11
|
+
* made before a render all count.
|
|
12
|
+
*/
|
|
13
|
+
export declare const createSelection: () => {
|
|
14
|
+
subscribe: (listener: () => void) => () => void;
|
|
15
|
+
picked: () => ReadonlySet<string>;
|
|
16
|
+
/** With `order` (the rows as shown), a shift-click: every row since the last click. */
|
|
17
|
+
toggle: (id: string, order?: readonly string[]) => void;
|
|
18
|
+
/** Picks all of `ids`, or clears them when all are picked. */
|
|
19
|
+
toggleAll: (ids: readonly string[]) => void;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
};
|
|
22
|
+
export type Selection = ReturnType<typeof createSelection>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// src/modules/record-list/selection.ts
|
|
2
|
+
/**
|
|
3
|
+
* The rows a click on `id` picks. With `anchor` (the row clicked before), every row from it to
|
|
4
|
+
* `id` in `order`, the rows as shown; without, or when either left the list, `id` alone.
|
|
5
|
+
*/
|
|
6
|
+
const rowsBetween = (order, anchor, id) => {
|
|
7
|
+
const from = anchor === null ? -1 : order.indexOf(anchor);
|
|
8
|
+
const to = order.indexOf(id);
|
|
9
|
+
if (from === -1 || to === -1) return [id];
|
|
10
|
+
return order.slice(Math.min(from, to), Math.max(from, to) + 1);
|
|
11
|
+
};
|
|
12
|
+
/** `picked` with `ids` added (`on`) or taken out. */
|
|
13
|
+
const withRows = (picked, ids, on) => {
|
|
14
|
+
const next = new Set(picked);
|
|
15
|
+
for (const id of ids) if (on) next.add(id);
|
|
16
|
+
else next.delete(id);
|
|
17
|
+
return next;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* One list's picked rows, outside React: each row subscribes to its own state, so a click
|
|
21
|
+
* renders only the rows it changes. Every change starts from the current state, so changes
|
|
22
|
+
* made before a render all count.
|
|
23
|
+
*/
|
|
24
|
+
const createSelection = () => {
|
|
25
|
+
let picked = /* @__PURE__ */ new Set();
|
|
26
|
+
let anchor = null;
|
|
27
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
28
|
+
const set = (next) => {
|
|
29
|
+
picked = next;
|
|
30
|
+
for (const listener of listeners) listener();
|
|
31
|
+
};
|
|
32
|
+
return {
|
|
33
|
+
subscribe: (listener) => {
|
|
34
|
+
listeners.add(listener);
|
|
35
|
+
return () => {
|
|
36
|
+
listeners.delete(listener);
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
picked: () => picked,
|
|
40
|
+
/** With `order` (the rows as shown), a shift-click: every row since the last click. */
|
|
41
|
+
toggle: (id, order) => {
|
|
42
|
+
const rows = order ? rowsBetween(order, anchor, id) : [id];
|
|
43
|
+
anchor = id;
|
|
44
|
+
set(withRows(picked, rows, !picked.has(id)));
|
|
45
|
+
},
|
|
46
|
+
/** Picks all of `ids`, or clears them when all are picked. */
|
|
47
|
+
toggleAll: (ids) => set(withRows(picked, ids, !ids.every((id) => picked.has(id)))),
|
|
48
|
+
clear: () => {
|
|
49
|
+
anchor = null;
|
|
50
|
+
set(/* @__PURE__ */ new Set());
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export { createSelection, rowsBetween, withRows };
|
package/dist/theme.css
CHANGED
|
@@ -126,6 +126,8 @@
|
|
|
126
126
|
--grid-template-columns-field: 6.5rem minmax(0, 1fr);
|
|
127
127
|
/* A side column of 18 to 24rem beside the content. */
|
|
128
128
|
--grid-template-columns-aside: minmax(18rem, 24rem) minmax(0, 1fr);
|
|
129
|
+
/* A condition row: field and operator, then the remove button. */
|
|
130
|
+
--grid-template-columns-condition: minmax(0, 1fr) minmax(0, 1fr) auto;
|
|
129
131
|
|
|
130
132
|
/* Panels and sidebars sliding open or shut. */
|
|
131
133
|
--ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erxes/ui",
|
|
3
|
-
"version": "4.0.0-v2.
|
|
3
|
+
"version": "4.0.0-v2.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "erxes design system: UI primitives, layout, hooks and shared frontend state",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"@types/react": "19.3.0",
|
|
75
75
|
"@types/react-dom": "19.3.0",
|
|
76
76
|
"happy-dom": "21.0.4",
|
|
77
|
+
"i18next": "^27.1.1",
|
|
77
78
|
"jotai": "^3.0.2",
|
|
78
79
|
"nuqs": "^2.10.3",
|
|
79
80
|
"react": "^19.3.1",
|