@danikokonn/yarik-frontend-lib 2.0.49-test1 → 2.0.49-test10
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/components/DatetimeRangeInput/DatetimeRangeInput.d.ts +1 -0
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.d.ts.map +1 -1
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.js +3 -3
- package/dist/components/Navigation/Navigation.d.ts +1 -1
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +14 -11
- package/dist/components/Navigation/NavigationProps.d.ts +2 -1
- package/dist/components/Navigation/NavigationProps.d.ts.map +1 -1
- package/dist/components/SmartTable/SmartTable.d.ts.map +1 -1
- package/dist/components/SmartTable/SmartTable.js +1 -1
- package/dist/components/SmartTable/SmartTableProps.d.ts +4 -5
- package/dist/components/SmartTable/SmartTableProps.d.ts.map +1 -1
- package/dist/components/SubtaskItem/SubtaskItemProps.d.ts +1 -1
- package/dist/components/SubtaskItem/SubtaskItemProps.d.ts.map +1 -1
- package/dist/providers/SnackBarProvider.d.ts +2 -2
- package/dist/providers/SnackBarProvider.d.ts.map +1 -1
- package/dist/providers/SnackBarProvider.js +2 -2
- package/package.json +20 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatetimeRangeInput.d.ts","sourceRoot":"","sources":["../../../src/components/DatetimeRangeInput/DatetimeRangeInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatetimeRangeInput.d.ts","sourceRoot":"","sources":["../../../src/components/DatetimeRangeInput/DatetimeRangeInput.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAoC,MAAM,OAAO,CAAC;AAGrE,OAAO,kBAAkB,CAAC;AAQ1B,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAQhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,cAAc,EACd,IAAI,EACJ,EAAE,EACF,OAAO,EACP,EAAE,EACF,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,QAAQ,GACT,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAiHvC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { lazy, Suspense, useRef, useState } from "react";
|
|
2
2
|
import moment from "moment-timezone";
|
|
3
3
|
import "moment/locale/ru";
|
|
4
|
-
import
|
|
4
|
+
import ClearIcon from "@mui/icons-material/Clear";
|
|
5
5
|
import DateRangeIcon from "@mui/icons-material/DateRange";
|
|
6
|
+
import IconButton from "@mui/material/IconButton";
|
|
6
7
|
import Popover from "@mui/material/Popover";
|
|
7
8
|
import TextField from "@mui/material/TextField";
|
|
8
|
-
import ClearIcon from "@mui/icons-material/Clear";
|
|
9
9
|
const DateTimeRangePicker = lazy(() => import("../DateTimeRangePicker/DateTimeRangePicker"));
|
|
10
|
-
import { prettyDatetime } from "../../utils";
|
|
11
10
|
import { Skeleton, Stack } from "@mui/material";
|
|
11
|
+
import { prettyDatetime } from "../../utils";
|
|
12
12
|
/**
|
|
13
13
|
* Компонент выбора диапазона дат и времени.
|
|
14
14
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import NavigationProps from "./NavigationProps";
|
|
3
|
-
export default function Navigation({
|
|
3
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, activeTab, withReactRouter, }: NavigationProps): React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=Navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA4BzC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,kBAAkB,EAClB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,GAChB,EAAE,eAAe,qBAyVjB"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
|
|
3
|
+
import ArrowRightRoundedIcon from "@mui/icons-material/ArrowRightRounded";
|
|
4
|
+
import DarkModeIcon from "@mui/icons-material/DarkMode";
|
|
5
|
+
import HubIcon from "@mui/icons-material/Hub";
|
|
6
|
+
import LightModeIcon from "@mui/icons-material/LightMode";
|
|
7
|
+
import LogoutIcon from "@mui/icons-material/Logout";
|
|
8
|
+
import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
|
|
9
|
+
import MenuIcon from "@mui/icons-material/Menu";
|
|
2
10
|
import AppBar from "@mui/material/AppBar";
|
|
3
11
|
import Box from "@mui/material/Box";
|
|
4
12
|
import Container from "@mui/material/Container";
|
|
@@ -7,21 +15,15 @@ import Menu from "@mui/material/Menu";
|
|
|
7
15
|
import MenuItem from "@mui/material/MenuItem";
|
|
8
16
|
import Toolbar from "@mui/material/Toolbar";
|
|
9
17
|
import Typography from "@mui/material/Typography";
|
|
10
|
-
import
|
|
11
|
-
import MenuIcon from "@mui/icons-material/Menu";
|
|
12
|
-
import LightModeIcon from "@mui/icons-material/LightMode";
|
|
13
|
-
import DarkModeIcon from "@mui/icons-material/DarkMode";
|
|
14
|
-
import HubIcon from "@mui/icons-material/Hub";
|
|
15
|
-
import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
|
|
16
|
-
import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
|
|
17
|
-
import ArrowRightRoundedIcon from "@mui/icons-material/ArrowRightRounded";
|
|
18
|
+
import { Link as RouterLink, useLocation } from "react-router";
|
|
18
19
|
import Avatar from "@mui/material/Avatar";
|
|
19
20
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
20
21
|
import ListItemText from "@mui/material/ListItemText";
|
|
21
22
|
import { Button, useColorScheme, useMediaQuery } from "@mui/material";
|
|
22
23
|
import { popoverClasses } from "@mui/material/Popover";
|
|
23
24
|
import NavMenu from "./NavMenu";
|
|
24
|
-
export default function Navigation({
|
|
25
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, activeTab, withReactRouter, }) {
|
|
26
|
+
const locationRouter = useLocation();
|
|
25
27
|
const { mode, setMode } = useColorScheme();
|
|
26
28
|
const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
|
|
27
29
|
const [anchorElNav, setAnchorElNav] = React.useState(null);
|
|
@@ -39,10 +41,11 @@ export default function Navigation({ activeTab, additionalControls, username, ti
|
|
|
39
41
|
const getPages = (sx, anchorOrigin, transformOrigin, endIcon) => {
|
|
40
42
|
return navLinks.map((lnk, idx) => {
|
|
41
43
|
if ("groupName" in lnk) {
|
|
42
|
-
return (React.createElement(NavMenu, { key: idx, name: lnk.groupName, routes: lnk.links, activeTab: activeTab, sx: sx, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, endIcon: endIcon }));
|
|
44
|
+
return (React.createElement(NavMenu, { key: idx, name: lnk.groupName, routes: lnk.links, activeTab: withReactRouter ? locationRouter.pathname : activeTab || "", sx: sx, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, endIcon: endIcon }));
|
|
43
45
|
}
|
|
44
46
|
else {
|
|
45
|
-
React.createElement(Button, {
|
|
47
|
+
return (React.createElement(Button, { component: withReactRouter ? RouterLink : "button", disabled: lnk.url ===
|
|
48
|
+
(withReactRouter ? locationRouter.pathname : activeTab), to: withReactRouter ? lnk.url : undefined, href: withReactRouter ? undefined : lnk.url, key: idx, sx: sx, color: "inherit", variant: "text" }, lnk.name));
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationProps.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavigationProps.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,KAAK,EACD,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,aAAa,GACb,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;IACV,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe;IACtC,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NavigationProps.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavigationProps.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,KAAK,EACD,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,aAAa,GACb,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;IACV,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CACN;QACE,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,IAAI,EAAE,CAAC;KACf,GACD,IAAI,CACP,EAAE,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartTable.d.ts","sourceRoot":"","sources":["../../../src/components/SmartTable/SmartTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AA2BlD,OAAO,eAAe,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SmartTable.d.ts","sourceRoot":"","sources":["../../../src/components/SmartTable/SmartTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AA2BlD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAiHhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,EACpE,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,WAAW,EACX,EAAE,EACF,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,KAAK,EACL,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,cAAc,GACf,EAAE,eAAe,CAAC,CAAC,CAAC,qBA4TpB"}
|
|
@@ -36,7 +36,7 @@ const Row = (props) => {
|
|
|
36
36
|
const selectedRow = Object(props).context.selectedRow;
|
|
37
37
|
const rowStyles = Object(props).context.rowStyles;
|
|
38
38
|
const selectable = Object(props).context.selectable;
|
|
39
|
-
return ContentWrapper ? (React.createElement(ContentWrapper, {
|
|
39
|
+
return ContentWrapper ? (React.createElement(ContentWrapper, { rowProps: {
|
|
40
40
|
selected: Object(props).item.id === selectedRow,
|
|
41
41
|
...props,
|
|
42
42
|
}, ...props })) : (React.createElement(TableRow, { hover: true, sx: {
|
|
@@ -20,9 +20,11 @@ export default interface SmartTableProps<T extends {
|
|
|
20
20
|
disablePerPageSelector?: boolean;
|
|
21
21
|
globalSearch?: boolean;
|
|
22
22
|
globalSearchComponent?: ReactElement;
|
|
23
|
-
|
|
23
|
+
controlComponentColSx?: SxProps<Theme>;
|
|
24
|
+
error?: boolean;
|
|
25
|
+
perPageOptions?: number[];
|
|
26
|
+
ContentWrapper?({ children, rowProps, }: {
|
|
24
27
|
children?: ReactNode;
|
|
25
|
-
dagId: string;
|
|
26
28
|
rowProps: TableRowProps;
|
|
27
29
|
}): React.JSX.Element;
|
|
28
30
|
onSelectRow?(rowId: string): void;
|
|
@@ -35,8 +37,5 @@ export default interface SmartTableProps<T extends {
|
|
|
35
37
|
}[]): void;
|
|
36
38
|
onPageSelect(pageN: number): void;
|
|
37
39
|
onChangePerPage?(perPage: number): void;
|
|
38
|
-
controlComponentColSx?: SxProps<Theme>;
|
|
39
|
-
error?: boolean;
|
|
40
|
-
perPageOptions?: number[];
|
|
41
40
|
}
|
|
42
41
|
//# sourceMappingURL=SmartTableProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartTableProps.d.ts","sourceRoot":"","sources":["../../../src/components/SmartTable/SmartTableProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"SmartTableProps.d.ts","sourceRoot":"","sources":["../../../src/components/SmartTable/SmartTableProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE;IACxE,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,YAAY,CAAC;IACrC,qBAAqB,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,CAAC,EACd,QAAQ,EACR,QAAQ,GACT,EAAE;QACD,QAAQ,CAAC,EAAE,SAAS,CAAC;QACrB,QAAQ,EAAE,aAAa,CAAC;KACzB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC;IACrC,gBAAgB,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClE,aAAa,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,GAAG,IAAI,CAAC;IAClE,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,eAAe,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -4,7 +4,7 @@ export default interface SubtaskItemProps {
|
|
|
4
4
|
taskInstance: TaskInstance;
|
|
5
5
|
logs: string;
|
|
6
6
|
expanded: boolean;
|
|
7
|
-
expandedLogContainerRef?: RefObject<HTMLDivElement>;
|
|
7
|
+
expandedLogContainerRef?: RefObject<HTMLDivElement | null>;
|
|
8
8
|
onShowLogs(taskId: string, tryNum: number): void;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=SubtaskItemProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubtaskItemProps.d.ts","sourceRoot":"","sources":["../../../src/components/SubtaskItem/SubtaskItemProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SubtaskItemProps.d.ts","sourceRoot":"","sources":["../../../src/components/SubtaskItem/SubtaskItemProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC3D,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAClD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface SnackBarProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
3
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
4
4
|
}
|
|
5
|
-
export declare const SnackBarProvider: (
|
|
5
|
+
export declare const SnackBarProvider: (props: SnackBarProps) => React.JSX.Element;
|
|
6
6
|
export declare const useSnackbarContext: () => {
|
|
7
7
|
enqueueSnackbar(message: string, variant: "default" | "error" | "success" | "warning" | "info"): void;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnackBarProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SnackBarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"SnackBarProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SnackBarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;CAChD;AA8CD,eAAO,MAAM,gBAAgB,GAAI,OAAO,aAAa,sBAMpD,CAAC;AAEF,eAAO,MAAM,kBAAkB;6BA/DlB,MAAM,WACN,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAC5D,IAAI;CA+DR,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -25,9 +25,9 @@ const SnackBarProviderUtilities = ({ children }) => {
|
|
|
25
25
|
enqueueSnackbar: handleEnqueueSnackbar,
|
|
26
26
|
} }, children));
|
|
27
27
|
};
|
|
28
|
-
export const SnackBarProvider = (
|
|
28
|
+
export const SnackBarProvider = (props) => {
|
|
29
29
|
return (React.createElement(SnackbarProvider, { maxSnack: 5, autoHideDuration: 5000, preventDuplicate: true },
|
|
30
|
-
React.createElement(SnackBarProviderUtilities,
|
|
30
|
+
React.createElement(SnackBarProviderUtilities, { ...props })));
|
|
31
31
|
};
|
|
32
32
|
export const useSnackbarContext = () => {
|
|
33
33
|
return useContext(SnackBarContext);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danikokonn/yarik-frontend-lib",
|
|
3
|
-
"version": "2.0.49-
|
|
3
|
+
"version": "2.0.49-test10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
@@ -13,37 +13,37 @@
|
|
|
13
13
|
"url": "https://github.com/YARIK-ML/YARIK-frontend-lib.git"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@eslint/js": "^9.
|
|
16
|
+
"@eslint/js": "^9.34.0",
|
|
17
17
|
"@types/lodash.debounce": "^4.0.9",
|
|
18
18
|
"@types/moment-duration-format": "^2.2.6",
|
|
19
|
-
"eslint": "^9.
|
|
20
|
-
"eslint-plugin-react": "^7.37.
|
|
21
|
-
"globals": "^
|
|
22
|
-
"prettier": "3.2
|
|
23
|
-
"ts-loader": "^9.5.
|
|
24
|
-
"tss-react": "^4.9.
|
|
25
|
-
"typescript": "^5.
|
|
26
|
-
"typescript-eslint": "^8.
|
|
19
|
+
"eslint": "^9.34.0",
|
|
20
|
+
"eslint-plugin-react": "^7.37.5",
|
|
21
|
+
"globals": "^16.3.0",
|
|
22
|
+
"prettier": "3.6.2",
|
|
23
|
+
"ts-loader": "^9.5.4",
|
|
24
|
+
"tss-react": "^4.9.19",
|
|
25
|
+
"typescript": "^5.9.2",
|
|
26
|
+
"typescript-eslint": "^8.42.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@emotion/react": "^11.14.0",
|
|
30
|
-
"@emotion/styled": "^11.14.
|
|
31
|
-
"@mui/icons-material": "^
|
|
32
|
-
"@mui/material": "^
|
|
33
|
-
"@mui/x-date-pickers": "^
|
|
34
|
-
"@types/react": "^
|
|
35
|
-
"@types/react-dom": "^
|
|
30
|
+
"@emotion/styled": "^11.14.1",
|
|
31
|
+
"@mui/icons-material": "^7.3.2",
|
|
32
|
+
"@mui/material": "^7.3.2",
|
|
33
|
+
"@mui/x-date-pickers": "^8.11.1",
|
|
34
|
+
"@types/react": "^19.1.12",
|
|
35
|
+
"@types/react-dom": "^19.1.9",
|
|
36
36
|
"css-loader": "^7.1.2",
|
|
37
37
|
"moment": "^2.30.1",
|
|
38
38
|
"moment-duration-format": "^2.3.2",
|
|
39
|
-
"moment-timezone": "^0.
|
|
39
|
+
"moment-timezone": "^0.6.0",
|
|
40
40
|
"notistack": "^3.0.2",
|
|
41
|
-
"react": "^
|
|
42
|
-
"react-dom": "^
|
|
41
|
+
"react": "^19.1.1",
|
|
42
|
+
"react-dom": "^19.1.1",
|
|
43
43
|
"react-imask": "^7.6.1",
|
|
44
44
|
"react-json-tree": "^0.20.0",
|
|
45
45
|
"react-router": "^7.8.2",
|
|
46
|
-
"react-virtuoso": "^4.
|
|
46
|
+
"react-virtuoso": "^4.14.0",
|
|
47
47
|
"style-loader": "^4.0.0",
|
|
48
48
|
"transliteration": "^2.3.5"
|
|
49
49
|
},
|