@astral/ui 4.92.0 → 4.92.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/Alert/Alert.js +2 -2
- package/components/Autocomplete/Autocomplete.js +2 -2
- package/components/Autocomplete/useLogic/useLogic.js +2 -2
- package/components/Badge/Badge.js +2 -2
- package/components/BulletList/BulletList.js +2 -2
- package/components/BulletListItem/BulletListItem.js +2 -2
- package/components/Button/useLogic/useLogic.js +2 -2
- package/components/Checkbox/Icon/Icon.js +2 -2
- package/components/Checkbox/useLogic/useLogic.js +2 -2
- package/components/Chip/ChipStatusIcon/ChipStatusIcon.js +2 -2
- package/components/Chip/useLogic/useLogic.js +2 -2
- package/components/ConfirmDialog/ConfirmDialog.js +2 -2
- package/components/CopyTypography/CopyTypography.js +3 -3
- package/components/DashboardAlert/DashboardAlert.js +2 -2
- package/components/DashboardLayout/DashboardSidebar/useLogic/useLogic.js +2 -2
- package/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +2 -2
- package/components/DataGrid/Body/Body.js +2 -2
- package/components/DataGrid/Cell/Cell.js +2 -2
- package/components/DataGrid/DataGrid.js +2 -2
- package/components/DataGrid/HeadCell/HeadCell.js +2 -2
- package/components/DataGrid/PinnedSections/Section/useLogic/useLogic.js +2 -2
- package/components/DataGrid/Row/Row.js +3 -3
- package/components/DataGrid/RowBase/RowBase.js +2 -2
- package/components/DataGridInfinite/DataGridInfinite.js +2 -2
- package/components/DataGridPaginationContainer/DataGridPaginationContainer.js +2 -2
- package/components/DescriptionCell/useLogic/useLogic.js +2 -2
- package/components/Dialog/Dialog.js +2 -2
- package/components/Dialog/useLogic/useLogic.js +2 -2
- package/components/DialogActions/DialogActions.js +2 -2
- package/components/DialogContent/DialogContent.js +2 -2
- package/components/DonutChart/DonutChart.js +2 -2
- package/components/EmailField/EmailField.js +2 -2
- package/components/EmailOrPhoneField/EmailOrPhoneField.js +2 -2
- package/components/Filename/Filename.js +2 -2
- package/components/GuidTypography/GuidTypography.js +5 -5
- package/components/HintPopover/HintPopover.js +2 -2
- package/components/IconButton/IconButton.js +2 -2
- package/components/Loader/Loader.js +2 -2
- package/components/MenuItem/MenuItem.js +2 -2
- package/components/MinimalisticPagination/MinimalisticPagination.js +2 -2
- package/components/NewPopover/NewPopover.js +2 -2
- package/components/NewStepper/NewStepper.js +2 -2
- package/components/NewStepper/Step/Step.js +3 -3
- package/components/Notification/NotificationStackContainer/NotificationStackContainer.js +3 -3
- package/components/PageAside/PageAside.js +2 -2
- package/components/PageAsideNavigation/PageAsideNavigation.js +2 -2
- package/components/PageContent/PageContent.js +2 -2
- package/components/PageHeader/HeaderContent/HeaderContent.js +2 -2
- package/components/PageHeader/PageActions/useLogic/useLogic.js +3 -3
- package/components/PageHeader/PageHeader.js +3 -3
- package/components/PageLayout/PageLayout.js +2 -2
- package/components/PageLayoutContainer/PageLayoutContainer.js +2 -2
- package/components/PageLayoutSection/PageLayoutSection.js +2 -2
- package/components/PageLayoutSection/PageLayoutSectionContainer/PageLayoutSectionContainer.js +2 -2
- package/components/PagePinnableAside/PagePinnableAside.js +2 -2
- package/components/PasswordField/PasswordField.js +2 -2
- package/components/PdfViewer/PdfDocument/PdfDocument.js +2 -2
- package/components/PinButton/PinButton.js +2 -2
- package/components/Radio/useLogic/useLogic.js +2 -2
- package/components/RadioCard/RadioCard.js +2 -2
- package/components/SearchField/SearchField.js +2 -2
- package/components/StaticCalendar/StaticDaysCalendar/StaticDaysCalendar.js +2 -2
- package/components/SvgIcon/SvgIcon.js +2 -2
- package/components/Tabs/Tabs.js +2 -2
- package/components/Tag/useLogic/useLogic.js +2 -2
- package/components/TagBadge/TagBadge.js +2 -2
- package/components/TextField/TextField.js +2 -2
- package/components/Tooltip/Tooltip.js +2 -2
- package/components/Tooltip/useLogic/useLogic.js +2 -2
- package/components/Tree/TreeList/TreeList.js +2 -2
- package/components/TreeLikeList/TreeLikeList.js +2 -2
- package/components/Typography/Typography.js +2 -2
- package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -4
- package/components/utils/classNames/classNames.d.ts +1 -1
- package/components/utils/classNames/classNames.js +1 -1
- package/components/utils/cn/cn.d.ts +1 -0
- package/components/utils/cn/cn.js +1 -0
- package/components/utils/cn/index.d.ts +1 -0
- package/components/utils/cn/index.js +1 -0
- package/components/utils/cn/public.d.ts +1 -0
- package/components/utils/cn/public.js +1 -0
- package/hook-form/EditableText/EditableText.js +2 -2
- package/hook-form/FormFilters/AllFiltersButton/useLogic/useLogic.js +2 -2
- package/hook-form/FormMobilePhoneField/FormMobilePhoneField.js +2 -2
- package/hook-form/FormPageLayout/FormPageLayout.js +2 -2
- package/hook-form/FormPageLayoutBase/FormPageLayoutBase.js +2 -2
- package/hook-form/FormWizardPageLayout/FormWizardPageLayout.js +2 -2
- package/node/components/Alert/Alert.js +2 -2
- package/node/components/Autocomplete/Autocomplete.js +2 -2
- package/node/components/Autocomplete/useLogic/useLogic.js +2 -2
- package/node/components/Badge/Badge.js +2 -2
- package/node/components/BulletList/BulletList.js +2 -2
- package/node/components/BulletListItem/BulletListItem.js +2 -2
- package/node/components/Button/useLogic/useLogic.js +2 -2
- package/node/components/Checkbox/Icon/Icon.js +2 -2
- package/node/components/Checkbox/useLogic/useLogic.js +2 -2
- package/node/components/Chip/ChipStatusIcon/ChipStatusIcon.js +2 -2
- package/node/components/Chip/useLogic/useLogic.js +2 -2
- package/node/components/ConfirmDialog/ConfirmDialog.js +2 -2
- package/node/components/CopyTypography/CopyTypography.js +3 -3
- package/node/components/DashboardAlert/DashboardAlert.js +2 -2
- package/node/components/DashboardLayout/DashboardSidebar/useLogic/useLogic.js +2 -2
- package/node/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +2 -2
- package/node/components/DataGrid/Body/Body.js +2 -2
- package/node/components/DataGrid/Cell/Cell.js +2 -2
- package/node/components/DataGrid/DataGrid.js +2 -2
- package/node/components/DataGrid/HeadCell/HeadCell.js +2 -2
- package/node/components/DataGrid/PinnedSections/Section/useLogic/useLogic.js +2 -2
- package/node/components/DataGrid/Row/Row.js +3 -3
- package/node/components/DataGrid/RowBase/RowBase.js +2 -2
- package/node/components/DataGridInfinite/DataGridInfinite.js +2 -2
- package/node/components/DataGridPaginationContainer/DataGridPaginationContainer.js +2 -2
- package/node/components/DescriptionCell/useLogic/useLogic.js +2 -2
- package/node/components/Dialog/Dialog.js +2 -2
- package/node/components/Dialog/useLogic/useLogic.js +2 -2
- package/node/components/DialogActions/DialogActions.js +2 -2
- package/node/components/DialogContent/DialogContent.js +2 -2
- package/node/components/DonutChart/DonutChart.js +2 -2
- package/node/components/EmailField/EmailField.js +2 -2
- package/node/components/EmailOrPhoneField/EmailOrPhoneField.js +2 -2
- package/node/components/Filename/Filename.js +2 -2
- package/node/components/GuidTypography/GuidTypography.js +5 -5
- package/node/components/HintPopover/HintPopover.js +2 -2
- package/node/components/IconButton/IconButton.js +2 -2
- package/node/components/Loader/Loader.js +2 -2
- package/node/components/MenuItem/MenuItem.js +2 -2
- package/node/components/MinimalisticPagination/MinimalisticPagination.js +2 -2
- package/node/components/NewPopover/NewPopover.js +2 -2
- package/node/components/NewStepper/NewStepper.js +2 -2
- package/node/components/NewStepper/Step/Step.js +3 -3
- package/node/components/Notification/NotificationStackContainer/NotificationStackContainer.js +3 -3
- package/node/components/PageAside/PageAside.js +2 -2
- package/node/components/PageAsideNavigation/PageAsideNavigation.js +2 -2
- package/node/components/PageContent/PageContent.js +2 -2
- package/node/components/PageHeader/HeaderContent/HeaderContent.js +2 -2
- package/node/components/PageHeader/PageActions/useLogic/useLogic.js +3 -3
- package/node/components/PageHeader/PageHeader.js +3 -3
- package/node/components/PageLayout/PageLayout.js +2 -2
- package/node/components/PageLayoutContainer/PageLayoutContainer.js +2 -2
- package/node/components/PageLayoutSection/PageLayoutSection.js +2 -2
- package/node/components/PageLayoutSection/PageLayoutSectionContainer/PageLayoutSectionContainer.js +2 -2
- package/node/components/PagePinnableAside/PagePinnableAside.js +2 -2
- package/node/components/PasswordField/PasswordField.js +2 -2
- package/node/components/PdfViewer/PdfDocument/PdfDocument.js +2 -2
- package/node/components/PinButton/PinButton.js +2 -2
- package/node/components/Radio/useLogic/useLogic.js +2 -2
- package/node/components/RadioCard/RadioCard.js +2 -2
- package/node/components/SearchField/SearchField.js +2 -2
- package/node/components/StaticCalendar/StaticDaysCalendar/StaticDaysCalendar.js +2 -2
- package/node/components/SvgIcon/SvgIcon.js +2 -2
- package/node/components/Tabs/Tabs.js +2 -2
- package/node/components/Tag/useLogic/useLogic.js +2 -2
- package/node/components/TagBadge/TagBadge.js +2 -2
- package/node/components/TextField/TextField.js +2 -2
- package/node/components/Tooltip/Tooltip.js +2 -2
- package/node/components/Tooltip/useLogic/useLogic.js +2 -2
- package/node/components/Tree/TreeList/TreeList.js +2 -2
- package/node/components/TreeLikeList/TreeLikeList.js +2 -2
- package/node/components/Typography/Typography.js +2 -2
- package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -4
- package/node/components/utils/classNames/classNames.d.ts +1 -1
- package/node/components/utils/classNames/classNames.js +2 -2
- package/node/components/utils/cn/cn.d.ts +1 -0
- package/node/components/utils/cn/cn.js +8 -0
- package/node/components/utils/cn/index.d.ts +1 -0
- package/node/components/utils/cn/index.js +17 -0
- package/node/components/utils/cn/public.d.ts +1 -0
- package/node/components/utils/cn/public.js +17 -0
- package/node/hook-form/EditableText/EditableText.js +2 -2
- package/node/hook-form/FormFilters/AllFiltersButton/useLogic/useLogic.js +2 -2
- package/node/hook-form/FormMobilePhoneField/FormMobilePhoneField.js +2 -2
- package/node/hook-form/FormPageLayout/FormPageLayout.js +2 -2
- package/node/hook-form/FormPageLayoutBase/FormPageLayoutBase.js +2 -2
- package/node/hook-form/FormWizardPageLayout/FormWizardPageLayout.js +2 -2
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const ConfigProvider_1 = require("../ConfigProvider");
|
|
7
7
|
const ContentState_1 = require("../ContentState");
|
|
8
8
|
const constants_1 = require("../constants");
|
|
9
|
-
const
|
|
9
|
+
const cn_1 = require("../utils/cn");
|
|
10
10
|
const cva_1 = require("../utils/cva");
|
|
11
11
|
const getInertProps_1 = require("../utils/getInertProps");
|
|
12
12
|
const Body_1 = require("./Body");
|
|
@@ -101,7 +101,7 @@ const DataGrid = (props) => {
|
|
|
101
101
|
isDisabled: isDataGridDisabled,
|
|
102
102
|
}), isDisabled: isDataGridDisabled, headProps: headProps, gridColumns: gridColumns, bodyProps: commonBodyProps, isNoData: isNoData }) }));
|
|
103
103
|
};
|
|
104
|
-
return ((0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContextProvider, { isLoading: isLoading, isTabularNums: isTabularNums, gridColumns: gridColumns, emptyCellValue: emptyCellValue, activeRowId: activeRowId, keyId: keyId, columns: columns, onRowClick: onRowClick, mobileDisplayVariant: mobileDisplayVariant, children: (0, jsx_runtime_1.jsxs)(styles_1.Container, { ref: containerRef, style: containerCssVars, className: (0,
|
|
104
|
+
return ((0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContextProvider, { isLoading: isLoading, isTabularNums: isTabularNums, gridColumns: gridColumns, emptyCellValue: emptyCellValue, activeRowId: activeRowId, keyId: keyId, columns: columns, onRowClick: onRowClick, mobileDisplayVariant: mobileDisplayVariant, children: (0, jsx_runtime_1.jsxs)(styles_1.Container, { ref: containerRef, style: containerCssVars, className: (0, cn_1.cn)(dataGridClassName, dataGridCva({
|
|
105
105
|
isAllowHorizontalScroll,
|
|
106
106
|
hasPinnedColumns,
|
|
107
107
|
gridViewMode,
|
|
@@ -7,7 +7,7 @@ const SortDownFillSm_1 = require("../../../icons/SortDownFillSm");
|
|
|
7
7
|
const SortFillSm_1 = require("../../../icons/SortFillSm");
|
|
8
8
|
const SortUpFillSm_1 = require("../../../icons/SortUpFillSm");
|
|
9
9
|
const OverflowTypography_1 = require("../../OverflowTypography");
|
|
10
|
-
const
|
|
10
|
+
const cn_1 = require("../../utils/cn");
|
|
11
11
|
const cva_1 = require("../../utils/cva");
|
|
12
12
|
const constants_1 = require("./constants");
|
|
13
13
|
const styles_1 = require("./styles");
|
|
@@ -46,6 +46,6 @@ const HeadCell = (props) => {
|
|
|
46
46
|
return (0, jsx_runtime_1.jsx)(SortFillSm_1.SortFillSm, {});
|
|
47
47
|
}
|
|
48
48
|
}, [sorting, isSortable, field]);
|
|
49
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { onClick: handleSortClick, className: (0,
|
|
49
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { onClick: handleSortClick, className: (0, cn_1.cn)(className, headCellCva({ isSortable, align, hasStartAdornment })), style: headCellCssVars, children: [startAdornment && startAdornment, (0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { rowsCount: 2, variant: "pointer", component: "p", children: label }), sortIcon] }));
|
|
50
50
|
};
|
|
51
51
|
exports.HeadCell = HeadCell;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../../../../utils/cn");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
7
|
const utils_1 = require("../../../utils");
|
|
8
8
|
const useLogic = ({ position, isNoData, columns, }) => {
|
|
9
|
-
const classnames = (0, react_1.useMemo)(() => (0,
|
|
9
|
+
const classnames = (0, react_1.useMemo)(() => (0, cn_1.cn)({
|
|
10
10
|
[constants_1.dataGridClassnames.leftPinnedSection]: position === 'left',
|
|
11
11
|
[constants_1.dataGridClassnames.rightPinnedSection]: position === 'right',
|
|
12
12
|
[constants_1.dataGridClassnames.pinnedSectionNoData]: isNoData && position === 'center',
|
|
@@ -6,7 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const BottomDrawer_1 = require("../../BottomDrawer");
|
|
7
7
|
const Checkbox_1 = require("../../Checkbox");
|
|
8
8
|
const Tooltip_1 = require("../../Tooltip");
|
|
9
|
-
const
|
|
9
|
+
const cn_1 = require("../../utils/cn");
|
|
10
10
|
const cva_1 = require("../../utils/cva");
|
|
11
11
|
const getInertProps_1 = require("../../utils/getInertProps");
|
|
12
12
|
const Cell_1 = require("../Cell");
|
|
@@ -89,7 +89,7 @@ const RowInner = (props) => {
|
|
|
89
89
|
}), children: label }), children.map((child, childIndex) => {
|
|
90
90
|
const childCellId = `${cellId}-${childIndex}`;
|
|
91
91
|
const shouldRenderStartAdornment = isFirstCell && childIndex === 0;
|
|
92
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.CellStyled, { row: row, cell: child, isHideOnMobile: isHideOnMobile, emptyCellValue: emptyCellValue, isDisabled: isDisabledCell, startAdornment: shouldRenderStartAdornment && renderStartAdornment(), isHidePersonalData: child.isHidePersonalData, hasNestedChildren: Boolean(nestedChildren?.length), className: (0,
|
|
92
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.CellStyled, { row: row, cell: child, isHideOnMobile: isHideOnMobile, emptyCellValue: emptyCellValue, isDisabled: isDisabledCell, startAdornment: shouldRenderStartAdornment && renderStartAdornment(), isHidePersonalData: child.isHidePersonalData, hasNestedChildren: Boolean(nestedChildren?.length), className: (0, cn_1.cn)(Cell_1.dataGridCellClassnames.grouped), rootRowElement: rootRowElement, href: href, target: target }, childCellId));
|
|
93
93
|
})] }, cellId));
|
|
94
94
|
}
|
|
95
95
|
return ((0, jsx_runtime_1.jsx)(styles_1.CellStyled, { className: singleCellCva({ isFirstCell }), row: row, cell: cell, emptyCellValue: emptyCellValue, startAdornment: isFirstCell && renderStartAdornment(), isDisabled: isDisabledCell, isHidePersonalData: cell.isHidePersonalData, hasNestedChildren: Boolean(nestedChildren?.length), rootRowElement: rootRowElement, href: href, target: target }, cellId));
|
|
@@ -124,7 +124,7 @@ const RowInner = (props) => {
|
|
|
124
124
|
onRowEnter,
|
|
125
125
|
onRowLeave,
|
|
126
126
|
]);
|
|
127
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0,
|
|
127
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, cn_1.cn)(className, rootCva({
|
|
128
128
|
isShowConnector,
|
|
129
129
|
mobileDisplayVariant,
|
|
130
130
|
hasNestedChildren: Boolean(nestedChildren?.length),
|
|
@@ -6,7 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const BottomDrawer_1 = require("../../BottomDrawer");
|
|
7
7
|
const Checkbox_1 = require("../../Checkbox");
|
|
8
8
|
const Tooltip_1 = require("../../Tooltip");
|
|
9
|
-
const
|
|
9
|
+
const cn_1 = require("../../utils/cn");
|
|
10
10
|
const cva_1 = require("../../utils/cva");
|
|
11
11
|
const getInertProps_1 = require("../../utils/getInertProps");
|
|
12
12
|
const Cell_1 = require("../Cell");
|
|
@@ -68,5 +68,5 @@ exports.RowBase = (0, react_1.memo)((props) => {
|
|
|
68
68
|
renderStartAdornment,
|
|
69
69
|
checkboxProps.checked,
|
|
70
70
|
]);
|
|
71
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0,
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, cn_1.cn)(className, rootCva({ mobileDisplayVariant })), style: rowBaseVars, ...dataGridInfiniteItemProps, children: [(0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { ...tooltipProps, children: (0, jsx_runtime_1.jsx)(styles_1.ContentWrapper, { ref: rowRef, onPointerEnter: () => onRowEnter?.(rowId), onPointerLeave: (event) => onRowLeave?.(rowId, event.nativeEvent), className: contentWrapperCva({ isHovered, isActive }), [constants_1.DISABLE_ROW_ATTR]: isDisabled, onClick: handleRowClick, children: renderCells() }) }), customContent, (0, jsx_runtime_1.jsx)(BottomDrawer_1.BottomDrawer, { ...drawerProps, children: (0, jsx_runtime_1.jsx)(styles_1.BottomDrawerContent, { children: drawerContent }) })] }, `row-base-${rowId}`));
|
|
72
72
|
});
|
|
@@ -13,7 +13,7 @@ const DataGridContext_1 = require("../DataGrid/DataGridContext");
|
|
|
13
13
|
const enums_1 = require("../DataGrid/enums");
|
|
14
14
|
const Head_1 = require("../DataGrid/Head");
|
|
15
15
|
const Loader_1 = require("../Loader");
|
|
16
|
-
const
|
|
16
|
+
const cn_1 = require("../utils/cn");
|
|
17
17
|
const cva_1 = require("../utils/cva");
|
|
18
18
|
const getInertProps_1 = require("../utils/getInertProps");
|
|
19
19
|
const constants_3 = require("./constants");
|
|
@@ -51,7 +51,7 @@ const DataGridInfinite = (props) => {
|
|
|
51
51
|
const { isInitialExpanded = false, expandedLevel = constants_2.EXPANDED_LEVEL_BY_DEFAULT, initialVisibleChildrenCount = constants_2.INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT, } = treeRenderConfig || {};
|
|
52
52
|
const { isSelectable } = rowProps;
|
|
53
53
|
const TableContainer = isDisabled ? styles_1.DisabledDataGridWrapper : styles_1.DataGridWrapper;
|
|
54
|
-
return ((0, jsx_runtime_1.jsx)(DataGridInfiniteContext_1.DataGridInfiniteContextProvider, { renderRow: renderRow, onSelectRow: handleSelectRow, variant: variant, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, initialVisibleChildrenCount: initialVisibleChildrenCount, isSelectable: isSelectable, selectedRows: selectedRows, moreButtonColumnPosition: moreButtonColumnPosition, isVisibleCollapseButton: isVisibleCollapseButton, children: (0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContextProvider, { gridColumns: gridColumns, emptyCellValue: emptyCellValue, activeRowId: activeRowId, columns: columns, keyId: keyId, isTabularNums: isTabularNums, onRowClick: onRowClick, mobileDisplayVariant: mobileDisplayVariant, children: (0, jsx_runtime_1.jsxs)(styles_1.StyledContainer, { style: containerCssVars, className: (0,
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(DataGridInfiniteContext_1.DataGridInfiniteContextProvider, { renderRow: renderRow, onSelectRow: handleSelectRow, variant: variant, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, initialVisibleChildrenCount: initialVisibleChildrenCount, isSelectable: isSelectable, selectedRows: selectedRows, moreButtonColumnPosition: moreButtonColumnPosition, isVisibleCollapseButton: isVisibleCollapseButton, children: (0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContextProvider, { gridColumns: gridColumns, emptyCellValue: emptyCellValue, activeRowId: activeRowId, columns: columns, keyId: keyId, isTabularNums: isTabularNums, onRowClick: onRowClick, mobileDisplayVariant: mobileDisplayVariant, children: (0, jsx_runtime_1.jsxs)(styles_1.StyledContainer, { style: containerCssVars, className: (0, cn_1.cn)(dataGridInfiniteCva({
|
|
55
55
|
hasGroupedColumns,
|
|
56
56
|
gridViewMode,
|
|
57
57
|
mobileDisplayVariant,
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const MenuItem_1 = require("../MenuItem");
|
|
6
6
|
const Select_1 = require("../Select");
|
|
7
7
|
const Typography_1 = require("../Typography");
|
|
8
|
-
const
|
|
8
|
+
const cn_1 = require("../utils/cn");
|
|
9
9
|
const cva_1 = require("../utils/cva");
|
|
10
10
|
const constants_1 = require("./constants");
|
|
11
11
|
const styles_1 = require("./styles");
|
|
@@ -19,7 +19,7 @@ const rootCva = (0, cva_1.cva)(constants_1.paginationClassnames.root, {
|
|
|
19
19
|
});
|
|
20
20
|
const DataGridPaginationContainer = ({ pagination, className, formattedRange, rowsPerPageOptions = constants_1.DEFAULT_ROWS_PER_PAGE_OPTION, onSetCountPerPage, rowsPerPage = constants_1.DEFAULT_ROWS_PER_PAGE, isDisabled, }) => {
|
|
21
21
|
const { handleChangeRowsPerPage } = (0, useLogic_1.useLogic)({ onSetCountPerPage });
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.PaginationWrapper, { className: (0,
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.PaginationWrapper, { className: (0, cn_1.cn)(className, rootCva({
|
|
23
23
|
leadingContent: Boolean(onSetCountPerPage || formattedRange),
|
|
24
24
|
})), children: [(onSetCountPerPage || formattedRange) && ((0, jsx_runtime_1.jsxs)(styles_1.RangeWrapper, { children: [onSetCountPerPage && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "body1", children: "\u0421\u0442\u0440\u043E\u043A \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435:" }), (0, jsx_runtime_1.jsx)(Select_1.Select, { size: "small", value: rowsPerPage, disabled: isDisabled, isShowClearButton: false, onChange: handleChangeRowsPerPage, children: rowsPerPageOptions.map((option) => ((0, jsx_runtime_1.jsx)(MenuItem_1.MenuItem, { value: option, children: option }, option))) })] })), formattedRange && (0, jsx_runtime_1.jsx)(styles_1.Range, { variant: "body1", children: formattedRange() })] })), pagination && pagination] }));
|
|
25
25
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../../utils/cn");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
7
7
|
const useLogic = ({ icon, iconPosition = 'left' }) => {
|
|
8
|
-
const classnames = (0, react_1.useMemo)(() => (0,
|
|
8
|
+
const classnames = (0, react_1.useMemo)(() => (0, cn_1.cn)(constants_1.descriptionCellClassnames.root, {
|
|
9
9
|
[constants_1.descriptionCellClassnames.hasIcon]: Boolean(icon),
|
|
10
10
|
[constants_1.descriptionCellClassnames.iconRight]: Boolean(icon) && iconPosition === 'right',
|
|
11
11
|
}), [icon, iconPosition]);
|
|
@@ -4,7 +4,7 @@ exports.Dialog = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const BottomDrawer_1 = require("../BottomDrawer");
|
|
6
6
|
const DialogTitle_1 = require("../DialogTitle");
|
|
7
|
-
const
|
|
7
|
+
const cn_1 = require("../utils/cn");
|
|
8
8
|
const cva_1 = require("../utils/cva");
|
|
9
9
|
const constants_1 = require("./constants");
|
|
10
10
|
const styles_1 = require("./styles");
|
|
@@ -25,6 +25,6 @@ const Dialog = ({ children, title, disableBackdropClick, onClose, size = 'md', h
|
|
|
25
25
|
if (isMobile) {
|
|
26
26
|
return ((0, jsx_runtime_1.jsx)(BottomDrawer_1.BottomDrawer, { onClose: handleClose, title: title, headerContent: headerContent, ...props, children: children }));
|
|
27
27
|
}
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledDialog, { "$size": size, onClose: handleClose, className: (0,
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledDialog, { "$size": size, onClose: handleClose, className: (0, cn_1.cn)(dialogCva({ withoutTitle: !title }), className), classes: dialogClasses, ...props, children: [title && ((0, jsx_runtime_1.jsx)(DialogTitle_1.DialogTitle, { onClose: onClose, headerContent: headerContent, children: title })), children] }));
|
|
29
29
|
};
|
|
30
30
|
exports.Dialog = Dialog;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const useViewportType_1 = require("../../useViewportType");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../../utils/cn");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
7
7
|
const useLogic = ({ onClose, disableBackdropClick, classes, }) => {
|
|
8
8
|
const { isMobile } = (0, useViewportType_1.useViewportType)();
|
|
@@ -15,7 +15,7 @@ const useLogic = ({ onClose, disableBackdropClick, classes, }) => {
|
|
|
15
15
|
});
|
|
16
16
|
const { paper, ...restClasses } = classes || {};
|
|
17
17
|
const dialogClasses = {
|
|
18
|
-
paper: (0,
|
|
18
|
+
paper: (0, cn_1.cn)(constants_1.dialogClassnames.paper, paper),
|
|
19
19
|
...restClasses,
|
|
20
20
|
};
|
|
21
21
|
return { handleClose, isMobile, dialogClasses };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DialogActions = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../utils/cn");
|
|
6
6
|
const constants_1 = require("./constants");
|
|
7
7
|
const styles_1 = require("./styles");
|
|
8
8
|
const DialogActions = ({ children, className, disableSpacing, ...props }) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.StyledDialogActions, { className: (0,
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledDialogActions, { className: (0, cn_1.cn)(className, constants_1.dialogActionsClassnames.root), ...props, children: (0, jsx_runtime_1.jsx)(styles_1.StyledGrid, { spacing: disableSpacing ? 0 : 3, children: children }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.DialogActions = DialogActions;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DialogContent = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../utils/cn");
|
|
6
6
|
const constants_1 = require("./constants");
|
|
7
7
|
const styles_1 = require("./styles");
|
|
8
|
-
const DialogContent = ({ className, ...restProps }) => ((0, jsx_runtime_1.jsx)(styles_1.StyledDialogContent, { className: (0,
|
|
8
|
+
const DialogContent = ({ className, ...restProps }) => ((0, jsx_runtime_1.jsx)(styles_1.StyledDialogContent, { className: (0, cn_1.cn)(className, constants_1.dialogContentClassnames.root), ...restProps }));
|
|
9
9
|
exports.DialogContent = DialogContent;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DonutChart = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../utils/cn");
|
|
6
6
|
const constants_1 = require("./constants");
|
|
7
7
|
const styles_1 = require("./styles");
|
|
8
8
|
const useLogic_1 = require("./useLogic");
|
|
9
9
|
const DonutChart = ({ value, maxValue, children, color = 'primary', colorIntensity = '700', className, style, }) => {
|
|
10
10
|
const { rootRef, svgViewBox, arcCx, arcCy, donutParams, meterAriaValue } = (0, useLogic_1.useLogic)({ value, maxValue, color, colorIntensity });
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { ref: rootRef, className: (0,
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { ref: rootRef, className: (0, cn_1.cn)(constants_1.donutChartClassnames.root, className), role: "meter", "aria-label": meterAriaValue.label, "aria-valuemin": meterAriaValue.min, "aria-valuemax": meterAriaValue.max, "aria-valuenow": meterAriaValue.now, style: { ...donutParams?.cssVars, ...style }, children: [donutParams && ((0, jsx_runtime_1.jsxs)(styles_1.Svg, { className: constants_1.donutChartClassnames.svg, viewBox: svgViewBox, "aria-hidden": true, children: [(0, jsx_runtime_1.jsx)(styles_1.TrackArc, { className: constants_1.donutChartClassnames.track, cx: arcCx, cy: arcCy, r: donutParams.arcR }), (0, jsx_runtime_1.jsx)(styles_1.ProgressArc, { className: constants_1.donutChartClassnames.progress, d: donutParams.arcPath, pathLength: 1, strokeDasharray: 1, strokeDashoffset: donutParams.progressOffset })] })), children && ((0, jsx_runtime_1.jsx)(styles_1.Content, { className: constants_1.donutChartClassnames.content, children: children }))] }));
|
|
12
12
|
};
|
|
13
13
|
exports.DonutChart = DonutChart;
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const personalDataSecurity_1 = require("../personalDataSecurity");
|
|
7
7
|
const TextField_1 = require("../TextField");
|
|
8
|
-
const
|
|
8
|
+
const cn_1 = require("../utils/cn");
|
|
9
9
|
exports.EmailField = (0, react_1.forwardRef)(({ isHidePersonalData, inputProps, ...props }, ref) => {
|
|
10
10
|
const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
|
|
11
11
|
isEnabled: isHidePersonalData,
|
|
@@ -13,6 +13,6 @@ exports.EmailField = (0, react_1.forwardRef)(({ isHidePersonalData, inputProps,
|
|
|
13
13
|
});
|
|
14
14
|
return ((0, jsx_runtime_1.jsx)(TextField_1.TextField, { ref: ref, type: "email", inputProps: {
|
|
15
15
|
...inputProps,
|
|
16
|
-
className: (0,
|
|
16
|
+
className: (0, cn_1.cn)(inputProps?.className, hidePersonalDataClassname),
|
|
17
17
|
}, ...props }));
|
|
18
18
|
});
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const personalDataSecurity_1 = require("../personalDataSecurity");
|
|
7
7
|
const TextField_1 = require("../TextField");
|
|
8
|
-
const
|
|
8
|
+
const cn_1 = require("../utils/cn");
|
|
9
9
|
const useLogic_1 = require("./useLogic");
|
|
10
10
|
/**
|
|
11
11
|
* Поле для ввода email или мобильного номера телефона
|
|
@@ -22,6 +22,6 @@ exports.EmailOrPhoneField = (0, react_1.forwardRef)((props, ref) => {
|
|
|
22
22
|
});
|
|
23
23
|
return ((0, jsx_runtime_1.jsx)(TextField_1.TextField, { ref: ref, type: "text", onBlur: onBlur, value: inputValue, onChange: onChange, inputProps: {
|
|
24
24
|
...inputProps,
|
|
25
|
-
className: (0,
|
|
25
|
+
className: (0, cn_1.cn)(inputProps?.className, hidePersonalDataClassname),
|
|
26
26
|
}, ...restProps }));
|
|
27
27
|
});
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const personalDataSecurity_1 = require("../personalDataSecurity");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
|
-
const
|
|
8
|
+
const cn_1 = require("../utils/cn");
|
|
9
9
|
const styles_1 = require("./styles");
|
|
10
10
|
const useLogic_1 = require("./useLogic");
|
|
11
11
|
exports.Filename = (0, react_1.forwardRef)((props, forwardedRef) => {
|
|
@@ -17,5 +17,5 @@ exports.Filename = (0, react_1.forwardRef)((props, forwardedRef) => {
|
|
|
17
17
|
const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
|
|
18
18
|
isEnabled: isHidePersonalData,
|
|
19
19
|
});
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { title: isOverflowed && children, disableInteractive: true, ...tooltipProps, className: (0,
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { title: isOverflowed && children, disableInteractive: true, ...tooltipProps, className: (0, cn_1.cn)(tooltipProps?.className, hidePersonalDataClassname), children: (0, jsx_runtime_1.jsxs)(styles_1.StyledTypography, { "$align": align, variant: variant, className: (0, cn_1.cn)(className, hidePersonalDataClassname), ...restProps, children: [(0, jsx_runtime_1.jsx)(styles_1.FileBaseName, { ...baseNameProps }), (0, jsx_runtime_1.jsx)(styles_1.FileSuffix, { children: suffixWithExtension })] }) }));
|
|
21
21
|
});
|
|
@@ -4,19 +4,19 @@ exports.GuidTypography = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const CopyTypography_1 = require("../CopyTypography");
|
|
6
6
|
const OverflowTypography_1 = require("../OverflowTypography");
|
|
7
|
-
const
|
|
7
|
+
const cn_1 = require("../utils/cn");
|
|
8
8
|
const useLogic_1 = require("./useLogic");
|
|
9
9
|
const GuidTypography = (props) => {
|
|
10
10
|
const { className, tooltipProps, canCopy, copyParams, restProps, resolvedCopyText, hidePersonalDataClassname, } = (0, useLogic_1.useLogic)(props);
|
|
11
11
|
if (canCopy) {
|
|
12
12
|
return ((0, jsx_runtime_1.jsx)(CopyTypography_1.CopyTypography, { isShowCopyText: true, copyText: resolvedCopyText, tooltipProps: {
|
|
13
13
|
...tooltipProps,
|
|
14
|
-
className: (0,
|
|
15
|
-
}, ...copyParams, children: (0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { visibleLastSymbolsCount: 4, className: (0,
|
|
14
|
+
className: (0, cn_1.cn)(tooltipProps?.className, hidePersonalDataClassname),
|
|
15
|
+
}, ...copyParams, children: (0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { visibleLastSymbolsCount: 4, className: (0, cn_1.cn)(className, hidePersonalDataClassname), tooltipProps: { title: undefined }, ...restProps }) }));
|
|
16
16
|
}
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { visibleLastSymbolsCount: 4, className: (0,
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { visibleLastSymbolsCount: 4, className: (0, cn_1.cn)(className, hidePersonalDataClassname), tooltipProps: {
|
|
18
18
|
...tooltipProps,
|
|
19
|
-
className: (0,
|
|
19
|
+
className: (0, cn_1.cn)(tooltipProps?.className, hidePersonalDataClassname),
|
|
20
20
|
}, ...restProps }));
|
|
21
21
|
};
|
|
22
22
|
exports.GuidTypography = GuidTypography;
|
|
@@ -4,7 +4,7 @@ exports.HintPopover = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const CrossOutlineMd_1 = require("../../icons/CrossOutlineMd");
|
|
6
6
|
const useViewportType_1 = require("../useViewportType");
|
|
7
|
-
const
|
|
7
|
+
const cn_1 = require("../utils/cn");
|
|
8
8
|
const cva_1 = require("../utils/cva");
|
|
9
9
|
const constants_1 = require("./constants");
|
|
10
10
|
const styles_1 = require("./styles");
|
|
@@ -22,6 +22,6 @@ const hintPopoverCva = (0, cva_1.cva)(constants_1.hintPopoverClassnames.root, {
|
|
|
22
22
|
*/
|
|
23
23
|
const HintPopover = ({ variant = 'dark', title, action, onClose, contentRef, children, className, ...restProps }) => {
|
|
24
24
|
const { isMobile } = (0, useViewportType_1.useViewportType)();
|
|
25
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.StyledHintPopover, { ...restProps, className: (0,
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledHintPopover, { ...restProps, className: (0, cn_1.cn)(className, hintPopoverCva({ variant })), hasArrow: true, disableMobileDrawer: true, onClose: onClose, children: (0, jsx_runtime_1.jsxs)(styles_1.Body, { ref: contentRef, tabIndex: -1, children: [(0, jsx_runtime_1.jsx)(styles_1.CloseButton, { variant: "text", onClick: onClose, "aria-label": "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: (0, jsx_runtime_1.jsx)(CrossOutlineMd_1.CrossOutlineMd, {}) }), title && ((0, jsx_runtime_1.jsx)(styles_1.Title, { component: "div", variant: isMobile ? 'h5' : 'h4', children: title })), children, action && (0, jsx_runtime_1.jsx)(styles_1.ActionRow, { children: action })] }) }));
|
|
26
26
|
};
|
|
27
27
|
exports.HintPopover = HintPopover;
|
|
@@ -4,11 +4,11 @@ exports.IconButton = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Button_1 = require("../Button");
|
|
6
6
|
const forwardRefWithGeneric_1 = require("../forwardRefWithGeneric");
|
|
7
|
-
const
|
|
7
|
+
const cn_1 = require("../utils/cn");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
9
|
const styles_1 = require("./styles");
|
|
10
10
|
const UnwrappedIconButton = (props, ref) => {
|
|
11
11
|
const { variant = Button_1.ButtonVariants.Contained, children, className, ...restProps } = props;
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.StyledButton, { variant: variant, className: (0,
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledButton, { variant: variant, className: (0, cn_1.cn)(constants_1.iconButtonClassnames.root, className), ...restProps, ref: ref, children: children }));
|
|
13
13
|
};
|
|
14
14
|
exports.IconButton = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(UnwrappedIconButton);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Loader = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../utils/cn");
|
|
6
6
|
const constants_1 = require("./constants");
|
|
7
7
|
const styles_1 = require("./styles");
|
|
8
8
|
const Loader = ({ size = 'medium', color = 'primary', className, style, }) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0,
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, cn_1.cn)(className, constants_1.loaderClassnames.root), "$size": size, "$color": color, "data-color": color, role: "progressbar", style: style, children: (0, jsx_runtime_1.jsx)(styles_1.StyledSvgIcon, { viewBox: "22 22 44 44", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("circle", { cx: "44", cy: "44", r: "20.2", fill: "none", stroke: "currentColor", strokeWidth: "3.6", strokeDasharray: "80, 200", strokeDashoffset: "0" }) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.Loader = Loader;
|
|
@@ -8,10 +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
|
|
11
|
+
const cn_1 = require("../utils/cn");
|
|
12
12
|
const constants_1 = require("./constants");
|
|
13
13
|
const InnerMenuItem = (props, ref) => {
|
|
14
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,
|
|
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, cn_1.cn)(constants_1.menuItemClassnames.root, className), ...rest, disabled: disabled, title: title, ref: ref, component: component }) }, title) }));
|
|
16
16
|
};
|
|
17
17
|
exports.MenuItem = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(InnerMenuItem);
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const NextOutlineMd_1 = require("../../icons/NextOutlineMd");
|
|
6
6
|
const PreviousOutlineMd_1 = require("../../icons/PreviousOutlineMd");
|
|
7
7
|
const IconButton_1 = require("../IconButton");
|
|
8
|
-
const
|
|
8
|
+
const cn_1 = require("../utils/cn");
|
|
9
9
|
const cva_1 = require("../utils/cva");
|
|
10
10
|
const constants_1 = require("./constants");
|
|
11
11
|
const styles_1 = require("./styles");
|
|
@@ -20,6 +20,6 @@ const rootCva = (0, cva_1.cva)(constants_1.minimalisticPaginationClassnames.root
|
|
|
20
20
|
const MinimalisticPagination = (props) => {
|
|
21
21
|
const { previousButtonProps, nextButtonProps } = (0, useLogic_1.useLogic)(props);
|
|
22
22
|
const { page, className, isDisabled } = props;
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.PaginationWrapper, { className: (0,
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.PaginationWrapper, { className: (0, cn_1.cn)(className, rootCva({ isDisabled })), "aria-label": "\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F", children: [(0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { "aria-label": "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443", variant: "text", ...previousButtonProps, children: (0, jsx_runtime_1.jsx)(PreviousOutlineMd_1.PreviousOutlineMd, {}) }), (0, jsx_runtime_1.jsx)(styles_1.PageItem, { component: "span", children: page }), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { "aria-label": "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443", variant: "text", ...nextButtonProps, children: (0, jsx_runtime_1.jsx)(NextOutlineMd_1.NextOutlineMd, {}) })] }));
|
|
24
24
|
};
|
|
25
25
|
exports.MinimalisticPagination = MinimalisticPagination;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NewPopover = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const BottomDrawer_1 = require("../BottomDrawer");
|
|
6
|
-
const
|
|
6
|
+
const cn_1 = require("../utils/cn");
|
|
7
7
|
const cva_1 = require("../utils/cva");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
9
|
const styles_1 = require("./styles");
|
|
@@ -32,6 +32,6 @@ const NewPopover = ({ children, onClose, isOpen, title, className, style, placem
|
|
|
32
32
|
disableAutoFocus,
|
|
33
33
|
}, children: children }));
|
|
34
34
|
}
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.StyledMuiPopper, { className: (0,
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledMuiPopper, { className: (0, cn_1.cn)(constants_1.popoverClassnames.root, className), style: style, open: shouldRender, placement: placement, anchorEl: anchorEl, disablePortal: disablePortal, modifiers: mergedModifiers, children: (0, jsx_runtime_1.jsxs)(styles_1.AnimatedWrapper, { className: animatedWrapperCva({ isOpen: isOpened, hasArrow }), style: animatedWrapperStyle, onAnimationEnd: handleAnimationEnd, children: [hasArrow && ((0, jsx_runtime_1.jsx)(styles_1.PopoverArrow, { ref: setArrowElement, className: constants_1.popoverClassnames.arrow })), (0, jsx_runtime_1.jsx)(styles_1.InnerContainer, { ref: setContainerRef, tabIndex: -1, className: constants_1.popoverClassnames.innerContainer, children: children })] }) }));
|
|
36
36
|
};
|
|
37
37
|
exports.NewPopover = NewPopover;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NewStepper = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../utils/cn");
|
|
6
6
|
const cva_1 = require("../utils/cva");
|
|
7
7
|
const constants_1 = require("./constants");
|
|
8
8
|
const StepperContext_1 = require("./StepperContext");
|
|
@@ -25,7 +25,7 @@ const stepper = (0, cva_1.cva)(constants_1.stepperClassnames.root, {
|
|
|
25
25
|
});
|
|
26
26
|
const NewStepper = (props) => {
|
|
27
27
|
const { containerRef, stepperConnector, stepperAlternativeLabel, activeStep, onClickPrevStep, onClickStep, orientation, className, children, } = (0, useLogic_1.useLogic)(props);
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)(StepperContext_1.StepperContextProvider, { orientation: orientation, activeStep: activeStep, connector: stepperConnector, alternativeLabel: stepperAlternativeLabel, onClickPrevStep: onClickPrevStep, onClickStep: onClickStep, children: (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { ref: containerRef, role: "group", className: (0,
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(StepperContext_1.StepperContextProvider, { orientation: orientation, activeStep: activeStep, connector: stepperConnector, alternativeLabel: stepperAlternativeLabel, onClickPrevStep: onClickPrevStep, onClickStep: onClickStep, children: (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { ref: containerRef, role: "group", className: (0, cn_1.cn)(stepper({
|
|
29
29
|
alternativeLabel: stepperAlternativeLabel,
|
|
30
30
|
connector: stepperConnector,
|
|
31
31
|
orientation,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Step = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../../utils/cn");
|
|
6
6
|
const cva_1 = require("../../utils/cva");
|
|
7
7
|
const StepIcon_1 = require("../StepIcon");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
@@ -58,7 +58,7 @@ const connector = (0, cva_1.cva)(constants_1.stepClassnames.connector, {
|
|
|
58
58
|
const Step = (props) => {
|
|
59
59
|
const { isCompletedStep, isRenderButton, handleClick, connectorVariant, alternativeLabel, orientation, children, isError, isWarning, icon, className, label, isRenderVerticalLineConnector, isRenderHorizontalLineConnector, isDisabled, isActiveStep, } = (0, useLogic_1.useLogic)(props);
|
|
60
60
|
const StepContent = isRenderButton ? styles_1.StyledButton : styles_1.StepContentWrapper;
|
|
61
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { "data-active-step": isActiveStep, className: (0,
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { "data-active-step": isActiveStep, className: (0, cn_1.cn)(step({
|
|
62
62
|
isError,
|
|
63
63
|
isCompleted: isCompletedStep,
|
|
64
64
|
connector: connectorVariant,
|
|
@@ -66,7 +66,7 @@ const Step = (props) => {
|
|
|
66
66
|
alternativeLabel,
|
|
67
67
|
orientation,
|
|
68
68
|
isDisabled,
|
|
69
|
-
}), className), children: [(0, jsx_runtime_1.jsxs)(StepContent, { variant: "text", onClick: handleClick, disabled: isDisabled, className: (0,
|
|
69
|
+
}), className), children: [(0, jsx_runtime_1.jsxs)(StepContent, { variant: "text", onClick: handleClick, disabled: isDisabled, className: (0, cn_1.cn)(constants_1.stepClassnames.content, {
|
|
70
70
|
[constants_1.stepClassnames.active]: isActiveStep,
|
|
71
71
|
}), children: [(0, jsx_runtime_1.jsxs)(styles_1.LabelWrapper, { className: constants_1.stepClassnames.labelContainer, children: [(0, jsx_runtime_1.jsx)(styles_1.IconWrapper, { className: constants_1.stepClassnames.iconContainer, children: (0, jsx_runtime_1.jsx)(StepIcon_1.StepIcon, { icon: icon, isActive: isActiveStep, isCompleted: isCompletedStep, isError: isError, isWarning: isWarning }) }), (0, jsx_runtime_1.jsx)(Label_1.Label, { label: label, isActiveStep: isActiveStep }), connectorVariant === 'arrow' && ((0, jsx_runtime_1.jsx)(styles_1.ArrowConnector, { className: connector({
|
|
72
72
|
connector: connectorVariant,
|
package/node/components/Notification/NotificationStackContainer/NotificationStackContainer.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NotificationStackContainer = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const inject_style_1 = require("react-toastify-next/dist/inject-style");
|
|
6
|
-
const
|
|
6
|
+
const cn_1 = require("../../utils/cn");
|
|
7
7
|
const constants_1 = require("../constants");
|
|
8
8
|
const styles_1 = require("./styles");
|
|
9
9
|
const useLogic_1 = require("./useLogic");
|
|
@@ -14,9 +14,9 @@ const NotificationStackContainer = ({ containerId = constants_1.NOTIFY_CONTAINER
|
|
|
14
14
|
const { isVisibleCloseButton, isStackExpanded, isStartedClosingNotify, closeAll, } = (0, useLogic_1.useLogic)({
|
|
15
15
|
containerId,
|
|
16
16
|
});
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0,
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, cn_1.cn)({
|
|
18
18
|
[constants_1.notifyClassnames.container]: isStackExpanded,
|
|
19
|
-
}), children: [(0, jsx_runtime_1.jsx)("div", { className: constants_1.notifyClassnames.stackHost, children: (0, jsx_runtime_1.jsx)(styles_1.Inner, { ...props, className: (0,
|
|
19
|
+
}), children: [(0, jsx_runtime_1.jsx)("div", { className: constants_1.notifyClassnames.stackHost, children: (0, jsx_runtime_1.jsx)(styles_1.Inner, { ...props, className: (0, cn_1.cn)(constants_1.notifyClassnames.stack, props.className), ...{ stacked: true }, containerId: containerId, pauseOnFocusLoss: true, position: constants_1.NOTIFY_POSITIONS.BOTTOM_RIGHT, newestOnTop: false, closeOnClick: false, draggable: false, rtl: false, closeButton: false, bodyClassName: `${constants_1.notifyClassnames.body}`, toastClassName: constants_1.notifyClassnames.root, progressClassName: `${constants_1.notifyClassnames.progress}` }) }), isVisibleCloseButton && ((0, jsx_runtime_1.jsx)(styles_1.CloseButton, { variant: "light", color: "grey", className: (0, cn_1.cn)({
|
|
20
20
|
[constants_1.notifyClassnames.closeButtonAnimationOut]: isStartedClosingNotify,
|
|
21
21
|
}), onClick: closeAll, children: "\u0421\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435" })), (0, jsx_runtime_1.jsx)(styles_1.StaticInner, { containerId: staticContainerId, position: constants_1.NOTIFY_POSITIONS.BOTTOM_RIGHT, newestOnTop: false, closeOnClick: false, draggable: false, rtl: false, closeButton: false, bodyClassName: `${constants_1.notifyClassnames.body}`, toastClassName: constants_1.notifyClassnames.root, progressClassName: `${constants_1.notifyClassnames.progress}` }), bannerContainer] }));
|
|
22
22
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PageAside = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_dom_1 = require("react-dom");
|
|
6
|
-
const
|
|
6
|
+
const cn_1 = require("../utils/cn");
|
|
7
7
|
const cva_1 = require("../utils/cva");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
9
|
const hooks_1 = require("./hooks");
|
|
@@ -21,6 +21,6 @@ const PageAside = ({ children, className, header, navigation, }) => {
|
|
|
21
21
|
navigation,
|
|
22
22
|
});
|
|
23
23
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isMobileNavigationVisible &&
|
|
24
|
-
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(styles_1.MobileAsideNavigation, { className: constants_1.pageAsideClassnames.mobileNavigation, children: navigation }), pageHeaderContainer), header && (0, jsx_runtime_1.jsx)(styles_1.MobileAsideHeader, { children: header }), (0, jsx_runtime_1.jsx)(MobileAsideButton_1.MobileAsideButton, { content: children }), (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0,
|
|
24
|
+
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(styles_1.MobileAsideNavigation, { className: constants_1.pageAsideClassnames.mobileNavigation, children: navigation }), pageHeaderContainer), header && (0, jsx_runtime_1.jsx)(styles_1.MobileAsideHeader, { children: header }), (0, jsx_runtime_1.jsx)(MobileAsideButton_1.MobileAsideButton, { content: children }), (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, cn_1.cn)(className, asideCva({ withHeader: Boolean(header) })), children: [header && ((0, jsx_runtime_1.jsxs)(styles_1.AsideHeader, { children: [header, (0, jsx_runtime_1.jsx)(styles_1.StyledDivider, {})] })), navigation, children] })] }));
|
|
25
25
|
};
|
|
26
26
|
exports.PageAside = PageAside;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PageAsideNavigation = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const useScrollToActiveElement_1 = require("../useScrollToActiveElement");
|
|
6
|
-
const
|
|
6
|
+
const cn_1 = require("../utils/cn");
|
|
7
7
|
const constants_1 = require("./constants");
|
|
8
8
|
const styles_1 = require("./styles");
|
|
9
9
|
const PageAsideNavigation = ({ addonNavigation, children, className, addonNavigationPosition = 'start', }) => {
|
|
10
10
|
const { containerRef } = (0, useScrollToActiveElement_1.useScrollToActiveElement)();
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0,
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, cn_1.cn)(constants_1.pageAsideNavigationClassnames.root, className), children: [addonNavigationPosition === 'start' && addonNavigation && ((0, jsx_runtime_1.jsx)(styles_1.AddonNavigationWrapper, { children: addonNavigation })), (0, jsx_runtime_1.jsx)(styles_1.NavigationList, { ref: containerRef, children: children }), addonNavigationPosition === 'end' && addonNavigation && ((0, jsx_runtime_1.jsx)(styles_1.AddonNavigationWrapper, { children: addonNavigation }))] }));
|
|
12
12
|
};
|
|
13
13
|
exports.PageAsideNavigation = PageAsideNavigation;
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const PageContext_1 = require("../PageContext");
|
|
7
7
|
const PageLayoutFooter_1 = require("../PageLayoutFooter");
|
|
8
|
-
const
|
|
8
|
+
const cn_1 = require("../utils/cn");
|
|
9
9
|
const cva_1 = require("../utils/cva");
|
|
10
10
|
const constants_1 = require("./constants");
|
|
11
11
|
const styles_1 = require("./styles");
|
|
@@ -25,7 +25,7 @@ const contentCva = (0, cva_1.cva)(constants_1.pageContentClassnames.content, {
|
|
|
25
25
|
exports.PageContent = (0, react_1.forwardRef)((props, forwardedRef) => {
|
|
26
26
|
const { hasAside } = (0, react_1.useContext)(PageContext_1.PageContext);
|
|
27
27
|
const { className, children, isFullHeight = true, footer, scrollRef, header, isUnconstrained = false, } = props;
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0,
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, cn_1.cn)(className, constants_1.pageContentClassnames.pageContent), ref: forwardedRef, "$isFullHeight": isFullHeight, "$isSeparatorShown": hasAside || Boolean(header), children: [header && header, (0, jsx_runtime_1.jsx)(styles_1.Content, { ref: scrollRef, className: contentCva({
|
|
29
29
|
isUnconstrained,
|
|
30
30
|
hasHeader: Boolean(header),
|
|
31
31
|
hasAside,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.HeaderContent = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Breadcrumbs_1 = require("../../Breadcrumbs");
|
|
6
|
-
const
|
|
6
|
+
const cn_1 = require("../../utils/cn");
|
|
7
7
|
const constants_1 = require("../constants");
|
|
8
8
|
const PageActions_1 = require("../PageActions");
|
|
9
9
|
const Title_1 = require("../Title");
|
|
@@ -17,6 +17,6 @@ const HeaderContent = ({ backButton, description, subheader, breadcrumbs, tabs,
|
|
|
17
17
|
}
|
|
18
18
|
return ((0, jsx_runtime_1.jsx)(styles_1.BreadcrumbsWrapper, { children: Array.isArray(breadcrumbs) ? ((0, jsx_runtime_1.jsx)(Breadcrumbs_1.Breadcrumbs, { children: breadcrumbs })) : (breadcrumbs) }));
|
|
19
19
|
};
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [renderBreadcrumbs(), (0, jsx_runtime_1.jsx)(styles_1.DesktopTitleWrapper, { children: (0, jsx_runtime_1.jsx)(Title_1.Title, { backButton: backButton, title: title, isLoading: isLoading, hasDescription: Boolean(description), hasBreadcrumbs: Boolean(breadcrumbs) }) }), (0, jsx_runtime_1.jsx)(Description_1.Description, { description: description, isLoading: isLoading }), actions && ((0, jsx_runtime_1.jsx)(PageActions_1.PageActions, { className: (0,
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [renderBreadcrumbs(), (0, jsx_runtime_1.jsx)(styles_1.DesktopTitleWrapper, { children: (0, jsx_runtime_1.jsx)(Title_1.Title, { backButton: backButton, title: title, isLoading: isLoading, hasDescription: Boolean(description), hasBreadcrumbs: Boolean(breadcrumbs) }) }), (0, jsx_runtime_1.jsx)(Description_1.Description, { description: description, isLoading: isLoading }), actions && ((0, jsx_runtime_1.jsx)(PageActions_1.PageActions, { className: (0, cn_1.cn)(constants_1.pageHeaderClassnames.pageHeaderActions), isLoading: isLoading, size: "medium", withCollapseOnLaptop: Boolean(filters), ...actions })), filters && ((0, jsx_runtime_1.jsx)(FormFiltersProvider_1.FormFiltersProvider, { filtersClassName: constants_1.pageHeaderClassnames.filters, quickFiltersClassName: constants_1.pageHeaderClassnames.quickFilters, children: filters })), tabs && (0, jsx_runtime_1.jsx)(styles_1.TabsWrapper, { children: tabs }), subheader && ((0, jsx_runtime_1.jsx)(styles_1.PageSubheader, { className: constants_1.pageHeaderClassnames.subheader, children: subheader }))] }));
|
|
21
21
|
};
|
|
22
22
|
exports.HeaderContent = HeaderContent;
|