@hh.ru/magritte-ui-title 8.1.8 → 8.3.0

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/Title.js CHANGED
@@ -4,9 +4,11 @@ import classNames from 'classnames';
4
4
  import { useDisabled } from '@hh.ru/magritte-common-use-disabled';
5
5
  import { useRegisterRegionLabel, useRegisterRegionDescription } from '@hh.ru/magritte-internal-accessible-region';
6
6
  import { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';
7
+ import { useTitleDefaultProps } from './defaultProps.js';
7
8
  import { TextDynamic, Text } from '@hh.ru/magritte-ui-typography';
9
+ import '@hh.ru/magritte-internal-default-props-context';
8
10
 
9
- var styles = {"text":"magritte-text___gMq2l_8-1-8","text_max-lines":"magritte-text_max-lines___DrV3M_8-1-8","textMaxLines":"magritte-text_max-lines___DrV3M_8-1-8","text-ellipsis":"magritte-text-ellipsis___SonGX_8-1-8","textEllipsis":"magritte-text-ellipsis___SonGX_8-1-8","text-nowrap":"magritte-text-nowrap___iHpla_8-1-8","textNowrap":"magritte-text-nowrap___iHpla_8-1-8","text-dynamic":"magritte-text-dynamic___ssggP_8-1-8","textDynamic":"magritte-text-dynamic___ssggP_8-1-8","text-dynamic_stretched":"magritte-text-dynamic_stretched___iRF8J_8-1-8","textDynamicStretched":"magritte-text-dynamic_stretched___iRF8J_8-1-8","text_style-primary":"magritte-text_style-primary___rdDcV_8-1-8","textStylePrimary":"magritte-text-style-primary___8SAJp_8-1-8","text-dynamic-disabled":"magritte-text-dynamic-disabled___un3JJ_8-1-8","textDynamicDisabled":"magritte-text-dynamic-disabled___un3JJ_8-1-8","text_style-secondary":"magritte-text_style-secondary___8SLQo_8-1-8","textStyleSecondary":"magritte-text-style-secondary___KSELD_8-1-8","text_style-tertiary":"magritte-text_style-tertiary___MSTWz_8-1-8","textStyleTertiary":"magritte-text-style-tertiary___yc3H6_8-1-8","text_style-dense":"magritte-text_style-dense___YeCxA_8-1-8","textStyleDense":"magritte-text-style-dense___ZId4U_8-1-8","text_style-accent":"magritte-text_style-accent___G22-y_8-1-8","textStyleAccent":"magritte-text-style-accent___hCVMF_8-1-8","text_style-accent-secondary":"magritte-text_style-accent-secondary___fAgYL_8-1-8","textStyleAccentSecondary":"magritte-text-style-accent-secondary___LyBxB_8-1-8","text_style-positive":"magritte-text_style-positive___cQv8t_8-1-8","textStylePositive":"magritte-text-style-positive___HZOr5_8-1-8","text_style-positive-secondary":"magritte-text_style-positive-secondary___09lFk_8-1-8","textStylePositiveSecondary":"magritte-text-style-positive-secondary___tqCOX_8-1-8","text_style-negative":"magritte-text_style-negative___Fp39b_8-1-8","textStyleNegative":"magritte-text-style-negative___itR-b_8-1-8","text_style-negative-secondary":"magritte-text_style-negative-secondary___3dz-Q_8-1-8","textStyleNegativeSecondary":"magritte-text-style-negative-secondary___F8QH6_8-1-8","text_style-warning":"magritte-text_style-warning___438Jx_8-1-8","textStyleWarning":"magritte-text-style-warning___vKzP0_8-1-8","text_style-warning-secondary":"magritte-text_style-warning-secondary___rFtsk_8-1-8","textStyleWarningSecondary":"magritte-text-style-warning-secondary___xgml-_8-1-8","text_style-special":"magritte-text_style-special___HmauH_8-1-8","textStyleSpecial":"magritte-text-style-special___LZ7Xd_8-1-8","text_style-special-secondary":"magritte-text_style-special-secondary___Zn9az_8-1-8","textStyleSpecialSecondary":"magritte-text-style-special-secondary___NxqI7_8-1-8","text_style-constant":"magritte-text_style-constant___40nro_8-1-8","textStyleConstant":"magritte-text-style-constant___5ljIt_8-1-8","text_style-constant-secondary":"magritte-text_style-constant-secondary___B39tJ_8-1-8","textStyleConstantSecondary":"magritte-text-style-constant-secondary___QMzV2_8-1-8","text_style-inverse":"magritte-text_style-inverse___xtV8h_8-1-8","textStyleInverse":"magritte-text-style-inverse___o9xoz_8-1-8","text_style-inverse-secondary":"magritte-text_style-inverse-secondary___UCr6Q_8-1-8","textStyleInverseSecondary":"magritte-text-style-inverse-secondary___HiLgZ_8-1-8","text_style-lovely":"magritte-text_style-lovely___sxn-C_8-1-8","textStyleLovely":"magritte-text-style-lovely___9zEU8_8-1-8","text_style-lovely-secondary":"magritte-text_style-lovely-secondary___r-in-_8-1-8","textStyleLovelySecondary":"magritte-text-style-lovely-secondary___vfL-u_8-1-8","text_style-dreamy":"magritte-text_style-dreamy___ClAFt_8-1-8","textStyleDreamy":"magritte-text-style-dreamy___eu6mD_8-1-8","text_style-dreamy-secondary":"magritte-text_style-dreamy-secondary___Vg3cs_8-1-8","textStyleDreamySecondary":"magritte-text-style-dreamy-secondary___0DPp9_8-1-8","text_style-vivid":"magritte-text_style-vivid___qZMHU_8-1-8","textStyleVivid":"magritte-text-style-vivid___oZQbj_8-1-8","text_style-vivid-secondary":"magritte-text_style-vivid-secondary___lEQ1c_8-1-8","textStyleVividSecondary":"magritte-text-style-vivid-secondary___fDWfb_8-1-8","text_typography-title-1-semibold":"magritte-text_typography-title-1-semibold___Z9hba_8-1-8","textTypographyTitle1Semibold":"magritte-text-typography-title-1-semibold___42fnF_8-1-8","text_typography-title-2-semibold":"magritte-text_typography-title-2-semibold___phvoF_8-1-8","textTypographyTitle2Semibold":"magritte-text-typography-title-2-semibold___rkHzK_8-1-8","text_typography-title-3-semibold":"magritte-text_typography-title-3-semibold___QJLrr_8-1-8","textTypographyTitle3Semibold":"magritte-text-typography-title-3-semibold___t4OEx_8-1-8","text_typography-title-4-semibold":"magritte-text_typography-title-4-semibold___m37f-_8-1-8","textTypographyTitle4Semibold":"magritte-text-typography-title-4-semibold___mp1XV_8-1-8","text_typography-title-5-semibold":"magritte-text_typography-title-5-semibold___JSuUy_8-1-8","textTypographyTitle5Semibold":"magritte-text-typography-title-5-semibold___Ohb84_8-1-8","text_typography-subtitle-1-semibold":"magritte-text_typography-subtitle-1-semibold___bxr-D_8-1-8","textTypographySubtitle1Semibold":"magritte-text_typography-subtitle-1-semibold___bxr-D_8-1-8","text_typography-subtitle-2-semibold":"magritte-text_typography-subtitle-2-semibold___sKZ8n_8-1-8","textTypographySubtitle2Semibold":"magritte-text_typography-subtitle-2-semibold___sKZ8n_8-1-8","text_typography-subtitle-3-semibold":"magritte-text_typography-subtitle-3-semibold___Co2XJ_8-1-8","textTypographySubtitle3Semibold":"magritte-text_typography-subtitle-3-semibold___Co2XJ_8-1-8","text_typography-subtitle-4-semibold":"magritte-text_typography-subtitle-4-semibold___80Bd9_8-1-8","textTypographySubtitle4Semibold":"magritte-text_typography-subtitle-4-semibold___80Bd9_8-1-8","text_typography-label-1-regular":"magritte-text_typography-label-1-regular___H1-9p_8-1-8","textTypographyLabel1Regular":"magritte-text_typography-label-1-regular___H1-9p_8-1-8","text_typography-label-2-regular":"magritte-text_typography-label-2-regular___ENr3V_8-1-8","textTypographyLabel2Regular":"magritte-text_typography-label-2-regular___ENr3V_8-1-8","text_typography-label-3-regular":"magritte-text_typography-label-3-regular___XEPjq_8-1-8","textTypographyLabel3Regular":"magritte-text_typography-label-3-regular___XEPjq_8-1-8","text_typography-label-4-regular":"magritte-text_typography-label-4-regular___QAtkY_8-1-8","textTypographyLabel4Regular":"magritte-text_typography-label-4-regular___QAtkY_8-1-8","text_typography-label-5-regular":"magritte-text_typography-label-5-regular___ls1OO_8-1-8","textTypographyLabel5Regular":"magritte-text_typography-label-5-regular___ls1OO_8-1-8","text_typography-paragraph-1-regular":"magritte-text_typography-paragraph-1-regular___ZAWZI_8-1-8","textTypographyParagraph1Regular":"magritte-text_typography-paragraph-1-regular___ZAWZI_8-1-8","text_typography-paragraph-2-regular":"magritte-text_typography-paragraph-2-regular___m6HI2_8-1-8","textTypographyParagraph2Regular":"magritte-text_typography-paragraph-2-regular___m6HI2_8-1-8","text_typography-paragraph-3-regular":"magritte-text_typography-paragraph-3-regular___7-q8O_8-1-8","textTypographyParagraph3Regular":"magritte-text_typography-paragraph-3-regular___7-q8O_8-1-8","text_typography-paragraph-4-regular":"magritte-text_typography-paragraph-4-regular___GO1UU_8-1-8","textTypographyParagraph4Regular":"magritte-text_typography-paragraph-4-regular___GO1UU_8-1-8","text_typography-custom-1-semibold":"magritte-text_typography-custom-1-semibold___Ykh-1_8-1-8","textTypographyCustom1Semibold":"magritte-text_typography-custom-1-semibold___Ykh-1_8-1-8","text_typography-custom-2-semibold":"magritte-text_typography-custom-2-semibold___Cf2fg_8-1-8","textTypographyCustom2Semibold":"magritte-text_typography-custom-2-semibold___Cf2fg_8-1-8","text_typography-custom-3-semibold":"magritte-text_typography-custom-3-semibold___lfHEW_8-1-8","textTypographyCustom3Semibold":"magritte-text_typography-custom-3-semibold___lfHEW_8-1-8","text_typography-custom-4-semibold":"magritte-text_typography-custom-4-semibold___tMYEA_8-1-8","textTypographyCustom4Semibold":"magritte-text_typography-custom-4-semibold___tMYEA_8-1-8","text_typography-custom-5-semibold":"magritte-text_typography-custom-5-semibold___yMnNu_8-1-8","textTypographyCustom5Semibold":"magritte-text_typography-custom-5-semibold___yMnNu_8-1-8","text_typography-custom-1-italic":"magritte-text_typography-custom-1-italic___kXPxH_8-1-8","textTypographyCustom1Italic":"magritte-text_typography-custom-1-italic___kXPxH_8-1-8","text_typography-custom-2-italic":"magritte-text_typography-custom-2-italic___C67Bb_8-1-8","textTypographyCustom2Italic":"magritte-text_typography-custom-2-italic___C67Bb_8-1-8","text_typography-custom-3-italic":"magritte-text_typography-custom-3-italic___e1YOK_8-1-8","textTypographyCustom3Italic":"magritte-text_typography-custom-3-italic___e1YOK_8-1-8","text_typography-custom-4-italic":"magritte-text_typography-custom-4-italic___9GDTc_8-1-8","textTypographyCustom4Italic":"magritte-text_typography-custom-4-italic___9GDTc_8-1-8","text_typography-custom-5-italic":"magritte-text_typography-custom-5-italic___zjNk3_8-1-8","textTypographyCustom5Italic":"magritte-text_typography-custom-5-italic___zjNk3_8-1-8","text_typography-custom-1-medium":"magritte-text_typography-custom-1-medium___fdDz5_8-1-8","textTypographyCustom1Medium":"magritte-text_typography-custom-1-medium___fdDz5_8-1-8","text_typography-custom-2-medium":"magritte-text_typography-custom-2-medium___1P-OU_8-1-8","textTypographyCustom2Medium":"magritte-text_typography-custom-2-medium___1P-OU_8-1-8","text_typography-custom-3-medium":"magritte-text_typography-custom-3-medium___Po2jT_8-1-8","textTypographyCustom3Medium":"magritte-text_typography-custom-3-medium___Po2jT_8-1-8","text_typography-custom-4-medium":"magritte-text_typography-custom-4-medium___0nP-E_8-1-8","textTypographyCustom4Medium":"magritte-text_typography-custom-4-medium___0nP-E_8-1-8","text_typography-custom-5-medium":"magritte-text_typography-custom-5-medium___h-T1s_8-1-8","textTypographyCustom5Medium":"magritte-text_typography-custom-5-medium___h-T1s_8-1-8","text_typography-display-1-display":"magritte-text_typography-display-1-display___PnMOD_8-1-8","textTypographyDisplay1Display":"magritte-text_typography-display-1-display___PnMOD_8-1-8","text_typography-display-2-display":"magritte-text_typography-display-2-display___JlZlE_8-1-8","textTypographyDisplay2Display":"magritte-text_typography-display-2-display___JlZlE_8-1-8","text_typography-display-3-display":"magritte-text_typography-display-3-display___11qV1_8-1-8","textTypographyDisplay3Display":"magritte-text_typography-display-3-display___11qV1_8-1-8","text_typography-display-4-display":"magritte-text_typography-display-4-display___IUe-P_8-1-8","textTypographyDisplay4Display":"magritte-text_typography-display-4-display___IUe-P_8-1-8","text_typography-display-5-display":"magritte-text_typography-display-5-display___NtEoh_8-1-8","textTypographyDisplay5Display":"magritte-text_typography-display-5-display___NtEoh_8-1-8","text_typography-display-6-display":"magritte-text_typography-display-6-display___-xc7I_8-1-8","textTypographyDisplay6Display":"magritte-text_typography-display-6-display___-xc7I_8-1-8","text_typography-display-7-display":"magritte-text_typography-display-7-display___gzQfs_8-1-8","textTypographyDisplay7Display":"magritte-text_typography-display-7-display___gzQfs_8-1-8","text_typography-display-8-display":"magritte-text_typography-display-8-display___zynMA_8-1-8","textTypographyDisplay8Display":"magritte-text_typography-display-8-display___zynMA_8-1-8","text-typography-title-1-semibold":"magritte-text-typography-title-1-semibold___42fnF_8-1-8","text-typography-title-2-semibold":"magritte-text-typography-title-2-semibold___rkHzK_8-1-8","text-typography-title-3-semibold":"magritte-text-typography-title-3-semibold___t4OEx_8-1-8","text-typography-title-4-semibold":"magritte-text-typography-title-4-semibold___mp1XV_8-1-8","text-typography-title-5-semibold":"magritte-text-typography-title-5-semibold___Ohb84_8-1-8","text-overflow":"magritte-text-overflow___UBrTV_8-1-8","textOverflow":"magritte-text-overflow___UBrTV_8-1-8","text-alignment-center":"magritte-text-alignment-center___VR41R_8-1-8","textAlignmentCenter":"magritte-text-alignment-center___VR41R_8-1-8","text-alignment-left":"magritte-text-alignment-left___BreG5_8-1-8","textAlignmentLeft":"magritte-text-alignment-left___BreG5_8-1-8","text-style-primary":"magritte-text-style-primary___8SAJp_8-1-8","text-disabled":"magritte-text-disabled___rFUph_8-1-8","textDisabled":"magritte-text-disabled___rFUph_8-1-8","text-style-secondary":"magritte-text-style-secondary___KSELD_8-1-8","text-style-tertiary":"magritte-text-style-tertiary___yc3H6_8-1-8","text-style-dense":"magritte-text-style-dense___ZId4U_8-1-8","text-style-accent":"magritte-text-style-accent___hCVMF_8-1-8","text-style-accent-secondary":"magritte-text-style-accent-secondary___LyBxB_8-1-8","text-style-positive":"magritte-text-style-positive___HZOr5_8-1-8","text-style-positive-secondary":"magritte-text-style-positive-secondary___tqCOX_8-1-8","text-style-negative":"magritte-text-style-negative___itR-b_8-1-8","text-style-negative-secondary":"magritte-text-style-negative-secondary___F8QH6_8-1-8","text-style-warning":"magritte-text-style-warning___vKzP0_8-1-8","text-style-warning-secondary":"magritte-text-style-warning-secondary___xgml-_8-1-8","text-style-special":"magritte-text-style-special___LZ7Xd_8-1-8","text-style-special-secondary":"magritte-text-style-special-secondary___NxqI7_8-1-8","text-style-constant":"magritte-text-style-constant___5ljIt_8-1-8","text-style-constant-secondary":"magritte-text-style-constant-secondary___QMzV2_8-1-8","text-style-inverse":"magritte-text-style-inverse___o9xoz_8-1-8","text-style-inverse-secondary":"magritte-text-style-inverse-secondary___HiLgZ_8-1-8","text-style-lovely":"magritte-text-style-lovely___9zEU8_8-1-8","text-style-lovely-secondary":"magritte-text-style-lovely-secondary___vfL-u_8-1-8","text-style-dreamy":"magritte-text-style-dreamy___eu6mD_8-1-8","text-style-dreamy-secondary":"magritte-text-style-dreamy-secondary___0DPp9_8-1-8","text-style-vivid":"magritte-text-style-vivid___oZQbj_8-1-8","text-style-vivid-secondary":"magritte-text-style-vivid-secondary___fDWfb_8-1-8","text-typography-extra-large":"magritte-text-typography-extra-large___HTH3I_8-1-8","textTypographyExtraLarge":"magritte-text-typography-extra-large___HTH3I_8-1-8","text-typography-large":"magritte-text-typography-large___FidYc_8-1-8","textTypographyLarge":"magritte-text-typography-large___FidYc_8-1-8","text-typography-medium":"magritte-text-typography-medium___cp79S_8-1-8","textTypographyMedium":"magritte-text-typography-medium___cp79S_8-1-8","text-typography-small":"magritte-text-typography-small___QbQNX_8-1-8","textTypographySmall":"magritte-text-typography-small___QbQNX_8-1-8","space-description":"magritte-space-description___nDK9-_8-1-8","spaceDescription":"magritte-space-description___nDK9-_8-1-8"};
11
+ var styles = {"text":"magritte-text___gMq2l_8-3-0","text_max-lines":"magritte-text_max-lines___DrV3M_8-3-0","textMaxLines":"magritte-text_max-lines___DrV3M_8-3-0","text-ellipsis":"magritte-text-ellipsis___SonGX_8-3-0","textEllipsis":"magritte-text-ellipsis___SonGX_8-3-0","text-nowrap":"magritte-text-nowrap___iHpla_8-3-0","textNowrap":"magritte-text-nowrap___iHpla_8-3-0","text-dynamic":"magritte-text-dynamic___ssggP_8-3-0","textDynamic":"magritte-text-dynamic___ssggP_8-3-0","text-dynamic_stretched":"magritte-text-dynamic_stretched___iRF8J_8-3-0","textDynamicStretched":"magritte-text-dynamic_stretched___iRF8J_8-3-0","text_style-primary":"magritte-text_style-primary___rdDcV_8-3-0","textStylePrimary":"magritte-text-style-primary___8SAJp_8-3-0","text-dynamic-disabled":"magritte-text-dynamic-disabled___un3JJ_8-3-0","textDynamicDisabled":"magritte-text-dynamic-disabled___un3JJ_8-3-0","text_style-secondary":"magritte-text_style-secondary___8SLQo_8-3-0","textStyleSecondary":"magritte-text-style-secondary___KSELD_8-3-0","text_style-tertiary":"magritte-text_style-tertiary___MSTWz_8-3-0","textStyleTertiary":"magritte-text-style-tertiary___yc3H6_8-3-0","text_style-dense":"magritte-text_style-dense___YeCxA_8-3-0","textStyleDense":"magritte-text-style-dense___ZId4U_8-3-0","text_style-accent":"magritte-text_style-accent___G22-y_8-3-0","textStyleAccent":"magritte-text-style-accent___hCVMF_8-3-0","text_style-accent-secondary":"magritte-text_style-accent-secondary___fAgYL_8-3-0","textStyleAccentSecondary":"magritte-text-style-accent-secondary___LyBxB_8-3-0","text_style-positive":"magritte-text_style-positive___cQv8t_8-3-0","textStylePositive":"magritte-text-style-positive___HZOr5_8-3-0","text_style-positive-secondary":"magritte-text_style-positive-secondary___09lFk_8-3-0","textStylePositiveSecondary":"magritte-text-style-positive-secondary___tqCOX_8-3-0","text_style-negative":"magritte-text_style-negative___Fp39b_8-3-0","textStyleNegative":"magritte-text-style-negative___itR-b_8-3-0","text_style-negative-secondary":"magritte-text_style-negative-secondary___3dz-Q_8-3-0","textStyleNegativeSecondary":"magritte-text-style-negative-secondary___F8QH6_8-3-0","text_style-warning":"magritte-text_style-warning___438Jx_8-3-0","textStyleWarning":"magritte-text-style-warning___vKzP0_8-3-0","text_style-warning-secondary":"magritte-text_style-warning-secondary___rFtsk_8-3-0","textStyleWarningSecondary":"magritte-text-style-warning-secondary___xgml-_8-3-0","text_style-special":"magritte-text_style-special___HmauH_8-3-0","textStyleSpecial":"magritte-text-style-special___LZ7Xd_8-3-0","text_style-special-secondary":"magritte-text_style-special-secondary___Zn9az_8-3-0","textStyleSpecialSecondary":"magritte-text-style-special-secondary___NxqI7_8-3-0","text_style-constant":"magritte-text_style-constant___40nro_8-3-0","textStyleConstant":"magritte-text-style-constant___5ljIt_8-3-0","text_style-constant-secondary":"magritte-text_style-constant-secondary___B39tJ_8-3-0","textStyleConstantSecondary":"magritte-text-style-constant-secondary___QMzV2_8-3-0","text_style-inverse":"magritte-text_style-inverse___xtV8h_8-3-0","textStyleInverse":"magritte-text-style-inverse___o9xoz_8-3-0","text_style-inverse-secondary":"magritte-text_style-inverse-secondary___UCr6Q_8-3-0","textStyleInverseSecondary":"magritte-text-style-inverse-secondary___HiLgZ_8-3-0","text_style-lovely":"magritte-text_style-lovely___sxn-C_8-3-0","textStyleLovely":"magritte-text-style-lovely___9zEU8_8-3-0","text_style-lovely-secondary":"magritte-text_style-lovely-secondary___r-in-_8-3-0","textStyleLovelySecondary":"magritte-text-style-lovely-secondary___vfL-u_8-3-0","text_style-dreamy":"magritte-text_style-dreamy___ClAFt_8-3-0","textStyleDreamy":"magritte-text-style-dreamy___eu6mD_8-3-0","text_style-dreamy-secondary":"magritte-text_style-dreamy-secondary___Vg3cs_8-3-0","textStyleDreamySecondary":"magritte-text-style-dreamy-secondary___0DPp9_8-3-0","text_style-vivid":"magritte-text_style-vivid___qZMHU_8-3-0","textStyleVivid":"magritte-text-style-vivid___oZQbj_8-3-0","text_style-vivid-secondary":"magritte-text_style-vivid-secondary___lEQ1c_8-3-0","textStyleVividSecondary":"magritte-text-style-vivid-secondary___fDWfb_8-3-0","text_typography-title-1-semibold":"magritte-text_typography-title-1-semibold___Z9hba_8-3-0","textTypographyTitle1Semibold":"magritte-text-typography-title-1-semibold___42fnF_8-3-0","text_typography-title-2-semibold":"magritte-text_typography-title-2-semibold___phvoF_8-3-0","textTypographyTitle2Semibold":"magritte-text-typography-title-2-semibold___rkHzK_8-3-0","text_typography-title-3-semibold":"magritte-text_typography-title-3-semibold___QJLrr_8-3-0","textTypographyTitle3Semibold":"magritte-text-typography-title-3-semibold___t4OEx_8-3-0","text_typography-title-4-semibold":"magritte-text_typography-title-4-semibold___m37f-_8-3-0","textTypographyTitle4Semibold":"magritte-text-typography-title-4-semibold___mp1XV_8-3-0","text_typography-title-5-semibold":"magritte-text_typography-title-5-semibold___JSuUy_8-3-0","textTypographyTitle5Semibold":"magritte-text-typography-title-5-semibold___Ohb84_8-3-0","text_typography-subtitle-1-semibold":"magritte-text_typography-subtitle-1-semibold___bxr-D_8-3-0","textTypographySubtitle1Semibold":"magritte-text_typography-subtitle-1-semibold___bxr-D_8-3-0","text_typography-subtitle-2-semibold":"magritte-text_typography-subtitle-2-semibold___sKZ8n_8-3-0","textTypographySubtitle2Semibold":"magritte-text_typography-subtitle-2-semibold___sKZ8n_8-3-0","text_typography-subtitle-3-semibold":"magritte-text_typography-subtitle-3-semibold___Co2XJ_8-3-0","textTypographySubtitle3Semibold":"magritte-text_typography-subtitle-3-semibold___Co2XJ_8-3-0","text_typography-subtitle-4-semibold":"magritte-text_typography-subtitle-4-semibold___80Bd9_8-3-0","textTypographySubtitle4Semibold":"magritte-text_typography-subtitle-4-semibold___80Bd9_8-3-0","text_typography-label-1-regular":"magritte-text_typography-label-1-regular___H1-9p_8-3-0","textTypographyLabel1Regular":"magritte-text_typography-label-1-regular___H1-9p_8-3-0","text_typography-label-2-regular":"magritte-text_typography-label-2-regular___ENr3V_8-3-0","textTypographyLabel2Regular":"magritte-text_typography-label-2-regular___ENr3V_8-3-0","text_typography-label-3-regular":"magritte-text_typography-label-3-regular___XEPjq_8-3-0","textTypographyLabel3Regular":"magritte-text_typography-label-3-regular___XEPjq_8-3-0","text_typography-label-4-regular":"magritte-text_typography-label-4-regular___QAtkY_8-3-0","textTypographyLabel4Regular":"magritte-text_typography-label-4-regular___QAtkY_8-3-0","text_typography-label-5-regular":"magritte-text_typography-label-5-regular___ls1OO_8-3-0","textTypographyLabel5Regular":"magritte-text_typography-label-5-regular___ls1OO_8-3-0","text_typography-paragraph-1-regular":"magritte-text_typography-paragraph-1-regular___ZAWZI_8-3-0","textTypographyParagraph1Regular":"magritte-text_typography-paragraph-1-regular___ZAWZI_8-3-0","text_typography-paragraph-2-regular":"magritte-text_typography-paragraph-2-regular___m6HI2_8-3-0","textTypographyParagraph2Regular":"magritte-text_typography-paragraph-2-regular___m6HI2_8-3-0","text_typography-paragraph-3-regular":"magritte-text_typography-paragraph-3-regular___7-q8O_8-3-0","textTypographyParagraph3Regular":"magritte-text_typography-paragraph-3-regular___7-q8O_8-3-0","text_typography-paragraph-4-regular":"magritte-text_typography-paragraph-4-regular___GO1UU_8-3-0","textTypographyParagraph4Regular":"magritte-text_typography-paragraph-4-regular___GO1UU_8-3-0","text_typography-custom-1-semibold":"magritte-text_typography-custom-1-semibold___Ykh-1_8-3-0","textTypographyCustom1Semibold":"magritte-text_typography-custom-1-semibold___Ykh-1_8-3-0","text_typography-custom-2-semibold":"magritte-text_typography-custom-2-semibold___Cf2fg_8-3-0","textTypographyCustom2Semibold":"magritte-text_typography-custom-2-semibold___Cf2fg_8-3-0","text_typography-custom-3-semibold":"magritte-text_typography-custom-3-semibold___lfHEW_8-3-0","textTypographyCustom3Semibold":"magritte-text_typography-custom-3-semibold___lfHEW_8-3-0","text_typography-custom-4-semibold":"magritte-text_typography-custom-4-semibold___tMYEA_8-3-0","textTypographyCustom4Semibold":"magritte-text_typography-custom-4-semibold___tMYEA_8-3-0","text_typography-custom-5-semibold":"magritte-text_typography-custom-5-semibold___yMnNu_8-3-0","textTypographyCustom5Semibold":"magritte-text_typography-custom-5-semibold___yMnNu_8-3-0","text_typography-custom-1-italic":"magritte-text_typography-custom-1-italic___kXPxH_8-3-0","textTypographyCustom1Italic":"magritte-text_typography-custom-1-italic___kXPxH_8-3-0","text_typography-custom-2-italic":"magritte-text_typography-custom-2-italic___C67Bb_8-3-0","textTypographyCustom2Italic":"magritte-text_typography-custom-2-italic___C67Bb_8-3-0","text_typography-custom-3-italic":"magritte-text_typography-custom-3-italic___e1YOK_8-3-0","textTypographyCustom3Italic":"magritte-text_typography-custom-3-italic___e1YOK_8-3-0","text_typography-custom-4-italic":"magritte-text_typography-custom-4-italic___9GDTc_8-3-0","textTypographyCustom4Italic":"magritte-text_typography-custom-4-italic___9GDTc_8-3-0","text_typography-custom-5-italic":"magritte-text_typography-custom-5-italic___zjNk3_8-3-0","textTypographyCustom5Italic":"magritte-text_typography-custom-5-italic___zjNk3_8-3-0","text_typography-custom-1-medium":"magritte-text_typography-custom-1-medium___fdDz5_8-3-0","textTypographyCustom1Medium":"magritte-text_typography-custom-1-medium___fdDz5_8-3-0","text_typography-custom-2-medium":"magritte-text_typography-custom-2-medium___1P-OU_8-3-0","textTypographyCustom2Medium":"magritte-text_typography-custom-2-medium___1P-OU_8-3-0","text_typography-custom-3-medium":"magritte-text_typography-custom-3-medium___Po2jT_8-3-0","textTypographyCustom3Medium":"magritte-text_typography-custom-3-medium___Po2jT_8-3-0","text_typography-custom-4-medium":"magritte-text_typography-custom-4-medium___0nP-E_8-3-0","textTypographyCustom4Medium":"magritte-text_typography-custom-4-medium___0nP-E_8-3-0","text_typography-custom-5-medium":"magritte-text_typography-custom-5-medium___h-T1s_8-3-0","textTypographyCustom5Medium":"magritte-text_typography-custom-5-medium___h-T1s_8-3-0","text_typography-display-1-display":"magritte-text_typography-display-1-display___PnMOD_8-3-0","textTypographyDisplay1Display":"magritte-text_typography-display-1-display___PnMOD_8-3-0","text_typography-display-2-display":"magritte-text_typography-display-2-display___JlZlE_8-3-0","textTypographyDisplay2Display":"magritte-text_typography-display-2-display___JlZlE_8-3-0","text_typography-display-3-display":"magritte-text_typography-display-3-display___11qV1_8-3-0","textTypographyDisplay3Display":"magritte-text_typography-display-3-display___11qV1_8-3-0","text_typography-display-4-display":"magritte-text_typography-display-4-display___IUe-P_8-3-0","textTypographyDisplay4Display":"magritte-text_typography-display-4-display___IUe-P_8-3-0","text_typography-display-5-display":"magritte-text_typography-display-5-display___NtEoh_8-3-0","textTypographyDisplay5Display":"magritte-text_typography-display-5-display___NtEoh_8-3-0","text_typography-display-6-display":"magritte-text_typography-display-6-display___-xc7I_8-3-0","textTypographyDisplay6Display":"magritte-text_typography-display-6-display___-xc7I_8-3-0","text_typography-display-7-display":"magritte-text_typography-display-7-display___gzQfs_8-3-0","textTypographyDisplay7Display":"magritte-text_typography-display-7-display___gzQfs_8-3-0","text_typography-display-8-display":"magritte-text_typography-display-8-display___zynMA_8-3-0","textTypographyDisplay8Display":"magritte-text_typography-display-8-display___zynMA_8-3-0","text-typography-title-1-semibold":"magritte-text-typography-title-1-semibold___42fnF_8-3-0","text-typography-title-2-semibold":"magritte-text-typography-title-2-semibold___rkHzK_8-3-0","text-typography-title-3-semibold":"magritte-text-typography-title-3-semibold___t4OEx_8-3-0","text-typography-title-4-semibold":"magritte-text-typography-title-4-semibold___mp1XV_8-3-0","text-typography-title-5-semibold":"magritte-text-typography-title-5-semibold___Ohb84_8-3-0","text-overflow":"magritte-text-overflow___UBrTV_8-3-0","textOverflow":"magritte-text-overflow___UBrTV_8-3-0","text-alignment-center":"magritte-text-alignment-center___VR41R_8-3-0","textAlignmentCenter":"magritte-text-alignment-center___VR41R_8-3-0","text-alignment-left":"magritte-text-alignment-left___BreG5_8-3-0","textAlignmentLeft":"magritte-text-alignment-left___BreG5_8-3-0","text-style-primary":"magritte-text-style-primary___8SAJp_8-3-0","text-disabled":"magritte-text-disabled___rFUph_8-3-0","textDisabled":"magritte-text-disabled___rFUph_8-3-0","text-style-secondary":"magritte-text-style-secondary___KSELD_8-3-0","text-style-tertiary":"magritte-text-style-tertiary___yc3H6_8-3-0","text-style-dense":"magritte-text-style-dense___ZId4U_8-3-0","text-style-accent":"magritte-text-style-accent___hCVMF_8-3-0","text-style-accent-secondary":"magritte-text-style-accent-secondary___LyBxB_8-3-0","text-style-positive":"magritte-text-style-positive___HZOr5_8-3-0","text-style-positive-secondary":"magritte-text-style-positive-secondary___tqCOX_8-3-0","text-style-negative":"magritte-text-style-negative___itR-b_8-3-0","text-style-negative-secondary":"magritte-text-style-negative-secondary___F8QH6_8-3-0","text-style-warning":"magritte-text-style-warning___vKzP0_8-3-0","text-style-warning-secondary":"magritte-text-style-warning-secondary___xgml-_8-3-0","text-style-special":"magritte-text-style-special___LZ7Xd_8-3-0","text-style-special-secondary":"magritte-text-style-special-secondary___NxqI7_8-3-0","text-style-constant":"magritte-text-style-constant___5ljIt_8-3-0","text-style-constant-secondary":"magritte-text-style-constant-secondary___QMzV2_8-3-0","text-style-inverse":"magritte-text-style-inverse___o9xoz_8-3-0","text-style-inverse-secondary":"magritte-text-style-inverse-secondary___HiLgZ_8-3-0","text-style-lovely":"magritte-text-style-lovely___9zEU8_8-3-0","text-style-lovely-secondary":"magritte-text-style-lovely-secondary___vfL-u_8-3-0","text-style-dreamy":"magritte-text-style-dreamy___eu6mD_8-3-0","text-style-dreamy-secondary":"magritte-text-style-dreamy-secondary___0DPp9_8-3-0","text-style-vivid":"magritte-text-style-vivid___oZQbj_8-3-0","text-style-vivid-secondary":"magritte-text-style-vivid-secondary___fDWfb_8-3-0","text-typography-extra-large":"magritte-text-typography-extra-large___HTH3I_8-3-0","textTypographyExtraLarge":"magritte-text-typography-extra-large___HTH3I_8-3-0","text-typography-large":"magritte-text-typography-large___FidYc_8-3-0","textTypographyLarge":"magritte-text-typography-large___FidYc_8-3-0","text-typography-medium":"magritte-text-typography-medium___cp79S_8-3-0","textTypographyMedium":"magritte-text-typography-medium___cp79S_8-3-0","text-typography-small":"magritte-text-typography-small___QbQNX_8-3-0","textTypographySmall":"magritte-text-typography-small___QbQNX_8-3-0","space-description":"magritte-space-description___nDK9-_8-3-0","spaceDescription":"magritte-space-description___nDK9-_8-3-0"};
10
12
 
11
13
  const TextTypographyOptionsDesktop = {
12
14
  'extra-large': 'paragraph-1-regular',
@@ -18,11 +20,13 @@ const TextTypographyOptionsMobile = {
18
20
  ...TextTypographyOptionsDesktop,
19
21
  small: 'paragraph-3-regular',
20
22
  };
21
- const Title = ({ style = 'primary', size = 'extra-large', Element = 'h1', alignment = 'left', maxLines, description, children, descriptionMaxLines, descriptionStyle = 'secondary', 'data-qa': dataQaContainer = 'title-container', dataQaDescription = 'title-description', dataQaTitle = 'title', ...rest }) => {
23
+ const Title = (props) => {
24
+ const defaultProps = useTitleDefaultProps();
25
+ const { style = 'primary', size = 'extra-large', Element = 'h1', alignment = 'left', maxLines, description, children, descriptionMaxLines, descriptionStyle = 'secondary', 'data-qa': dataQaContainer = 'title-container', dataQaDescription = 'title-description', dataQaTitle = 'title', notRegionTitle = false, ...rest } = { ...defaultProps, ...props };
22
26
  const isDisabled = useDisabled();
23
27
  const { isMobile } = useBreakpoint();
24
- const { id: labelId } = useRegisterRegionLabel(!!children, rest.id);
25
- const { id: descriptionId } = useRegisterRegionDescription(!!description);
28
+ const { id: labelId } = useRegisterRegionLabel(!!children && !notRegionTitle, rest.id);
29
+ const { id: descriptionId } = useRegisterRegionDescription(!!description && !notRegionTitle);
26
30
  const textTypographyOptions = isMobile ? TextTypographyOptionsMobile : TextTypographyOptionsDesktop;
27
31
  const containerStyles = classNames(isDisabled && styles['text-disabled'], styles[`text-alignment-${alignment}`]);
28
32
  const titleStyles = classNames(styles.text, styles['text-overflow'], styles[`text-typography-${size}`], styles[`text-style-${style}`]);
package/Title.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Title.js","sources":["src/Title.tsx"],"sourcesContent":["import { FC } from 'react';\nimport classNames from 'classnames';\n\nimport { useDisabled } from '@hh.ru/magritte-common-use-disabled';\nimport { useRegisterRegionDescription, useRegisterRegionLabel } from '@hh.ru/magritte-internal-accessible-region';\nimport { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';\nimport { TitleProps } from '@hh.ru/magritte-ui-title/types';\nimport { Text, TextDynamic } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './title.less';\n\nconst TextTypographyOptionsDesktop = {\n 'extra-large': 'paragraph-1-regular',\n large: 'paragraph-1-regular',\n medium: 'paragraph-2-regular',\n small: 'paragraph-2-regular',\n} as const;\n\nconst TextTypographyOptionsMobile = {\n ...TextTypographyOptionsDesktop,\n small: 'paragraph-3-regular',\n} as const;\n\nexport const Title: FC<TitleProps> = ({\n style = 'primary',\n size = 'extra-large',\n Element = 'h1',\n alignment = 'left',\n maxLines,\n description,\n children,\n descriptionMaxLines,\n descriptionStyle = 'secondary',\n 'data-qa': dataQaContainer = 'title-container',\n dataQaDescription = 'title-description',\n dataQaTitle = 'title',\n ...rest\n}) => {\n const isDisabled = useDisabled();\n const { isMobile } = useBreakpoint();\n\n const { id: labelId } = useRegisterRegionLabel(!!children, rest.id);\n const { id: descriptionId } = useRegisterRegionDescription(!!description);\n\n const textTypographyOptions = isMobile ? TextTypographyOptionsMobile : TextTypographyOptionsDesktop;\n\n const containerStyles = classNames(isDisabled && styles['text-disabled'], styles[`text-alignment-${alignment}`]);\n\n const titleStyles = classNames(\n styles.text,\n styles['text-overflow'],\n styles[`text-typography-${size}`],\n styles[`text-style-${style}`]\n );\n\n const descriptionStyles = classNames(styles.text, styles['text-overflow'], styles['space-description']);\n\n return (\n <div data-qa={dataQaContainer} className={containerStyles}>\n <Element\n {...rest}\n id={labelId}\n data-qa={dataQaTitle}\n className={titleStyles}\n style={{ WebkitLineClamp: maxLines }}\n suppressHydrationWarning\n >\n {children}\n </Element>\n {!!description && (\n <TextDynamic>\n <div\n id={descriptionId}\n data-qa={dataQaDescription}\n className={descriptionStyles}\n style={{ WebkitLineClamp: descriptionMaxLines }}\n suppressHydrationWarning\n >\n <Text typography={textTypographyOptions[size]} style={descriptionStyle}>\n {description}\n </Text>\n </div>\n </TextDynamic>\n )}\n </div>\n );\n};\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;AAWA,MAAM,4BAA4B,GAAG;AACjC,IAAA,aAAa,EAAE,qBAAqB;AACpC,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,MAAM,EAAE,qBAAqB;AAC7B,IAAA,KAAK,EAAE,qBAAqB;CACtB,CAAC;AAEX,MAAM,2BAA2B,GAAG;AAChC,IAAA,GAAG,4BAA4B;AAC/B,IAAA,KAAK,EAAE,qBAAqB;CACtB,CAAC;AAEE,MAAA,KAAK,GAAmB,CAAC,EAClC,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,aAAa,EACpB,OAAO,GAAG,IAAI,EACd,SAAS,GAAG,MAAM,EAClB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,GAAG,WAAW,EAC9B,SAAS,EAAE,eAAe,GAAG,iBAAiB,EAC9C,iBAAiB,GAAG,mBAAmB,EACvC,WAAW,GAAG,OAAO,EACrB,GAAG,IAAI,EACV,KAAI;AACD,IAAA,MAAM,UAAU,GAAG,WAAW,EAAE,CAAC;AACjC,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CAAC;AAErC,IAAA,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;AACpE,IAAA,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IAE1E,MAAM,qBAAqB,GAAG,QAAQ,GAAG,2BAA2B,GAAG,4BAA4B,CAAC;AAEpG,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,UAAU,IAAI,MAAM,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,CAAA,eAAA,EAAkB,SAAS,CAAE,CAAA,CAAC,CAAC,CAAC;IAEjH,MAAM,WAAW,GAAG,UAAU,CAC1B,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,eAAe,CAAC,EACvB,MAAM,CAAC,CAAmB,gBAAA,EAAA,IAAI,CAAE,CAAA,CAAC,EACjC,MAAM,CAAC,CAAA,WAAA,EAAc,KAAK,CAAA,CAAE,CAAC,CAChC,CAAC;AAEF,IAAA,MAAM,iBAAiB,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAExG,IAAA,QACIA,IAAc,CAAA,KAAA,EAAA,EAAA,SAAA,EAAA,eAAe,EAAE,SAAS,EAAE,eAAe,EACrD,QAAA,EAAA,CAAAC,GAAA,CAAC,OAAO,EAAA,EAAA,GACA,IAAI,EACR,EAAE,EAAE,OAAO,EAAA,SAAA,EACF,WAAW,EACpB,SAAS,EAAE,WAAW,EACtB,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,EACpC,wBAAwB,EAEvB,IAAA,EAAA,QAAA,EAAA,QAAQ,GACH,EACT,CAAC,CAAC,WAAW,KACVA,GAAC,CAAA,WAAW,EACR,EAAA,QAAA,EAAAA,GAAA,CAAA,KAAA,EAAA,EACI,EAAE,EAAE,aAAa,aACR,iBAAiB,EAC1B,SAAS,EAAE,iBAAiB,EAC5B,KAAK,EAAE,EAAE,eAAe,EAAE,mBAAmB,EAAE,EAC/C,wBAAwB,EAAA,IAAA,EAAA,QAAA,EAExBA,GAAC,CAAA,IAAI,IAAC,UAAU,EAAE,qBAAqB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAA,QAAA,EACjE,WAAW,EACT,CAAA,EAAA,CACL,GACI,CACjB,CAAA,EAAA,CACC,EACR;AACN;;;;"}
1
+ {"version":3,"file":"Title.js","sources":["src/Title.tsx"],"sourcesContent":["import { FC } from 'react';\nimport classNames from 'classnames';\n\nimport { useDisabled } from '@hh.ru/magritte-common-use-disabled';\nimport { useRegisterRegionDescription, useRegisterRegionLabel } from '@hh.ru/magritte-internal-accessible-region';\nimport { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';\nimport { useTitleDefaultProps } from '@hh.ru/magritte-ui-title/defaultProps';\nimport { TitleProps } from '@hh.ru/magritte-ui-title/types';\nimport { Text, TextDynamic } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './title.less';\n\nconst TextTypographyOptionsDesktop = {\n 'extra-large': 'paragraph-1-regular',\n large: 'paragraph-1-regular',\n medium: 'paragraph-2-regular',\n small: 'paragraph-2-regular',\n} as const;\n\nconst TextTypographyOptionsMobile = {\n ...TextTypographyOptionsDesktop,\n small: 'paragraph-3-regular',\n} as const;\n\nexport const Title: FC<TitleProps> = (props) => {\n const defaultProps = useTitleDefaultProps();\n const {\n style = 'primary',\n size = 'extra-large',\n Element = 'h1',\n alignment = 'left',\n maxLines,\n description,\n children,\n descriptionMaxLines,\n descriptionStyle = 'secondary',\n 'data-qa': dataQaContainer = 'title-container',\n dataQaDescription = 'title-description',\n dataQaTitle = 'title',\n notRegionTitle = false,\n ...rest\n } = { ...defaultProps, ...props };\n\n const isDisabled = useDisabled();\n const { isMobile } = useBreakpoint();\n\n const { id: labelId } = useRegisterRegionLabel(!!children && !notRegionTitle, rest.id);\n const { id: descriptionId } = useRegisterRegionDescription(!!description && !notRegionTitle);\n\n const textTypographyOptions = isMobile ? TextTypographyOptionsMobile : TextTypographyOptionsDesktop;\n\n const containerStyles = classNames(isDisabled && styles['text-disabled'], styles[`text-alignment-${alignment}`]);\n\n const titleStyles = classNames(\n styles.text,\n styles['text-overflow'],\n styles[`text-typography-${size}`],\n styles[`text-style-${style}`]\n );\n\n const descriptionStyles = classNames(styles.text, styles['text-overflow'], styles['space-description']);\n\n return (\n <div data-qa={dataQaContainer} className={containerStyles}>\n <Element\n {...rest}\n id={labelId}\n data-qa={dataQaTitle}\n className={titleStyles}\n style={{ WebkitLineClamp: maxLines }}\n suppressHydrationWarning\n >\n {children}\n </Element>\n {!!description && (\n <TextDynamic>\n <div\n id={descriptionId}\n data-qa={dataQaDescription}\n className={descriptionStyles}\n style={{ WebkitLineClamp: descriptionMaxLines }}\n suppressHydrationWarning\n >\n <Text typography={textTypographyOptions[size]} style={descriptionStyle}>\n {description}\n </Text>\n </div>\n </TextDynamic>\n )}\n </div>\n );\n};\n"],"names":["_jsxs","_jsx"],"mappings":"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"}
@@ -0,0 +1,8 @@
1
+ import type { TitleProps } from '@hh.ru/magritte-ui-title/types';
2
+ /**
3
+ * Провайдер дефолтных пропсов для заголовков в поддереве.
4
+ * Заданные пропсы применяются ко всем `Title` внутри как дефолтные — явные пропсы на самом заголовке побеждают.
5
+ */
6
+ export declare const TitleDefaultPropsContext: import("react").FC<import("@hh.ru/magritte-internal-default-props-context").BoundDefaultPropsContextProps<TitleProps>>;
7
+ /** Внутренний хук чтения дефолтов заголовка из ближайшего `TitleDefaultPropsContext`. */
8
+ export declare const useTitleDefaultProps: () => Partial<TitleProps>;
@@ -0,0 +1,14 @@
1
+ import './index.css';
2
+ import { createDefaultPropsContext } from '@hh.ru/magritte-internal-default-props-context';
3
+
4
+ const { DefaultPropsContext, useDefaultProps } = createDefaultPropsContext('Title');
5
+ /**
6
+ * Провайдер дефолтных пропсов для заголовков в поддереве.
7
+ * Заданные пропсы применяются ко всем `Title` внутри как дефолтные — явные пропсы на самом заголовке побеждают.
8
+ */
9
+ const TitleDefaultPropsContext = DefaultPropsContext;
10
+ /** Внутренний хук чтения дефолтов заголовка из ближайшего `TitleDefaultPropsContext`. */
11
+ const useTitleDefaultProps = useDefaultProps;
12
+
13
+ export { TitleDefaultPropsContext, useTitleDefaultProps };
14
+ //# sourceMappingURL=defaultProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultProps.js","sources":["src/defaultProps.ts"],"sourcesContent":["import { createDefaultPropsContext } from '@hh.ru/magritte-internal-default-props-context';\nimport type { TitleProps } from '@hh.ru/magritte-ui-title/types';\n\nconst { DefaultPropsContext, useDefaultProps } = createDefaultPropsContext<TitleProps>('Title');\n\n/**\n * Провайдер дефолтных пропсов для заголовков в поддереве.\n * Заданные пропсы применяются ко всем `Title` внутри как дефолтные — явные пропсы на самом заголовке побеждают.\n */\nexport const TitleDefaultPropsContext = DefaultPropsContext;\n\n/** Внутренний хук чтения дефолтов заголовка из ближайшего `TitleDefaultPropsContext`. */\nexport const useTitleDefaultProps = useDefaultProps;\n"],"names":[],"mappings":";;AAGA,MAAM,EAAE,mBAAmB,EAAE,eAAe,EAAE,GAAG,yBAAyB,CAAa,OAAO,CAAC,CAAC;AAEhG;;;AAGG;AACI,MAAM,wBAAwB,GAAG,oBAAoB;AAE5D;AACO,MAAM,oBAAoB,GAAG;;;;"}