@astral/ui 4.62.1-rc.0 → 4.62.1
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/components/Menu/Menu.d.ts +1 -1
- package/components/Menu/Menu.js +3 -3
- package/components/MenuItem/MenuItem.js +4 -2
- package/components/MenuItem/constants.d.ts +3 -0
- package/components/MenuItem/constants.js +4 -0
- package/components/MenuItem/index.d.ts +1 -0
- package/components/MenuItem/index.js +1 -0
- package/components/MenuItem/public.d.ts +1 -0
- package/components/MenuItem/public.js +1 -0
- package/components/Profile/MenuList/MenuList.js +3 -2
- package/components/Profile/Profile.js +2 -2
- package/components/Profile/constants.d.ts +1 -0
- package/components/Profile/constants.js +1 -0
- package/components/Profile/useLogic/useLogic.js +20 -10
- package/components/fileUploading/PreviewFileUploader/PreviewFileUploader.d.ts +3 -3
- package/node/components/Menu/Menu.d.ts +1 -1
- package/node/components/Menu/Menu.js +3 -3
- package/node/components/MenuItem/MenuItem.js +4 -2
- package/node/components/MenuItem/constants.d.ts +3 -0
- package/node/components/MenuItem/constants.js +7 -0
- package/node/components/MenuItem/index.d.ts +1 -0
- package/node/components/MenuItem/index.js +3 -0
- package/node/components/MenuItem/public.d.ts +1 -0
- package/node/components/MenuItem/public.js +3 -0
- package/node/components/Profile/MenuList/MenuList.js +3 -2
- package/node/components/Profile/Profile.js +1 -1
- package/node/components/Profile/constants.d.ts +1 -0
- package/node/components/Profile/constants.js +2 -1
- package/node/components/Profile/useLogic/useLogic.js +20 -10
- package/node/components/fileUploading/PreviewFileUploader/PreviewFileUploader.d.ts +3 -3
- package/package.json +1 -1
- package/components/DataGridMinimalisticPagination/styles.d.ts +0 -3
- package/components/DataGridMinimalisticPagination/styles.js +0 -5
- package/components/NotificationList/SettingsButton/styled.d.ts +0 -5
- package/components/NotificationList/SettingsButton/styled.js +0 -8
- package/components/TagsList/public.d.ts +0 -2
- package/components/TagsList/public.js +0 -2
- package/components/fileUploading/index.d.ts +0 -8
- package/components/fileUploading/index.js +0 -8
- package/components/placeholders/index.d.ts +0 -4
- package/components/placeholders/index.js +0 -4
- package/components/transitions/index.d.ts +0 -4
- package/components/transitions/index.js +0 -4
- package/components/types/index.d.ts +0 -4
- package/components/types/index.js +0 -4
- package/components/utils/index.d.ts +0 -16
- package/components/utils/index.js +0 -16
- package/hook-form/external.d.ts +0 -1
- package/hook-form/external.js +0 -1
- package/node/components/DataGridMinimalisticPagination/styles.d.ts +0 -3
- package/node/components/DataGridMinimalisticPagination/styles.js +0 -8
- package/node/components/NotificationList/SettingsButton/styled.d.ts +0 -5
- package/node/components/NotificationList/SettingsButton/styled.js +0 -11
- package/node/components/TagsList/public.d.ts +0 -2
- package/node/components/TagsList/public.js +0 -18
- package/node/components/fileUploading/index.d.ts +0 -8
- package/node/components/fileUploading/index.js +0 -21
- package/node/components/placeholders/index.d.ts +0 -4
- package/node/components/placeholders/index.js +0 -12
- package/node/components/transitions/index.d.ts +0 -4
- package/node/components/transitions/index.js +0 -11
- package/node/components/types/index.d.ts +0 -4
- package/node/components/types/index.js +0 -20
- package/node/components/utils/index.d.ts +0 -16
- package/node/components/utils/index.js +0 -32
- package/node/hook-form/external.d.ts +0 -1
- package/node/hook-form/external.js +0 -8
|
@@ -6,4 +6,4 @@ export type MenuProps = WithoutEmotionSpecific<MuiMenuProps> & {
|
|
|
6
6
|
*/
|
|
7
7
|
title?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const Menu: ({ children, onClose, open, title, ...restProps }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Menu: ({ children, onClose, open, title, MenuListProps, ...restProps }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
package/components/Menu/Menu.js
CHANGED
|
@@ -3,10 +3,10 @@ import MuiMenu from '@mui/material/Menu';
|
|
|
3
3
|
import { BottomDrawer } from '../BottomDrawer';
|
|
4
4
|
import { MenuList } from '../MenuList';
|
|
5
5
|
import { useViewportType } from '../useViewportType';
|
|
6
|
-
export const Menu = ({ children, onClose, open, title, ...restProps }) => {
|
|
6
|
+
export const Menu = ({ children, onClose, open, title, MenuListProps, ...restProps }) => {
|
|
7
7
|
const { isMobile } = useViewportType();
|
|
8
8
|
if (isMobile) {
|
|
9
|
-
return (_jsx(BottomDrawer, { title: title, onClose: onClose, open: open, children: _jsx(MenuList, { children: children }) }));
|
|
9
|
+
return (_jsx(BottomDrawer, { title: title, onClose: onClose, open: open, id: MenuListProps?.id, children: _jsx(MenuList, { children: children }) }));
|
|
10
10
|
}
|
|
11
|
-
return (_jsx(MuiMenu, { open: open, onClose: onClose, ...restProps, children: children }));
|
|
11
|
+
return (_jsx(MuiMenu, { open: open, onClose: onClose, MenuListProps: MenuListProps, ...restProps, children: children }));
|
|
12
12
|
};
|
|
@@ -2,8 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import MuiMenuItem from '@mui/material/MenuItem';
|
|
3
3
|
import { forwardRefWithGeneric } from '../forwardRefWithGeneric';
|
|
4
4
|
import { Tooltip } from '../Tooltip';
|
|
5
|
+
import { classNames } from '../utils/classNames';
|
|
6
|
+
import { menuItemClassnames } from './constants';
|
|
5
7
|
const InnerMenuItem = (props, ref) => {
|
|
6
|
-
const { disabledReason, disabled, component = 'div', title, tooltipPlacement = 'left', note, ...rest } = props;
|
|
7
|
-
return (_jsx("li", { children: _jsx(Tooltip, { title: disabled ? disabledReason : note, placement: tooltipPlacement, withoutContainer: !disabled, children: _jsx(MuiMenuItem, { ...rest, disabled: disabled, title: title, ref: ref, component: component }) }, title) }));
|
|
8
|
+
const { disabledReason, disabled, component = 'div', title, tooltipPlacement = 'left', note, className, ...rest } = props;
|
|
9
|
+
return (_jsx("li", { children: _jsx(Tooltip, { title: disabled ? disabledReason : note, placement: tooltipPlacement, withoutContainer: !disabled, children: _jsx(MuiMenuItem, { className: classNames(menuItemClassnames.root, className), ...rest, disabled: disabled, title: title, ref: ref, component: component }) }, title) }));
|
|
8
10
|
};
|
|
9
11
|
export const MenuItem = forwardRefWithGeneric(InnerMenuItem);
|
|
@@ -8,6 +8,7 @@ import { ListItemText } from '../../ListItemText';
|
|
|
8
8
|
import { MenuItem as StyledMenuItem } from '../../MenuItem';
|
|
9
9
|
import { OverflowTypography } from '../../OverflowTypography';
|
|
10
10
|
import { useViewportType } from '../../useViewportType';
|
|
11
|
+
import { PROFILE_POPOVER_ID } from '../constants';
|
|
11
12
|
import { DisplayNameMenuItem, ExitMenuItem, StyledDivider, StyledMenu, StyledMenuList, } from './styles';
|
|
12
13
|
/**
|
|
13
14
|
* Компонент для рендера menu с помощью массива данных
|
|
@@ -31,7 +32,7 @@ export const MenuList = (props) => {
|
|
|
31
32
|
return items;
|
|
32
33
|
};
|
|
33
34
|
if (isMobile) {
|
|
34
|
-
return (_jsx(BottomDrawer, { title: displayName, onClose: onClose, open: open, children: _jsx(StyledMenuList, { children: renderMenuList() }) }));
|
|
35
|
+
return (_jsx(BottomDrawer, { id: PROFILE_POPOVER_ID, title: displayName, onClose: onClose, open: open, children: _jsx(StyledMenuList, { children: renderMenuList() }) }));
|
|
35
36
|
}
|
|
36
|
-
return (_jsx(StyledMenu, { open: open, onClose: onClose, ...restProps, children: renderMenuList() }));
|
|
37
|
+
return (_jsx(StyledMenu, { MenuListProps: { id: PROFILE_POPOVER_ID }, open: open, onClose: onClose, ...restProps, children: renderMenuList() }));
|
|
37
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from '../Typography';
|
|
3
|
-
import { profileClassnames } from './constants';
|
|
3
|
+
import { PROFILE_POPOVER_ID, profileClassnames } from './constants';
|
|
4
4
|
import { MenuList } from './MenuList';
|
|
5
5
|
import { ProfileSkeleton } from './ProfileSkeleton';
|
|
6
6
|
import { Credentials, ProfileRoot, StyledAvatar, StyledChevron, User, } from './styles';
|
|
@@ -11,7 +11,7 @@ export const Profile = (props) => {
|
|
|
11
11
|
if (isLoading) {
|
|
12
12
|
return _jsx(ProfileSkeleton, {});
|
|
13
13
|
}
|
|
14
|
-
return (_jsxs(_Fragment, { children: [_jsxs(ProfileRoot, { ref: anchorRef, variant: "text", onClick: handleOpenMenu, className: profileClassnames.button, children: [_jsx(StyledAvatar, { ...avatar, className: profileClassnames.avatar }), _jsxs(User, { className: profileClassnames.user, children: [_jsxs(Credentials, { className: hidePersonalDataClassname, children: [_jsx(Typography, { variant: "body1", className: profileClassnames.credentials, children: displayName }), _jsx(Typography, { variant: "caption", color: "textSecondary", className: profileClassnames.credentials, children: annotation })] }), _jsx(StyledChevron, { isActive: open })] })] }), Menu ? (_jsx(Menu, { open: open, anchorEl: anchorRef.current, onClose: handleCloseMenu, anchorOrigin: {
|
|
14
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ProfileRoot, { ref: anchorRef, variant: "text", onClick: handleOpenMenu, className: profileClassnames.button, children: [_jsx(StyledAvatar, { ...avatar, className: profileClassnames.avatar }), _jsxs(User, { className: profileClassnames.user, children: [_jsxs(Credentials, { className: hidePersonalDataClassname, children: [_jsx(Typography, { variant: "body1", className: profileClassnames.credentials, children: displayName }), _jsx(Typography, { variant: "caption", color: "textSecondary", className: profileClassnames.credentials, children: annotation })] }), _jsx(StyledChevron, { isActive: open })] })] }), Menu ? (_jsx(Menu, { MenuListProps: { id: PROFILE_POPOVER_ID }, open: open, anchorEl: anchorRef.current, onClose: handleCloseMenu, anchorOrigin: {
|
|
15
15
|
vertical: 'bottom',
|
|
16
16
|
horizontal: 'right',
|
|
17
17
|
}, transformOrigin: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createUIKitClassname } from '../utils/createUIKitClassname';
|
|
2
|
+
export const PROFILE_POPOVER_ID = 'astral-ui-profile-popover';
|
|
2
3
|
export const profileClassnames = {
|
|
3
4
|
credentials: createUIKitClassname('profile__credentials'),
|
|
4
5
|
button: createUIKitClassname('profile__button'),
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
+
import { menuItemClassnames } from '../../MenuItem';
|
|
2
3
|
import { useHidePersonalData } from '../../personalDataSecurity';
|
|
4
|
+
import { ErrorService } from '../../services/ErrorService';
|
|
3
5
|
import { useMenu } from '../../useMenu';
|
|
6
|
+
import { PROFILE_POPOVER_ID } from '../constants';
|
|
4
7
|
export const useLogic = ({ menuList, menu: Menu, exitButton, isHidePersonalData, }) => {
|
|
5
8
|
const { open, anchorRef, handleOpenMenu, handleCloseMenu } = useMenu();
|
|
6
9
|
useEffect(() => {
|
|
7
10
|
if (!open) {
|
|
8
11
|
return;
|
|
9
12
|
}
|
|
10
|
-
const
|
|
11
|
-
const popover = document.
|
|
13
|
+
const observer = new MutationObserver((_, obs) => {
|
|
14
|
+
const popover = document.getElementById(PROFILE_POPOVER_ID);
|
|
12
15
|
if (popover) {
|
|
13
|
-
const menuItems = popover.querySelectorAll(
|
|
14
|
-
menuItems.
|
|
15
|
-
item
|
|
16
|
-
|
|
16
|
+
const menuItems = popover.querySelectorAll(`.${menuItemClassnames.root}`);
|
|
17
|
+
if (menuItems.length > 0) {
|
|
18
|
+
menuItems.forEach((item) => {
|
|
19
|
+
item.onclick = handleCloseMenu;
|
|
20
|
+
});
|
|
21
|
+
obs.disconnect();
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
|
-
}
|
|
19
|
-
|
|
24
|
+
});
|
|
25
|
+
observer.observe(document.body, {
|
|
26
|
+
childList: true,
|
|
27
|
+
subtree: true,
|
|
28
|
+
});
|
|
29
|
+
return () => observer.disconnect();
|
|
20
30
|
}, [open, handleCloseMenu]);
|
|
21
31
|
useEffect(() => {
|
|
32
|
+
const errorService = ErrorService.getInstance();
|
|
22
33
|
if (!Menu && !menuList && !exitButton) {
|
|
23
|
-
|
|
24
|
-
console.error('Profile должен иметь один из следующих props: menu, menuList, exitButton');
|
|
34
|
+
errorService.logError('Profile', 'Profile должен иметь один из следующих props: menu, menuList, exitButton');
|
|
25
35
|
}
|
|
26
36
|
}, []);
|
|
27
37
|
const hidePersonalDataClassname = useHidePersonalData({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type UsePreviewFileUploaderParams } from '../hooks/usePreviewFileUploader';
|
|
3
3
|
export type PreviewFileUploaderProps = UsePreviewFileUploaderParams;
|
|
4
|
-
export declare const PreviewFileUploader: import("react").ForwardRefExoticComponent<Pick<import("
|
|
5
|
-
value: import("
|
|
4
|
+
export declare const PreviewFileUploader: import("react").ForwardRefExoticComponent<Pick<import("../types").FileUploaderProps, "className" | "label" | "name" | "placeholder" | "isDisabled" | "isError" | "inputRef" | "helperText" | "maxFileSize" | "onUploadFile" | "getErrorMessage" | "restrictions" | "notify" | "onDeleteFile" | "onView" | "generateDownloadLink"> & {
|
|
5
|
+
value: import("../types").UploadFile | null | undefined;
|
|
6
6
|
accept?: string[] | undefined;
|
|
7
7
|
placeholderImgSrc?: string | undefined;
|
|
8
8
|
isHidePersonalData?: boolean | undefined;
|
|
9
9
|
PdfViewer?: import("react").LazyExoticComponent<(props: import("../../PdfViewer").PdfViewerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>> | ((props: import("../../PdfViewer").PdfViewerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
10
|
-
onChange: (value: import("
|
|
10
|
+
onChange: (value: import("../types").UploadFile | null) => void;
|
|
11
11
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -6,4 +6,4 @@ export type MenuProps = WithoutEmotionSpecific<MuiMenuProps> & {
|
|
|
6
6
|
*/
|
|
7
7
|
title?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const Menu: ({ children, onClose, open, title, ...restProps }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Menu: ({ children, onClose, open, title, MenuListProps, ...restProps }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,11 +9,11 @@ const Menu_1 = __importDefault(require("@mui/material/Menu"));
|
|
|
9
9
|
const BottomDrawer_1 = require("../BottomDrawer");
|
|
10
10
|
const MenuList_1 = require("../MenuList");
|
|
11
11
|
const useViewportType_1 = require("../useViewportType");
|
|
12
|
-
const Menu = ({ children, onClose, open, title, ...restProps }) => {
|
|
12
|
+
const Menu = ({ children, onClose, open, title, MenuListProps, ...restProps }) => {
|
|
13
13
|
const { isMobile } = (0, useViewportType_1.useViewportType)();
|
|
14
14
|
if (isMobile) {
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)(BottomDrawer_1.BottomDrawer, { title: title, onClose: onClose, open: open, children: (0, jsx_runtime_1.jsx)(MenuList_1.MenuList, { children: children }) }));
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(BottomDrawer_1.BottomDrawer, { title: title, onClose: onClose, open: open, id: MenuListProps?.id, children: (0, jsx_runtime_1.jsx)(MenuList_1.MenuList, { children: children }) }));
|
|
16
16
|
}
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(Menu_1.default, { open: open, onClose: onClose, ...restProps, children: children }));
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(Menu_1.default, { open: open, onClose: onClose, MenuListProps: MenuListProps, ...restProps, children: children }));
|
|
18
18
|
};
|
|
19
19
|
exports.Menu = Menu;
|
|
@@ -8,8 +8,10 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
|
|
9
9
|
const forwardRefWithGeneric_1 = require("../forwardRefWithGeneric");
|
|
10
10
|
const Tooltip_1 = require("../Tooltip");
|
|
11
|
+
const classNames_1 = require("../utils/classNames");
|
|
12
|
+
const constants_1 = require("./constants");
|
|
11
13
|
const InnerMenuItem = (props, ref) => {
|
|
12
|
-
const { disabledReason, disabled, component = 'div', title, tooltipPlacement = 'left', note, ...rest } = props;
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { title: disabled ? disabledReason : note, placement: tooltipPlacement, withoutContainer: !disabled, children: (0, jsx_runtime_1.jsx)(MenuItem_1.default, { ...rest, disabled: disabled, title: title, ref: ref, component: component }) }, title) }));
|
|
14
|
+
const { disabledReason, disabled, component = 'div', title, tooltipPlacement = 'left', note, className, ...rest } = props;
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { title: disabled ? disabledReason : note, placement: tooltipPlacement, withoutContainer: !disabled, children: (0, jsx_runtime_1.jsx)(MenuItem_1.default, { className: (0, classNames_1.classNames)(constants_1.menuItemClassnames.root, className), ...rest, disabled: disabled, title: title, ref: ref, component: component }) }, title) }));
|
|
14
16
|
};
|
|
15
17
|
exports.MenuItem = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(InnerMenuItem);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.menuItemClassnames = void 0;
|
|
4
|
+
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
|
+
exports.menuItemClassnames = {
|
|
6
|
+
root: (0, createUIKitClassname_1.createUIKitClassname)('menu-item'),
|
|
7
|
+
};
|
|
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.menuItemClassnames = void 0;
|
|
17
18
|
__exportStar(require("./MenuItem"), exports);
|
|
19
|
+
var constants_1 = require("./constants");
|
|
20
|
+
Object.defineProperty(exports, "menuItemClassnames", { enumerable: true, get: function () { return constants_1.menuItemClassnames; } });
|
|
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.menuItemClassnames = void 0;
|
|
18
|
+
var constants_1 = require("./constants");
|
|
19
|
+
Object.defineProperty(exports, "menuItemClassnames", { enumerable: true, get: function () { return constants_1.menuItemClassnames; } });
|
|
17
20
|
__exportStar(require("./MenuItem"), exports);
|
|
@@ -11,6 +11,7 @@ const ListItemText_1 = require("../../ListItemText");
|
|
|
11
11
|
const MenuItem_1 = require("../../MenuItem");
|
|
12
12
|
const OverflowTypography_1 = require("../../OverflowTypography");
|
|
13
13
|
const useViewportType_1 = require("../../useViewportType");
|
|
14
|
+
const constants_1 = require("../constants");
|
|
14
15
|
const styles_1 = require("./styles");
|
|
15
16
|
/**
|
|
16
17
|
* Компонент для рендера menu с помощью массива данных
|
|
@@ -34,8 +35,8 @@ const MenuList = (props) => {
|
|
|
34
35
|
return items;
|
|
35
36
|
};
|
|
36
37
|
if (isMobile) {
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(BottomDrawer_1.BottomDrawer, { title: displayName, onClose: onClose, open: open, children: (0, jsx_runtime_1.jsx)(styles_1.StyledMenuList, { children: renderMenuList() }) }));
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(BottomDrawer_1.BottomDrawer, { id: constants_1.PROFILE_POPOVER_ID, title: displayName, onClose: onClose, open: open, children: (0, jsx_runtime_1.jsx)(styles_1.StyledMenuList, { children: renderMenuList() }) }));
|
|
38
39
|
}
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.StyledMenu, { open: open, onClose: onClose, ...restProps, children: renderMenuList() }));
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledMenu, { MenuListProps: { id: constants_1.PROFILE_POPOVER_ID }, open: open, onClose: onClose, ...restProps, children: renderMenuList() }));
|
|
40
41
|
};
|
|
41
42
|
exports.MenuList = MenuList;
|
|
@@ -14,7 +14,7 @@ const Profile = (props) => {
|
|
|
14
14
|
if (isLoading) {
|
|
15
15
|
return (0, jsx_runtime_1.jsx)(ProfileSkeleton_1.ProfileSkeleton, {});
|
|
16
16
|
}
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(styles_1.ProfileRoot, { ref: anchorRef, variant: "text", onClick: handleOpenMenu, className: constants_1.profileClassnames.button, children: [(0, jsx_runtime_1.jsx)(styles_1.StyledAvatar, { ...avatar, className: constants_1.profileClassnames.avatar }), (0, jsx_runtime_1.jsxs)(styles_1.User, { className: constants_1.profileClassnames.user, children: [(0, jsx_runtime_1.jsxs)(styles_1.Credentials, { className: hidePersonalDataClassname, children: [(0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "body1", className: constants_1.profileClassnames.credentials, children: displayName }), (0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "caption", color: "textSecondary", className: constants_1.profileClassnames.credentials, children: annotation })] }), (0, jsx_runtime_1.jsx)(styles_1.StyledChevron, { isActive: open })] })] }), Menu ? ((0, jsx_runtime_1.jsx)(Menu, { open: open, anchorEl: anchorRef.current, onClose: handleCloseMenu, anchorOrigin: {
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(styles_1.ProfileRoot, { ref: anchorRef, variant: "text", onClick: handleOpenMenu, className: constants_1.profileClassnames.button, children: [(0, jsx_runtime_1.jsx)(styles_1.StyledAvatar, { ...avatar, className: constants_1.profileClassnames.avatar }), (0, jsx_runtime_1.jsxs)(styles_1.User, { className: constants_1.profileClassnames.user, children: [(0, jsx_runtime_1.jsxs)(styles_1.Credentials, { className: hidePersonalDataClassname, children: [(0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "body1", className: constants_1.profileClassnames.credentials, children: displayName }), (0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "caption", color: "textSecondary", className: constants_1.profileClassnames.credentials, children: annotation })] }), (0, jsx_runtime_1.jsx)(styles_1.StyledChevron, { isActive: open })] })] }), Menu ? ((0, jsx_runtime_1.jsx)(Menu, { MenuListProps: { id: constants_1.PROFILE_POPOVER_ID }, open: open, anchorEl: anchorRef.current, onClose: handleCloseMenu, anchorOrigin: {
|
|
18
18
|
vertical: 'bottom',
|
|
19
19
|
horizontal: 'right',
|
|
20
20
|
}, transformOrigin: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.profileClassnames = void 0;
|
|
3
|
+
exports.profileClassnames = exports.PROFILE_POPOVER_ID = void 0;
|
|
4
4
|
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
|
+
exports.PROFILE_POPOVER_ID = 'astral-ui-profile-popover';
|
|
5
6
|
exports.profileClassnames = {
|
|
6
7
|
credentials: (0, createUIKitClassname_1.createUIKitClassname)('profile__credentials'),
|
|
7
8
|
button: (0, createUIKitClassname_1.createUIKitClassname)('profile__button'),
|
|
@@ -2,29 +2,39 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
+
const MenuItem_1 = require("../../MenuItem");
|
|
5
6
|
const personalDataSecurity_1 = require("../../personalDataSecurity");
|
|
7
|
+
const ErrorService_1 = require("../../services/ErrorService");
|
|
6
8
|
const useMenu_1 = require("../../useMenu");
|
|
9
|
+
const constants_1 = require("../constants");
|
|
7
10
|
const useLogic = ({ menuList, menu: Menu, exitButton, isHidePersonalData, }) => {
|
|
8
11
|
const { open, anchorRef, handleOpenMenu, handleCloseMenu } = (0, useMenu_1.useMenu)();
|
|
9
12
|
(0, react_1.useEffect)(() => {
|
|
10
13
|
if (!open) {
|
|
11
14
|
return;
|
|
12
15
|
}
|
|
13
|
-
const
|
|
14
|
-
const popover = document.
|
|
16
|
+
const observer = new MutationObserver((_, obs) => {
|
|
17
|
+
const popover = document.getElementById(constants_1.PROFILE_POPOVER_ID);
|
|
15
18
|
if (popover) {
|
|
16
|
-
const menuItems = popover.querySelectorAll(
|
|
17
|
-
menuItems.
|
|
18
|
-
item
|
|
19
|
-
|
|
19
|
+
const menuItems = popover.querySelectorAll(`.${MenuItem_1.menuItemClassnames.root}`);
|
|
20
|
+
if (menuItems.length > 0) {
|
|
21
|
+
menuItems.forEach((item) => {
|
|
22
|
+
item.onclick = handleCloseMenu;
|
|
23
|
+
});
|
|
24
|
+
obs.disconnect();
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
|
-
}
|
|
22
|
-
|
|
27
|
+
});
|
|
28
|
+
observer.observe(document.body, {
|
|
29
|
+
childList: true,
|
|
30
|
+
subtree: true,
|
|
31
|
+
});
|
|
32
|
+
return () => observer.disconnect();
|
|
23
33
|
}, [open, handleCloseMenu]);
|
|
24
34
|
(0, react_1.useEffect)(() => {
|
|
35
|
+
const errorService = ErrorService_1.ErrorService.getInstance();
|
|
25
36
|
if (!Menu && !menuList && !exitButton) {
|
|
26
|
-
|
|
27
|
-
console.error('Profile должен иметь один из следующих props: menu, menuList, exitButton');
|
|
37
|
+
errorService.logError('Profile', 'Profile должен иметь один из следующих props: menu, menuList, exitButton');
|
|
28
38
|
}
|
|
29
39
|
}, []);
|
|
30
40
|
const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type UsePreviewFileUploaderParams } from '../hooks/usePreviewFileUploader';
|
|
3
3
|
export type PreviewFileUploaderProps = UsePreviewFileUploaderParams;
|
|
4
|
-
export declare const PreviewFileUploader: import("react").ForwardRefExoticComponent<Pick<import("
|
|
5
|
-
value: import("
|
|
4
|
+
export declare const PreviewFileUploader: import("react").ForwardRefExoticComponent<Pick<import("../types").FileUploaderProps, "className" | "label" | "name" | "placeholder" | "isDisabled" | "isError" | "inputRef" | "helperText" | "maxFileSize" | "onUploadFile" | "getErrorMessage" | "restrictions" | "notify" | "onDeleteFile" | "onView" | "generateDownloadLink"> & {
|
|
5
|
+
value: import("../types").UploadFile | null | undefined;
|
|
6
6
|
accept?: string[] | undefined;
|
|
7
7
|
placeholderImgSrc?: string | undefined;
|
|
8
8
|
isHidePersonalData?: boolean | undefined;
|
|
9
9
|
PdfViewer?: import("react").LazyExoticComponent<(props: import("../../PdfViewer").PdfViewerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>> | ((props: import("../../PdfViewer").PdfViewerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
10
|
-
onChange: (value: import("
|
|
10
|
+
onChange: (value: import("../types").UploadFile | null) => void;
|
|
11
11
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("../../styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { type RestrictionFn, type RestrictionFnResult, type UploadedFileData, type UploadFile, type FileUploaderNotify, type FileUploaderProps, type FileId, FileUploader, } from './FileUploader';
|
|
2
|
-
export { type FileUploaderDropZoneProps, FileUploaderDropzone, } from './FileUploaderDropzone';
|
|
3
|
-
export { FileUploaderFile, type FileUploaderFileProps, } from './FileUploaderFile';
|
|
4
|
-
export { type UseFileUploaderParams, type UsePreviewFileUploaderParams, useFileUploader, usePreviewFileUploader, } from './hooks';
|
|
5
|
-
export { PreviewFileUploader, type PreviewFileUploaderProps, } from './PreviewFileUploader';
|
|
6
|
-
export { PreviewFileUploaderDropZone, type PreviewFileUploaderDropZoneProps, } from './PreviewFileUploaderDropZone';
|
|
7
|
-
export { PreviewFileUploaderFile, type PreviewFileUploaderFileProps, } from './PreviewFileUploaderFile';
|
|
8
|
-
export { fileUploaderClassnames, previewFileUploaderClassnames, } from './constants';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { FileUploader, } from './FileUploader';
|
|
2
|
-
export { FileUploaderDropzone, } from './FileUploaderDropzone';
|
|
3
|
-
export { FileUploaderFile, } from './FileUploaderFile';
|
|
4
|
-
export { useFileUploader, usePreviewFileUploader, } from './hooks';
|
|
5
|
-
export { PreviewFileUploader, } from './PreviewFileUploader';
|
|
6
|
-
export { PreviewFileUploaderDropZone, } from './PreviewFileUploaderDropZone';
|
|
7
|
-
export { PreviewFileUploaderFile, } from './PreviewFileUploaderFile';
|
|
8
|
-
export { fileUploaderClassnames, previewFileUploaderClassnames, } from './constants';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { InternalErrorPlaceholder } from './InternalErrorPlaceholder';
|
|
2
|
-
export { LoadingPlaceholder, loadingPlaceholderClassnames, } from './LoadingPlaceholder';
|
|
3
|
-
export { OutdatedReleasePlaceholder } from './OutdatedReleasePlaceholder';
|
|
4
|
-
export { type PlaceholderImageProps, Placeholder, type PlaceholderProps, type PlaceholderSize, } from './Placeholder';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { InternalErrorPlaceholder } from './InternalErrorPlaceholder';
|
|
2
|
-
export { LoadingPlaceholder, loadingPlaceholderClassnames, } from './LoadingPlaceholder';
|
|
3
|
-
export { OutdatedReleasePlaceholder } from './OutdatedReleasePlaceholder';
|
|
4
|
-
export { Placeholder, } from './Placeholder';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './classNames';
|
|
2
|
-
export * from './createUIKitClassname';
|
|
3
|
-
export * from './mergeDeep';
|
|
4
|
-
export * from './prop';
|
|
5
|
-
export * from './uniqBy';
|
|
6
|
-
export * from './uniqueBy';
|
|
7
|
-
export * from './generateLocalStorageKey';
|
|
8
|
-
export * from './getNodeText';
|
|
9
|
-
export * from './redirectToLink';
|
|
10
|
-
export * from './checkIsDeepEqual';
|
|
11
|
-
export * from './differenceWith';
|
|
12
|
-
export * from './isEmpty';
|
|
13
|
-
export * from './mergeDeep';
|
|
14
|
-
export * from './prop';
|
|
15
|
-
export * from './uniqBy';
|
|
16
|
-
export * from './uniqueBy';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './classNames';
|
|
2
|
-
export * from './createUIKitClassname';
|
|
3
|
-
export * from './mergeDeep';
|
|
4
|
-
export * from './prop';
|
|
5
|
-
export * from './uniqBy';
|
|
6
|
-
export * from './uniqueBy';
|
|
7
|
-
export * from './generateLocalStorageKey';
|
|
8
|
-
export * from './getNodeText';
|
|
9
|
-
export * from './redirectToLink';
|
|
10
|
-
export * from './checkIsDeepEqual';
|
|
11
|
-
export * from './differenceWith';
|
|
12
|
-
export * from './isEmpty';
|
|
13
|
-
export * from './mergeDeep';
|
|
14
|
-
export * from './prop';
|
|
15
|
-
export * from './uniqBy';
|
|
16
|
-
export * from './uniqueBy';
|
package/hook-form/external.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Controller as FormController, type ControllerProps as FormControllerProps, type Field as FormField, type FieldArray as FormFieldArray, type FieldArrayPath as FormFieldArrayPath, type FieldArrayWithId as FormFieldArrayWithId, type FieldError as FormFieldError, type FieldErrors as FormFieldErrors, type FieldPath as FormFieldPath, type FieldValues as FormFieldValues, type Path as FormPath, type RegisterOptions as FormRegisterOptions, type Resolver as FormResolver, type UseControllerProps as UseFormControllerProps, type UseFormGetValues, type UseWatchProps as UseFormWatchProps, useController as useFormController, useFieldArray as useFormFieldArray, useWatch as useFormWatch, } from 'react-hook-form';
|
package/hook-form/external.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Controller as FormController, useController as useFormController, useFieldArray as useFormFieldArray, useWatch as useFormWatch, } from 'react-hook-form';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StyledMinimalisticPagination = void 0;
|
|
4
|
-
const MinimalisticPagination_1 = require("../MinimalisticPagination");
|
|
5
|
-
const styled_1 = require("../styled");
|
|
6
|
-
exports.StyledMinimalisticPagination = (0, styled_1.styled)(MinimalisticPagination_1.MinimalisticPagination) `
|
|
7
|
-
justify-content: end;
|
|
8
|
-
`;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Wrapper = void 0;
|
|
4
|
-
const styled_1 = require("../../styled");
|
|
5
|
-
exports.Wrapper = styled_1.styled.div `
|
|
6
|
-
display: flex;
|
|
7
|
-
gap: ${({ theme }) => theme.spacing(3)};
|
|
8
|
-
|
|
9
|
-
height: 100%;
|
|
10
|
-
margin-right: ${({ theme }) => theme.spacing(1)};
|
|
11
|
-
`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./TagsList"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { type RestrictionFn, type RestrictionFnResult, type UploadedFileData, type UploadFile, type FileUploaderNotify, type FileUploaderProps, type FileId, FileUploader, } from './FileUploader';
|
|
2
|
-
export { type FileUploaderDropZoneProps, FileUploaderDropzone, } from './FileUploaderDropzone';
|
|
3
|
-
export { FileUploaderFile, type FileUploaderFileProps, } from './FileUploaderFile';
|
|
4
|
-
export { type UseFileUploaderParams, type UsePreviewFileUploaderParams, useFileUploader, usePreviewFileUploader, } from './hooks';
|
|
5
|
-
export { PreviewFileUploader, type PreviewFileUploaderProps, } from './PreviewFileUploader';
|
|
6
|
-
export { PreviewFileUploaderDropZone, type PreviewFileUploaderDropZoneProps, } from './PreviewFileUploaderDropZone';
|
|
7
|
-
export { PreviewFileUploaderFile, type PreviewFileUploaderFileProps, } from './PreviewFileUploaderFile';
|
|
8
|
-
export { fileUploaderClassnames, previewFileUploaderClassnames, } from './constants';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.previewFileUploaderClassnames = exports.fileUploaderClassnames = exports.PreviewFileUploaderFile = exports.PreviewFileUploaderDropZone = exports.PreviewFileUploader = exports.usePreviewFileUploader = exports.useFileUploader = exports.FileUploaderFile = exports.FileUploaderDropzone = exports.FileUploader = void 0;
|
|
4
|
-
var FileUploader_1 = require("./FileUploader");
|
|
5
|
-
Object.defineProperty(exports, "FileUploader", { enumerable: true, get: function () { return FileUploader_1.FileUploader; } });
|
|
6
|
-
var FileUploaderDropzone_1 = require("./FileUploaderDropzone");
|
|
7
|
-
Object.defineProperty(exports, "FileUploaderDropzone", { enumerable: true, get: function () { return FileUploaderDropzone_1.FileUploaderDropzone; } });
|
|
8
|
-
var FileUploaderFile_1 = require("./FileUploaderFile");
|
|
9
|
-
Object.defineProperty(exports, "FileUploaderFile", { enumerable: true, get: function () { return FileUploaderFile_1.FileUploaderFile; } });
|
|
10
|
-
var hooks_1 = require("./hooks");
|
|
11
|
-
Object.defineProperty(exports, "useFileUploader", { enumerable: true, get: function () { return hooks_1.useFileUploader; } });
|
|
12
|
-
Object.defineProperty(exports, "usePreviewFileUploader", { enumerable: true, get: function () { return hooks_1.usePreviewFileUploader; } });
|
|
13
|
-
var PreviewFileUploader_1 = require("./PreviewFileUploader");
|
|
14
|
-
Object.defineProperty(exports, "PreviewFileUploader", { enumerable: true, get: function () { return PreviewFileUploader_1.PreviewFileUploader; } });
|
|
15
|
-
var PreviewFileUploaderDropZone_1 = require("./PreviewFileUploaderDropZone");
|
|
16
|
-
Object.defineProperty(exports, "PreviewFileUploaderDropZone", { enumerable: true, get: function () { return PreviewFileUploaderDropZone_1.PreviewFileUploaderDropZone; } });
|
|
17
|
-
var PreviewFileUploaderFile_1 = require("./PreviewFileUploaderFile");
|
|
18
|
-
Object.defineProperty(exports, "PreviewFileUploaderFile", { enumerable: true, get: function () { return PreviewFileUploaderFile_1.PreviewFileUploaderFile; } });
|
|
19
|
-
var constants_1 = require("./constants");
|
|
20
|
-
Object.defineProperty(exports, "fileUploaderClassnames", { enumerable: true, get: function () { return constants_1.fileUploaderClassnames; } });
|
|
21
|
-
Object.defineProperty(exports, "previewFileUploaderClassnames", { enumerable: true, get: function () { return constants_1.previewFileUploaderClassnames; } });
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { InternalErrorPlaceholder } from './InternalErrorPlaceholder';
|
|
2
|
-
export { LoadingPlaceholder, loadingPlaceholderClassnames, } from './LoadingPlaceholder';
|
|
3
|
-
export { OutdatedReleasePlaceholder } from './OutdatedReleasePlaceholder';
|
|
4
|
-
export { type PlaceholderImageProps, Placeholder, type PlaceholderProps, type PlaceholderSize, } from './Placeholder';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Placeholder = exports.OutdatedReleasePlaceholder = exports.loadingPlaceholderClassnames = exports.LoadingPlaceholder = exports.InternalErrorPlaceholder = void 0;
|
|
4
|
-
var InternalErrorPlaceholder_1 = require("./InternalErrorPlaceholder");
|
|
5
|
-
Object.defineProperty(exports, "InternalErrorPlaceholder", { enumerable: true, get: function () { return InternalErrorPlaceholder_1.InternalErrorPlaceholder; } });
|
|
6
|
-
var LoadingPlaceholder_1 = require("./LoadingPlaceholder");
|
|
7
|
-
Object.defineProperty(exports, "LoadingPlaceholder", { enumerable: true, get: function () { return LoadingPlaceholder_1.LoadingPlaceholder; } });
|
|
8
|
-
Object.defineProperty(exports, "loadingPlaceholderClassnames", { enumerable: true, get: function () { return LoadingPlaceholder_1.loadingPlaceholderClassnames; } });
|
|
9
|
-
var OutdatedReleasePlaceholder_1 = require("./OutdatedReleasePlaceholder");
|
|
10
|
-
Object.defineProperty(exports, "OutdatedReleasePlaceholder", { enumerable: true, get: function () { return OutdatedReleasePlaceholder_1.OutdatedReleasePlaceholder; } });
|
|
11
|
-
var Placeholder_1 = require("./Placeholder");
|
|
12
|
-
Object.defineProperty(exports, "Placeholder", { enumerable: true, get: function () { return Placeholder_1.Placeholder; } });
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Zoom = exports.Slide = exports.Grow = exports.Fade = void 0;
|
|
4
|
-
var Fade_1 = require("./Fade");
|
|
5
|
-
Object.defineProperty(exports, "Fade", { enumerable: true, get: function () { return Fade_1.Fade; } });
|
|
6
|
-
var Grow_1 = require("./Grow");
|
|
7
|
-
Object.defineProperty(exports, "Grow", { enumerable: true, get: function () { return Grow_1.Grow; } });
|
|
8
|
-
var Slide_1 = require("./Slide");
|
|
9
|
-
Object.defineProperty(exports, "Slide", { enumerable: true, get: function () { return Slide_1.Slide; } });
|
|
10
|
-
var Zoom_1 = require("./Zoom");
|
|
11
|
-
Object.defineProperty(exports, "Zoom", { enumerable: true, get: function () { return Zoom_1.Zoom; } });
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./CalendarGridBuilder"), exports);
|
|
18
|
-
__exportStar(require("./CloseEventReason"), exports);
|
|
19
|
-
__exportStar(require("./ProductionCalendar"), exports);
|
|
20
|
-
__exportStar(require("./WithoutEmotionSpecific"), exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './classNames';
|
|
2
|
-
export * from './createUIKitClassname';
|
|
3
|
-
export * from './mergeDeep';
|
|
4
|
-
export * from './prop';
|
|
5
|
-
export * from './uniqBy';
|
|
6
|
-
export * from './uniqueBy';
|
|
7
|
-
export * from './generateLocalStorageKey';
|
|
8
|
-
export * from './getNodeText';
|
|
9
|
-
export * from './redirectToLink';
|
|
10
|
-
export * from './checkIsDeepEqual';
|
|
11
|
-
export * from './differenceWith';
|
|
12
|
-
export * from './isEmpty';
|
|
13
|
-
export * from './mergeDeep';
|
|
14
|
-
export * from './prop';
|
|
15
|
-
export * from './uniqBy';
|
|
16
|
-
export * from './uniqueBy';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./classNames"), exports);
|
|
18
|
-
__exportStar(require("./createUIKitClassname"), exports);
|
|
19
|
-
__exportStar(require("./mergeDeep"), exports);
|
|
20
|
-
__exportStar(require("./prop"), exports);
|
|
21
|
-
__exportStar(require("./uniqBy"), exports);
|
|
22
|
-
__exportStar(require("./uniqueBy"), exports);
|
|
23
|
-
__exportStar(require("./generateLocalStorageKey"), exports);
|
|
24
|
-
__exportStar(require("./getNodeText"), exports);
|
|
25
|
-
__exportStar(require("./redirectToLink"), exports);
|
|
26
|
-
__exportStar(require("./checkIsDeepEqual"), exports);
|
|
27
|
-
__exportStar(require("./differenceWith"), exports);
|
|
28
|
-
__exportStar(require("./isEmpty"), exports);
|
|
29
|
-
__exportStar(require("./mergeDeep"), exports);
|
|
30
|
-
__exportStar(require("./prop"), exports);
|
|
31
|
-
__exportStar(require("./uniqBy"), exports);
|
|
32
|
-
__exportStar(require("./uniqueBy"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Controller as FormController, type ControllerProps as FormControllerProps, type Field as FormField, type FieldArray as FormFieldArray, type FieldArrayPath as FormFieldArrayPath, type FieldArrayWithId as FormFieldArrayWithId, type FieldError as FormFieldError, type FieldErrors as FormFieldErrors, type FieldPath as FormFieldPath, type FieldValues as FormFieldValues, type Path as FormPath, type RegisterOptions as FormRegisterOptions, type Resolver as FormResolver, type UseControllerProps as UseFormControllerProps, type UseFormGetValues, type UseWatchProps as UseFormWatchProps, useController as useFormController, useFieldArray as useFormFieldArray, useWatch as useFormWatch, } from 'react-hook-form';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFormWatch = exports.useFormFieldArray = exports.useFormController = exports.FormController = void 0;
|
|
4
|
-
var react_hook_form_1 = require("react-hook-form");
|
|
5
|
-
Object.defineProperty(exports, "FormController", { enumerable: true, get: function () { return react_hook_form_1.Controller; } });
|
|
6
|
-
Object.defineProperty(exports, "useFormController", { enumerable: true, get: function () { return react_hook_form_1.useController; } });
|
|
7
|
-
Object.defineProperty(exports, "useFormFieldArray", { enumerable: true, get: function () { return react_hook_form_1.useFieldArray; } });
|
|
8
|
-
Object.defineProperty(exports, "useFormWatch", { enumerable: true, get: function () { return react_hook_form_1.useWatch; } });
|