@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.
Files changed (117) hide show
  1. package/components/Accordion/styles.d.ts +1 -0
  2. package/components/Alert/styles.d.ts +2 -0
  3. package/components/AutoSaveIndicator/styles.d.ts +2 -0
  4. package/components/BottomDrawer/styles.d.ts +1 -0
  5. package/components/Button/Button.js +2 -1
  6. package/components/Button/constants.d.ts +1 -0
  7. package/components/Button/constants.js +1 -0
  8. package/components/Chip/styles.d.ts +1 -0
  9. package/components/CodeField/styles.d.ts +1 -0
  10. package/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
  11. package/components/CollapsibleTypography/styles.d.ts +1 -0
  12. package/components/ConfirmAction/styles.d.ts +1 -0
  13. package/components/CopyTypography/styles.d.ts +1 -0
  14. package/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
  15. package/components/DashboardSidebarPopover/styles.d.ts +1 -0
  16. package/components/DataGridPagination/styles.d.ts +1 -0
  17. package/components/DataGridPaginationContainer/styles.d.ts +1 -0
  18. package/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
  19. package/components/Description/Value/styles.d.ts +2 -0
  20. package/components/DescriptionList/styles.d.ts +1 -0
  21. package/components/Fieldset/styles.d.ts +2 -0
  22. package/components/Filename/styles.d.ts +1 -0
  23. package/components/FlowButton/styles.d.ts +1 -0
  24. package/components/JsonViewer/NodeValue/styles.d.ts +3 -0
  25. package/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
  26. package/components/MaskField/MaskField.js +2 -2
  27. package/components/MaskField/styles.d.ts +2 -0
  28. package/components/MaskField/styles.js +5 -0
  29. package/components/MenuGroup/styles.d.ts +1 -0
  30. package/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
  31. package/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
  32. package/components/MenuOrganization/styles.d.ts +1 -0
  33. package/components/MinimalisticPagination/styles.d.ts +1 -0
  34. package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
  35. package/components/NotFoundPage/styles.d.ts +2 -0
  36. package/components/Notification/NotificationTemplate/styles.d.ts +2 -0
  37. package/components/NotificationList/ListItem/styles.d.ts +2 -0
  38. package/components/OverflowTypography/OverflowTypography.d.ts +1 -0
  39. package/components/OverflowTypography/styles.d.ts +2 -0
  40. package/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
  41. package/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
  42. package/components/PageHeader/Title/styles.d.ts +1 -0
  43. package/components/Pagination/PaginationItem/styles.d.ts +1 -0
  44. package/components/PinButton/styles.d.ts +1 -0
  45. package/components/ProductSwitcher/Content/styles.d.ts +1 -0
  46. package/components/Tree/TreeItem/styles.d.ts +2 -0
  47. package/components/Typography/Typography.d.ts +1 -0
  48. package/components/Typography/Typography.js +6 -2
  49. package/components/Typography/constants.d.ts +3 -0
  50. package/components/Typography/constants.js +3 -0
  51. package/components/Typography/styles.js +5 -0
  52. package/components/Typography/types.d.ts +4 -0
  53. package/components/WelcomeScreen/styles.d.ts +2 -0
  54. package/components/fileUploading/FileInfo/styles.d.ts +1 -0
  55. package/components/placeholders/Placeholder/styles.d.ts +2 -0
  56. package/components/theme/components/MuiButton.js +23 -9
  57. package/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
  58. package/hook-form/EditableText/styles.d.ts +1 -0
  59. package/node/components/Accordion/styles.d.ts +1 -0
  60. package/node/components/Alert/styles.d.ts +2 -0
  61. package/node/components/AutoSaveIndicator/styles.d.ts +2 -0
  62. package/node/components/BottomDrawer/styles.d.ts +1 -0
  63. package/node/components/Button/Button.js +2 -1
  64. package/node/components/Button/constants.d.ts +1 -0
  65. package/node/components/Button/constants.js +1 -0
  66. package/node/components/Chip/styles.d.ts +1 -0
  67. package/node/components/CodeField/styles.d.ts +1 -0
  68. package/node/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
  69. package/node/components/CollapsibleTypography/styles.d.ts +1 -0
  70. package/node/components/ConfirmAction/styles.d.ts +1 -0
  71. package/node/components/CopyTypography/styles.d.ts +1 -0
  72. package/node/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
  73. package/node/components/DashboardSidebarPopover/styles.d.ts +1 -0
  74. package/node/components/DataGridPagination/styles.d.ts +1 -0
  75. package/node/components/DataGridPaginationContainer/styles.d.ts +1 -0
  76. package/node/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
  77. package/node/components/Description/Value/styles.d.ts +2 -0
  78. package/node/components/DescriptionList/styles.d.ts +1 -0
  79. package/node/components/Fieldset/styles.d.ts +2 -0
  80. package/node/components/Filename/styles.d.ts +1 -0
  81. package/node/components/FlowButton/styles.d.ts +1 -0
  82. package/node/components/JsonViewer/NodeValue/styles.d.ts +3 -0
  83. package/node/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
  84. package/node/components/MaskField/MaskField.js +2 -2
  85. package/node/components/MaskField/styles.d.ts +2 -0
  86. package/node/components/MaskField/styles.js +8 -0
  87. package/node/components/MenuGroup/styles.d.ts +1 -0
  88. package/node/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
  89. package/node/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
  90. package/node/components/MenuOrganization/styles.d.ts +1 -0
  91. package/node/components/MinimalisticPagination/styles.d.ts +1 -0
  92. package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
  93. package/node/components/NotFoundPage/styles.d.ts +2 -0
  94. package/node/components/Notification/NotificationTemplate/styles.d.ts +2 -0
  95. package/node/components/NotificationList/ListItem/styles.d.ts +2 -0
  96. package/node/components/OverflowTypography/OverflowTypography.d.ts +1 -0
  97. package/node/components/OverflowTypography/styles.d.ts +2 -0
  98. package/node/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
  99. package/node/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
  100. package/node/components/PageHeader/Title/styles.d.ts +1 -0
  101. package/node/components/Pagination/PaginationItem/styles.d.ts +1 -0
  102. package/node/components/PinButton/styles.d.ts +1 -0
  103. package/node/components/ProductSwitcher/Content/styles.d.ts +1 -0
  104. package/node/components/Tree/TreeItem/styles.d.ts +2 -0
  105. package/node/components/Typography/Typography.d.ts +1 -0
  106. package/node/components/Typography/Typography.js +6 -2
  107. package/node/components/Typography/constants.d.ts +3 -0
  108. package/node/components/Typography/constants.js +6 -0
  109. package/node/components/Typography/styles.js +5 -0
  110. package/node/components/Typography/types.d.ts +4 -0
  111. package/node/components/WelcomeScreen/styles.d.ts +2 -0
  112. package/node/components/fileUploading/FileInfo/styles.d.ts +1 -0
  113. package/node/components/placeholders/Placeholder/styles.d.ts +2 -0
  114. package/node/components/theme/components/MuiButton.js +23 -9
  115. package/node/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
  116. package/node/hook-form/EditableText/styles.d.ts +1 -0
  117. package/package.json +1 -1
@@ -25,6 +25,7 @@ export declare const Summary: import("../styled").StyledComponent<import("../Typ
25
25
  colorIntensity?: import("../Typography").Intensity | undefined;
26
26
  component?: import("../Typography/types").ComponentProp | undefined;
27
27
  isUpperCase?: boolean | undefined;
28
+ withoutCalt?: boolean | undefined;
28
29
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
29
30
  theme?: import("@emotion/react").Theme | undefined;
30
31
  }, {}, {}>;
@@ -42,6 +42,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
42
42
  colorIntensity?: import("../Typography").Intensity | undefined;
43
43
  component?: import("../Typography/types").ComponentProp | undefined;
44
44
  isUpperCase?: boolean | undefined;
45
+ withoutCalt?: boolean | undefined;
45
46
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
46
47
  theme?: import("@emotion/react").Theme | undefined;
47
48
  } & {
@@ -55,6 +56,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
55
56
  colorIntensity?: import("../Typography").Intensity | undefined;
56
57
  component?: import("../Typography/types").ComponentProp | undefined;
57
58
  isUpperCase?: boolean | undefined;
59
+ withoutCalt?: boolean | undefined;
58
60
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
59
61
  theme?: import("@emotion/react").Theme | undefined;
60
62
  } & {
@@ -13,6 +13,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
13
13
  colorIntensity?: import("../Typography").Intensity | undefined;
14
14
  component?: import("../Typography/types").ComponentProp | undefined;
15
15
  isUpperCase?: boolean | undefined;
16
+ withoutCalt?: boolean | undefined;
16
17
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
17
18
  theme?: import("@emotion/react").Theme | undefined;
18
19
  }, {}, {}>;
@@ -31,6 +32,7 @@ export declare const IndicatorTypography: import("../styled").StyledComponent<im
31
32
  colorIntensity?: import("../Typography").Intensity | undefined;
32
33
  component?: import("../Typography/types").ComponentProp | undefined;
33
34
  isUpperCase?: boolean | undefined;
35
+ withoutCalt?: boolean | undefined;
34
36
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
35
37
  theme?: import("@emotion/react").Theme | undefined;
36
38
  }, {}, {}>;
@@ -17,6 +17,7 @@ export declare const HeaderTitle: import("../styled").StyledComponent<import("@m
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>, {}, {}>;
21
22
  export declare const Body: import("../styled").StyledComponent<{
22
23
  theme?: import("@emotion/react").Theme | undefined;
@@ -10,9 +10,10 @@ const UnwrappedButton = (props, ref) => {
10
10
  const { variant = ButtonVariants.Contained, color = variant === ButtonVariants.Text
11
11
  ? ButtonColors.Grey
12
12
  : ButtonColors.Primary, loading, disabled, children, className, selected, ...restProps } = props;
13
- return (_jsxs(StyledButton, { variant: variant, ref: ref, color: color, disabled: disabled, selected: selected, ...restProps, className: classNames(className, buttonClassnames.root, {
13
+ return (_jsxs(StyledButton, { variant: variant, ref: ref, color: color, disabled: disabled || loading, selected: selected, ...restProps, className: classNames(className, buttonClassnames.root, {
14
14
  [buttonClassnames.loading]: loading,
15
15
  [buttonClassnames.selected]: selected,
16
+ [buttonClassnames.disabled]: disabled,
16
17
  }), "aria-disabled": loading, children: [loading && (_jsx(StyledLoader, { color: loadingIndicatorColor, size: "small", "$color": color, "$variant": variant, "$isDisabled": disabled })), children] }));
17
18
  };
18
19
  export const Button = forwardRefWithGeneric(UnwrappedButton);
@@ -3,4 +3,5 @@ export declare const buttonClassnames: {
3
3
  root: string;
4
4
  loading: string;
5
5
  selected: string;
6
+ disabled: string;
6
7
  };
@@ -4,4 +4,5 @@ export const buttonClassnames = {
4
4
  root: createUIKitClassname('button'),
5
5
  loading: createUIKitClassname('button_loading'),
6
6
  selected: createUIKitClassname('button_selected'),
7
+ disabled: createUIKitClassname('button_disabled'),
7
8
  };
@@ -21,6 +21,7 @@ export declare const AdornmentWrapper: import("../styled").StyledComponent<impor
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
  }, {}, {}>;
@@ -23,6 +23,7 @@ export declare const FieldLabel: import("../styled").StyledComponent<import("../
23
23
  colorIntensity?: import("../Typography").Intensity | undefined;
24
24
  component?: import("../Typography/types").ComponentProp | undefined;
25
25
  isUpperCase?: boolean | undefined;
26
+ withoutCalt?: boolean | undefined;
26
27
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
27
28
  theme?: import("@emotion/react").Theme | undefined;
28
29
  }, {}, {}>;
@@ -29,6 +29,7 @@ export declare const CollapsibleTypography: import("react").ForwardRefExoticComp
29
29
  colorIntensity?: import("../Typography").Intensity | undefined;
30
30
  component?: import("../Typography/types").ComponentProp | undefined;
31
31
  isUpperCase?: boolean | undefined;
32
+ withoutCalt?: boolean | undefined;
32
33
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
33
34
  children?: import("react").ReactNode;
34
35
  } & import("react").RefAttributes<HTMLElement>>;
@@ -14,6 +14,7 @@ export declare const Wrapper: import("../styled").StyledComponent<import("../Typ
14
14
  colorIntensity?: import("../Typography").Intensity | undefined;
15
15
  component?: import("../Typography/types").ComponentProp | undefined;
16
16
  isUpperCase?: boolean | undefined;
17
+ withoutCalt?: boolean | undefined;
17
18
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
18
19
  theme?: import("@emotion/react").Theme | undefined;
19
20
  } & CollapsibleTypographyWrapperProps, {}, {}>;
@@ -9,6 +9,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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 Wrapper: import("../styled").StyledComponent<import("../Typ
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -15,6 +15,7 @@ export declare const useLogic: ({ children, copyPosition, copyText, isShowCopyTe
15
15
  colorIntensity?: import("../..").Intensity | undefined;
16
16
  component?: import("../../Typography/types").ComponentProp | undefined;
17
17
  isUpperCase?: boolean | undefined;
18
+ withoutCalt?: boolean | undefined;
18
19
  defaultChecked?: boolean | undefined;
19
20
  defaultValue?: string | number | readonly string[] | undefined;
20
21
  suppressContentEditableWarning?: boolean | undefined;
@@ -9,6 +9,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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
  }, {}, {}>;
@@ -9,6 +9,7 @@ export declare const Range: import("../styled").StyledComponent<import("../Typog
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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 Range: import("../styled").StyledComponent<import("../Typog
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -8,6 +8,7 @@ export declare const HeadText: import("../../../styled").StyledComponent<import(
8
8
  colorIntensity?: import("../../../Typography").Intensity | undefined;
9
9
  component?: import("../../../Typography/types").ComponentProp | undefined;
10
10
  isUpperCase?: boolean | undefined;
11
+ withoutCalt?: boolean | undefined;
11
12
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
12
13
  theme?: import("@emotion/react").Theme | undefined;
13
14
  }, {}, {}>;
@@ -15,6 +15,7 @@ export declare const StyledTypography: import("../../styled").StyledComponent<im
15
15
  colorIntensity?: import("../../Typography").Intensity | undefined;
16
16
  component?: import("../../Typography/types").ComponentProp | undefined;
17
17
  isUpperCase?: boolean | undefined;
18
+ withoutCalt?: boolean | undefined;
18
19
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
19
20
  theme?: import("@emotion/react").Theme | undefined;
20
21
  } & StyledTypographyProps, {}, {}>;
@@ -24,6 +25,7 @@ export declare const StyledCopyTypography: import("../../styled").StyledComponen
24
25
  colorIntensity?: import("../../Typography").Intensity | undefined;
25
26
  component?: import("../../Typography/types").ComponentProp | undefined;
26
27
  isUpperCase?: boolean | undefined;
28
+ withoutCalt?: boolean | undefined;
27
29
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
28
30
  copyText?: string | undefined;
29
31
  copyPosition?: "left" | "right" | undefined;
@@ -43,6 +43,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
43
43
  colorIntensity?: import("../Typography").Intensity | undefined;
44
44
  component?: import("../Typography/types").ComponentProp | undefined;
45
45
  isUpperCase?: boolean | undefined;
46
+ withoutCalt?: boolean | undefined;
46
47
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
47
48
  theme?: import("@emotion/react").Theme | undefined;
48
49
  }, {}, {}>;
@@ -11,6 +11,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
11
11
  colorIntensity?: import("../Typography").Intensity | undefined;
12
12
  component?: import("../Typography/types").ComponentProp | undefined;
13
13
  isUpperCase?: boolean | undefined;
14
+ withoutCalt?: boolean | undefined;
14
15
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
15
16
  theme?: import("@emotion/react").Theme | undefined;
16
17
  }, {}, {}>;
@@ -20,6 +21,7 @@ export declare const Description: import("../styled").StyledComponent<import("..
20
21
  colorIntensity?: import("../Typography").Intensity | undefined;
21
22
  component?: import("../Typography/types").ComponentProp | undefined;
22
23
  isUpperCase?: boolean | undefined;
24
+ withoutCalt?: boolean | undefined;
23
25
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
24
26
  theme?: import("@emotion/react").Theme | undefined;
25
27
  }, {}, {}>;
@@ -13,6 +13,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
13
13
  colorIntensity?: import("../Typography").Intensity | undefined;
14
14
  component?: import("../Typography/types").ComponentProp | undefined;
15
15
  isUpperCase?: boolean | undefined;
16
+ withoutCalt?: boolean | undefined;
16
17
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
17
18
  theme?: import("@emotion/react").Theme | undefined;
18
19
  } & {
@@ -14,6 +14,7 @@ export declare const TargetTextWrapper: import("../styled").StyledComponent<impo
14
14
  colorIntensity?: import("../Typography").Intensity | undefined;
15
15
  component?: import("../Typography/types").ComponentProp | undefined;
16
16
  isUpperCase?: boolean | undefined;
17
+ withoutCalt?: boolean | undefined;
17
18
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
18
19
  theme?: import("@emotion/react").Theme | undefined;
19
20
  }, {}, {}>;
@@ -341,6 +341,7 @@ export declare const Value: import("../../styled").StyledComponent<import("../..
341
341
  colorIntensity?: import("../..").Intensity | undefined;
342
342
  component?: import("../../Typography/types").ComponentProp | undefined;
343
343
  isUpperCase?: boolean | undefined;
344
+ withoutCalt?: boolean | undefined;
344
345
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
345
346
  children?: import("react").ReactNode;
346
347
  } & import("react").RefAttributes<HTMLElement> & {
@@ -354,6 +355,7 @@ export declare const CopyWrapper: import("../../styled").StyledComponent<import(
354
355
  colorIntensity?: import("../..").Intensity | undefined;
355
356
  component?: import("../../Typography/types").ComponentProp | undefined;
356
357
  isUpperCase?: boolean | undefined;
358
+ withoutCalt?: boolean | undefined;
357
359
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
358
360
  copyText?: string | undefined;
359
361
  copyPosition?: "left" | "right" | undefined;
@@ -1037,6 +1039,7 @@ export declare const GuidValue: import("../../styled").StyledComponent<import(".
1037
1039
  colorIntensity?: import("../..").Intensity | undefined;
1038
1040
  component?: import("../../Typography/types").ComponentProp | undefined;
1039
1041
  isUpperCase?: boolean | undefined;
1042
+ withoutCalt?: boolean | undefined;
1040
1043
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
1041
1044
  children?: import("react").ReactNode;
1042
1045
  } & {
@@ -28,6 +28,7 @@ export declare const Content: import("../../styled").StyledComponent<import("../
28
28
  colorIntensity?: import("../../Typography").Intensity | undefined;
29
29
  component?: import("../../Typography/types").ComponentProp | undefined;
30
30
  isUpperCase?: boolean | undefined;
31
+ withoutCalt?: boolean | undefined;
31
32
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
32
33
  theme?: import("@emotion/react").Theme | undefined;
33
34
  }, {}, {}>;
@@ -50,6 +51,7 @@ export declare const Title: import("../../styled").StyledComponent<import("../..
50
51
  colorIntensity?: import("../../Typography").Intensity | undefined;
51
52
  component?: import("../../Typography/types").ComponentProp | undefined;
52
53
  isUpperCase?: boolean | undefined;
54
+ withoutCalt?: boolean | undefined;
53
55
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
54
56
  theme?: import("@emotion/react").Theme | undefined;
55
57
  }, {}, {}>;
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
3
  import { IMaskMixin } from 'react-imask';
4
- import { TextField } from '../TextField';
4
+ import { StyledTextField } from './styles';
5
5
  const MaskedTextField = IMaskMixin(({ ...props }) => {
6
6
  const textFieldProps = props;
7
- return _jsx(TextField, { ...textFieldProps });
7
+ return _jsx(StyledTextField, { ...textFieldProps });
8
8
  });
9
9
  export const MaskField = forwardRef(({ onChange, onAccept, ...props }, ref) => {
10
10
  const maskFieldProps = { unmask: true, ...props };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledTextField: import("@emotion/styled").StyledComponent<Omit<import("../TextField").TextFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,5 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import { TextField } from '../TextField';
3
+ export const StyledTextField = styled(TextField) `
4
+ font-feature-settings: "calt" 0;
5
+ `;
@@ -5,6 +5,7 @@ export declare const Label: import("../styled").StyledComponent<import("../Typog
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -24,6 +24,7 @@ export declare const StyledTypography: import("../../styled/styled").StyledCompo
24
24
  colorIntensity?: import("../../Typography").Intensity | undefined;
25
25
  component?: import("../../Typography/types").ComponentProp | undefined;
26
26
  isUpperCase?: boolean | undefined;
27
+ withoutCalt?: boolean | undefined;
27
28
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
28
29
  theme?: import("@emotion/react").Theme | undefined;
29
30
  } & {
@@ -5,6 +5,7 @@ export declare const Label: import("../../styled").StyledComponent<import("../..
5
5
  colorIntensity?: import("../../Typography").Intensity | undefined;
6
6
  component?: import("../../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
  }, {}, {}>;
@@ -22,6 +22,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
22
22
  colorIntensity?: import("../Typography").Intensity | undefined;
23
23
  component?: import("../Typography/types").ComponentProp | undefined;
24
24
  isUpperCase?: boolean | undefined;
25
+ withoutCalt?: boolean | undefined;
25
26
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
26
27
  theme?: import("@emotion/react").Theme | undefined;
27
28
  }, {}, {}>;
@@ -5,6 +5,7 @@ export declare const PageItem: import("../styled").StyledComponent<import("../Ty
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -632,6 +632,7 @@ export declare const NavMenuItemButtonText: import("../../../styled").StyledComp
632
632
  colorIntensity?: import("../../..").Intensity | undefined;
633
633
  component?: import("../../../Typography/types").ComponentProp | undefined;
634
634
  isUpperCase?: boolean | undefined;
635
+ withoutCalt?: boolean | undefined;
635
636
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
636
637
  children?: import("react").ReactNode;
637
638
  } & import("react").RefAttributes<HTMLElement> & {
@@ -9,6 +9,7 @@ export declare const Header: import("../styled").StyledComponent<import("../Typo
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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
  }, {}, {}>;
@@ -18,6 +19,7 @@ export declare const Subheader: import("../styled").StyledComponent<import("../T
18
19
  colorIntensity?: import("../Typography").Intensity | undefined;
19
20
  component?: import("../Typography/types").ComponentProp | undefined;
20
21
  isUpperCase?: boolean | undefined;
22
+ withoutCalt?: boolean | undefined;
21
23
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
22
24
  theme?: import("@emotion/react").Theme | undefined;
23
25
  }, {}, {}>;
@@ -20,6 +20,7 @@ export declare const Content: import("../../styled").StyledComponent<import("../
20
20
  colorIntensity?: import("../../Typography").Intensity | undefined;
21
21
  component?: import("../../Typography/types").ComponentProp | undefined;
22
22
  isUpperCase?: boolean | undefined;
23
+ withoutCalt?: boolean | undefined;
23
24
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
24
25
  theme?: import("@emotion/react").Theme | undefined;
25
26
  }, {}, {}>;
@@ -46,6 +47,7 @@ export declare const Title: import("../../styled").StyledComponent<import("../..
46
47
  colorIntensity?: import("../../Typography").Intensity | undefined;
47
48
  component?: import("../../Typography/types").ComponentProp | undefined;
48
49
  isUpperCase?: boolean | undefined;
50
+ withoutCalt?: boolean | undefined;
49
51
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
50
52
  theme?: import("@emotion/react").Theme | undefined;
51
53
  }, {}, {}>;
@@ -10,6 +10,7 @@ export declare const Title: import("../../styled").StyledComponent<import("../..
10
10
  colorIntensity?: import("../../Typography").Intensity | undefined;
11
11
  component?: import("../../Typography/types").ComponentProp | undefined;
12
12
  isUpperCase?: boolean | undefined;
13
+ withoutCalt?: boolean | undefined;
13
14
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
14
15
  theme?: import("@emotion/react").Theme | undefined;
15
16
  }, {}, {}>;
@@ -19,6 +20,7 @@ export declare const DateText: import("../../styled").StyledComponent<import("..
19
20
  colorIntensity?: import("../../Typography").Intensity | undefined;
20
21
  component?: import("../../Typography/types").ComponentProp | undefined;
21
22
  isUpperCase?: boolean | undefined;
23
+ withoutCalt?: boolean | undefined;
22
24
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
23
25
  theme?: import("@emotion/react").Theme | undefined;
24
26
  }, {}, {}>;
@@ -342,6 +342,7 @@ export declare const OverflowTypography: import("react").ForwardRefExoticCompone
342
342
  colorIntensity?: import("../Typography").Intensity | undefined;
343
343
  component?: import("../Typography/types").ComponentProp | undefined;
344
344
  isUpperCase?: boolean | undefined;
345
+ withoutCalt?: boolean | undefined;
345
346
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
346
347
  children?: import("react").ReactNode;
347
348
  } & import("react").RefAttributes<HTMLElement>>;
@@ -9,6 +9,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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
  } & OverflowTypographyWrapperProps, {}, {}>;
@@ -18,6 +19,7 @@ export declare const Wrapper: import("../styled").StyledComponent<import("../Typ
18
19
  colorIntensity?: import("../Typography").Intensity | undefined;
19
20
  component?: import("../Typography/types").ComponentProp | undefined;
20
21
  isUpperCase?: boolean | undefined;
22
+ withoutCalt?: boolean | undefined;
21
23
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
22
24
  theme?: import("@emotion/react").Theme | undefined;
23
25
  } & {
@@ -5,6 +5,7 @@ export declare const TitleWrapper: import("../../../styled").StyledComponent<imp
5
5
  colorIntensity?: import("../../../Typography").Intensity | undefined;
6
6
  component?: import("../../../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
  }, {}, {}>;
@@ -5,6 +5,7 @@ export declare const StyledTypography: import("../../../styled").StyledComponent
5
5
  colorIntensity?: import("../../../Typography").Intensity | undefined;
6
6
  component?: import("../../../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
  }, {}, {}>;
@@ -5,6 +5,7 @@ export declare const TitleWrapper: import("../../styled").StyledComponent<import
5
5
  colorIntensity?: import("../../Typography").Intensity | undefined;
6
6
  component?: import("../../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
  } & {
@@ -5,6 +5,7 @@ export declare const Ellipsis: import("../../styled").StyledComponent<import("..
5
5
  colorIntensity?: import("../../Typography").Intensity | undefined;
6
6
  component?: import("../../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
  } & {
@@ -14,6 +14,7 @@ export declare const Content: import("../styled").StyledComponent<import("../Typ
14
14
  colorIntensity?: import("../Typography").Intensity | undefined;
15
15
  component?: import("../Typography/types").ComponentProp | undefined;
16
16
  isUpperCase?: boolean | undefined;
17
+ withoutCalt?: boolean | undefined;
17
18
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
18
19
  theme?: import("@emotion/react").Theme | undefined;
19
20
  }, {}, {}>;
@@ -19,6 +19,7 @@ export declare const ProductName: import("../../styled").StyledComponent<import(
19
19
  colorIntensity?: import("../../Typography").Intensity | undefined;
20
20
  component?: import("../../Typography/types").ComponentProp | undefined;
21
21
  isUpperCase?: boolean | undefined;
22
+ withoutCalt?: boolean | undefined;
22
23
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
23
24
  theme?: import("@emotion/react").Theme | undefined;
24
25
  }, {}, {}>;
@@ -47,6 +47,7 @@ export declare const Label: import("../../styled").StyledComponent<import("../..
47
47
  colorIntensity?: import("../../Typography").Intensity | undefined;
48
48
  component?: import("../../Typography/types").ComponentProp | undefined;
49
49
  isUpperCase?: boolean | undefined;
50
+ withoutCalt?: boolean | undefined;
50
51
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
51
52
  theme?: import("@emotion/react").Theme | undefined;
52
53
  }, {}, {}>;
@@ -391,6 +392,7 @@ export declare const Note: import("../../styled").StyledComponent<import("../../
391
392
  colorIntensity?: import("../../Typography").Intensity | undefined;
392
393
  component?: import("../../Typography/types").ComponentProp | undefined;
393
394
  isUpperCase?: boolean | undefined;
395
+ withoutCalt?: boolean | undefined;
394
396
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
395
397
  children?: import("react").ReactNode;
396
398
  } & import("react").RefAttributes<HTMLElement> & {
@@ -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>>;
@@ -1,8 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
+ import { classNames } from '../utils/classNames';
4
+ import { typographyClassnames } from './constants';
3
5
  import { useTypographyColor } from './hooks';
4
6
  import { TypographyWrapper } from './styles';
5
- export const Typography = forwardRef(({ children, color, colorIntensity = '800', component, ...props }, ref) => {
7
+ export const Typography = forwardRef(({ children, color, colorIntensity = '800', component, withoutCalt, className, ...props }, ref) => {
6
8
  const typographyColor = useTypographyColor({ color, colorIntensity });
7
- return (_jsx(TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, children: children }));
9
+ return (_jsx(TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: classNames(className, {
10
+ [typographyClassnames.withoutCalt]: withoutCalt,
11
+ }), children: children }));
8
12
  });
@@ -0,0 +1,3 @@
1
+ export declare const typographyClassnames: {
2
+ withoutCalt: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export const typographyClassnames = {
2
+ withoutCalt: 'typography_without-calt',
3
+ };
@@ -1,7 +1,12 @@
1
1
  import Typography from '@mui/material/Typography';
2
2
  import { styled } from '../styled';
3
+ import { typographyClassnames } from './constants';
3
4
  export const TypographyWrapper = styled(Typography, {
4
5
  shouldForwardProp: (prop) => prop !== 'isUpperCase',
5
6
  }) `
6
7
  text-transform: ${({ isUpperCase }) => (isUpperCase ? 'uppercase' : 'none')};
8
+
9
+ .${typographyClassnames.withoutCalt} {
10
+ font-feature-settings: "calt" 0;
11
+ }
7
12
  `;
@@ -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("../styled").StyledComponent<import("../Ty
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("../styled").StyledComponent<import("../Ty
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("../../styled").StyledComponent<import("..
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
  }, {}, {}>;