@astral/ui 4.37.0 → 4.37.2
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/Accordion/styles.d.ts +1 -0
- package/components/Alert/styles.d.ts +2 -0
- package/components/AutoSaveIndicator/styles.d.ts +2 -0
- package/components/BottomDrawer/styles.d.ts +1 -0
- package/components/Button/Button.js +2 -1
- package/components/Button/constants.d.ts +1 -0
- package/components/Button/constants.js +1 -0
- package/components/Chip/styles.d.ts +1 -0
- package/components/CodeField/styles.d.ts +1 -0
- package/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
- package/components/CollapsibleTypography/styles.d.ts +1 -0
- package/components/ConfirmAction/styles.d.ts +1 -0
- package/components/CopyTypography/styles.d.ts +1 -0
- package/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
- package/components/DashboardSidebarPopover/styles.d.ts +1 -0
- package/components/DataGridPagination/styles.d.ts +1 -0
- package/components/DataGridPaginationContainer/styles.d.ts +1 -0
- package/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
- package/components/Description/Value/styles.d.ts +2 -0
- package/components/DescriptionList/styles.d.ts +1 -0
- package/components/Fieldset/styles.d.ts +2 -0
- package/components/Filename/styles.d.ts +1 -0
- package/components/FlowButton/styles.d.ts +1 -0
- package/components/JsonViewer/NodeValue/styles.d.ts +3 -0
- package/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
- package/components/MaskField/MaskField.js +2 -2
- package/components/MaskField/styles.d.ts +2 -0
- package/components/MaskField/styles.js +5 -0
- package/components/MenuGroup/styles.d.ts +1 -0
- package/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
- package/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
- package/components/MenuOrganization/styles.d.ts +1 -0
- package/components/MinimalisticPagination/styles.d.ts +1 -0
- package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
- package/components/NotFoundPage/styles.d.ts +2 -0
- package/components/Notification/NotificationTemplate/styles.d.ts +2 -0
- package/components/NotificationList/ListItem/styles.d.ts +2 -0
- package/components/OverflowTypography/OverflowTypography.d.ts +1 -0
- package/components/OverflowTypography/styles.d.ts +2 -0
- package/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
- package/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
- package/components/PageHeader/Title/styles.d.ts +1 -0
- package/components/Pagination/PaginationItem/styles.d.ts +1 -0
- package/components/PinButton/styles.d.ts +1 -0
- package/components/ProductSwitcher/Content/styles.d.ts +1 -0
- package/components/Tree/TreeItem/styles.d.ts +2 -0
- package/components/Typography/Typography.d.ts +1 -0
- package/components/Typography/Typography.js +6 -2
- package/components/Typography/constants.d.ts +3 -0
- package/components/Typography/constants.js +3 -0
- package/components/Typography/styles.js +5 -0
- package/components/Typography/types.d.ts +4 -0
- package/components/WelcomeScreen/styles.d.ts +2 -0
- package/components/fileUploading/FileInfo/styles.d.ts +1 -0
- package/components/placeholders/Placeholder/styles.d.ts +2 -0
- package/components/theme/components/MuiButton.js +23 -9
- package/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
- package/hook-form/EditableText/styles.d.ts +1 -0
- package/node/components/Accordion/styles.d.ts +1 -0
- package/node/components/Alert/styles.d.ts +2 -0
- package/node/components/AutoSaveIndicator/styles.d.ts +2 -0
- package/node/components/BottomDrawer/styles.d.ts +1 -0
- package/node/components/Button/Button.js +2 -1
- package/node/components/Button/constants.d.ts +1 -0
- package/node/components/Button/constants.js +1 -0
- package/node/components/Chip/styles.d.ts +1 -0
- package/node/components/CodeField/styles.d.ts +1 -0
- package/node/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
- package/node/components/CollapsibleTypography/styles.d.ts +1 -0
- package/node/components/ConfirmAction/styles.d.ts +1 -0
- package/node/components/CopyTypography/styles.d.ts +1 -0
- package/node/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
- package/node/components/DashboardSidebarPopover/styles.d.ts +1 -0
- package/node/components/DataGridPagination/styles.d.ts +1 -0
- package/node/components/DataGridPaginationContainer/styles.d.ts +1 -0
- package/node/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
- package/node/components/Description/Value/styles.d.ts +2 -0
- package/node/components/DescriptionList/styles.d.ts +1 -0
- package/node/components/Fieldset/styles.d.ts +2 -0
- package/node/components/Filename/styles.d.ts +1 -0
- package/node/components/FlowButton/styles.d.ts +1 -0
- package/node/components/JsonViewer/NodeValue/styles.d.ts +3 -0
- package/node/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
- package/node/components/MaskField/MaskField.js +2 -2
- package/node/components/MaskField/styles.d.ts +2 -0
- package/node/components/MaskField/styles.js +8 -0
- package/node/components/MenuGroup/styles.d.ts +1 -0
- package/node/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
- package/node/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
- package/node/components/MenuOrganization/styles.d.ts +1 -0
- package/node/components/MinimalisticPagination/styles.d.ts +1 -0
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
- package/node/components/NotFoundPage/styles.d.ts +2 -0
- package/node/components/Notification/NotificationTemplate/styles.d.ts +2 -0
- package/node/components/NotificationList/ListItem/styles.d.ts +2 -0
- package/node/components/OverflowTypography/OverflowTypography.d.ts +1 -0
- package/node/components/OverflowTypography/styles.d.ts +2 -0
- package/node/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
- package/node/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
- package/node/components/PageHeader/Title/styles.d.ts +1 -0
- package/node/components/Pagination/PaginationItem/styles.d.ts +1 -0
- package/node/components/PinButton/styles.d.ts +1 -0
- package/node/components/ProductSwitcher/Content/styles.d.ts +1 -0
- package/node/components/Tree/TreeItem/styles.d.ts +2 -0
- package/node/components/Typography/Typography.d.ts +1 -0
- package/node/components/Typography/Typography.js +6 -2
- package/node/components/Typography/constants.d.ts +3 -0
- package/node/components/Typography/constants.js +6 -0
- package/node/components/Typography/styles.js +5 -0
- package/node/components/Typography/types.d.ts +4 -0
- package/node/components/WelcomeScreen/styles.d.ts +2 -0
- package/node/components/fileUploading/FileInfo/styles.d.ts +1 -0
- package/node/components/placeholders/Placeholder/styles.d.ts +2 -0
- package/node/components/theme/components/MuiButton.js +23 -9
- package/node/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
- package/node/hook-form/EditableText/styles.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12,4 +12,5 @@ export declare const Typography: import("react").ForwardRefExoticComponent<impor
|
|
|
12
12
|
colorIntensity?: import("./types").Intensity | undefined;
|
|
13
13
|
component?: ComponentProp | undefined;
|
|
14
14
|
isUpperCase?: boolean | undefined;
|
|
15
|
+
withoutCalt?: boolean | undefined;
|
|
15
16
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Typography = 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");
|
|
7
|
+
const constants_1 = require("./constants");
|
|
6
8
|
const hooks_1 = require("./hooks");
|
|
7
9
|
const styles_1 = require("./styles");
|
|
8
|
-
exports.Typography = (0, react_1.forwardRef)(({ children, color, colorIntensity = '800', component, ...props }, ref) => {
|
|
10
|
+
exports.Typography = (0, react_1.forwardRef)(({ children, color, colorIntensity = '800', component, withoutCalt, className, ...props }, ref) => {
|
|
9
11
|
const typographyColor = (0, hooks_1.useTypographyColor)({ color, colorIntensity });
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor,
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: (0, classNames_1.classNames)(className, {
|
|
13
|
+
[constants_1.typographyClassnames.withoutCalt]: withoutCalt,
|
|
14
|
+
}), children: children }));
|
|
11
15
|
});
|
|
@@ -6,8 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.TypographyWrapper = void 0;
|
|
7
7
|
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
8
8
|
const styled_1 = require("../styled");
|
|
9
|
+
const constants_1 = require("./constants");
|
|
9
10
|
exports.TypographyWrapper = (0, styled_1.styled)(Typography_1.default, {
|
|
10
11
|
shouldForwardProp: (prop) => prop !== 'isUpperCase',
|
|
11
12
|
}) `
|
|
12
13
|
text-transform: ${({ isUpperCase }) => (isUpperCase ? 'uppercase' : 'none')};
|
|
14
|
+
|
|
15
|
+
.${constants_1.typographyClassnames.withoutCalt} {
|
|
16
|
+
font-feature-settings: "calt" 0;
|
|
17
|
+
}
|
|
13
18
|
`;
|
|
@@ -31,4 +31,8 @@ export type TypographyProps = TypographyPropsBase & {
|
|
|
31
31
|
* @default false
|
|
32
32
|
*/
|
|
33
33
|
isUpperCase?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Отключает контекстные альтернативы шрифта. Подробнее в [документации](https://ui-kit.astral.ru/?path=/docs/getting-started-fonts--docs)
|
|
36
|
+
*/
|
|
37
|
+
withoutCalt?: boolean;
|
|
34
38
|
} & HTMLAttributes<HTMLParagraphElement>;
|
|
@@ -21,6 +21,7 @@ export declare const Greeting: import("@emotion/styled/dist/declarations/src/typ
|
|
|
21
21
|
colorIntensity?: import("../Typography").Intensity | undefined;
|
|
22
22
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
23
23
|
isUpperCase?: boolean | undefined;
|
|
24
|
+
withoutCalt?: boolean | undefined;
|
|
24
25
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
25
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
27
|
}, {}, {}>;
|
|
@@ -30,6 +31,7 @@ export declare const UserName: import("@emotion/styled/dist/declarations/src/typ
|
|
|
30
31
|
colorIntensity?: import("../Typography").Intensity | undefined;
|
|
31
32
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
32
33
|
isUpperCase?: boolean | undefined;
|
|
34
|
+
withoutCalt?: boolean | undefined;
|
|
33
35
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
34
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
35
37
|
}, {}, {}>;
|
|
@@ -348,6 +348,7 @@ export declare const FileSize: import("@emotion/styled/dist/declarations/src/typ
|
|
|
348
348
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
349
349
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
350
350
|
isUpperCase?: boolean | undefined;
|
|
351
|
+
withoutCalt?: boolean | undefined;
|
|
351
352
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
352
353
|
theme?: import("@emotion/react").Theme | undefined;
|
|
353
354
|
}, {}, {}>;
|
|
@@ -17,6 +17,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
17
17
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
18
18
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
19
19
|
isUpperCase?: boolean | undefined;
|
|
20
|
+
withoutCalt?: boolean | undefined;
|
|
20
21
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
21
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
22
23
|
} & WithSize, {}, {}>;
|
|
@@ -26,6 +27,7 @@ export declare const Description: import("@emotion/styled/dist/declarations/src/
|
|
|
26
27
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
27
28
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
28
29
|
isUpperCase?: boolean | undefined;
|
|
30
|
+
withoutCalt?: boolean | undefined;
|
|
29
31
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
30
32
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
33
|
} & WithSize, {}, {}>;
|
|
@@ -450,6 +450,16 @@ exports.MuiButton = {
|
|
|
450
450
|
selected,
|
|
451
451
|
disabled,
|
|
452
452
|
}),
|
|
453
|
+
[`&.${Button_1.buttonClasses.disabled}`]: {
|
|
454
|
+
color: theme.palette.grey['500'],
|
|
455
|
+
backgroundColor: (0, exports.getButtonDisabledBackgroundColor)({
|
|
456
|
+
theme,
|
|
457
|
+
variant,
|
|
458
|
+
}),
|
|
459
|
+
pointerEvents: 'none',
|
|
460
|
+
cursor: 'unset',
|
|
461
|
+
border: 'unset',
|
|
462
|
+
},
|
|
453
463
|
[`&.${Button_2.buttonClassnames.loading}`]: {
|
|
454
464
|
color: 'transparent',
|
|
455
465
|
pointerEvents: 'none',
|
|
@@ -460,18 +470,22 @@ exports.MuiButton = {
|
|
|
460
470
|
theme,
|
|
461
471
|
buttonState: Button_2.ButtonStates.Default,
|
|
462
472
|
}),
|
|
463
|
-
|
|
464
|
-
[`&.${Button_1.buttonClasses.disabled}`]: {
|
|
465
|
-
color: theme.palette.grey['500'],
|
|
466
|
-
backgroundColor: (0, exports.getButtonDisabledBackgroundColor)({
|
|
473
|
+
border: getBorder({
|
|
467
474
|
theme,
|
|
468
475
|
variant,
|
|
476
|
+
color,
|
|
477
|
+
buttonState: Button_2.ButtonStates.Default,
|
|
478
|
+
selected,
|
|
479
|
+
disabled: false,
|
|
469
480
|
}),
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
481
|
+
[`&.${Button_2.buttonClassnames.disabled}`]: {
|
|
482
|
+
backgroundColor: (0, exports.getButtonDisabledBackgroundColor)({
|
|
483
|
+
theme,
|
|
484
|
+
variant,
|
|
485
|
+
}),
|
|
486
|
+
pointerEvents: 'none',
|
|
487
|
+
cursor: 'unset',
|
|
488
|
+
border: 'unset',
|
|
475
489
|
},
|
|
476
490
|
},
|
|
477
491
|
gap: theme.spacing(2),
|
|
@@ -9,6 +9,7 @@ export declare const Description: import("@emotion/styled/dist/declarations/src/
|
|
|
9
9
|
colorIntensity?: import("../../../components/Typography").Intensity | undefined;
|
|
10
10
|
component?: import("../../../components/Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
|
+
withoutCalt?: boolean | undefined;
|
|
12
13
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
13
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
15
|
}, {}, {}>;
|
|
@@ -5,6 +5,7 @@ export declare const DisplayValue: import("@emotion/styled/dist/declarations/src
|
|
|
5
5
|
colorIntensity?: import("../../components/Typography").Intensity | undefined;
|
|
6
6
|
component?: import("../../components/Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
|
+
withoutCalt?: boolean | undefined;
|
|
8
9
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
} & {
|