@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.
Files changed (175) hide show
  1. package/components/Alert/Alert.js +2 -2
  2. package/components/Autocomplete/Autocomplete.js +2 -2
  3. package/components/Autocomplete/useLogic/useLogic.js +2 -2
  4. package/components/Badge/Badge.js +2 -2
  5. package/components/BulletList/BulletList.js +2 -2
  6. package/components/BulletListItem/BulletListItem.js +2 -2
  7. package/components/Button/useLogic/useLogic.js +2 -2
  8. package/components/Checkbox/Icon/Icon.js +2 -2
  9. package/components/Checkbox/useLogic/useLogic.js +2 -2
  10. package/components/Chip/ChipStatusIcon/ChipStatusIcon.js +2 -2
  11. package/components/Chip/useLogic/useLogic.js +2 -2
  12. package/components/ConfirmDialog/ConfirmDialog.js +2 -2
  13. package/components/CopyTypography/CopyTypography.js +3 -3
  14. package/components/DashboardAlert/DashboardAlert.js +2 -2
  15. package/components/DashboardLayout/DashboardSidebar/useLogic/useLogic.js +2 -2
  16. package/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +2 -2
  17. package/components/DataGrid/Body/Body.js +2 -2
  18. package/components/DataGrid/Cell/Cell.js +2 -2
  19. package/components/DataGrid/DataGrid.js +2 -2
  20. package/components/DataGrid/HeadCell/HeadCell.js +2 -2
  21. package/components/DataGrid/PinnedSections/Section/useLogic/useLogic.js +2 -2
  22. package/components/DataGrid/Row/Row.js +3 -3
  23. package/components/DataGrid/RowBase/RowBase.js +2 -2
  24. package/components/DataGridInfinite/DataGridInfinite.js +2 -2
  25. package/components/DataGridPaginationContainer/DataGridPaginationContainer.js +2 -2
  26. package/components/DescriptionCell/useLogic/useLogic.js +2 -2
  27. package/components/Dialog/Dialog.js +2 -2
  28. package/components/Dialog/useLogic/useLogic.js +2 -2
  29. package/components/DialogActions/DialogActions.js +2 -2
  30. package/components/DialogContent/DialogContent.js +2 -2
  31. package/components/DonutChart/DonutChart.js +2 -2
  32. package/components/EmailField/EmailField.js +2 -2
  33. package/components/EmailOrPhoneField/EmailOrPhoneField.js +2 -2
  34. package/components/Filename/Filename.js +2 -2
  35. package/components/GuidTypography/GuidTypography.js +5 -5
  36. package/components/HintPopover/HintPopover.js +2 -2
  37. package/components/IconButton/IconButton.js +2 -2
  38. package/components/Loader/Loader.js +2 -2
  39. package/components/MenuItem/MenuItem.js +2 -2
  40. package/components/MinimalisticPagination/MinimalisticPagination.js +2 -2
  41. package/components/NewPopover/NewPopover.js +2 -2
  42. package/components/NewStepper/NewStepper.js +2 -2
  43. package/components/NewStepper/Step/Step.js +3 -3
  44. package/components/Notification/NotificationStackContainer/NotificationStackContainer.js +3 -3
  45. package/components/PageAside/PageAside.js +2 -2
  46. package/components/PageAsideNavigation/PageAsideNavigation.js +2 -2
  47. package/components/PageContent/PageContent.js +2 -2
  48. package/components/PageHeader/HeaderContent/HeaderContent.js +2 -2
  49. package/components/PageHeader/PageActions/useLogic/useLogic.js +3 -3
  50. package/components/PageHeader/PageHeader.js +3 -3
  51. package/components/PageLayout/PageLayout.js +2 -2
  52. package/components/PageLayoutContainer/PageLayoutContainer.js +2 -2
  53. package/components/PageLayoutSection/PageLayoutSection.js +2 -2
  54. package/components/PageLayoutSection/PageLayoutSectionContainer/PageLayoutSectionContainer.js +2 -2
  55. package/components/PagePinnableAside/PagePinnableAside.js +2 -2
  56. package/components/PasswordField/PasswordField.js +2 -2
  57. package/components/PdfViewer/PdfDocument/PdfDocument.js +2 -2
  58. package/components/PinButton/PinButton.js +2 -2
  59. package/components/Radio/useLogic/useLogic.js +2 -2
  60. package/components/RadioCard/RadioCard.js +2 -2
  61. package/components/SearchField/SearchField.js +2 -2
  62. package/components/StaticCalendar/StaticDaysCalendar/StaticDaysCalendar.js +2 -2
  63. package/components/SvgIcon/SvgIcon.js +2 -2
  64. package/components/Tabs/Tabs.js +2 -2
  65. package/components/Tag/useLogic/useLogic.js +2 -2
  66. package/components/TagBadge/TagBadge.js +2 -2
  67. package/components/TextField/TextField.js +2 -2
  68. package/components/Tooltip/Tooltip.js +2 -2
  69. package/components/Tooltip/useLogic/useLogic.js +2 -2
  70. package/components/Tree/TreeList/TreeList.js +2 -2
  71. package/components/TreeLikeList/TreeLikeList.js +2 -2
  72. package/components/Typography/Typography.js +2 -2
  73. package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -4
  74. package/components/utils/classNames/classNames.d.ts +1 -1
  75. package/components/utils/classNames/classNames.js +1 -1
  76. package/components/utils/cn/cn.d.ts +1 -0
  77. package/components/utils/cn/cn.js +1 -0
  78. package/components/utils/cn/index.d.ts +1 -0
  79. package/components/utils/cn/index.js +1 -0
  80. package/components/utils/cn/public.d.ts +1 -0
  81. package/components/utils/cn/public.js +1 -0
  82. package/hook-form/EditableText/EditableText.js +2 -2
  83. package/hook-form/FormFilters/AllFiltersButton/useLogic/useLogic.js +2 -2
  84. package/hook-form/FormMobilePhoneField/FormMobilePhoneField.js +2 -2
  85. package/hook-form/FormPageLayout/FormPageLayout.js +2 -2
  86. package/hook-form/FormPageLayoutBase/FormPageLayoutBase.js +2 -2
  87. package/hook-form/FormWizardPageLayout/FormWizardPageLayout.js +2 -2
  88. package/node/components/Alert/Alert.js +2 -2
  89. package/node/components/Autocomplete/Autocomplete.js +2 -2
  90. package/node/components/Autocomplete/useLogic/useLogic.js +2 -2
  91. package/node/components/Badge/Badge.js +2 -2
  92. package/node/components/BulletList/BulletList.js +2 -2
  93. package/node/components/BulletListItem/BulletListItem.js +2 -2
  94. package/node/components/Button/useLogic/useLogic.js +2 -2
  95. package/node/components/Checkbox/Icon/Icon.js +2 -2
  96. package/node/components/Checkbox/useLogic/useLogic.js +2 -2
  97. package/node/components/Chip/ChipStatusIcon/ChipStatusIcon.js +2 -2
  98. package/node/components/Chip/useLogic/useLogic.js +2 -2
  99. package/node/components/ConfirmDialog/ConfirmDialog.js +2 -2
  100. package/node/components/CopyTypography/CopyTypography.js +3 -3
  101. package/node/components/DashboardAlert/DashboardAlert.js +2 -2
  102. package/node/components/DashboardLayout/DashboardSidebar/useLogic/useLogic.js +2 -2
  103. package/node/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +2 -2
  104. package/node/components/DataGrid/Body/Body.js +2 -2
  105. package/node/components/DataGrid/Cell/Cell.js +2 -2
  106. package/node/components/DataGrid/DataGrid.js +2 -2
  107. package/node/components/DataGrid/HeadCell/HeadCell.js +2 -2
  108. package/node/components/DataGrid/PinnedSections/Section/useLogic/useLogic.js +2 -2
  109. package/node/components/DataGrid/Row/Row.js +3 -3
  110. package/node/components/DataGrid/RowBase/RowBase.js +2 -2
  111. package/node/components/DataGridInfinite/DataGridInfinite.js +2 -2
  112. package/node/components/DataGridPaginationContainer/DataGridPaginationContainer.js +2 -2
  113. package/node/components/DescriptionCell/useLogic/useLogic.js +2 -2
  114. package/node/components/Dialog/Dialog.js +2 -2
  115. package/node/components/Dialog/useLogic/useLogic.js +2 -2
  116. package/node/components/DialogActions/DialogActions.js +2 -2
  117. package/node/components/DialogContent/DialogContent.js +2 -2
  118. package/node/components/DonutChart/DonutChart.js +2 -2
  119. package/node/components/EmailField/EmailField.js +2 -2
  120. package/node/components/EmailOrPhoneField/EmailOrPhoneField.js +2 -2
  121. package/node/components/Filename/Filename.js +2 -2
  122. package/node/components/GuidTypography/GuidTypography.js +5 -5
  123. package/node/components/HintPopover/HintPopover.js +2 -2
  124. package/node/components/IconButton/IconButton.js +2 -2
  125. package/node/components/Loader/Loader.js +2 -2
  126. package/node/components/MenuItem/MenuItem.js +2 -2
  127. package/node/components/MinimalisticPagination/MinimalisticPagination.js +2 -2
  128. package/node/components/NewPopover/NewPopover.js +2 -2
  129. package/node/components/NewStepper/NewStepper.js +2 -2
  130. package/node/components/NewStepper/Step/Step.js +3 -3
  131. package/node/components/Notification/NotificationStackContainer/NotificationStackContainer.js +3 -3
  132. package/node/components/PageAside/PageAside.js +2 -2
  133. package/node/components/PageAsideNavigation/PageAsideNavigation.js +2 -2
  134. package/node/components/PageContent/PageContent.js +2 -2
  135. package/node/components/PageHeader/HeaderContent/HeaderContent.js +2 -2
  136. package/node/components/PageHeader/PageActions/useLogic/useLogic.js +3 -3
  137. package/node/components/PageHeader/PageHeader.js +3 -3
  138. package/node/components/PageLayout/PageLayout.js +2 -2
  139. package/node/components/PageLayoutContainer/PageLayoutContainer.js +2 -2
  140. package/node/components/PageLayoutSection/PageLayoutSection.js +2 -2
  141. package/node/components/PageLayoutSection/PageLayoutSectionContainer/PageLayoutSectionContainer.js +2 -2
  142. package/node/components/PagePinnableAside/PagePinnableAside.js +2 -2
  143. package/node/components/PasswordField/PasswordField.js +2 -2
  144. package/node/components/PdfViewer/PdfDocument/PdfDocument.js +2 -2
  145. package/node/components/PinButton/PinButton.js +2 -2
  146. package/node/components/Radio/useLogic/useLogic.js +2 -2
  147. package/node/components/RadioCard/RadioCard.js +2 -2
  148. package/node/components/SearchField/SearchField.js +2 -2
  149. package/node/components/StaticCalendar/StaticDaysCalendar/StaticDaysCalendar.js +2 -2
  150. package/node/components/SvgIcon/SvgIcon.js +2 -2
  151. package/node/components/Tabs/Tabs.js +2 -2
  152. package/node/components/Tag/useLogic/useLogic.js +2 -2
  153. package/node/components/TagBadge/TagBadge.js +2 -2
  154. package/node/components/TextField/TextField.js +2 -2
  155. package/node/components/Tooltip/Tooltip.js +2 -2
  156. package/node/components/Tooltip/useLogic/useLogic.js +2 -2
  157. package/node/components/Tree/TreeList/TreeList.js +2 -2
  158. package/node/components/TreeLikeList/TreeLikeList.js +2 -2
  159. package/node/components/Typography/Typography.js +2 -2
  160. package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -4
  161. package/node/components/utils/classNames/classNames.d.ts +1 -1
  162. package/node/components/utils/classNames/classNames.js +2 -2
  163. package/node/components/utils/cn/cn.d.ts +1 -0
  164. package/node/components/utils/cn/cn.js +8 -0
  165. package/node/components/utils/cn/index.d.ts +1 -0
  166. package/node/components/utils/cn/index.js +17 -0
  167. package/node/components/utils/cn/public.d.ts +1 -0
  168. package/node/components/utils/cn/public.js +17 -0
  169. package/node/hook-form/EditableText/EditableText.js +2 -2
  170. package/node/hook-form/FormFilters/AllFiltersButton/useLogic/useLogic.js +2 -2
  171. package/node/hook-form/FormMobilePhoneField/FormMobilePhoneField.js +2 -2
  172. package/node/hook-form/FormPageLayout/FormPageLayout.js +2 -2
  173. package/node/hook-form/FormPageLayoutBase/FormPageLayoutBase.js +2 -2
  174. package/node/hook-form/FormWizardPageLayout/FormWizardPageLayout.js +2 -2
  175. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { forwardRef, useMemo } from 'react';
3
3
  import { FormHelperTextContent } from '../FormHelperText';
4
- import { classNames } from '../utils/classNames';
4
+ import { cn } from '../utils/cn';
5
5
  import { textFieldClassnames } from './constants';
6
6
  import { StyledTextField } from './styles';
7
7
  export const TextField = forwardRef(({ success, error, helperText: helperTextProp, fullWidth = false, startAdornment, endAdornment, inputProps, InputProps, maxLength, trimmed = true, onBlur, hideHelperText = false, className, disabled, ...props }, ref) => {
@@ -37,7 +37,7 @@ export const TextField = forwardRef(({ success, error, helperText: helperTextPro
37
37
  }
38
38
  onBlur?.(event);
39
39
  };
40
- const classnames = useMemo(() => classNames(className, {
40
+ const classnames = useMemo(() => cn(className, {
41
41
  [textFieldClassnames.hideHelperText]: hideHelperText,
42
42
  [textFieldClassnames.disabled]: disabled,
43
43
  }), [className, hideHelperText, disabled]);
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
- import { classNames } from '../utils/classNames';
3
+ import { cn } from '../utils/cn';
4
4
  import { cva } from '../utils/cva';
5
5
  import { tooltipClassnames } from './constants';
6
6
  import { ContentWrapper, StyledTooltip } from './styles';
@@ -14,5 +14,5 @@ const tooltipCva = cva(tooltipClassnames.root, {
14
14
  });
15
15
  export const Tooltip = forwardRef((props, ref) => {
16
16
  const { title, placement = 'top', size = 'medium', withoutContainer = true, children, className, tooltipStyle, width, ...restProps } = useLogic(props);
17
- return (_jsx(StyledTooltip, { ref: ref, title: title, size: size, placement: placement, arrow: true, className: classNames(className, tooltipCva({ withoutMaxWidth: Boolean(width) })), style: tooltipStyle, ...restProps, children: withoutContainer ? (children) : (_jsx(ContentWrapper, { className: tooltipClassnames.contentWrapper, children: children })) }));
17
+ return (_jsx(StyledTooltip, { ref: ref, title: title, size: size, placement: placement, arrow: true, className: cn(className, tooltipCva({ withoutMaxWidth: Boolean(width) })), style: tooltipStyle, ...restProps, children: withoutContainer ? (children) : (_jsx(ContentWrapper, { className: tooltipClassnames.contentWrapper, children: children })) }));
18
18
  });
@@ -1,11 +1,11 @@
1
1
  import { useHidePersonalData } from '../../personalDataSecurity';
2
- import { classNames } from '../../utils/classNames';
2
+ import { cn } from '../../utils/cn';
3
3
  export const useLogic = (props) => {
4
4
  const { children, className: propClassName, width, style, ...restProps } = props;
5
5
  const hidePersonalDataClassName = useHidePersonalData({
6
6
  type: 'container',
7
7
  });
8
- const className = classNames(propClassName, {
8
+ const className = cn(propClassName, {
9
9
  [hidePersonalDataClassName]: children.props.className?.includes(hidePersonalDataClassName),
10
10
  });
11
11
  const tooltipStyle = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { classNames } from '../../utils/classNames';
2
+ import { cn } from '../../utils/cn';
3
3
  import { treeListClassnames } from './constants';
4
4
  import { List } from './styles';
5
5
  import { TreeItem } from './TreeItem';
@@ -8,5 +8,5 @@ const INITIAL_LEVEL = 0;
8
8
  export const TreeList = (props) => {
9
9
  const { listProps, itemProps } = useLogic(props);
10
10
  const { data, className, expandedLevel = 10, disabledItems, ...restProps } = props;
11
- return (_jsx(List, { className: classNames(className, treeListClassnames.list), ...listProps, children: data.map((item) => (_jsx(TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
11
+ return (_jsx(List, { className: cn(className, treeListClassnames.list), ...listProps, children: data.map((item) => (_jsx(TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { treeListClassnames } from '../Tree';
3
- import { classNames } from '../utils/classNames';
3
+ import { cn } from '../utils/cn';
4
4
  import { List } from './styles';
5
5
  import { TreeItem } from './TreeItem';
6
6
  import { useLogic } from './useLogic';
@@ -8,5 +8,5 @@ const INITIAL_LEVEL = 0;
8
8
  export const TreeLikeList = (props) => {
9
9
  const { listProps, itemProps } = useLogic(props);
10
10
  const { data, className, expandedLevel = 10, disabledItems, ...restProps } = props;
11
- return (_jsx(List, { className: classNames(className, treeListClassnames.list), ...listProps, children: data.map((item) => (_jsx(TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
11
+ return (_jsx(List, { className: cn(className, treeListClassnames.list), ...listProps, children: data.map((item) => (_jsx(TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
- import { classNames } from '../utils/classNames';
3
+ import { cn } from '../utils/cn';
4
4
  import { cva } from '../utils/cva';
5
5
  import { typographyClassnames } from './constants';
6
6
  import { useTypographyColor } from './hooks';
@@ -17,5 +17,5 @@ const typographyCva = cva(typographyClassnames.root, {
17
17
  });
18
18
  export const Typography = forwardRef(({ children, color, colorIntensity = '800', component, withoutCalt, className, isTabularNums, ...props }, ref) => {
19
19
  const typographyColor = useTypographyColor({ color, colorIntensity });
20
- return (_jsx(TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: classNames(typographyCva({ isTabularNums, withoutCalt }), className), children: children }));
20
+ return (_jsx(TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: cn(typographyCva({ isTabularNums, withoutCalt }), className), children: children }));
21
21
  });
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Loader } from '../../Loader';
3
3
  import { Typography } from '../../Typography';
4
- import { classNames } from '../../utils/classNames';
4
+ import { cn } from '../../utils/cn';
5
5
  import { loadingPlaceholderClassnames } from './constants';
6
6
  import { LoadingContainer } from './styles';
7
7
  /**
@@ -9,10 +9,10 @@ import { LoadingContainer } from './styles';
9
9
  */
10
10
  export const LoadingPlaceholder = ({ title, content, isShowLoader = true, className, }) => {
11
11
  if (!isShowLoader) {
12
- return (_jsx(LoadingContainer, { className: classNames(loadingPlaceholderClassnames.root, className) }));
12
+ return (_jsx(LoadingContainer, { className: cn(loadingPlaceholderClassnames.root, className) }));
13
13
  }
14
14
  if (content) {
15
- return (_jsx(LoadingContainer, { className: classNames(loadingPlaceholderClassnames.root, className), children: content }));
15
+ return (_jsx(LoadingContainer, { className: cn(loadingPlaceholderClassnames.root, className), children: content }));
16
16
  }
17
- return (_jsxs(LoadingContainer, { className: classNames(loadingPlaceholderClassnames.root, className), children: [_jsx(Loader, {}), title && _jsx(Typography, { variant: "h4", children: title })] }));
17
+ return (_jsxs(LoadingContainer, { className: cn(loadingPlaceholderClassnames.root, className), children: [_jsx(Loader, {}), title && _jsx(Typography, { variant: "h4", children: title })] }));
18
18
  };
@@ -1 +1 @@
1
- export { default as classNames } from 'classnames';
1
+ export { default as classNames } from 'clsx';
@@ -1 +1 @@
1
- export { default as classNames } from 'classnames';
1
+ export { default as classNames } from 'clsx';
@@ -0,0 +1 @@
1
+ export { default as cn } from 'clsx';
@@ -0,0 +1 @@
1
+ export { default as cn } from 'clsx';
@@ -0,0 +1 @@
1
+ export * from './cn';
@@ -0,0 +1 @@
1
+ export * from './cn';
@@ -0,0 +1 @@
1
+ export * from './cn';
@@ -0,0 +1 @@
1
+ export * from './cn';
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Tooltip } from '../../components/Tooltip';
3
- import { classNames } from '../../components/utils/classNames';
3
+ import { cn } from '../../components/utils/cn';
4
4
  import { editableTextClassnames } from './constants';
5
5
  import { EditingForm } from './EditingForm';
6
6
  import { DisplayValue, StyledEditIcon, StyledLoader, StyledPopover, } from './styles';
@@ -23,7 +23,7 @@ export const EditableText = (props) => {
23
23
  if (showEditIconMode === 'none') {
24
24
  return null;
25
25
  }
26
- return (_jsx(StyledEditIcon, { "$iconPosition": iconPosition, className: classNames({
26
+ return (_jsx(StyledEditIcon, { "$iconPosition": iconPosition, className: cn({
27
27
  [editableTextClassnames.showIconOnHover]: showEditIconMode === 'onHover',
28
28
  }) }));
29
29
  };
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useMemo, useState } from 'react';
2
2
  import { useWatch } from 'react-hook-form';
3
3
  import { useViewportType } from '../../../../components/useViewportType';
4
- import { classNames } from '../../../../components/utils/classNames';
4
+ import { cn } from '../../../../components/utils/cn';
5
5
  import { FORM_FILTERS_SEARCH_FIELD_ID } from '../../../FormFiltersSearchField/constants';
6
6
  import { FORM_FILTERS_QUICK_FILTERS_ID } from '../../../FormQuickFilters/constants';
7
7
  import { formFiltersClassnames } from '../../constants';
@@ -34,7 +34,7 @@ export const useLogic = ({ form, onOpenModal, hasMainFilters, hasSecondaryFilter
34
34
  return (filledValuesCount - (searchValue ? 1 : 0) - (quickFiltersValue ? 1 : 0));
35
35
  };
36
36
  const allFiltersButtonClassName = useMemo(() => {
37
- return classNames({
37
+ return cn({
38
38
  [formFiltersClassnames.showAllFiltersButtonOnDesktop]: hasSecondaryFilters,
39
39
  [formFiltersClassnames.showAllFiltersButtonOnLaptop]: hasMainFilters || hasSecondaryFilters,
40
40
  [formFiltersClassnames.showAllFiltersButtonOnMobile]: hasMainFilters || hasSecondaryFilters,
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { MaskField } from '../../components/MaskField';
3
3
  import { useHidePersonalData } from '../../components/personalDataSecurity';
4
- import { classNames } from '../../components/utils/classNames';
4
+ import { cn } from '../../components/utils/cn';
5
5
  import { useFormFieldProps } from '../useFormFieldProps';
6
6
  const MOBILE_PHONE_MASK = '+{7} (000) 000-00-00';
7
7
  /**
@@ -18,6 +18,6 @@ export const FormMobilePhoneField = ({ isHidePersonalData, inputProps, ...props
18
18
  });
19
19
  return (_jsx(MaskField, { inputProps: {
20
20
  ...inputProps,
21
- className: classNames(inputProps?.className, hidePersonalDataClassname),
21
+ className: cn(inputProps?.className, hidePersonalDataClassname),
22
22
  }, placeholder: "+7 (9**) ***-**-**", ...fieldProps, mask: MOBILE_PHONE_MASK, autoComplete: "tel" }));
23
23
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { classNames } from '../../components/utils/classNames';
2
+ import { cn } from '../../components/utils/cn';
3
3
  import { Form } from '../Form';
4
4
  import { FormPageLayoutBase, formPageContentClassnames, } from '../FormPageLayoutBase';
5
5
  import { FormPageFooter } from './FormPageFooter';
@@ -10,7 +10,7 @@ import { FormContent } from './styles';
10
10
  export const FormPageLayout = (props) => {
11
11
  const { form, children, ...restProps } = props;
12
12
  const { secondaryActions, submitButtonText, ...restFormProps } = form;
13
- return (_jsx(FormPageLayoutBase, { ...restProps, formProps: { ...form, secondaryActions }, contentClassname: classNames({
13
+ return (_jsx(FormPageLayoutBase, { ...restProps, formProps: { ...form, secondaryActions }, contentClassname: cn({
14
14
  [formPageContentClassnames.formPageContentSecondaryActions]: Boolean(secondaryActions),
15
15
  }), children: ({ isDisabled }) => (_jsxs(Form, { ...restFormProps, isDisabled: isDisabled, children: [_jsx(FormContent, { children: children }), _jsx(FormPageFooter, { isDisabled: isDisabled, submitButtonText: submitButtonText, secondaryActions: secondaryActions })] })) }));
16
16
  };
@@ -3,7 +3,7 @@ import { isValidElement } from 'react';
3
3
  import { PageAside } from '../../components/PageAside';
4
4
  import { PageContextProvider } from '../../components/PageContext';
5
5
  import { PageLayoutContainer } from '../../components/PageLayoutContainer';
6
- import { classNames } from '../../components/utils/classNames';
6
+ import { cn } from '../../components/utils/cn';
7
7
  import { FormMobileActions } from './FormMobileActions';
8
8
  import { DesktopAlertWrapper, MobileAlertWrapper, StyledPageContent, StyledPageHeader, } from './styles';
9
9
  import { useLogic } from './useLogic';
@@ -13,5 +13,5 @@ import { useLogic } from './useLogic';
13
13
  export const FormPageLayoutBase = (props) => {
14
14
  const { pageContentProps, headerProps, renderChildrenProps, headerActions } = useLogic(props);
15
15
  const { className, aside, children, alert, contentClassname, header } = props;
16
- return (_jsxs(PageContextProvider, { hasAside: Boolean(aside), mobileTitleActions: _jsx(FormMobileActions, { actions: headerActions }), children: [alert && _jsx(DesktopAlertWrapper, { children: alert }), _jsxs(PageLayoutContainer, { className: className, children: [alert && _jsx(MobileAlertWrapper, { children: alert }), isValidElement(header) ? (header) : (_jsx(StyledPageHeader, { ...headerProps })), _jsx(StyledPageContent, { className: classNames(contentClassname), isFormPaddingDisable: true, ...pageContentProps, children: children(renderChildrenProps) }), aside && !isValidElement(aside) && (_jsx(PageAside, { ...aside })), isValidElement(aside) && aside] })] }));
16
+ return (_jsxs(PageContextProvider, { hasAside: Boolean(aside), mobileTitleActions: _jsx(FormMobileActions, { actions: headerActions }), children: [alert && _jsx(DesktopAlertWrapper, { children: alert }), _jsxs(PageLayoutContainer, { className: className, children: [alert && _jsx(MobileAlertWrapper, { children: alert }), isValidElement(header) ? (header) : (_jsx(StyledPageHeader, { ...headerProps })), _jsx(StyledPageContent, { className: cn(contentClassname), isFormPaddingDisable: true, ...pageContentProps, children: children(renderChildrenProps) }), aside && !isValidElement(aside) && (_jsx(PageAside, { ...aside })), isValidElement(aside) && aside] })] }));
17
17
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { classNames } from '../../components/utils/classNames';
2
+ import { cn } from '../../components/utils/cn';
3
3
  import { FormPageLayoutBase, formPageContentClassnames, } from '../FormPageLayoutBase';
4
4
  import { FormWizard } from '../FormWizard';
5
5
  import { FormWizardFooter } from './FormWizardFooter';
@@ -11,7 +11,7 @@ export const FormWizardPageLayout = (props) => {
11
11
  const { header, aside, formWizard, alert } = props;
12
12
  const { form, isDisabled: externalDisabled, secondaryActions } = formWizard;
13
13
  const { isShowFullActions, isShowNavigateButtons } = useLogic(props);
14
- return (_jsx(FormPageLayoutBase, { header: header, aside: aside, formProps: { isDisabled: externalDisabled, form, secondaryActions }, contentClassname: classNames({
14
+ return (_jsx(FormPageLayoutBase, { header: header, aside: aside, formProps: { isDisabled: externalDisabled, form, secondaryActions }, contentClassname: cn({
15
15
  [formPageContentClassnames.formPageContentSecondaryActions]: isShowNavigateButtons,
16
16
  [formPageContentClassnames.formWizardPageContentActions]: isShowFullActions,
17
17
  }), alert: alert, children: ({ isDisabled }) => (_jsx(FormWizard, { isDisabled: isDisabled, ...formWizard, customFooter: (footerProps) => (_jsx(FormWizardFooter, { ...footerProps, secondaryActions: secondaryActions })) })) }));
@@ -9,7 +9,7 @@ const InfoFillMd_1 = require("../../icons/InfoFillMd");
9
9
  const SuccessFillMd_1 = require("../../icons/SuccessFillMd");
10
10
  const WarningFillMd_1 = require("../../icons/WarningFillMd");
11
11
  const Collapse_1 = require("../Collapse");
12
- const classNames_1 = require("../utils/classNames");
12
+ const cn_1 = require("../utils/cn");
13
13
  const cva_1 = require("../utils/cva");
14
14
  const constants_1 = require("./constants");
15
15
  const styles_1 = require("./styles");
@@ -51,7 +51,7 @@ exports.Alert = (0, react_1.forwardRef)(({ children, title, closeText = 'Скр
51
51
  };
52
52
  return ((0, jsx_runtime_1.jsx)(styles_1.IconWrapper, { className: constants_1.alertClassnames.iconWrapper, children: icon ?? iconMapping[severity] }));
53
53
  };
54
- return ((0, jsx_runtime_1.jsx)(Collapse_1.Collapse, { in: isVisible, unmountOnExit: unmountOnExit, children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { style: style, className: (0, classNames_1.classNames)(constants_1.alertClassnames.contentWrapper, alertCva({
54
+ return ((0, jsx_runtime_1.jsx)(Collapse_1.Collapse, { in: isVisible, unmountOnExit: unmountOnExit, children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { style: style, className: (0, cn_1.cn)(constants_1.alertClassnames.contentWrapper, alertCva({
55
55
  hasTitle: Boolean(title),
56
56
  hasCloseButton: Boolean(onClose),
57
57
  hasActions: Boolean(actions),
@@ -16,7 +16,7 @@ const Loader_1 = require("../Loader");
16
16
  const OverflowTypography_1 = require("../OverflowTypography");
17
17
  const TagsList_1 = require("../TagsList");
18
18
  const TextField_1 = require("../TextField");
19
- const classNames_1 = require("../utils/classNames");
19
+ const cn_1 = require("../utils/cn");
20
20
  const constants_1 = require("./constants");
21
21
  const styles_1 = require("./styles");
22
22
  const useLogic_1 = require("./useLogic");
@@ -48,7 +48,7 @@ const AutocompleteInner = (props, ref) => {
48
48
  ...inputParams,
49
49
  inputProps: {
50
50
  ...inputParams.inputProps,
51
- className: (0, classNames_1.classNames)(inputParams?.inputProps?.className, inputProps?.className),
51
+ className: (0, cn_1.cn)(inputParams?.inputProps?.className, inputProps?.className),
52
52
  },
53
53
  InputProps: {
54
54
  ...inputParams.InputProps,
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useLogic = void 0;
4
4
  const react_1 = require("react");
5
- const classNames_1 = require("../../utils/classNames");
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 = ({ value, isOptionEqualToValue: externalOptionEqualToValue, autoHighlight = true, freeSolo, options, multiple, className, loading, isLoadedDataError, loadedDataError = 'Ошибка загрузки данных', noOptionsText = 'Нет данных', onInputChange, }) => {
@@ -27,7 +27,7 @@ const useLogic = ({ value, isOptionEqualToValue: externalOptionEqualToValue, aut
27
27
  }
28
28
  };
29
29
  const classnames = (0, react_1.useMemo)(() => {
30
- return (0, classNames_1.classNames)(className, constants_1.autocompleteClassnames.root, {
30
+ return (0, cn_1.cn)(className, constants_1.autocompleteClassnames.root, {
31
31
  [constants_1.autocompleteClassnames.multiple]: multiple,
32
32
  [constants_1.autocompleteClassnames.emptyValue]: isValueEmpty,
33
33
  });
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Badge = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const classNames_1 = require("../utils/classNames");
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 Badge = ({ children, color, max = 99, withBorder = true, variantColor = 'contained', classes, className, ...props }) => {
10
10
  const { badgeClasses } = (0, useLogic_1.useLogic)({ classes });
11
- return ((0, jsx_runtime_1.jsx)(styles_1.StyledBadge, { "$customColor": color, max: max, "$withBorder": withBorder, "$variantColor": variantColor, classes: badgeClasses, className: (0, classNames_1.classNames)(constants_1.badgeClassnames.root, className), ...props, children: children }));
11
+ return ((0, jsx_runtime_1.jsx)(styles_1.StyledBadge, { "$customColor": color, max: max, "$withBorder": withBorder, "$variantColor": variantColor, classes: badgeClasses, className: (0, cn_1.cn)(constants_1.badgeClassnames.root, className), ...props, children: children }));
12
12
  };
13
13
  exports.Badge = Badge;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BulletList = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const classNames_1 = require("../utils/classNames");
6
+ const cn_1 = require("../utils/cn");
7
7
  const constants_1 = require("./constants");
8
8
  const styles_1 = require("./styles");
9
9
  /**
@@ -11,7 +11,7 @@ const styles_1 = require("./styles");
11
11
  */
12
12
  const BulletList = (props) => {
13
13
  const { children, hideFirstBullet, className } = props;
14
- const classnames = (0, react_1.useMemo)(() => (0, classNames_1.classNames)(className, constants_1.bulletListClassnames.root, {
14
+ const classnames = (0, react_1.useMemo)(() => (0, cn_1.cn)(className, constants_1.bulletListClassnames.root, {
15
15
  [constants_1.bulletListClassnames.hideFirstBullet]: hideFirstBullet,
16
16
  }), [hideFirstBullet]);
17
17
  return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { children: (0, jsx_runtime_1.jsx)(styles_1.List, { className: classnames, children: children }) }));
@@ -4,12 +4,12 @@ exports.BulletListItem = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const Typography_1 = require("../Typography");
7
- const classNames_1 = require("../utils/classNames");
7
+ const cn_1 = require("../utils/cn");
8
8
  const styles_1 = require("./styles");
9
9
  /**
10
10
  * Элемент с маркерами
11
11
  */
12
12
  exports.BulletListItem = (0, react_1.forwardRef)((props, ref) => {
13
13
  const { children, className, ...restProps } = props;
14
- return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { ref: ref, className: (0, classNames_1.classNames)(className), children: [(0, jsx_runtime_1.jsx)(styles_1.Icon, {}), (0, jsx_runtime_1.jsx)(Typography_1.Typography, { component: "span", ...restProps, children: children })] }));
14
+ return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { ref: ref, className: (0, cn_1.cn)(className), children: [(0, jsx_runtime_1.jsx)(styles_1.Icon, {}), (0, jsx_runtime_1.jsx)(Typography_1.Typography, { component: "span", ...restProps, children: children })] }));
15
15
  });
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useLogic = void 0;
4
4
  const react_1 = require("react");
5
- const classNames_1 = require("../../utils/classNames");
5
+ const cn_1 = require("../../utils/cn");
6
6
  const constants_1 = require("../constants");
7
7
  const enums_1 = require("../enums");
8
8
  const useLogic = ({ loading, selected, variant = enums_1.ButtonVariants.Contained, color = variant === enums_1.ButtonVariants.Text
@@ -14,7 +14,7 @@ const useLogic = ({ loading, selected, variant = enums_1.ButtonVariants.Containe
14
14
  }
15
15
  return 'inverted';
16
16
  }, [variant]);
17
- const classnames = (0, react_1.useMemo)(() => (0, classNames_1.classNames)(constants_1.buttonClassnames.root, constants_1.buttonColorClassnames[color], className, {
17
+ const classnames = (0, react_1.useMemo)(() => (0, cn_1.cn)(constants_1.buttonClassnames.root, constants_1.buttonColorClassnames[color], className, {
18
18
  [constants_1.buttonClassnames.loading]: loading,
19
19
  [constants_1.buttonClassnames.disabled]: disabled,
20
20
  [constants_1.buttonClassnames.selected]: selected,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Icon = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const SvgIcon_1 = require("../../SvgIcon");
6
- const classNames_1 = require("../../utils/classNames");
6
+ const cn_1 = require("../../utils/cn");
7
7
  const constants_1 = require("../constants");
8
- const Icon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)(SvgIcon_1.SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { className: constants_1.checkboxClassnames.outline, x: "0.5", y: "0.5", width: "15", height: "15", rx: "3.5" }), (0, jsx_runtime_1.jsx)("path", { className: (0, classNames_1.classNames)(constants_1.checkboxClassnames.symbol, constants_1.checkboxClassnames.iconChecked), d: "M3.892 8.64a.75.75 0 0 1 1.003-1.112l.058.052 1.97 1.97 4.469-4.47.056-.052a.75.75 0 0 1 1.056 1.056l-.051.056-5 5a.75.75 0 0 1-1.061 0l-2.5-2.5Z" }), (0, jsx_runtime_1.jsx)("path", { className: (0, classNames_1.classNames)(constants_1.checkboxClassnames.symbol, constants_1.checkboxClassnames.iconIndeterminate), d: "M12 7.25a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1 0-1.5h8Z" })] }));
8
+ const Icon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)(SvgIcon_1.SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { className: constants_1.checkboxClassnames.outline, x: "0.5", y: "0.5", width: "15", height: "15", rx: "3.5" }), (0, jsx_runtime_1.jsx)("path", { className: (0, cn_1.cn)(constants_1.checkboxClassnames.symbol, constants_1.checkboxClassnames.iconChecked), d: "M3.892 8.64a.75.75 0 0 1 1.003-1.112l.058.052 1.97 1.97 4.469-4.47.056-.052a.75.75 0 0 1 1.056 1.056l-.051.056-5 5a.75.75 0 0 1-1.061 0l-2.5-2.5Z" }), (0, jsx_runtime_1.jsx)("path", { className: (0, cn_1.cn)(constants_1.checkboxClassnames.symbol, constants_1.checkboxClassnames.iconIndeterminate), d: "M12 7.25a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1 0-1.5h8Z" })] }));
9
9
  exports.Icon = Icon;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useLogic = void 0;
4
4
  const react_1 = require("react");
5
5
  const useUpdateEffect_1 = require("../../useUpdateEffect");
6
- const classNames_1 = require("../../utils/classNames");
6
+ const cn_1 = require("../../utils/cn");
7
7
  const constants_1 = require("../constants");
8
8
  const useLogic = ({ checked = false, indeterminate = false, disabled = false, isError = false, defaultChecked = false, onChange: propsOnChange, className: propClassNames, role, style, name, inputRef, value, id, ...restProps }) => {
9
9
  const [isChecked, setIsChecked] = (0, react_1.useState)(defaultChecked || checked);
@@ -26,7 +26,7 @@ const useLogic = ({ checked = false, indeterminate = false, disabled = false, is
26
26
  }
27
27
  return 'inherit';
28
28
  }, [disabled, isError, isChecked, indeterminate]);
29
- const className = (0, react_1.useMemo)(() => (0, classNames_1.classNames)(constants_1.checkboxClassnames.root, isChecked ? constants_1.checkboxClassnames.checked : '', disabled ? constants_1.checkboxClassnames.disabled : '', indeterminate ? constants_1.checkboxClassnames.indeterminate : '', propClassNames), [isChecked, indeterminate, disabled, propClassNames]);
29
+ const className = (0, react_1.useMemo)(() => (0, cn_1.cn)(constants_1.checkboxClassnames.root, isChecked ? constants_1.checkboxClassnames.checked : '', disabled ? constants_1.checkboxClassnames.disabled : '', indeterminate ? constants_1.checkboxClassnames.indeterminate : '', propClassNames), [isChecked, indeterminate, disabled, propClassNames]);
30
30
  return {
31
31
  onChange,
32
32
  color,
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChipStatusIcon = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const classNames_1 = require("../../utils/classNames");
6
+ const cn_1 = require("../../utils/cn");
7
7
  const constants_1 = require("./constants");
8
8
  const styled_1 = require("./styled");
9
9
  const ChipStatusIcon = ({ status }) => {
10
10
  const classnames = (0, react_1.useMemo)(() => {
11
- return (0, classNames_1.classNames)(constants_1.chipStatusIconClassnames.root, {
11
+ return (0, cn_1.cn)(constants_1.chipStatusIconClassnames.root, {
12
12
  [constants_1.chipStatusIconClassnames.success]: status === 'success',
13
13
  [constants_1.chipStatusIconClassnames.warning]: status === 'warning',
14
14
  [constants_1.chipStatusIconClassnames.error]: status === 'error',
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useLogic = void 0;
4
4
  const react_1 = require("react");
5
- const classNames_1 = require("../../utils/classNames");
5
+ const cn_1 = require("../../utils/cn");
6
6
  const ChipProvider_1 = require("../ChipProvider");
7
7
  const constants_1 = require("../constants");
8
8
  const useLogic = ({ className, isDisabled, isSelected, onChange, size = 'medium', label, status, icon, counter, endAdornment, maxCount, name: nameProp, value: valueProp, }) => {
9
9
  const { mode, name: contextName } = (0, react_1.useContext)(ChipProvider_1.ChipContext);
10
10
  const isMultiple = mode === 'multiple';
11
11
  const inputName = nameProp ?? contextName;
12
- const classnames = (0, react_1.useMemo)(() => (0, classNames_1.classNames)(className, constants_1.chipClassnames.root, {
12
+ const classnames = (0, react_1.useMemo)(() => (0, cn_1.cn)(className, constants_1.chipClassnames.root, {
13
13
  [constants_1.chipClassnames.disabled]: isDisabled,
14
14
  [constants_1.chipClassnames.selected]: isSelected,
15
15
  [constants_1.chipClassnames.sizeSmall]: size === 'small',
@@ -7,7 +7,7 @@ const Dialog_1 = require("../Dialog");
7
7
  const DialogActions_1 = require("../DialogActions");
8
8
  const DialogContent_1 = require("../DialogContent");
9
9
  const DialogContentText_1 = require("../DialogContentText");
10
- const classNames_1 = require("../utils/classNames");
10
+ const cn_1 = require("../utils/cn");
11
11
  const constants_1 = require("./constants");
12
12
  const styles_1 = require("./styles");
13
13
  const useLogic_1 = require("./useLogic");
@@ -16,6 +16,6 @@ const ConfirmDialog = (props) => {
16
16
  const { open, title, description, actions, onClose, size = 'sm', ...restProps } = props;
17
17
  const { text: confirmText, ...confirmButtonProps } = actions.confirm;
18
18
  const { text: cancelText, variant, onClick, ...restCancelProps } = actions.cancel || {};
19
- return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { size: size, title: title, open: open, onClose: onClose, ...restProps, children: [description && ((0, jsx_runtime_1.jsx)(DialogContent_1.DialogContent, { children: typeof description === 'string' ? ((0, jsx_runtime_1.jsx)(DialogContentText_1.DialogContentText, { children: description })) : (description) })), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [isShowCancelButton && ((0, jsx_runtime_1.jsx)(styles_1.CancelButton, { ...restCancelProps, ...cancelButtonProps, className: (0, classNames_1.classNames)(actions.cancel?.className, constants_1.confirmDialogClassnames.cancelButton), children: cancelText })), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, className: (0, classNames_1.classNames)(confirmButtonProps.className, constants_1.confirmDialogClassnames.confirmButton), children: confirmText })] })] }));
19
+ return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { size: size, title: title, open: open, onClose: onClose, ...restProps, children: [description && ((0, jsx_runtime_1.jsx)(DialogContent_1.DialogContent, { children: typeof description === 'string' ? ((0, jsx_runtime_1.jsx)(DialogContentText_1.DialogContentText, { children: description })) : (description) })), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [isShowCancelButton && ((0, jsx_runtime_1.jsx)(styles_1.CancelButton, { ...restCancelProps, ...cancelButtonProps, className: (0, cn_1.cn)(actions.cancel?.className, constants_1.confirmDialogClassnames.cancelButton), children: cancelText })), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, className: (0, cn_1.cn)(confirmButtonProps.className, constants_1.confirmDialogClassnames.confirmButton), children: confirmText })] })] }));
20
20
  };
21
21
  exports.ConfirmDialog = ConfirmDialog;
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CopyTypography = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Tooltip_1 = require("../Tooltip");
6
- const classNames_1 = require("../utils/classNames");
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");
10
10
  const CopyTypography = (props) => {
11
11
  const { handleMouseLeave, handleClick, tooltipTitle, isIconOnLeft, isIconOnRight, restProps, copyPosition, color, showCopyIcon, isOverflow, children, tooltipProps, } = (0, useLogic_1.useLogic)(props);
12
- const renderIcon = () => ((0, jsx_runtime_1.jsx)(styles_1.StyledCopyIcon, { size: "sm", "$copyPosition": copyPosition, color: color, className: (0, classNames_1.classNames)({
12
+ const renderIcon = () => ((0, jsx_runtime_1.jsx)(styles_1.StyledCopyIcon, { size: "sm", "$copyPosition": copyPosition, color: color, className: (0, cn_1.cn)({
13
13
  [constants_1.copyTypographyClassnames.showIconOnHover]: showCopyIcon === 'onHover',
14
14
  }) }));
15
- return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { title: tooltipTitle, disableInteractive: true, placement: "bottom", ...tooltipProps, children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { onMouseLeave: handleMouseLeave, onClick: handleClick, component: "div", color: color, ...restProps, children: [isIconOnLeft && renderIcon(), (0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { className: (0, classNames_1.classNames)({
15
+ return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { title: tooltipTitle, disableInteractive: true, placement: "bottom", ...tooltipProps, children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { onMouseLeave: handleMouseLeave, onClick: handleClick, component: "div", color: color, ...restProps, children: [isIconOnLeft && renderIcon(), (0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { className: (0, cn_1.cn)({
16
16
  [constants_1.copyTypographyClassnames.overflow]: isOverflow,
17
17
  }), children: children }), isIconOnRight && renderIcon()] }) }));
18
18
  };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DashboardAlert = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Typography_1 = require("../Typography");
6
- const classNames_1 = require("../utils/classNames");
6
+ const cn_1 = require("../utils/cn");
7
7
  const constants_1 = require("./constants");
8
8
  const styles_1 = require("./styles");
9
9
  /**
@@ -16,6 +16,6 @@ const styles_1 = require("./styles");
16
16
  const DashboardAlert = (props) => {
17
17
  const { linkButtonProps, children, isShow, className, ...restProps } = props;
18
18
  const { name, color: linkButtonColor, ...restButtonProps } = linkButtonProps || {};
19
- return ((0, jsx_runtime_1.jsx)(styles_1.StyledAlert, { className: (0, classNames_1.classNames)(constants_1.dashboardAlertClassnames.root, className), isShow: isShow, ...restProps, children: (0, jsx_runtime_1.jsxs)(Typography_1.Typography, { variant: "body1", children: [children, "\u00A0", linkButtonProps && ((0, jsx_runtime_1.jsx)(styles_1.StyledButton, { variant: "link", ...restButtonProps, children: name }))] }) }));
19
+ return ((0, jsx_runtime_1.jsx)(styles_1.StyledAlert, { className: (0, cn_1.cn)(constants_1.dashboardAlertClassnames.root, className), isShow: isShow, ...restProps, children: (0, jsx_runtime_1.jsxs)(Typography_1.Typography, { variant: "body1", children: [children, "\u00A0", linkButtonProps && ((0, jsx_runtime_1.jsx)(styles_1.StyledButton, { variant: "link", ...restButtonProps, children: name }))] }) }));
20
20
  };
21
21
  exports.DashboardAlert = DashboardAlert;
@@ -6,7 +6,7 @@ const DashboardContext_1 = require("../../../DashboardContext");
6
6
  const DashboardSidebarProvider_1 = require("../../../DashboardSidebarProvider");
7
7
  const useTheme_1 = require("../../../theme/hooks/useTheme");
8
8
  const useViewportType_1 = require("../../../useViewportType");
9
- const classNames_1 = require("../../../utils/classNames");
9
+ const cn_1 = require("../../../utils/cn");
10
10
  const Header_1 = require("../../Header");
11
11
  const Main_1 = require("../../Main");
12
12
  const constants_1 = require("../constants");
@@ -85,7 +85,7 @@ const useLogic = (props) => {
85
85
  }
86
86
  };
87
87
  }, [collapsedIn, isPinned]);
88
- const classnames = (0, classNames_1.classNames)(className, constants_1.dashboardSidebarClassnames.root);
88
+ const classnames = (0, cn_1.cn)(className, constants_1.dashboardSidebarClassnames.root);
89
89
  return {
90
90
  isPinned,
91
91
  isMobile,
@@ -4,11 +4,11 @@ exports.DashboardSidebarSkeleton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const constants_1 = require("../DashboardLayout/DashboardSidebar/constants");
6
6
  const Skeleton_1 = require("../Skeleton");
7
- const classNames_1 = require("../utils/classNames");
7
+ const cn_1 = require("../utils/cn");
8
8
  const styles_1 = require("./styles");
9
9
  const useLogic_1 = require("./useLogic");
10
10
  const DashboardSidebarSkeleton = () => {
11
11
  const { isPinned } = (0, useLogic_1.useLogic)();
12
- return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { "$isPinned": isPinned, className: (0, classNames_1.classNames)(constants_1.dashboardSidebarClassnames.root), children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { shapeSize: isPinned ? 'medium' : 'small', height: 40, variant: "rounded" }), (0, jsx_runtime_1.jsxs)(styles_1.ListWrapper, { "$isPinned": isPinned, children: [(0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }), (0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }), (0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }), isPinned && ((0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }))] })] }));
12
+ return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { "$isPinned": isPinned, className: (0, cn_1.cn)(constants_1.dashboardSidebarClassnames.root), children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { shapeSize: isPinned ? 'medium' : 'small', height: 40, variant: "rounded" }), (0, jsx_runtime_1.jsxs)(styles_1.ListWrapper, { "$isPinned": isPinned, children: [(0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }), (0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }), (0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }), isPinned && ((0, jsx_runtime_1.jsxs)(styles_1.ItemWrapper, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: 20, width: 20, variant: "rounded", shapeSize: "small" }), (0, jsx_runtime_1.jsx)(styles_1.SkeletonDescription, { height: 14, width: 174, variant: "rounded", "$isPinned": isPinned })] }))] })] }));
13
13
  };
14
14
  exports.DashboardSidebarSkeleton = DashboardSidebarSkeleton;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Body = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const classNames_1 = require("../../utils/classNames");
5
+ const cn_1 = require("../../utils/cn");
6
6
  const cva_1 = require("../../utils/cva");
7
7
  const CustomRowWrapper_1 = require("../CustomRowWrapper");
8
8
  const Row_1 = require("../Row");
@@ -26,6 +26,6 @@ const Body = ({ rows, selectedRows = [], minDisplayRows, keyId, noDataPlaceholde
26
26
  const { children, options } = row;
27
27
  return ((0, jsx_runtime_1.jsx)(RowContext_1.RowContextProvider, { row: row, onSelectRow: onSelectRow, onRowEnter: onRowEnter, onRowLeave: onRowLeave, registerRowElement: registerRowElement, unregisterRowElement: unregisterRowElement, isSelectable: isSelectable, isSelected: isSelected, children: renderRow ? ((0, jsx_runtime_1.jsx)(CustomRowWrapper_1.CustomRowWrapper, { index: index, renderRow: renderRow, row: row })) : ((0, jsx_runtime_1.jsx)(Row_1.Row, { row: row, options: options, keyId: keyId, level: INITIAL_LEVEL, nestedChildren: children, isSelected: isSelected, columns: columns, isSelectable: isSelectable, onSelectRow: onSelectRow, onRowEnter: onRowEnter, onRowLeave: onRowLeave, registerRowElement: registerRowElement, unregisterRowElement: unregisterRowElement, ...rowProps }, rowId)) }, rowId));
28
28
  });
29
- return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, classNames_1.classNames)(className, bodyCva({ disableMinHeight })), style: bodyCssVars, children: rows.length ? renderedRows : noDataPlaceholder }));
29
+ return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, cn_1.cn)(className, bodyCva({ disableMinHeight })), style: bodyCssVars, children: rows.length ? renderedRows : noDataPlaceholder }));
30
30
  };
31
31
  exports.Body = Body;
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_dom_1 = require("react-dom");
6
6
  const personalDataSecurity_1 = require("../../personalDataSecurity");
7
7
  const useViewportType_1 = require("../../useViewportType");
8
- const classNames_1 = require("../../utils/classNames");
8
+ const cn_1 = require("../../utils/cn");
9
9
  const cva_1 = require("../../utils/cva");
10
10
  const getInertProps_1 = require("../../utils/getInertProps");
11
11
  const CellInner_1 = require("./CellInner");
@@ -41,7 +41,7 @@ const Cell = (props) => {
41
41
  const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
42
42
  isEnabled: isHidePersonalData === true,
43
43
  });
44
- const cellNode = ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, classNames_1.classNames)(className, hidePersonalDataClassname, cellCva({
44
+ const cellNode = ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, cn_1.cn)(className, hidePersonalDataClassname, cellCva({
45
45
  isHideOnMobile: cell.isHideOnMobile || isHideOnMobile,
46
46
  isDisabled,
47
47
  withStartAdornment: hasStartAdornment,