@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
|
@@ -4,7 +4,7 @@ exports.FormMobilePhoneField = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const MaskField_1 = require("../../components/MaskField");
|
|
6
6
|
const personalDataSecurity_1 = require("../../components/personalDataSecurity");
|
|
7
|
-
const
|
|
7
|
+
const cn_1 = require("../../components/utils/cn");
|
|
8
8
|
const useFormFieldProps_1 = require("../useFormFieldProps");
|
|
9
9
|
const MOBILE_PHONE_MASK = '+{7} (000) 000-00-00';
|
|
10
10
|
/**
|
|
@@ -21,7 +21,7 @@ const FormMobilePhoneField = ({ isHidePersonalData, inputProps, ...props }) => {
|
|
|
21
21
|
});
|
|
22
22
|
return ((0, jsx_runtime_1.jsx)(MaskField_1.MaskField, { inputProps: {
|
|
23
23
|
...inputProps,
|
|
24
|
-
className: (0,
|
|
24
|
+
className: (0, cn_1.cn)(inputProps?.className, hidePersonalDataClassname),
|
|
25
25
|
}, placeholder: "+7 (9**) ***-**-**", ...fieldProps, mask: MOBILE_PHONE_MASK, autoComplete: "tel" }));
|
|
26
26
|
};
|
|
27
27
|
exports.FormMobilePhoneField = FormMobilePhoneField;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormPageLayout = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../../components/utils/cn");
|
|
6
6
|
const Form_1 = require("../Form");
|
|
7
7
|
const FormPageLayoutBase_1 = require("../FormPageLayoutBase");
|
|
8
8
|
const FormPageFooter_1 = require("./FormPageFooter");
|
|
@@ -13,7 +13,7 @@ const styles_1 = require("./styles");
|
|
|
13
13
|
const FormPageLayout = (props) => {
|
|
14
14
|
const { form, children, ...restProps } = props;
|
|
15
15
|
const { secondaryActions, submitButtonText, ...restFormProps } = form;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(FormPageLayoutBase_1.FormPageLayoutBase, { ...restProps, formProps: { ...form, secondaryActions }, contentClassname: (0,
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(FormPageLayoutBase_1.FormPageLayoutBase, { ...restProps, formProps: { ...form, secondaryActions }, contentClassname: (0, cn_1.cn)({
|
|
17
17
|
[FormPageLayoutBase_1.formPageContentClassnames.formPageContentSecondaryActions]: Boolean(secondaryActions),
|
|
18
18
|
}), children: ({ isDisabled }) => ((0, jsx_runtime_1.jsxs)(Form_1.Form, { ...restFormProps, isDisabled: isDisabled, children: [(0, jsx_runtime_1.jsx)(styles_1.FormContent, { children: children }), (0, jsx_runtime_1.jsx)(FormPageFooter_1.FormPageFooter, { isDisabled: isDisabled, submitButtonText: submitButtonText, secondaryActions: secondaryActions })] })) }));
|
|
19
19
|
};
|
|
@@ -6,7 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const PageAside_1 = require("../../components/PageAside");
|
|
7
7
|
const PageContext_1 = require("../../components/PageContext");
|
|
8
8
|
const PageLayoutContainer_1 = require("../../components/PageLayoutContainer");
|
|
9
|
-
const
|
|
9
|
+
const cn_1 = require("../../components/utils/cn");
|
|
10
10
|
const FormMobileActions_1 = require("./FormMobileActions");
|
|
11
11
|
const styles_1 = require("./styles");
|
|
12
12
|
const useLogic_1 = require("./useLogic");
|
|
@@ -16,6 +16,6 @@ const useLogic_1 = require("./useLogic");
|
|
|
16
16
|
const FormPageLayoutBase = (props) => {
|
|
17
17
|
const { pageContentProps, headerProps, renderChildrenProps, headerActions } = (0, useLogic_1.useLogic)(props);
|
|
18
18
|
const { className, aside, children, alert, contentClassname, header } = props;
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)(PageContext_1.PageContextProvider, { hasAside: Boolean(aside), mobileTitleActions: (0, jsx_runtime_1.jsx)(FormMobileActions_1.FormMobileActions, { actions: headerActions }), children: [alert && (0, jsx_runtime_1.jsx)(styles_1.DesktopAlertWrapper, { children: alert }), (0, jsx_runtime_1.jsxs)(PageLayoutContainer_1.PageLayoutContainer, { className: className, children: [alert && (0, jsx_runtime_1.jsx)(styles_1.MobileAlertWrapper, { children: alert }), (0, react_1.isValidElement)(header) ? (header) : ((0, jsx_runtime_1.jsx)(styles_1.StyledPageHeader, { ...headerProps })), (0, jsx_runtime_1.jsx)(styles_1.StyledPageContent, { className: (0,
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)(PageContext_1.PageContextProvider, { hasAside: Boolean(aside), mobileTitleActions: (0, jsx_runtime_1.jsx)(FormMobileActions_1.FormMobileActions, { actions: headerActions }), children: [alert && (0, jsx_runtime_1.jsx)(styles_1.DesktopAlertWrapper, { children: alert }), (0, jsx_runtime_1.jsxs)(PageLayoutContainer_1.PageLayoutContainer, { className: className, children: [alert && (0, jsx_runtime_1.jsx)(styles_1.MobileAlertWrapper, { children: alert }), (0, react_1.isValidElement)(header) ? (header) : ((0, jsx_runtime_1.jsx)(styles_1.StyledPageHeader, { ...headerProps })), (0, jsx_runtime_1.jsx)(styles_1.StyledPageContent, { className: (0, cn_1.cn)(contentClassname), isFormPaddingDisable: true, ...pageContentProps, children: children(renderChildrenProps) }), aside && !(0, react_1.isValidElement)(aside) && ((0, jsx_runtime_1.jsx)(PageAside_1.PageAside, { ...aside })), (0, react_1.isValidElement)(aside) && aside] })] }));
|
|
20
20
|
};
|
|
21
21
|
exports.FormPageLayoutBase = FormPageLayoutBase;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormWizardPageLayout = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const cn_1 = require("../../components/utils/cn");
|
|
6
6
|
const FormPageLayoutBase_1 = require("../FormPageLayoutBase");
|
|
7
7
|
const FormWizard_1 = require("../FormWizard");
|
|
8
8
|
const FormWizardFooter_1 = require("./FormWizardFooter");
|
|
@@ -14,7 +14,7 @@ const FormWizardPageLayout = (props) => {
|
|
|
14
14
|
const { header, aside, formWizard, alert } = props;
|
|
15
15
|
const { form, isDisabled: externalDisabled, secondaryActions } = formWizard;
|
|
16
16
|
const { isShowFullActions, isShowNavigateButtons } = (0, useLogic_1.useLogic)(props);
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(FormPageLayoutBase_1.FormPageLayoutBase, { header: header, aside: aside, formProps: { isDisabled: externalDisabled, form, secondaryActions }, contentClassname: (0,
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(FormPageLayoutBase_1.FormPageLayoutBase, { header: header, aside: aside, formProps: { isDisabled: externalDisabled, form, secondaryActions }, contentClassname: (0, cn_1.cn)({
|
|
18
18
|
[FormPageLayoutBase_1.formPageContentClassnames.formPageContentSecondaryActions]: isShowNavigateButtons,
|
|
19
19
|
[FormPageLayoutBase_1.formPageContentClassnames.formWizardPageContentActions]: isShowFullActions,
|
|
20
20
|
}), alert: alert, children: ({ isDisabled }) => ((0, jsx_runtime_1.jsx)(FormWizard_1.FormWizard, { isDisabled: isDisabled, ...formWizard, customFooter: (footerProps) => ((0, jsx_runtime_1.jsx)(FormWizardFooter_1.FormWizardFooter, { ...footerProps, secondaryActions: secondaryActions })) })) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "4.92.
|
|
3
|
+
"version": "4.92.1",
|
|
4
4
|
"browser": "./index.js",
|
|
5
5
|
"main": "./node/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@emotion/server": "^11.11.0",
|
|
12
12
|
"@emotion/styled": "^11.13.5",
|
|
13
13
|
"@mui/material": "5.13.0",
|
|
14
|
-
"classnames": "^2.5.1",
|
|
15
14
|
"class-variance-authority": "^0.7.1",
|
|
15
|
+
"clsx": "^2.1.1",
|
|
16
16
|
"colord": "^2.9.3",
|
|
17
17
|
"dayjs": "^1.11.5",
|
|
18
18
|
"react-imask": "6.4.2",
|