@hh.ru/magritte-ui-swipe 4.0.17 → 5.0.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/Swipe.js +2 -2
- package/Swipe.js.map +1 -1
- package/index.css +115 -115
- package/package.json +3 -3
- package/types.d.ts +1 -1
package/Swipe.js
CHANGED
|
@@ -8,7 +8,7 @@ import { useSwipe, MAIN_AXIS_THRESHOLD_PX } from '@hh.ru/magritte-common-use-swi
|
|
|
8
8
|
import { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';
|
|
9
9
|
import { Layer, LayerName } from '@hh.ru/magritte-ui-layer';
|
|
10
10
|
|
|
11
|
-
var styles = {"text":"magritte-text___gUsfc_4-0-17","text_max-lines":"magritte-text_max-lines___foe9-_4-0-17","textMaxLines":"magritte-text_max-lines___foe9-_4-0-17","text-dynamic":"magritte-text-dynamic___KzitV_4-0-17","textDynamic":"magritte-text-dynamic___KzitV_4-0-17","text-dynamic_stretched":"magritte-text-dynamic_stretched___hv3Th_4-0-17","textDynamicStretched":"magritte-text-dynamic_stretched___hv3Th_4-0-17","text_style-primary":"magritte-text_style-primary___vYlpl_4-0-17","textStylePrimary":"magritte-text_style-primary___vYlpl_4-0-17","text-dynamic-disabled":"magritte-text-dynamic-disabled___M1GFt_4-0-17","textDynamicDisabled":"magritte-text-dynamic-disabled___M1GFt_4-0-17","text_style-secondary":"magritte-text_style-secondary___qb-4O_4-0-17","textStyleSecondary":"magritte-text_style-secondary___qb-4O_4-0-17","text_style-tertiary":"magritte-text_style-tertiary___atZvg_4-0-17","textStyleTertiary":"magritte-text_style-tertiary___atZvg_4-0-17","text_style-accent":"magritte-text_style-accent___JDNe4_4-0-17","textStyleAccent":"magritte-text_style-accent___JDNe4_4-0-17","text_style-accent-secondary":"magritte-text_style-accent-secondary___JM6z5_4-0-17","textStyleAccentSecondary":"magritte-text_style-accent-secondary___JM6z5_4-0-17","text_style-positive":"magritte-text_style-positive___OjJIB_4-0-17","textStylePositive":"magritte-text_style-positive___OjJIB_4-0-17","text_style-positive-secondary":"magritte-text_style-positive-secondary___LkPe1_4-0-17","textStylePositiveSecondary":"magritte-text_style-positive-secondary___LkPe1_4-0-17","text_style-negative":"magritte-text_style-negative___wBLmp_4-0-17","textStyleNegative":"magritte-text_style-negative___wBLmp_4-0-17","text_style-negative-secondary":"magritte-text_style-negative-secondary___CO58y_4-0-17","textStyleNegativeSecondary":"magritte-text_style-negative-secondary___CO58y_4-0-17","text_style-warning":"magritte-text_style-warning___23C3Y_4-0-17","textStyleWarning":"magritte-text_style-warning___23C3Y_4-0-17","text_style-warning-secondary":"magritte-text_style-warning-secondary___ZJ3uf_4-0-17","textStyleWarningSecondary":"magritte-text_style-warning-secondary___ZJ3uf_4-0-17","text_style-special":"magritte-text_style-special___LaqKY_4-0-17","textStyleSpecial":"magritte-text_style-special___LaqKY_4-0-17","text_style-special-secondary":"magritte-text_style-special-secondary___-whB-_4-0-17","textStyleSpecialSecondary":"magritte-text_style-special-secondary___-whB-_4-0-17","text_style-contrast":"magritte-text_style-contrast___Bx24w_4-0-17","textStyleContrast":"magritte-text_style-contrast___Bx24w_4-0-17","text_style-contrast-secondary":"magritte-text_style-contrast-secondary___xMS2f_4-0-17","textStyleContrastSecondary":"magritte-text_style-contrast-secondary___xMS2f_4-0-17","text_typography-title-1-semibold":"magritte-text_typography-title-1-semibold___WDZXM_4-0-17","textTypographyTitle1Semibold":"magritte-text-typography-title-1-semibold___RE-5E_4-0-17","text_typography-title-2-semibold":"magritte-text_typography-title-2-semibold___4PvYn_4-0-17","textTypographyTitle2Semibold":"magritte-text-typography-title-2-semibold___r-gyn_4-0-17","text_typography-title-3-semibold":"magritte-text_typography-title-3-semibold___E7pmd_4-0-17","textTypographyTitle3Semibold":"magritte-text-typography-title-3-semibold___AxOn9_4-0-17","text_typography-title-4-semibold":"magritte-text_typography-title-4-semibold___u-8Kd_4-0-17","textTypographyTitle4Semibold":"magritte-text-typography-title-4-semibold___4FOf2_4-0-17","text_typography-title-5-semibold":"magritte-text_typography-title-5-semibold___PRTQc_4-0-17","textTypographyTitle5Semibold":"magritte-text-typography-title-5-semibold___ayTa0_4-0-17","text_typography-subtitle-1-semibold":"magritte-text_typography-subtitle-1-semibold___TNYKE_4-0-17","textTypographySubtitle1Semibold":"magritte-text_typography-subtitle-1-semibold___TNYKE_4-0-17","text_typography-subtitle-2-semibold":"magritte-text_typography-subtitle-2-semibold___8GJr9_4-0-17","textTypographySubtitle2Semibold":"magritte-text_typography-subtitle-2-semibold___8GJr9_4-0-17","text_typography-subtitle-3-semibold":"magritte-text_typography-subtitle-3-semibold___scHMl_4-0-17","textTypographySubtitle3Semibold":"magritte-text_typography-subtitle-3-semibold___scHMl_4-0-17","text_typography-subtitle-4-semibold":"magritte-text_typography-subtitle-4-semibold___Yr4Bt_4-0-17","textTypographySubtitle4Semibold":"magritte-text_typography-subtitle-4-semibold___Yr4Bt_4-0-17","text_typography-label-1-regular":"magritte-text_typography-label-1-regular___JMO56_4-0-17","textTypographyLabel1Regular":"magritte-text_typography-label-1-regular___JMO56_4-0-17","text_typography-label-2-regular":"magritte-text_typography-label-2-regular___7gS1P_4-0-17","textTypographyLabel2Regular":"magritte-text_typography-label-2-regular___7gS1P_4-0-17","text_typography-label-3-regular":"magritte-text_typography-label-3-regular___DogGv_4-0-17","textTypographyLabel3Regular":"magritte-text_typography-label-3-regular___DogGv_4-0-17","text_typography-label-4-regular":"magritte-text_typography-label-4-regular___TIPoS_4-0-17","textTypographyLabel4Regular":"magritte-text_typography-label-4-regular___TIPoS_4-0-17","text_typography-label-5-regular":"magritte-text_typography-label-5-regular___y55-P_4-0-17","textTypographyLabel5Regular":"magritte-text_typography-label-5-regular___y55-P_4-0-17","text_typography-paragraph-1-regular":"magritte-text_typography-paragraph-1-regular___ZvHBC_4-0-17","textTypographyParagraph1Regular":"magritte-text_typography-paragraph-1-regular___ZvHBC_4-0-17","text_typography-paragraph-2-regular":"magritte-text_typography-paragraph-2-regular___ndKyc_4-0-17","textTypographyParagraph2Regular":"magritte-text_typography-paragraph-2-regular___ndKyc_4-0-17","text_typography-paragraph-3-regular":"magritte-text_typography-paragraph-3-regular___g0oZF_4-0-17","textTypographyParagraph3Regular":"magritte-text_typography-paragraph-3-regular___g0oZF_4-0-17","text_typography-paragraph-4-regular":"magritte-text_typography-paragraph-4-regular___Iy3Zy_4-0-17","textTypographyParagraph4Regular":"magritte-text_typography-paragraph-4-regular___Iy3Zy_4-0-17","text_typography-custom-1-semibold":"magritte-text_typography-custom-1-semibold___Pv6Lp_4-0-17","textTypographyCustom1Semibold":"magritte-text_typography-custom-1-semibold___Pv6Lp_4-0-17","text_typography-custom-2-semibold":"magritte-text_typography-custom-2-semibold___UP1hj_4-0-17","textTypographyCustom2Semibold":"magritte-text_typography-custom-2-semibold___UP1hj_4-0-17","text_typography-custom-3-semibold":"magritte-text_typography-custom-3-semibold___6yO4m_4-0-17","textTypographyCustom3Semibold":"magritte-text_typography-custom-3-semibold___6yO4m_4-0-17","text_typography-custom-4-semibold":"magritte-text_typography-custom-4-semibold___NEahp_4-0-17","textTypographyCustom4Semibold":"magritte-text_typography-custom-4-semibold___NEahp_4-0-17","text_typography-custom-5-semibold":"magritte-text_typography-custom-5-semibold___-UJfV_4-0-17","textTypographyCustom5Semibold":"magritte-text_typography-custom-5-semibold___-UJfV_4-0-17","text_typography-custom-1-italic":"magritte-text_typography-custom-1-italic___-CpMs_4-0-17","textTypographyCustom1Italic":"magritte-text_typography-custom-1-italic___-CpMs_4-0-17","text_typography-custom-2-italic":"magritte-text_typography-custom-2-italic___SvOG4_4-0-17","textTypographyCustom2Italic":"magritte-text_typography-custom-2-italic___SvOG4_4-0-17","text_typography-custom-3-italic":"magritte-text_typography-custom-3-italic___-g0na_4-0-17","textTypographyCustom3Italic":"magritte-text_typography-custom-3-italic___-g0na_4-0-17","text_typography-custom-4-italic":"magritte-text_typography-custom-4-italic___gOGey_4-0-17","textTypographyCustom4Italic":"magritte-text_typography-custom-4-italic___gOGey_4-0-17","text_typography-custom-5-italic":"magritte-text_typography-custom-5-italic___VR9wy_4-0-17","textTypographyCustom5Italic":"magritte-text_typography-custom-5-italic___VR9wy_4-0-17","text_typography-custom-1-medium":"magritte-text_typography-custom-1-medium___hik0e_4-0-17","textTypographyCustom1Medium":"magritte-text_typography-custom-1-medium___hik0e_4-0-17","text_typography-custom-2-medium":"magritte-text_typography-custom-2-medium___-f6Sh_4-0-17","textTypographyCustom2Medium":"magritte-text_typography-custom-2-medium___-f6Sh_4-0-17","text_typography-custom-3-medium":"magritte-text_typography-custom-3-medium___pLvIb_4-0-17","textTypographyCustom3Medium":"magritte-text_typography-custom-3-medium___pLvIb_4-0-17","text_typography-custom-4-medium":"magritte-text_typography-custom-4-medium___zZteM_4-0-17","textTypographyCustom4Medium":"magritte-text_typography-custom-4-medium___zZteM_4-0-17","text_typography-custom-5-medium":"magritte-text_typography-custom-5-medium___gW1Y8_4-0-17","textTypographyCustom5Medium":"magritte-text_typography-custom-5-medium___gW1Y8_4-0-17","text-typography-title-1-semibold":"magritte-text-typography-title-1-semibold___RE-5E_4-0-17","text-typography-title-2-semibold":"magritte-text-typography-title-2-semibold___r-gyn_4-0-17","text-typography-title-3-semibold":"magritte-text-typography-title-3-semibold___AxOn9_4-0-17","text-typography-title-4-semibold":"magritte-text-typography-title-4-semibold___4FOf2_4-0-17","text-typography-title-5-semibold":"magritte-text-typography-title-5-semibold___ayTa0_4-0-17","root":"magritte-root___gbkM-_4-0-17","swipeble":"magritte-swipeble___EVyAI_4-0-17","childrenWrapper":"magritte-childrenWrapper___1tUbf_4-0-17","buttons":"magritte-buttons___PHNdL_4-0-17","buttons-left":"magritte-buttons-left___WPiN4_4-0-17","buttonsLeft":"magritte-buttons-left___WPiN4_4-0-17","buttons-right":"magritte-buttons-right___G3u6y_4-0-17","buttonsRight":"magritte-buttons-right___G3u6y_4-0-17","button":"magritte-button___jZvyY_4-0-17","button-hide":"magritte-button-hide___5AEdR_4-0-17","buttonHide":"magritte-button-hide___5AEdR_4-0-17","button-grow":"magritte-button-grow___IT4MK_4-0-17","buttonGrow":"magritte-button-grow___IT4MK_4-0-17","button-content":"magritte-button-content___hlzd-_4-0-17","buttonContent":"magritte-button-content___hlzd-_4-0-17","button-content-column":"magritte-button-content-column___48Tzo_4-0-17","buttonContentColumn":"magritte-button-content-column___48Tzo_4-0-17","button-label":"magritte-button-label___l03VO_4-0-17","buttonLabel":"magritte-button-label___l03VO_4-0-17","button_style-neutral":"magritte-button_style-neutral___1yyqh_4-0-17","buttonStyleNeutral":"magritte-button_style-neutral___1yyqh_4-0-17","button_style-accent":"magritte-button_style-accent___L9krS_4-0-17","buttonStyleAccent":"magritte-button_style-accent___L9krS_4-0-17","button_style-positive":"magritte-button_style-positive___2pgae_4-0-17","buttonStylePositive":"magritte-button_style-positive___2pgae_4-0-17","button_style-negative":"magritte-button_style-negative___UClE4_4-0-17","buttonStyleNegative":"magritte-button_style-negative___UClE4_4-0-17","button_style-special":"magritte-button_style-special___sGvAc_4-0-17","buttonStyleSpecial":"magritte-button_style-special___sGvAc_4-0-17","button_style-warning":"magritte-button_style-warning___5bEK0_4-0-17","buttonStyleWarning":"magritte-button_style-warning___5bEK0_4-0-17","icon-wrapper":"magritte-icon-wrapper___0xJZX_4-0-17","iconWrapper":"magritte-icon-wrapper___0xJZX_4-0-17"};
|
|
11
|
+
var styles = {"text":"magritte-text___gUsfc_5-0-0","text_max-lines":"magritte-text_max-lines___foe9-_5-0-0","textMaxLines":"magritte-text_max-lines___foe9-_5-0-0","text-dynamic":"magritte-text-dynamic___KzitV_5-0-0","textDynamic":"magritte-text-dynamic___KzitV_5-0-0","text-dynamic_stretched":"magritte-text-dynamic_stretched___hv3Th_5-0-0","textDynamicStretched":"magritte-text-dynamic_stretched___hv3Th_5-0-0","text_style-primary":"magritte-text_style-primary___vYlpl_5-0-0","textStylePrimary":"magritte-text_style-primary___vYlpl_5-0-0","text-dynamic-disabled":"magritte-text-dynamic-disabled___M1GFt_5-0-0","textDynamicDisabled":"magritte-text-dynamic-disabled___M1GFt_5-0-0","text_style-secondary":"magritte-text_style-secondary___qb-4O_5-0-0","textStyleSecondary":"magritte-text_style-secondary___qb-4O_5-0-0","text_style-tertiary":"magritte-text_style-tertiary___atZvg_5-0-0","textStyleTertiary":"magritte-text_style-tertiary___atZvg_5-0-0","text_style-accent":"magritte-text_style-accent___JDNe4_5-0-0","textStyleAccent":"magritte-text_style-accent___JDNe4_5-0-0","text_style-accent-secondary":"magritte-text_style-accent-secondary___JM6z5_5-0-0","textStyleAccentSecondary":"magritte-text_style-accent-secondary___JM6z5_5-0-0","text_style-positive":"magritte-text_style-positive___OjJIB_5-0-0","textStylePositive":"magritte-text_style-positive___OjJIB_5-0-0","text_style-positive-secondary":"magritte-text_style-positive-secondary___LkPe1_5-0-0","textStylePositiveSecondary":"magritte-text_style-positive-secondary___LkPe1_5-0-0","text_style-negative":"magritte-text_style-negative___wBLmp_5-0-0","textStyleNegative":"magritte-text_style-negative___wBLmp_5-0-0","text_style-negative-secondary":"magritte-text_style-negative-secondary___CO58y_5-0-0","textStyleNegativeSecondary":"magritte-text_style-negative-secondary___CO58y_5-0-0","text_style-warning":"magritte-text_style-warning___23C3Y_5-0-0","textStyleWarning":"magritte-text_style-warning___23C3Y_5-0-0","text_style-warning-secondary":"magritte-text_style-warning-secondary___ZJ3uf_5-0-0","textStyleWarningSecondary":"magritte-text_style-warning-secondary___ZJ3uf_5-0-0","text_style-special":"magritte-text_style-special___LaqKY_5-0-0","textStyleSpecial":"magritte-text_style-special___LaqKY_5-0-0","text_style-special-secondary":"magritte-text_style-special-secondary___-whB-_5-0-0","textStyleSpecialSecondary":"magritte-text_style-special-secondary___-whB-_5-0-0","text_style-contrast":"magritte-text_style-contrast___Bx24w_5-0-0","textStyleContrast":"magritte-text_style-contrast___Bx24w_5-0-0","text_style-contrast-secondary":"magritte-text_style-contrast-secondary___xMS2f_5-0-0","textStyleContrastSecondary":"magritte-text_style-contrast-secondary___xMS2f_5-0-0","text_typography-title-1-semibold":"magritte-text_typography-title-1-semibold___WDZXM_5-0-0","textTypographyTitle1Semibold":"magritte-text-typography-title-1-semibold___RE-5E_5-0-0","text_typography-title-2-semibold":"magritte-text_typography-title-2-semibold___4PvYn_5-0-0","textTypographyTitle2Semibold":"magritte-text-typography-title-2-semibold___r-gyn_5-0-0","text_typography-title-3-semibold":"magritte-text_typography-title-3-semibold___E7pmd_5-0-0","textTypographyTitle3Semibold":"magritte-text-typography-title-3-semibold___AxOn9_5-0-0","text_typography-title-4-semibold":"magritte-text_typography-title-4-semibold___u-8Kd_5-0-0","textTypographyTitle4Semibold":"magritte-text-typography-title-4-semibold___4FOf2_5-0-0","text_typography-title-5-semibold":"magritte-text_typography-title-5-semibold___PRTQc_5-0-0","textTypographyTitle5Semibold":"magritte-text-typography-title-5-semibold___ayTa0_5-0-0","text_typography-subtitle-1-semibold":"magritte-text_typography-subtitle-1-semibold___TNYKE_5-0-0","textTypographySubtitle1Semibold":"magritte-text_typography-subtitle-1-semibold___TNYKE_5-0-0","text_typography-subtitle-2-semibold":"magritte-text_typography-subtitle-2-semibold___8GJr9_5-0-0","textTypographySubtitle2Semibold":"magritte-text_typography-subtitle-2-semibold___8GJr9_5-0-0","text_typography-subtitle-3-semibold":"magritte-text_typography-subtitle-3-semibold___scHMl_5-0-0","textTypographySubtitle3Semibold":"magritte-text_typography-subtitle-3-semibold___scHMl_5-0-0","text_typography-subtitle-4-semibold":"magritte-text_typography-subtitle-4-semibold___Yr4Bt_5-0-0","textTypographySubtitle4Semibold":"magritte-text_typography-subtitle-4-semibold___Yr4Bt_5-0-0","text_typography-label-1-regular":"magritte-text_typography-label-1-regular___JMO56_5-0-0","textTypographyLabel1Regular":"magritte-text_typography-label-1-regular___JMO56_5-0-0","text_typography-label-2-regular":"magritte-text_typography-label-2-regular___7gS1P_5-0-0","textTypographyLabel2Regular":"magritte-text_typography-label-2-regular___7gS1P_5-0-0","text_typography-label-3-regular":"magritte-text_typography-label-3-regular___DogGv_5-0-0","textTypographyLabel3Regular":"magritte-text_typography-label-3-regular___DogGv_5-0-0","text_typography-label-4-regular":"magritte-text_typography-label-4-regular___TIPoS_5-0-0","textTypographyLabel4Regular":"magritte-text_typography-label-4-regular___TIPoS_5-0-0","text_typography-label-5-regular":"magritte-text_typography-label-5-regular___y55-P_5-0-0","textTypographyLabel5Regular":"magritte-text_typography-label-5-regular___y55-P_5-0-0","text_typography-paragraph-1-regular":"magritte-text_typography-paragraph-1-regular___ZvHBC_5-0-0","textTypographyParagraph1Regular":"magritte-text_typography-paragraph-1-regular___ZvHBC_5-0-0","text_typography-paragraph-2-regular":"magritte-text_typography-paragraph-2-regular___ndKyc_5-0-0","textTypographyParagraph2Regular":"magritte-text_typography-paragraph-2-regular___ndKyc_5-0-0","text_typography-paragraph-3-regular":"magritte-text_typography-paragraph-3-regular___g0oZF_5-0-0","textTypographyParagraph3Regular":"magritte-text_typography-paragraph-3-regular___g0oZF_5-0-0","text_typography-paragraph-4-regular":"magritte-text_typography-paragraph-4-regular___Iy3Zy_5-0-0","textTypographyParagraph4Regular":"magritte-text_typography-paragraph-4-regular___Iy3Zy_5-0-0","text_typography-custom-1-semibold":"magritte-text_typography-custom-1-semibold___Pv6Lp_5-0-0","textTypographyCustom1Semibold":"magritte-text_typography-custom-1-semibold___Pv6Lp_5-0-0","text_typography-custom-2-semibold":"magritte-text_typography-custom-2-semibold___UP1hj_5-0-0","textTypographyCustom2Semibold":"magritte-text_typography-custom-2-semibold___UP1hj_5-0-0","text_typography-custom-3-semibold":"magritte-text_typography-custom-3-semibold___6yO4m_5-0-0","textTypographyCustom3Semibold":"magritte-text_typography-custom-3-semibold___6yO4m_5-0-0","text_typography-custom-4-semibold":"magritte-text_typography-custom-4-semibold___NEahp_5-0-0","textTypographyCustom4Semibold":"magritte-text_typography-custom-4-semibold___NEahp_5-0-0","text_typography-custom-5-semibold":"magritte-text_typography-custom-5-semibold___-UJfV_5-0-0","textTypographyCustom5Semibold":"magritte-text_typography-custom-5-semibold___-UJfV_5-0-0","text_typography-custom-1-italic":"magritte-text_typography-custom-1-italic___-CpMs_5-0-0","textTypographyCustom1Italic":"magritte-text_typography-custom-1-italic___-CpMs_5-0-0","text_typography-custom-2-italic":"magritte-text_typography-custom-2-italic___SvOG4_5-0-0","textTypographyCustom2Italic":"magritte-text_typography-custom-2-italic___SvOG4_5-0-0","text_typography-custom-3-italic":"magritte-text_typography-custom-3-italic___-g0na_5-0-0","textTypographyCustom3Italic":"magritte-text_typography-custom-3-italic___-g0na_5-0-0","text_typography-custom-4-italic":"magritte-text_typography-custom-4-italic___gOGey_5-0-0","textTypographyCustom4Italic":"magritte-text_typography-custom-4-italic___gOGey_5-0-0","text_typography-custom-5-italic":"magritte-text_typography-custom-5-italic___VR9wy_5-0-0","textTypographyCustom5Italic":"magritte-text_typography-custom-5-italic___VR9wy_5-0-0","text_typography-custom-1-medium":"magritte-text_typography-custom-1-medium___hik0e_5-0-0","textTypographyCustom1Medium":"magritte-text_typography-custom-1-medium___hik0e_5-0-0","text_typography-custom-2-medium":"magritte-text_typography-custom-2-medium___-f6Sh_5-0-0","textTypographyCustom2Medium":"magritte-text_typography-custom-2-medium___-f6Sh_5-0-0","text_typography-custom-3-medium":"magritte-text_typography-custom-3-medium___pLvIb_5-0-0","textTypographyCustom3Medium":"magritte-text_typography-custom-3-medium___pLvIb_5-0-0","text_typography-custom-4-medium":"magritte-text_typography-custom-4-medium___zZteM_5-0-0","textTypographyCustom4Medium":"magritte-text_typography-custom-4-medium___zZteM_5-0-0","text_typography-custom-5-medium":"magritte-text_typography-custom-5-medium___gW1Y8_5-0-0","textTypographyCustom5Medium":"magritte-text_typography-custom-5-medium___gW1Y8_5-0-0","text-typography-title-1-semibold":"magritte-text-typography-title-1-semibold___RE-5E_5-0-0","text-typography-title-2-semibold":"magritte-text-typography-title-2-semibold___r-gyn_5-0-0","text-typography-title-3-semibold":"magritte-text-typography-title-3-semibold___AxOn9_5-0-0","text-typography-title-4-semibold":"magritte-text-typography-title-4-semibold___4FOf2_5-0-0","text-typography-title-5-semibold":"magritte-text-typography-title-5-semibold___ayTa0_5-0-0","root":"magritte-root___gbkM-_5-0-0","swipeble":"magritte-swipeble___EVyAI_5-0-0","childrenWrapper":"magritte-childrenWrapper___1tUbf_5-0-0","buttons":"magritte-buttons___PHNdL_5-0-0","buttons-left":"magritte-buttons-left___WPiN4_5-0-0","buttonsLeft":"magritte-buttons-left___WPiN4_5-0-0","buttons-right":"magritte-buttons-right___G3u6y_5-0-0","buttonsRight":"magritte-buttons-right___G3u6y_5-0-0","button":"magritte-button___jZvyY_5-0-0","button-hide":"magritte-button-hide___5AEdR_5-0-0","buttonHide":"magritte-button-hide___5AEdR_5-0-0","button-grow":"magritte-button-grow___IT4MK_5-0-0","buttonGrow":"magritte-button-grow___IT4MK_5-0-0","button-content":"magritte-button-content___hlzd-_5-0-0","buttonContent":"magritte-button-content___hlzd-_5-0-0","button-content-column":"magritte-button-content-column___48Tzo_5-0-0","buttonContentColumn":"magritte-button-content-column___48Tzo_5-0-0","button-label":"magritte-button-label___l03VO_5-0-0","buttonLabel":"magritte-button-label___l03VO_5-0-0","button_style-neutral":"magritte-button_style-neutral___1yyqh_5-0-0","buttonStyleNeutral":"magritte-button_style-neutral___1yyqh_5-0-0","button_style-accent":"magritte-button_style-accent___L9krS_5-0-0","buttonStyleAccent":"magritte-button_style-accent___L9krS_5-0-0","button_style-positive":"magritte-button_style-positive___2pgae_5-0-0","buttonStylePositive":"magritte-button_style-positive___2pgae_5-0-0","button_style-negative":"magritte-button_style-negative___UClE4_5-0-0","buttonStyleNegative":"magritte-button_style-negative___UClE4_5-0-0","button_style-special":"magritte-button_style-special___sGvAc_5-0-0","buttonStyleSpecial":"magritte-button_style-special___sGvAc_5-0-0","button_style-warning":"magritte-button_style-warning___5bEK0_5-0-0","buttonStyleWarning":"magritte-button_style-warning___5bEK0_5-0-0","icon-wrapper":"magritte-icon-wrapper___0xJZX_5-0-0","iconWrapper":"magritte-icon-wrapper___0xJZX_5-0-0"};
|
|
12
12
|
|
|
13
13
|
const MIN_BUTTON_WIDTH = 76;
|
|
14
14
|
const OPEN_THRESHOLD = 1 / 3;
|
|
@@ -25,7 +25,7 @@ var LongState;
|
|
|
25
25
|
LongState["Left"] = "left";
|
|
26
26
|
LongState["Right"] = "right";
|
|
27
27
|
})(LongState || (LongState = {}));
|
|
28
|
-
const Swipe = ({ children, leftButtons, rightButtons, onStart, onFinish, useLongSwipe = true, dataQa, demo = false, twoSidedDemoMode = 'right-to-left', demoAppearTime = 200, demoIdleTime = 300, demoDisappearTime = 200, onFinishDemo, onStartDemo, onResetDemo, }) => {
|
|
28
|
+
const Swipe = ({ children, leftButtons, rightButtons, onStart, onFinish, useLongSwipe = true, 'data-qa': dataQa, demo = false, twoSidedDemoMode = 'right-to-left', demoAppearTime = 200, demoIdleTime = 300, demoDisappearTime = 200, onFinishDemo, onStartDemo, onResetDemo, }) => {
|
|
29
29
|
const rootRef = useRef(null);
|
|
30
30
|
const swipeableRef = useRef(null);
|
|
31
31
|
const childrenWrapperRef = useRef(null);
|
package/Swipe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Swipe.js","sources":["../src/Swipe.tsx"],"sourcesContent":["import { FC, MutableRefObject, useCallback, useEffect, useRef, useState } from 'react';\nimport { animated, config, useSpring } from '@react-spring/web';\nimport classNames from 'classnames';\n\nimport { useDebounce } from '@hh.ru/magritte-common-func-utils';\nimport { SwipeEvent, SwipeEventHandler, SwipeThreshold } from '@hh.ru/magritte-common-use-swipe';\nimport { MAIN_AXIS_THRESHOLD_PX, useSwipe } from '@hh.ru/magritte-common-use-swipe/useSwipe';\nimport { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';\nimport { Layer, LayerName } from '@hh.ru/magritte-ui-layer';\nimport { SwipeButtonsArray, SwipeProps } from '@hh.ru/magritte-ui-swipe/types';\n\nimport styles from './swipe.less';\n\nconst MIN_BUTTON_WIDTH = 76;\nconst OPEN_THRESHOLD = 1 / 3;\nconst MIN_SWIPE_DISTANCE = MIN_BUTTON_WIDTH * OPEN_THRESHOLD;\n\nenum ButtonsState {\n Close = 'close',\n LeftOpen = 'leftOpen',\n RightOpen = 'rightOpen',\n}\n\nenum LongState {\n Off = 'off',\n Left = 'left',\n Right = 'right',\n}\n\nexport const Swipe: FC<SwipeProps> = ({\n children,\n leftButtons,\n rightButtons,\n onStart,\n onFinish,\n useLongSwipe = true,\n dataQa,\n demo = false,\n twoSidedDemoMode = 'right-to-left',\n demoAppearTime = 200,\n demoIdleTime = 300,\n demoDisappearTime = 200,\n onFinishDemo,\n onStartDemo,\n onResetDemo,\n}) => {\n const rootRef = useRef<HTMLDivElement | null>(null);\n const swipeableRef = useRef<HTMLDivElement | null>(null);\n const childrenWrapperRef = useRef<HTMLDivElement | null>(null);\n const [swipeableWidth, setSwipeableWidth] = useState(0);\n const leftButtonsRef = useRef<HTMLDivElement | null>(null);\n const rightButtonsRef = useRef<HTMLDivElement | null>(null);\n\n const sumRefs = useRef<HTMLDivElement[]>([]); // ссылки на кнопки, по которым считается реальный размер\n const leftButtonsSumSizeRef = useRef(0); // реальный размер, требуемый левым кнопкам\n const rightButtonsSumSizeRef = useRef(0); // реальный размер, требуемый правым кнопкам\n\n const leftButtonsSizeRef = useRef(0); // установленный размер левых кнопок\n const rigthButtonsSizeRef = useRef(0); // установленный размер правых кнопок\n const prevDistance = useRef(0);\n const swipeThresholdRef = useRef<SwipeThreshold>({ max: MIN_SWIPE_DISTANCE });\n const swipeLockRef = useRef(false);\n const { isMobile } = useBreakpoint();\n\n const [leftBlockStyles, leftBlockApi] = useSpring(() => ({\n width: 0,\n }));\n\n const [rightBlockStyles, rightBlockApi] = useSpring(() => ({\n width: 0,\n }));\n\n const [longState, setLongState] = useState(LongState.Off);\n const stateRef = useRef({\n candidate: ButtonsState.Close, // предполагаемое состояние, нужно чтобы нельзя было двигать влево-вправо за один раз\n now: ButtonsState.Close, // текущее состояние\n next: ButtonsState.Close, // следующее состояние, после завершения свайпа\n });\n\n const [demoInProgress, setDemoInProgress] = useState<boolean>(false);\n\n const setAnimateButtonsWidth = useCallback((flag: boolean) => {\n if (leftButtonsRef.current) {\n leftButtonsRef.current.style.transitionProperty = flag ? 'width' : 'none';\n }\n if (rightButtonsRef.current) {\n rightButtonsRef.current.style.transitionProperty = flag ? 'width' : 'none';\n }\n }, []);\n\n const setWidth = useDebounce(\n useCallback(() => {\n if (swipeableRef.current && childrenWrapperRef.current && rootRef.current) {\n const value: number = rootRef.current.getBoundingClientRect().width;\n // устанавливаем размер области равной размеру контента,\n // чтобы она не растягивалась, когда растягиваются кнопки\n setSwipeableWidth(value);\n swipeableRef.current.style.width = `${value}px`;\n childrenWrapperRef.current.style.width = `${value}px`;\n childrenWrapperRef.current.style.minWidth = `${value}px`;\n }\n }, [setSwipeableWidth]),\n 64\n );\n\n useEffect(() => {\n setWidth();\n }, [setWidth]);\n\n useEffect(() => {\n if (window && isMobile) {\n window.addEventListener('resize', setWidth);\n }\n\n return () => {\n if (window && isMobile) {\n window.removeEventListener('resize', setWidth);\n }\n };\n }, [setWidth, isMobile]);\n\n // обновляет порог срабатывания для useSwipe в зависимости от состояния\n const updateSwipeThreshold = useCallback(() => {\n const { now, candidate } = stateRef.current;\n\n // если открыта одна из сторон, то мы можем свайпнуть к закрытию, или к активации длинного свайпа\n if ([ButtonsState.LeftOpen, ButtonsState.RightOpen].includes(now)) {\n swipeThresholdRef.current =\n now === ButtonsState.LeftOpen\n ? {\n // свайп к закрытию\n minDelta: -MIN_SWIPE_DISTANCE,\n // свайп к активации длинного свайпа\n maxDelta: useLongSwipe ? MIN_SWIPE_DISTANCE : Number.MAX_SAFE_INTEGER,\n }\n : {\n // свайп к закрытию\n maxDelta: MIN_SWIPE_DISTANCE,\n // свайп к активации длинного свайпа\n minDelta: useLongSwipe ? -MIN_SWIPE_DISTANCE : -Number.MAX_SAFE_INTEGER,\n };\n } else if (candidate === ButtonsState.LeftOpen) {\n // если кандидат на открытие слева, то мы можем свайпнуть к открытию слева\n swipeThresholdRef.current = { maxDelta: MIN_SWIPE_DISTANCE };\n } else if (candidate === ButtonsState.RightOpen) {\n // если кандидат на открытие справа, то мы можем свайпнуть к открытию справа, дельта с отрицательным знаком\n // потому что свайпаем вправо\n swipeThresholdRef.current = { minDelta: -MIN_SWIPE_DISTANCE };\n }\n }, [useLongSwipe]);\n\n // анимирует размер кнопок для перехода в переданное состояние\n const animateToState = useCallback(\n (toState: ButtonsState, velocity: number) => {\n leftBlockApi.stop();\n rightBlockApi.stop();\n stateRef.current.now = toState;\n\n const animationConfig = {\n width: 0,\n config: {\n ...config.gentle,\n clamp: true,\n velocity: 0,\n },\n };\n let api: typeof leftBlockApi | typeof rightBlockApi;\n\n // если нужно закрыть кнопки, то сначала определяем с какой стороны кнопки открыты\n // получаем апи для акнимации кнопок с нужной стороны\n // вычисляем начальную скорость, т.к. анимация закрытия кнопок с разных сторон направлена в разные стороны\n // то для правой стороны нужно поменять знак начальной скорости\n if (toState === ButtonsState.Close) {\n const fromLeft = leftBlockApi.current[0].get().width > 0;\n api = fromLeft ? leftBlockApi : rightBlockApi;\n const v = fromLeft ? velocity : -velocity;\n\n // скорость делим на 1000 т.к. в событии приходит скорость в пикселях в секунду\n // а нужна в пикселях в миллисекунду\n animationConfig.config.velocity = v / 1000;\n } else {\n // если нужно открыть кнопки, то получаем апи для анимации блока кнопок с нужной стороны\n // вычисляем начальную скорость, т.к. анимация открытия кнопок с разных сторон направлена в разные стороны\n // то для правой стороны нужно поменять знак начальной скорости\n api = toState === ButtonsState.LeftOpen ? leftBlockApi : rightBlockApi;\n const v = toState === ButtonsState.LeftOpen ? velocity : -velocity;\n animationConfig.width = Math.min(\n swipeableWidth,\n (toState === ButtonsState.LeftOpen ? leftButtonsSumSizeRef : rightButtonsSumSizeRef).current\n );\n animationConfig.config.velocity = v / 1000;\n }\n\n void api.start(animationConfig)[0].then(({ finished }) => {\n if (finished) {\n stateRef.current.candidate = ButtonsState.Close;\n }\n });\n },\n [leftBlockApi, rightBlockApi, swipeableWidth]\n );\n\n const handleSwipeStart: SwipeEventHandler = useCallback(() => {\n if (demoInProgress || swipeLockRef.current) {\n return;\n }\n\n rightBlockApi.stop();\n leftBlockApi.stop();\n onStart?.();\n onResetDemo?.();\n updateSwipeThreshold();\n if (longState !== LongState.Off) {\n setLongState(LongState.Off);\n }\n prevDistance.current = 0;\n setAnimateButtonsWidth(false);\n }, [\n demoInProgress,\n rightBlockApi,\n leftBlockApi,\n onStart,\n onResetDemo,\n updateSwipeThreshold,\n longState,\n setAnimateButtonsWidth,\n ]);\n\n const handleChangeButtonsSizeByDistance = useCallback(\n (distance: number) => {\n // работаем с изменением дистанции, чтобы добавлять ее к существующей ширине\n const distanceDelta = distance - prevDistance.current;\n\n if (distanceDelta === 0) {\n return;\n }\n\n prevDistance.current = distance;\n\n // определяем сторону свайпа, проверяем есть ли с этой стороны кнопки, если есть меняем ширину блока кнопок\n const isLeft =\n stateRef.current.now === ButtonsState.LeftOpen ||\n stateRef.current.candidate === ButtonsState.LeftOpen ||\n (stateRef.current.now !== ButtonsState.RightOpen &&\n stateRef.current.candidate === ButtonsState.Close &&\n distanceDelta > 0);\n const hasButtons = isLeft ? !!leftButtonsRef.current : !!rightButtonsRef.current;\n const api = isLeft ? leftBlockApi : rightBlockApi;\n const currentWidth = api.current[0].get().width;\n\n if (!hasButtons) {\n return;\n }\n\n const width = Math.max(currentWidth + (isLeft ? distanceDelta : -distanceDelta), 0);\n api.set({ width });\n\n // если ширина блока кнопок > 0 фиксируем сторону-кандидат\n // чтобы не было возможности двигать влево-вправо за один свайп\n if (width > 0) {\n stateRef.current.candidate = isLeft ? ButtonsState.LeftOpen : ButtonsState.RightOpen;\n updateSwipeThreshold();\n }\n\n // определяем значение justifyContent у контейнера в зависимости от того, с какой стороны сейчас раскрыты кнопки\n // если раскрыты слева, то контент должен уходить за пределы области в право, ставим flex-start\n // если раскрыты справа, то контент должен уходить за пределы области в лево, ставим flex-end\n // визуально ничего не меняется, потому что контент в контейнере растянут на всю ширину\n if (swipeableRef.current) {\n swipeableRef.current.style.justifyContent =\n stateRef.current.candidate === ButtonsState.RightOpen ? 'flex-end' : 'flex-start';\n }\n\n // определяем выполнены ли условия для перевода компонента в состояние длинного свайпа\n // длинный свайп может быть отключен вообще или может быть недоступен если это сдвиг на проекцию\n const sumSize = isLeft ? leftButtonsSumSizeRef.current : rightButtonsSumSizeRef.current;\n if (useLongSwipe && width > sumSize + MIN_SWIPE_DISTANCE) {\n setLongState(isLeft ? LongState.Left : LongState.Right);\n stateRef.current.next = ButtonsState.Close;\n } else {\n setLongState(LongState.Off);\n }\n },\n [leftBlockApi, rightBlockApi, useLongSwipe, updateSwipeThreshold]\n );\n\n const handleSwipeMove: SwipeEventHandler = useCallback(\n (event: SwipeEvent) => {\n if (demoInProgress || swipeLockRef.current) {\n return;\n }\n // сдвиг в след за пальцем, можем делать длинный свайп\n handleChangeButtonsSizeByDistance(event.distanceX);\n },\n [demoInProgress, handleChangeButtonsSizeByDistance]\n );\n\n const runSwipeAnimation = useCallback(() => {\n if (!swipeableRef.current) {\n return;\n }\n\n if (stateRef.current.next === ButtonsState.Close) {\n // свайп завершен, кнопки должны закрыться, потому что не выполнен минимальный размер раскрытия\n // сбрасываем ширину в 0\n if (leftButtonsRef.current) {\n leftButtonsRef.current.style.width = '0';\n }\n leftButtonsSizeRef.current = 0;\n if (rightButtonsRef.current) {\n rightButtonsRef.current.style.width = '0';\n }\n rigthButtonsSizeRef.current = 0;\n } else if (stateRef.current.next === ButtonsState.LeftOpen) {\n // выполнено условие раскрытия слева\n // раскрываем кнопки на ширину их контента, но не больше ширины контейнера\n const maxLeftSize = Math.min(swipeableWidth, leftButtonsSumSizeRef.current);\n if (leftButtonsRef.current) {\n leftButtonsRef.current.style.width = `${maxLeftSize}px`;\n }\n leftButtonsSizeRef.current = maxLeftSize;\n rigthButtonsSizeRef.current = 0;\n } else if (stateRef.current.next === ButtonsState.RightOpen) {\n // выполнено условие раскрытия справа\n // раскрываем кнопки на ширину их контента, но не больше ширины контейнера\n const maxRightSize = Math.min(swipeableWidth, rightButtonsSumSizeRef.current);\n if (rightButtonsRef.current) {\n rightButtonsRef.current.style.width = `${maxRightSize}px`;\n }\n rigthButtonsSizeRef.current = maxRightSize;\n leftButtonsSizeRef.current = 0;\n }\n stateRef.current.now = stateRef.current.next;\n }, [swipeableWidth]);\n\n const handleSwipeFinish: SwipeEventHandler = useCallback(\n (event: SwipeEvent) => {\n if (demoInProgress) {\n return;\n }\n\n onFinish?.();\n\n // если это длинный свайп, то трггерим клик на соответствующую кнопку, и закрываем блок кнопок\n // если не установлен флаг keepStateAfterLong\n if (longState !== LongState.Off) {\n const buttons = longState === LongState.Left ? leftButtons : rightButtons;\n const button = longState === LongState.Left ? buttons?.[0] : buttons?.[buttons.length - 1];\n button?.onClick();\n onResetDemo?.();\n swipeLockRef.current = !!button?.keepStateAfterLong;\n if (!button?.keepStateAfterLong) {\n animateToState(ButtonsState.Close, event.velocityX);\n }\n return;\n }\n\n // если это не длинный свайп, то анимируем к соответствующему состоянию\n // если открыт левый или правый блок, то анимируем в закрытое состояние\n // если закрыты оба блока, то анимируем к открытию стороны-кадидата\n const { now, candidate } = stateRef.current;\n animateToState(\n [ButtonsState.LeftOpen, ButtonsState.RightOpen].includes(now) ? ButtonsState.Close : candidate,\n event.velocityX\n );\n },\n [demoInProgress, longState, leftButtons, rightButtons, onFinish, onResetDemo, animateToState]\n );\n\n const handleSwipeCancel: SwipeEventHandler = useCallback(\n (event) => {\n animateToState(stateRef.current.now, event.velocityX);\n },\n [animateToState]\n );\n\n const swipeHandlers = useSwipe({\n thresholdXRef: swipeThresholdRef,\n onSwipeStart: handleSwipeStart,\n onSwipeMove: handleSwipeMove,\n onSwipeEnd: handleSwipeFinish,\n onSwipeCancel: handleSwipeCancel,\n });\n\n const preventHorizontalScroll: EventListener = useCallback((e) => {\n if (Math.abs(prevDistance.current) > MAIN_AXIS_THRESHOLD_PX) {\n e.preventDefault();\n }\n }, []);\n\n const swipebleRefCurrent = swipeableRef.current;\n\n // выключаем вертикальный скролл, если у нас был минимальный горизонтальный скролл, чтобы не дергалось\n useEffect(() => {\n if (swipebleRefCurrent) {\n swipebleRefCurrent.addEventListener('touchmove', preventHorizontalScroll, { passive: false });\n }\n return () => {\n if (swipebleRefCurrent) {\n swipebleRefCurrent.removeEventListener('touchmove', preventHorizontalScroll);\n }\n };\n }, [preventHorizontalScroll, swipebleRefCurrent]);\n\n const getButtonsFromSide = useCallback((side = stateRef.current.now) => {\n const buttons = side === ButtonsState.RightOpen ? rightButtonsRef.current : leftButtonsRef.current;\n const oppositeButtons = buttons === rightButtonsRef.current ? leftButtonsRef.current : rightButtonsRef.current;\n\n return { buttons, oppositeButtons };\n }, []);\n\n const unmountDemoEndHandler = useCallback(\n (event: TransitionEvent) => {\n if (event.propertyName !== 'width') {\n return;\n }\n\n setDemoInProgress(false);\n\n const isTwoSidedSwipe = !!rightButtonsRef.current && !!leftButtonsRef.current;\n const isLeft = isTwoSidedSwipe\n ? twoSidedDemoMode === 'right-to-left' || twoSidedDemoMode === 'left'\n : !!leftButtonsRef.current;\n const buttons = isLeft ? leftButtonsRef.current : rightButtonsRef.current;\n\n buttons?.removeEventListener('transitionend', unmountDemoEndHandler);\n\n rootRef.current?.style.removeProperty('--transition-duration');\n rootRef.current?.style.removeProperty('--transition-delay');\n\n onResetDemo?.();\n onFinishDemo?.();\n },\n [onFinishDemo, onResetDemo, twoSidedDemoMode]\n );\n\n const demoSideAppearHandler = useCallback(\n (event: TransitionEvent) => {\n if (event.propertyName !== 'width') {\n return;\n }\n\n const currentSide = stateRef.current.now;\n const { buttons, oppositeButtons } = getButtonsFromSide(currentSide);\n\n const appearedIsFirstOfSides =\n !!rightButtonsRef.current &&\n !!leftButtonsRef.current &&\n ((currentSide === ButtonsState.LeftOpen && twoSidedDemoMode === 'left-to-right') ||\n (currentSide === ButtonsState.RightOpen && twoSidedDemoMode === 'right-to-left'));\n\n buttons?.removeEventListener('transitionend', demoSideAppearHandler);\n\n if (rootRef.current) {\n rootRef.current.style.setProperty(\n '--transition-duration',\n `${appearedIsFirstOfSides ? demoAppearTime : demoDisappearTime}ms`\n );\n rootRef.current.style.setProperty('--transition-delay', `${demoIdleTime}ms`);\n }\n\n stateRef.current.next = ButtonsState.Close;\n stateRef.current.candidate = stateRef.current.next;\n runSwipeAnimation();\n\n if (appearedIsFirstOfSides) {\n stateRef.current.next =\n currentSide === ButtonsState.LeftOpen ? ButtonsState.RightOpen : ButtonsState.LeftOpen;\n stateRef.current.candidate = stateRef.current.next;\n\n runSwipeAnimation();\n\n const twiceSideTransitionHandler = () => {\n oppositeButtons?.removeEventListener('transitionstart', twiceSideTransitionHandler);\n\n if (oppositeButtons && childrenWrapperRef.current) {\n const isRight = currentSide === ButtonsState.RightOpen;\n\n childrenWrapperRef.current.style.transform = `translateX(${\n isRight ? leftButtonsSumSizeRef.current : -rightButtonsSumSizeRef.current\n }px)`;\n }\n };\n\n oppositeButtons?.addEventListener('transitionstart', twiceSideTransitionHandler);\n oppositeButtons?.addEventListener('transitionend', demoSideAppearHandler);\n } else {\n const startDestroyDemoHandler = () => {\n buttons?.removeEventListener('transitionstart', startDestroyDemoHandler);\n childrenWrapperRef.current?.style.removeProperty('transform');\n };\n\n buttons?.addEventListener('transitionstart', startDestroyDemoHandler);\n buttons?.addEventListener('transitionend', unmountDemoEndHandler);\n }\n },\n [\n getButtonsFromSide,\n twoSidedDemoMode,\n runSwipeAnimation,\n demoAppearTime,\n demoDisappearTime,\n demoIdleTime,\n unmountDemoEndHandler,\n ]\n );\n\n const startDemo = useCallback(\n (side: ButtonsState.RightOpen | ButtonsState.LeftOpen) => {\n onResetDemo?.();\n onStartDemo?.();\n setDemoInProgress(true);\n\n stateRef.current.now = ButtonsState.Close;\n stateRef.current.next = side;\n stateRef.current.candidate = side;\n\n if (swipeableRef.current) {\n swipeableRef.current.style.justifyContent = side === ButtonsState.RightOpen ? 'flex-end' : 'flex-start';\n }\n\n if (rootRef.current) {\n rootRef.current.style.setProperty('--transition-duration', `${demoAppearTime}ms`);\n }\n\n setLongState(LongState.Off);\n setAnimateButtonsWidth(true);\n runSwipeAnimation();\n\n const { buttons } = getButtonsFromSide(side);\n buttons?.addEventListener('transitionend', demoSideAppearHandler);\n },\n [\n demoAppearTime,\n demoSideAppearHandler,\n getButtonsFromSide,\n runSwipeAnimation,\n onResetDemo,\n onStartDemo,\n setAnimateButtonsWidth,\n ]\n );\n\n useEffect(() => {\n if (\n demo &&\n !demoInProgress &&\n stateRef.current.now === ButtonsState.Close &&\n swipeableRef.current?.style.width\n ) {\n const isTwoSidedSwipe = Boolean(rightButtonsRef.current && leftButtonsRef.current);\n\n if (isTwoSidedSwipe) {\n startDemo(\n twoSidedDemoMode === 'right' || twoSidedDemoMode === 'right-to-left'\n ? ButtonsState.RightOpen\n : ButtonsState.LeftOpen\n );\n } else {\n startDemo(rightButtonsRef.current ? ButtonsState.RightOpen : ButtonsState.LeftOpen);\n }\n }\n\n if (!isMobile && demoInProgress) {\n setDemoInProgress(false);\n stateRef.current = {\n candidate: ButtonsState.Close,\n now: ButtonsState.Close,\n next: ButtonsState.Close,\n };\n }\n }, [demo, twoSidedDemoMode, startDemo, demoInProgress, isMobile, onResetDemo]);\n\n // подсчитываем реальный необходимый размер для кнопок\n // и назначаем проперти исходя из положения кнопки (последняя/не последняя)\n const handleButtonContentRef = useCallback(\n (left: boolean, isGrow: boolean) => (ref: HTMLDivElement) => {\n // нужно чтобы посчитать размеры для каждой кнопки один раз (не придумал, как сделать лучше)\n if (sumRefs.current.includes(ref) || !ref) {\n return;\n }\n\n const width = ref?.offsetWidth ?? 0;\n if (!isGrow) {\n ref.style.maxWidth = `${width}px`;\n }\n sumRefs.current.push(ref);\n if (left) {\n leftButtonsSumSizeRef.current += width;\n } else {\n rightButtonsSumSizeRef.current += width;\n }\n },\n []\n );\n\n const renderButtons = (buttons: SwipeButtonsArray, ref: MutableRefObject<HTMLDivElement | null>, left: boolean) => {\n const isTwoSidedDemoInProgress = leftButtons && rightButtons && demoInProgress;\n return (\n <Layer layer={LayerName.Content}>\n <animated.div\n className={classNames(styles.buttons, {\n [styles.buttonsLeft]: left && twoSidedDemoMode === 'right-to-left' && isTwoSidedDemoInProgress,\n [styles.buttonsRight]:\n !left && twoSidedDemoMode === 'left-to-right' && isTwoSidedDemoInProgress,\n })}\n // \"длинная\" кнопка растягивается максимум на ширину контейнера (buttons)\n // чтобы не было видно пустоты между ней и контейнером\n // нужно устанавливать выравнивание в зависимости от стороны\n style={{\n justifyContent: left ? 'flex-start' : 'flex-end',\n ...(left ? leftBlockStyles : rightBlockStyles),\n }}\n ref={ref}\n data-qa={`swipe-buttons-${left ? 'left' : 'right'}`}\n >\n {buttons.map((item, index) => {\n if (!item) {\n return null;\n }\n const isGrow = left ? index === 0 : index === buttons.length - 1;\n const isHide =\n (left && index !== 0 && longState === LongState.Left) ||\n (!left && index !== buttons.length - 1 && longState === LongState.Right);\n const Icon = item.icon;\n const iconProps = item.showLabel\n ? { 'aria-hidden': true, focusable: false }\n : { 'aria-label': item.label };\n return (\n <button\n className={classNames(styles.button, {\n [styles.buttonGrow]: isGrow,\n [styles.buttonHide]: isHide,\n [styles[`button_style-${item.style}`]]: item.style,\n })}\n // это нужно чтобы анимировался длинный свайп.\n // Здесь должно быть значение максимально близкое к тому,\n // какой максимум может занимать одна кнопка, если кнопок больше 1\n style={isGrow ? { maxWidth: `${swipeableWidth}px` } : {}}\n key={index}\n onClick={() => {\n if (demoInProgress) {\n return;\n }\n if (item.closeOnAction) {\n animateToState(ButtonsState.Close, 0);\n }\n item.onClick();\n }}\n data-qa={`swipe-button-${left ? 'left' : 'right'}-${index}`}\n >\n <div\n className={styles.buttonContent}\n ref={handleButtonContentRef(left, isGrow)}\n data-qa={`swipe-button-content-${left ? 'left' : 'right'}-${index}`}\n >\n <div className={styles.buttonContentColumn}>\n {Icon && (\n <div className={styles.iconWrapper}>\n <Icon {...iconProps} />\n </div>\n )}\n {item.showLabel && <span className={styles.buttonLabel}>{item.label}</span>}\n </div>\n </div>\n </button>\n );\n })}\n </animated.div>\n </Layer>\n );\n };\n\n if (!isMobile) {\n return null;\n }\n\n return (\n <div className={styles.root} ref={rootRef} data-qa={dataQa ?? 'swipe-root'}>\n <div\n className={classNames(styles.swipeble)}\n ref={swipeableRef}\n {...swipeHandlers}\n data-qa=\"swipe-swipeable\"\n >\n {!!leftButtons?.length && renderButtons(leftButtons, leftButtonsRef, true)}\n <div ref={childrenWrapperRef} className={styles.childrenWrapper}>\n {children}\n </div>\n {!!rightButtons?.length && renderButtons(rightButtons, rightButtonsRef, false)}\n </div>\n </div>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAaA,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7B,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAE7D,IAAK,YAIJ,CAAA;AAJD,CAAA,UAAK,YAAY,EAAA;AACb,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,YAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AAC3B,CAAC,EAJI,YAAY,KAAZ,YAAY,GAIhB,EAAA,CAAA,CAAA,CAAA;AAED,IAAK,SAIJ,CAAA;AAJD,CAAA,UAAK,SAAS,EAAA;AACV,IAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACnB,CAAC,EAJI,SAAS,KAAT,SAAS,GAIb,EAAA,CAAA,CAAA,CAAA;MAEY,KAAK,GAAmB,CAAC,EAClC,QAAQ,EACR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,IAAI,CAAC,EAC1ED,GAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,CAAC,eAAe,EAC1D,QAAA,EAAA,QAAQ,EACP,CAAA,EACL,CAAC,CAAC,YAAY,EAAE,MAAM,IAAI,aAAa,CAAC,YAAY,EAAE,eAAe,EAAE,KAAK,CAAC,CAC5E,EAAA,CAAA,EAAA,CACJ,EACR;AACN;;;;"}
|
|
1
|
+
{"version":3,"file":"Swipe.js","sources":["../src/Swipe.tsx"],"sourcesContent":["import { FC, MutableRefObject, useCallback, useEffect, useRef, useState } from 'react';\nimport { animated, config, useSpring } from '@react-spring/web';\nimport classNames from 'classnames';\n\nimport { useDebounce } from '@hh.ru/magritte-common-func-utils';\nimport { SwipeEvent, SwipeEventHandler, SwipeThreshold } from '@hh.ru/magritte-common-use-swipe';\nimport { MAIN_AXIS_THRESHOLD_PX, useSwipe } from '@hh.ru/magritte-common-use-swipe/useSwipe';\nimport { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';\nimport { Layer, LayerName } from '@hh.ru/magritte-ui-layer';\nimport { SwipeButtonsArray, SwipeProps } from '@hh.ru/magritte-ui-swipe/types';\n\nimport styles from './swipe.less';\n\nconst MIN_BUTTON_WIDTH = 76;\nconst OPEN_THRESHOLD = 1 / 3;\nconst MIN_SWIPE_DISTANCE = MIN_BUTTON_WIDTH * OPEN_THRESHOLD;\n\nenum ButtonsState {\n Close = 'close',\n LeftOpen = 'leftOpen',\n RightOpen = 'rightOpen',\n}\n\nenum LongState {\n Off = 'off',\n Left = 'left',\n Right = 'right',\n}\n\nexport const Swipe: FC<SwipeProps> = ({\n children,\n leftButtons,\n rightButtons,\n onStart,\n onFinish,\n useLongSwipe = true,\n 'data-qa': dataQa,\n demo = false,\n twoSidedDemoMode = 'right-to-left',\n demoAppearTime = 200,\n demoIdleTime = 300,\n demoDisappearTime = 200,\n onFinishDemo,\n onStartDemo,\n onResetDemo,\n}) => {\n const rootRef = useRef<HTMLDivElement | null>(null);\n const swipeableRef = useRef<HTMLDivElement | null>(null);\n const childrenWrapperRef = useRef<HTMLDivElement | null>(null);\n const [swipeableWidth, setSwipeableWidth] = useState(0);\n const leftButtonsRef = useRef<HTMLDivElement | null>(null);\n const rightButtonsRef = useRef<HTMLDivElement | null>(null);\n\n const sumRefs = useRef<HTMLDivElement[]>([]); // ссылки на кнопки, по которым считается реальный размер\n const leftButtonsSumSizeRef = useRef(0); // реальный размер, требуемый левым кнопкам\n const rightButtonsSumSizeRef = useRef(0); // реальный размер, требуемый правым кнопкам\n\n const leftButtonsSizeRef = useRef(0); // установленный размер левых кнопок\n const rigthButtonsSizeRef = useRef(0); // установленный размер правых кнопок\n const prevDistance = useRef(0);\n const swipeThresholdRef = useRef<SwipeThreshold>({ max: MIN_SWIPE_DISTANCE });\n const swipeLockRef = useRef(false);\n const { isMobile } = useBreakpoint();\n\n const [leftBlockStyles, leftBlockApi] = useSpring(() => ({\n width: 0,\n }));\n\n const [rightBlockStyles, rightBlockApi] = useSpring(() => ({\n width: 0,\n }));\n\n const [longState, setLongState] = useState(LongState.Off);\n const stateRef = useRef({\n candidate: ButtonsState.Close, // предполагаемое состояние, нужно чтобы нельзя было двигать влево-вправо за один раз\n now: ButtonsState.Close, // текущее состояние\n next: ButtonsState.Close, // следующее состояние, после завершения свайпа\n });\n\n const [demoInProgress, setDemoInProgress] = useState<boolean>(false);\n\n const setAnimateButtonsWidth = useCallback((flag: boolean) => {\n if (leftButtonsRef.current) {\n leftButtonsRef.current.style.transitionProperty = flag ? 'width' : 'none';\n }\n if (rightButtonsRef.current) {\n rightButtonsRef.current.style.transitionProperty = flag ? 'width' : 'none';\n }\n }, []);\n\n const setWidth = useDebounce(\n useCallback(() => {\n if (swipeableRef.current && childrenWrapperRef.current && rootRef.current) {\n const value: number = rootRef.current.getBoundingClientRect().width;\n // устанавливаем размер области равной размеру контента,\n // чтобы она не растягивалась, когда растягиваются кнопки\n setSwipeableWidth(value);\n swipeableRef.current.style.width = `${value}px`;\n childrenWrapperRef.current.style.width = `${value}px`;\n childrenWrapperRef.current.style.minWidth = `${value}px`;\n }\n }, [setSwipeableWidth]),\n 64\n );\n\n useEffect(() => {\n setWidth();\n }, [setWidth]);\n\n useEffect(() => {\n if (window && isMobile) {\n window.addEventListener('resize', setWidth);\n }\n\n return () => {\n if (window && isMobile) {\n window.removeEventListener('resize', setWidth);\n }\n };\n }, [setWidth, isMobile]);\n\n // обновляет порог срабатывания для useSwipe в зависимости от состояния\n const updateSwipeThreshold = useCallback(() => {\n const { now, candidate } = stateRef.current;\n\n // если открыта одна из сторон, то мы можем свайпнуть к закрытию, или к активации длинного свайпа\n if ([ButtonsState.LeftOpen, ButtonsState.RightOpen].includes(now)) {\n swipeThresholdRef.current =\n now === ButtonsState.LeftOpen\n ? {\n // свайп к закрытию\n minDelta: -MIN_SWIPE_DISTANCE,\n // свайп к активации длинного свайпа\n maxDelta: useLongSwipe ? MIN_SWIPE_DISTANCE : Number.MAX_SAFE_INTEGER,\n }\n : {\n // свайп к закрытию\n maxDelta: MIN_SWIPE_DISTANCE,\n // свайп к активации длинного свайпа\n minDelta: useLongSwipe ? -MIN_SWIPE_DISTANCE : -Number.MAX_SAFE_INTEGER,\n };\n } else if (candidate === ButtonsState.LeftOpen) {\n // если кандидат на открытие слева, то мы можем свайпнуть к открытию слева\n swipeThresholdRef.current = { maxDelta: MIN_SWIPE_DISTANCE };\n } else if (candidate === ButtonsState.RightOpen) {\n // если кандидат на открытие справа, то мы можем свайпнуть к открытию справа, дельта с отрицательным знаком\n // потому что свайпаем вправо\n swipeThresholdRef.current = { minDelta: -MIN_SWIPE_DISTANCE };\n }\n }, [useLongSwipe]);\n\n // анимирует размер кнопок для перехода в переданное состояние\n const animateToState = useCallback(\n (toState: ButtonsState, velocity: number) => {\n leftBlockApi.stop();\n rightBlockApi.stop();\n stateRef.current.now = toState;\n\n const animationConfig = {\n width: 0,\n config: {\n ...config.gentle,\n clamp: true,\n velocity: 0,\n },\n };\n let api: typeof leftBlockApi | typeof rightBlockApi;\n\n // если нужно закрыть кнопки, то сначала определяем с какой стороны кнопки открыты\n // получаем апи для акнимации кнопок с нужной стороны\n // вычисляем начальную скорость, т.к. анимация закрытия кнопок с разных сторон направлена в разные стороны\n // то для правой стороны нужно поменять знак начальной скорости\n if (toState === ButtonsState.Close) {\n const fromLeft = leftBlockApi.current[0].get().width > 0;\n api = fromLeft ? leftBlockApi : rightBlockApi;\n const v = fromLeft ? velocity : -velocity;\n\n // скорость делим на 1000 т.к. в событии приходит скорость в пикселях в секунду\n // а нужна в пикселях в миллисекунду\n animationConfig.config.velocity = v / 1000;\n } else {\n // если нужно открыть кнопки, то получаем апи для анимации блока кнопок с нужной стороны\n // вычисляем начальную скорость, т.к. анимация открытия кнопок с разных сторон направлена в разные стороны\n // то для правой стороны нужно поменять знак начальной скорости\n api = toState === ButtonsState.LeftOpen ? leftBlockApi : rightBlockApi;\n const v = toState === ButtonsState.LeftOpen ? velocity : -velocity;\n animationConfig.width = Math.min(\n swipeableWidth,\n (toState === ButtonsState.LeftOpen ? leftButtonsSumSizeRef : rightButtonsSumSizeRef).current\n );\n animationConfig.config.velocity = v / 1000;\n }\n\n void api.start(animationConfig)[0].then(({ finished }) => {\n if (finished) {\n stateRef.current.candidate = ButtonsState.Close;\n }\n });\n },\n [leftBlockApi, rightBlockApi, swipeableWidth]\n );\n\n const handleSwipeStart: SwipeEventHandler = useCallback(() => {\n if (demoInProgress || swipeLockRef.current) {\n return;\n }\n\n rightBlockApi.stop();\n leftBlockApi.stop();\n onStart?.();\n onResetDemo?.();\n updateSwipeThreshold();\n if (longState !== LongState.Off) {\n setLongState(LongState.Off);\n }\n prevDistance.current = 0;\n setAnimateButtonsWidth(false);\n }, [\n demoInProgress,\n rightBlockApi,\n leftBlockApi,\n onStart,\n onResetDemo,\n updateSwipeThreshold,\n longState,\n setAnimateButtonsWidth,\n ]);\n\n const handleChangeButtonsSizeByDistance = useCallback(\n (distance: number) => {\n // работаем с изменением дистанции, чтобы добавлять ее к существующей ширине\n const distanceDelta = distance - prevDistance.current;\n\n if (distanceDelta === 0) {\n return;\n }\n\n prevDistance.current = distance;\n\n // определяем сторону свайпа, проверяем есть ли с этой стороны кнопки, если есть меняем ширину блока кнопок\n const isLeft =\n stateRef.current.now === ButtonsState.LeftOpen ||\n stateRef.current.candidate === ButtonsState.LeftOpen ||\n (stateRef.current.now !== ButtonsState.RightOpen &&\n stateRef.current.candidate === ButtonsState.Close &&\n distanceDelta > 0);\n const hasButtons = isLeft ? !!leftButtonsRef.current : !!rightButtonsRef.current;\n const api = isLeft ? leftBlockApi : rightBlockApi;\n const currentWidth = api.current[0].get().width;\n\n if (!hasButtons) {\n return;\n }\n\n const width = Math.max(currentWidth + (isLeft ? distanceDelta : -distanceDelta), 0);\n api.set({ width });\n\n // если ширина блока кнопок > 0 фиксируем сторону-кандидат\n // чтобы не было возможности двигать влево-вправо за один свайп\n if (width > 0) {\n stateRef.current.candidate = isLeft ? ButtonsState.LeftOpen : ButtonsState.RightOpen;\n updateSwipeThreshold();\n }\n\n // определяем значение justifyContent у контейнера в зависимости от того, с какой стороны сейчас раскрыты кнопки\n // если раскрыты слева, то контент должен уходить за пределы области в право, ставим flex-start\n // если раскрыты справа, то контент должен уходить за пределы области в лево, ставим flex-end\n // визуально ничего не меняется, потому что контент в контейнере растянут на всю ширину\n if (swipeableRef.current) {\n swipeableRef.current.style.justifyContent =\n stateRef.current.candidate === ButtonsState.RightOpen ? 'flex-end' : 'flex-start';\n }\n\n // определяем выполнены ли условия для перевода компонента в состояние длинного свайпа\n // длинный свайп может быть отключен вообще или может быть недоступен если это сдвиг на проекцию\n const sumSize = isLeft ? leftButtonsSumSizeRef.current : rightButtonsSumSizeRef.current;\n if (useLongSwipe && width > sumSize + MIN_SWIPE_DISTANCE) {\n setLongState(isLeft ? LongState.Left : LongState.Right);\n stateRef.current.next = ButtonsState.Close;\n } else {\n setLongState(LongState.Off);\n }\n },\n [leftBlockApi, rightBlockApi, useLongSwipe, updateSwipeThreshold]\n );\n\n const handleSwipeMove: SwipeEventHandler = useCallback(\n (event: SwipeEvent) => {\n if (demoInProgress || swipeLockRef.current) {\n return;\n }\n // сдвиг в след за пальцем, можем делать длинный свайп\n handleChangeButtonsSizeByDistance(event.distanceX);\n },\n [demoInProgress, handleChangeButtonsSizeByDistance]\n );\n\n const runSwipeAnimation = useCallback(() => {\n if (!swipeableRef.current) {\n return;\n }\n\n if (stateRef.current.next === ButtonsState.Close) {\n // свайп завершен, кнопки должны закрыться, потому что не выполнен минимальный размер раскрытия\n // сбрасываем ширину в 0\n if (leftButtonsRef.current) {\n leftButtonsRef.current.style.width = '0';\n }\n leftButtonsSizeRef.current = 0;\n if (rightButtonsRef.current) {\n rightButtonsRef.current.style.width = '0';\n }\n rigthButtonsSizeRef.current = 0;\n } else if (stateRef.current.next === ButtonsState.LeftOpen) {\n // выполнено условие раскрытия слева\n // раскрываем кнопки на ширину их контента, но не больше ширины контейнера\n const maxLeftSize = Math.min(swipeableWidth, leftButtonsSumSizeRef.current);\n if (leftButtonsRef.current) {\n leftButtonsRef.current.style.width = `${maxLeftSize}px`;\n }\n leftButtonsSizeRef.current = maxLeftSize;\n rigthButtonsSizeRef.current = 0;\n } else if (stateRef.current.next === ButtonsState.RightOpen) {\n // выполнено условие раскрытия справа\n // раскрываем кнопки на ширину их контента, но не больше ширины контейнера\n const maxRightSize = Math.min(swipeableWidth, rightButtonsSumSizeRef.current);\n if (rightButtonsRef.current) {\n rightButtonsRef.current.style.width = `${maxRightSize}px`;\n }\n rigthButtonsSizeRef.current = maxRightSize;\n leftButtonsSizeRef.current = 0;\n }\n stateRef.current.now = stateRef.current.next;\n }, [swipeableWidth]);\n\n const handleSwipeFinish: SwipeEventHandler = useCallback(\n (event: SwipeEvent) => {\n if (demoInProgress) {\n return;\n }\n\n onFinish?.();\n\n // если это длинный свайп, то трггерим клик на соответствующую кнопку, и закрываем блок кнопок\n // если не установлен флаг keepStateAfterLong\n if (longState !== LongState.Off) {\n const buttons = longState === LongState.Left ? leftButtons : rightButtons;\n const button = longState === LongState.Left ? buttons?.[0] : buttons?.[buttons.length - 1];\n button?.onClick();\n onResetDemo?.();\n swipeLockRef.current = !!button?.keepStateAfterLong;\n if (!button?.keepStateAfterLong) {\n animateToState(ButtonsState.Close, event.velocityX);\n }\n return;\n }\n\n // если это не длинный свайп, то анимируем к соответствующему состоянию\n // если открыт левый или правый блок, то анимируем в закрытое состояние\n // если закрыты оба блока, то анимируем к открытию стороны-кадидата\n const { now, candidate } = stateRef.current;\n animateToState(\n [ButtonsState.LeftOpen, ButtonsState.RightOpen].includes(now) ? ButtonsState.Close : candidate,\n event.velocityX\n );\n },\n [demoInProgress, longState, leftButtons, rightButtons, onFinish, onResetDemo, animateToState]\n );\n\n const handleSwipeCancel: SwipeEventHandler = useCallback(\n (event) => {\n animateToState(stateRef.current.now, event.velocityX);\n },\n [animateToState]\n );\n\n const swipeHandlers = useSwipe({\n thresholdXRef: swipeThresholdRef,\n onSwipeStart: handleSwipeStart,\n onSwipeMove: handleSwipeMove,\n onSwipeEnd: handleSwipeFinish,\n onSwipeCancel: handleSwipeCancel,\n });\n\n const preventHorizontalScroll: EventListener = useCallback((e) => {\n if (Math.abs(prevDistance.current) > MAIN_AXIS_THRESHOLD_PX) {\n e.preventDefault();\n }\n }, []);\n\n const swipebleRefCurrent = swipeableRef.current;\n\n // выключаем вертикальный скролл, если у нас был минимальный горизонтальный скролл, чтобы не дергалось\n useEffect(() => {\n if (swipebleRefCurrent) {\n swipebleRefCurrent.addEventListener('touchmove', preventHorizontalScroll, { passive: false });\n }\n return () => {\n if (swipebleRefCurrent) {\n swipebleRefCurrent.removeEventListener('touchmove', preventHorizontalScroll);\n }\n };\n }, [preventHorizontalScroll, swipebleRefCurrent]);\n\n const getButtonsFromSide = useCallback((side = stateRef.current.now) => {\n const buttons = side === ButtonsState.RightOpen ? rightButtonsRef.current : leftButtonsRef.current;\n const oppositeButtons = buttons === rightButtonsRef.current ? leftButtonsRef.current : rightButtonsRef.current;\n\n return { buttons, oppositeButtons };\n }, []);\n\n const unmountDemoEndHandler = useCallback(\n (event: TransitionEvent) => {\n if (event.propertyName !== 'width') {\n return;\n }\n\n setDemoInProgress(false);\n\n const isTwoSidedSwipe = !!rightButtonsRef.current && !!leftButtonsRef.current;\n const isLeft = isTwoSidedSwipe\n ? twoSidedDemoMode === 'right-to-left' || twoSidedDemoMode === 'left'\n : !!leftButtonsRef.current;\n const buttons = isLeft ? leftButtonsRef.current : rightButtonsRef.current;\n\n buttons?.removeEventListener('transitionend', unmountDemoEndHandler);\n\n rootRef.current?.style.removeProperty('--transition-duration');\n rootRef.current?.style.removeProperty('--transition-delay');\n\n onResetDemo?.();\n onFinishDemo?.();\n },\n [onFinishDemo, onResetDemo, twoSidedDemoMode]\n );\n\n const demoSideAppearHandler = useCallback(\n (event: TransitionEvent) => {\n if (event.propertyName !== 'width') {\n return;\n }\n\n const currentSide = stateRef.current.now;\n const { buttons, oppositeButtons } = getButtonsFromSide(currentSide);\n\n const appearedIsFirstOfSides =\n !!rightButtonsRef.current &&\n !!leftButtonsRef.current &&\n ((currentSide === ButtonsState.LeftOpen && twoSidedDemoMode === 'left-to-right') ||\n (currentSide === ButtonsState.RightOpen && twoSidedDemoMode === 'right-to-left'));\n\n buttons?.removeEventListener('transitionend', demoSideAppearHandler);\n\n if (rootRef.current) {\n rootRef.current.style.setProperty(\n '--transition-duration',\n `${appearedIsFirstOfSides ? demoAppearTime : demoDisappearTime}ms`\n );\n rootRef.current.style.setProperty('--transition-delay', `${demoIdleTime}ms`);\n }\n\n stateRef.current.next = ButtonsState.Close;\n stateRef.current.candidate = stateRef.current.next;\n runSwipeAnimation();\n\n if (appearedIsFirstOfSides) {\n stateRef.current.next =\n currentSide === ButtonsState.LeftOpen ? ButtonsState.RightOpen : ButtonsState.LeftOpen;\n stateRef.current.candidate = stateRef.current.next;\n\n runSwipeAnimation();\n\n const twiceSideTransitionHandler = () => {\n oppositeButtons?.removeEventListener('transitionstart', twiceSideTransitionHandler);\n\n if (oppositeButtons && childrenWrapperRef.current) {\n const isRight = currentSide === ButtonsState.RightOpen;\n\n childrenWrapperRef.current.style.transform = `translateX(${\n isRight ? leftButtonsSumSizeRef.current : -rightButtonsSumSizeRef.current\n }px)`;\n }\n };\n\n oppositeButtons?.addEventListener('transitionstart', twiceSideTransitionHandler);\n oppositeButtons?.addEventListener('transitionend', demoSideAppearHandler);\n } else {\n const startDestroyDemoHandler = () => {\n buttons?.removeEventListener('transitionstart', startDestroyDemoHandler);\n childrenWrapperRef.current?.style.removeProperty('transform');\n };\n\n buttons?.addEventListener('transitionstart', startDestroyDemoHandler);\n buttons?.addEventListener('transitionend', unmountDemoEndHandler);\n }\n },\n [\n getButtonsFromSide,\n twoSidedDemoMode,\n runSwipeAnimation,\n demoAppearTime,\n demoDisappearTime,\n demoIdleTime,\n unmountDemoEndHandler,\n ]\n );\n\n const startDemo = useCallback(\n (side: ButtonsState.RightOpen | ButtonsState.LeftOpen) => {\n onResetDemo?.();\n onStartDemo?.();\n setDemoInProgress(true);\n\n stateRef.current.now = ButtonsState.Close;\n stateRef.current.next = side;\n stateRef.current.candidate = side;\n\n if (swipeableRef.current) {\n swipeableRef.current.style.justifyContent = side === ButtonsState.RightOpen ? 'flex-end' : 'flex-start';\n }\n\n if (rootRef.current) {\n rootRef.current.style.setProperty('--transition-duration', `${demoAppearTime}ms`);\n }\n\n setLongState(LongState.Off);\n setAnimateButtonsWidth(true);\n runSwipeAnimation();\n\n const { buttons } = getButtonsFromSide(side);\n buttons?.addEventListener('transitionend', demoSideAppearHandler);\n },\n [\n demoAppearTime,\n demoSideAppearHandler,\n getButtonsFromSide,\n runSwipeAnimation,\n onResetDemo,\n onStartDemo,\n setAnimateButtonsWidth,\n ]\n );\n\n useEffect(() => {\n if (\n demo &&\n !demoInProgress &&\n stateRef.current.now === ButtonsState.Close &&\n swipeableRef.current?.style.width\n ) {\n const isTwoSidedSwipe = Boolean(rightButtonsRef.current && leftButtonsRef.current);\n\n if (isTwoSidedSwipe) {\n startDemo(\n twoSidedDemoMode === 'right' || twoSidedDemoMode === 'right-to-left'\n ? ButtonsState.RightOpen\n : ButtonsState.LeftOpen\n );\n } else {\n startDemo(rightButtonsRef.current ? ButtonsState.RightOpen : ButtonsState.LeftOpen);\n }\n }\n\n if (!isMobile && demoInProgress) {\n setDemoInProgress(false);\n stateRef.current = {\n candidate: ButtonsState.Close,\n now: ButtonsState.Close,\n next: ButtonsState.Close,\n };\n }\n }, [demo, twoSidedDemoMode, startDemo, demoInProgress, isMobile, onResetDemo]);\n\n // подсчитываем реальный необходимый размер для кнопок\n // и назначаем проперти исходя из положения кнопки (последняя/не последняя)\n const handleButtonContentRef = useCallback(\n (left: boolean, isGrow: boolean) => (ref: HTMLDivElement) => {\n // нужно чтобы посчитать размеры для каждой кнопки один раз (не придумал, как сделать лучше)\n if (sumRefs.current.includes(ref) || !ref) {\n return;\n }\n\n const width = ref?.offsetWidth ?? 0;\n if (!isGrow) {\n ref.style.maxWidth = `${width}px`;\n }\n sumRefs.current.push(ref);\n if (left) {\n leftButtonsSumSizeRef.current += width;\n } else {\n rightButtonsSumSizeRef.current += width;\n }\n },\n []\n );\n\n const renderButtons = (buttons: SwipeButtonsArray, ref: MutableRefObject<HTMLDivElement | null>, left: boolean) => {\n const isTwoSidedDemoInProgress = leftButtons && rightButtons && demoInProgress;\n return (\n <Layer layer={LayerName.Content}>\n <animated.div\n className={classNames(styles.buttons, {\n [styles.buttonsLeft]: left && twoSidedDemoMode === 'right-to-left' && isTwoSidedDemoInProgress,\n [styles.buttonsRight]:\n !left && twoSidedDemoMode === 'left-to-right' && isTwoSidedDemoInProgress,\n })}\n // \"длинная\" кнопка растягивается максимум на ширину контейнера (buttons)\n // чтобы не было видно пустоты между ней и контейнером\n // нужно устанавливать выравнивание в зависимости от стороны\n style={{\n justifyContent: left ? 'flex-start' : 'flex-end',\n ...(left ? leftBlockStyles : rightBlockStyles),\n }}\n ref={ref}\n data-qa={`swipe-buttons-${left ? 'left' : 'right'}`}\n >\n {buttons.map((item, index) => {\n if (!item) {\n return null;\n }\n const isGrow = left ? index === 0 : index === buttons.length - 1;\n const isHide =\n (left && index !== 0 && longState === LongState.Left) ||\n (!left && index !== buttons.length - 1 && longState === LongState.Right);\n const Icon = item.icon;\n const iconProps = item.showLabel\n ? { 'aria-hidden': true, focusable: false }\n : { 'aria-label': item.label };\n return (\n <button\n className={classNames(styles.button, {\n [styles.buttonGrow]: isGrow,\n [styles.buttonHide]: isHide,\n [styles[`button_style-${item.style}`]]: item.style,\n })}\n // это нужно чтобы анимировался длинный свайп.\n // Здесь должно быть значение максимально близкое к тому,\n // какой максимум может занимать одна кнопка, если кнопок больше 1\n style={isGrow ? { maxWidth: `${swipeableWidth}px` } : {}}\n key={index}\n onClick={() => {\n if (demoInProgress) {\n return;\n }\n if (item.closeOnAction) {\n animateToState(ButtonsState.Close, 0);\n }\n item.onClick();\n }}\n data-qa={`swipe-button-${left ? 'left' : 'right'}-${index}`}\n >\n <div\n className={styles.buttonContent}\n ref={handleButtonContentRef(left, isGrow)}\n data-qa={`swipe-button-content-${left ? 'left' : 'right'}-${index}`}\n >\n <div className={styles.buttonContentColumn}>\n {Icon && (\n <div className={styles.iconWrapper}>\n <Icon {...iconProps} />\n </div>\n )}\n {item.showLabel && <span className={styles.buttonLabel}>{item.label}</span>}\n </div>\n </div>\n </button>\n );\n })}\n </animated.div>\n </Layer>\n );\n };\n\n if (!isMobile) {\n return null;\n }\n\n return (\n <div className={styles.root} ref={rootRef} data-qa={dataQa ?? 'swipe-root'}>\n <div\n className={classNames(styles.swipeble)}\n ref={swipeableRef}\n {...swipeHandlers}\n data-qa=\"swipe-swipeable\"\n >\n {!!leftButtons?.length && renderButtons(leftButtons, leftButtonsRef, true)}\n <div ref={childrenWrapperRef} className={styles.childrenWrapper}>\n {children}\n </div>\n {!!rightButtons?.length && renderButtons(rightButtons, rightButtonsRef, false)}\n </div>\n </div>\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KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,WAAW,EAC9B,QAAA,EAAAA,GAAA,CAAC,IAAI,EAAK,EAAA,GAAA,SAAS,GAAI,EACrB,CAAA,CACT,EACA,IAAI,CAAC,SAAS,IAAIA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,MAAM,CAAC,WAAW,EAAA,QAAA,EAAG,IAAI,CAAC,KAAK,GAAQ,CACzE,EAAA,CAAA,EAAA,CACJ,IAzBD,KAAK,CA0BL,EACX;AACN,iBAAC,CAAC,EAAA,CACS,EACX,CAAA,EACV;AACN,KAAC,CAAC;IAEF,IAAI,CAAC,QAAQ,EAAE;AACX,QAAA,OAAO,IAAI,CAAC;AACf,KAAA;AAED,IAAA,QACIA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAW,SAAA,EAAA,MAAM,IAAI,YAAY,EAAA,QAAA,EACtEC,cACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EACtC,GAAG,EAAE,YAAY,EACb,GAAA,aAAa,aACT,iBAAiB,EAAA,QAAA,EAAA,CAExB,CAAC,CAAC,WAAW,EAAE,MAAM,IAAI,aAAa,CAAC,WAAW,EAAE,cAAc,EAAE,IAAI,CAAC,EAC1ED,GAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,CAAC,eAAe,EAC1D,QAAA,EAAA,QAAQ,EACP,CAAA,EACL,CAAC,CAAC,YAAY,EAAE,MAAM,IAAI,aAAa,CAAC,YAAY,EAAE,eAAe,EAAE,KAAK,CAAC,CAC5E,EAAA,CAAA,EAAA,CACJ,EACR;AACN;;;;"}
|
package/index.css
CHANGED
|
@@ -363,128 +363,128 @@
|
|
|
363
363
|
--magritte-color-component-swipe-button-icon-content-v18-1-2:#ffffff;
|
|
364
364
|
--magritte-color-component-swipe-button-icon-state-content-pressed-v18-1-2:#ffffff;
|
|
365
365
|
}
|
|
366
|
-
.magritte-
|
|
366
|
+
.magritte-text___gUsfc_5-0-0{
|
|
367
367
|
color:var(--magritte-ui-text-color);
|
|
368
368
|
transition:var(--magritte-ui-text-transition-override);
|
|
369
369
|
}
|
|
370
|
-
.magritte-text_max-lines___foe9-
|
|
370
|
+
.magritte-text_max-lines___foe9-_5-0-0{
|
|
371
371
|
display:-webkit-box;
|
|
372
372
|
-webkit-box-orient:vertical;
|
|
373
373
|
overflow:hidden;
|
|
374
374
|
overflow-wrap:anywhere;
|
|
375
375
|
}
|
|
376
|
-
.magritte-text-
|
|
376
|
+
.magritte-text-dynamic___KzitV_5-0-0{
|
|
377
377
|
display:inline-block;
|
|
378
378
|
}
|
|
379
|
-
.magritte-text-
|
|
379
|
+
.magritte-text-dynamic_stretched___hv3Th_5-0-0{
|
|
380
380
|
width:100%;
|
|
381
381
|
}
|
|
382
|
-
.magritte-text_style-
|
|
382
|
+
.magritte-text_style-primary___vYlpl_5-0-0{
|
|
383
383
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-primary-v18-1-2));
|
|
384
384
|
}
|
|
385
|
-
.magritte-text-
|
|
386
|
-
.magritte-text-dynamic-
|
|
385
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-primary___vYlpl_5-0-0,
|
|
386
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-primary___vYlpl_5-0-0{
|
|
387
387
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-primary-disabled-v18-1-2));
|
|
388
388
|
}
|
|
389
|
-
.magritte-text_style-secondary___qb-
|
|
389
|
+
.magritte-text_style-secondary___qb-4O_5-0-0{
|
|
390
390
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-secondary-v18-1-2));
|
|
391
391
|
}
|
|
392
|
-
.magritte-text-
|
|
393
|
-
.magritte-text-dynamic-
|
|
392
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-secondary___qb-4O_5-0-0,
|
|
393
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-secondary___qb-4O_5-0-0{
|
|
394
394
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-secondary-disabled-v18-1-2));
|
|
395
395
|
}
|
|
396
|
-
.magritte-text_style-
|
|
396
|
+
.magritte-text_style-tertiary___atZvg_5-0-0{
|
|
397
397
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-tertiary-v18-1-2));
|
|
398
398
|
}
|
|
399
|
-
.magritte-text-
|
|
400
|
-
.magritte-text-dynamic-
|
|
399
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-tertiary___atZvg_5-0-0,
|
|
400
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-tertiary___atZvg_5-0-0{
|
|
401
401
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-tertiary-disabled-v18-1-2));
|
|
402
402
|
}
|
|
403
|
-
.magritte-text_style-
|
|
403
|
+
.magritte-text_style-accent___JDNe4_5-0-0{
|
|
404
404
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-accent-v18-1-2));
|
|
405
405
|
}
|
|
406
|
-
.magritte-text-
|
|
407
|
-
.magritte-text-dynamic-
|
|
406
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-accent___JDNe4_5-0-0,
|
|
407
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-accent___JDNe4_5-0-0{
|
|
408
408
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-accent-disabled-v18-1-2));
|
|
409
409
|
}
|
|
410
|
-
.magritte-text_style-accent-
|
|
410
|
+
.magritte-text_style-accent-secondary___JM6z5_5-0-0{
|
|
411
411
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-accent-secondary-v18-1-2));
|
|
412
412
|
}
|
|
413
|
-
.magritte-text-
|
|
414
|
-
.magritte-text-dynamic-
|
|
413
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-accent-secondary___JM6z5_5-0-0,
|
|
414
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-accent-secondary___JM6z5_5-0-0{
|
|
415
415
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-accent-secondary-disabled-v18-1-2));
|
|
416
416
|
}
|
|
417
|
-
.magritte-text_style-
|
|
417
|
+
.magritte-text_style-positive___OjJIB_5-0-0{
|
|
418
418
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-positive-v18-1-2));
|
|
419
419
|
}
|
|
420
|
-
.magritte-text-
|
|
421
|
-
.magritte-text-dynamic-
|
|
420
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-positive___OjJIB_5-0-0,
|
|
421
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-positive___OjJIB_5-0-0{
|
|
422
422
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-positive-disabled-v18-1-2));
|
|
423
423
|
}
|
|
424
|
-
.magritte-text_style-positive-
|
|
424
|
+
.magritte-text_style-positive-secondary___LkPe1_5-0-0{
|
|
425
425
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-positive-secondary-v18-1-2));
|
|
426
426
|
}
|
|
427
|
-
.magritte-text-
|
|
428
|
-
.magritte-text-dynamic-
|
|
427
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-positive-secondary___LkPe1_5-0-0,
|
|
428
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-positive-secondary___LkPe1_5-0-0{
|
|
429
429
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-positive-secondary-disabled-v18-1-2));
|
|
430
430
|
}
|
|
431
|
-
.magritte-text_style-
|
|
431
|
+
.magritte-text_style-negative___wBLmp_5-0-0{
|
|
432
432
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-negative-v18-1-2));
|
|
433
433
|
}
|
|
434
|
-
.magritte-text-
|
|
435
|
-
.magritte-text-dynamic-
|
|
434
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-negative___wBLmp_5-0-0,
|
|
435
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-negative___wBLmp_5-0-0{
|
|
436
436
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-negative-disabled-v18-1-2));
|
|
437
437
|
}
|
|
438
|
-
.magritte-text_style-negative-
|
|
438
|
+
.magritte-text_style-negative-secondary___CO58y_5-0-0{
|
|
439
439
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-negative-secondary-v18-1-2));
|
|
440
440
|
}
|
|
441
|
-
.magritte-text-
|
|
442
|
-
.magritte-text-dynamic-
|
|
441
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-negative-secondary___CO58y_5-0-0,
|
|
442
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-negative-secondary___CO58y_5-0-0{
|
|
443
443
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-negative-secondary-disabled-v18-1-2));
|
|
444
444
|
}
|
|
445
|
-
.magritte-text_style-
|
|
445
|
+
.magritte-text_style-warning___23C3Y_5-0-0{
|
|
446
446
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-warning-v18-1-2));
|
|
447
447
|
}
|
|
448
|
-
.magritte-text-
|
|
449
|
-
.magritte-text-dynamic-
|
|
448
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-warning___23C3Y_5-0-0,
|
|
449
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-warning___23C3Y_5-0-0{
|
|
450
450
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-warning-disabled-v18-1-2));
|
|
451
451
|
}
|
|
452
|
-
.magritte-text_style-warning-
|
|
452
|
+
.magritte-text_style-warning-secondary___ZJ3uf_5-0-0{
|
|
453
453
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-warning-secondary-v18-1-2));
|
|
454
454
|
}
|
|
455
|
-
.magritte-text-
|
|
456
|
-
.magritte-text-dynamic-
|
|
455
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-warning-secondary___ZJ3uf_5-0-0,
|
|
456
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-warning-secondary___ZJ3uf_5-0-0{
|
|
457
457
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-warning-secondary-disabled-v18-1-2));
|
|
458
458
|
}
|
|
459
|
-
.magritte-text_style-
|
|
459
|
+
.magritte-text_style-special___LaqKY_5-0-0{
|
|
460
460
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-special-v18-1-2));
|
|
461
461
|
}
|
|
462
|
-
.magritte-text-
|
|
463
|
-
.magritte-text-dynamic-
|
|
462
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-special___LaqKY_5-0-0,
|
|
463
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-special___LaqKY_5-0-0{
|
|
464
464
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-special-disabled-v18-1-2));
|
|
465
465
|
}
|
|
466
|
-
.magritte-text_style-special-secondary___-whB-
|
|
466
|
+
.magritte-text_style-special-secondary___-whB-_5-0-0{
|
|
467
467
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-special-secondary-v18-1-2));
|
|
468
468
|
}
|
|
469
|
-
.magritte-text-
|
|
470
|
-
.magritte-text-dynamic-
|
|
469
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-special-secondary___-whB-_5-0-0,
|
|
470
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-special-secondary___-whB-_5-0-0{
|
|
471
471
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-special-secondary-disabled-v18-1-2));
|
|
472
472
|
}
|
|
473
|
-
.magritte-text_style-
|
|
473
|
+
.magritte-text_style-contrast___Bx24w_5-0-0{
|
|
474
474
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-contrast-v18-1-2));
|
|
475
475
|
}
|
|
476
|
-
.magritte-text-
|
|
477
|
-
.magritte-text-dynamic-
|
|
476
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-contrast___Bx24w_5-0-0,
|
|
477
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-contrast___Bx24w_5-0-0{
|
|
478
478
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-contrast-disabled-v18-1-2));
|
|
479
479
|
}
|
|
480
|
-
.magritte-text_style-contrast-
|
|
480
|
+
.magritte-text_style-contrast-secondary___xMS2f_5-0-0{
|
|
481
481
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-contrast-secondary-v18-1-2));
|
|
482
482
|
}
|
|
483
|
-
.magritte-text-
|
|
484
|
-
.magritte-text-dynamic-
|
|
483
|
+
.magritte-text-dynamic___KzitV_5-0-0 > *[disabled] .magritte-text_style-contrast-secondary___xMS2f_5-0-0,
|
|
484
|
+
.magritte-text-dynamic-disabled___M1GFt_5-0-0 .magritte-text_style-contrast-secondary___xMS2f_5-0-0{
|
|
485
485
|
--magritte-ui-text-color:var(--magritte-ui-text-color-override, var(--magritte-color-text-state-contrast-secondary-disabled-v18-1-2));
|
|
486
486
|
}
|
|
487
|
-
.magritte-text_typography-title-1-
|
|
487
|
+
.magritte-text_typography-title-1-semibold___WDZXM_5-0-0{
|
|
488
488
|
font-family:var(--magritte-typography-title-1-semibold-font-family-v18-1-2);
|
|
489
489
|
font-weight:var(--magritte-typography-title-1-semibold-font-weight-v18-1-2);
|
|
490
490
|
line-height:var(--magritte-typography-title-1-semibold-line-height-v18-1-2);
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
text-transform:var(--magritte-typography-title-1-semibold-text-transform-v18-1-2);
|
|
495
495
|
text-decoration:var(--magritte-typography-title-1-semibold-text-decoration-v18-1-2);
|
|
496
496
|
}
|
|
497
|
-
.magritte-text_typography-title-2-
|
|
497
|
+
.magritte-text_typography-title-2-semibold___4PvYn_5-0-0{
|
|
498
498
|
font-family:var(--magritte-typography-title-2-semibold-font-family-v18-1-2);
|
|
499
499
|
font-weight:var(--magritte-typography-title-2-semibold-font-weight-v18-1-2);
|
|
500
500
|
line-height:var(--magritte-typography-title-2-semibold-line-height-v18-1-2);
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
text-transform:var(--magritte-typography-title-2-semibold-text-transform-v18-1-2);
|
|
505
505
|
text-decoration:var(--magritte-typography-title-2-semibold-text-decoration-v18-1-2);
|
|
506
506
|
}
|
|
507
|
-
.magritte-text_typography-title-3-
|
|
507
|
+
.magritte-text_typography-title-3-semibold___E7pmd_5-0-0{
|
|
508
508
|
font-family:var(--magritte-typography-title-3-semibold-font-family-v18-1-2);
|
|
509
509
|
font-weight:var(--magritte-typography-title-3-semibold-font-weight-v18-1-2);
|
|
510
510
|
line-height:var(--magritte-typography-title-3-semibold-line-height-v18-1-2);
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
text-transform:var(--magritte-typography-title-3-semibold-text-transform-v18-1-2);
|
|
515
515
|
text-decoration:var(--magritte-typography-title-3-semibold-text-decoration-v18-1-2);
|
|
516
516
|
}
|
|
517
|
-
.magritte-text_typography-title-4-semibold___u-
|
|
517
|
+
.magritte-text_typography-title-4-semibold___u-8Kd_5-0-0{
|
|
518
518
|
font-family:var(--magritte-typography-title-4-semibold-font-family-v18-1-2);
|
|
519
519
|
font-weight:var(--magritte-typography-title-4-semibold-font-weight-v18-1-2);
|
|
520
520
|
line-height:var(--magritte-typography-title-4-semibold-line-height-v18-1-2);
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
text-transform:var(--magritte-typography-title-4-semibold-text-transform-v18-1-2);
|
|
525
525
|
text-decoration:var(--magritte-typography-title-4-semibold-text-decoration-v18-1-2);
|
|
526
526
|
}
|
|
527
|
-
.magritte-text_typography-title-5-
|
|
527
|
+
.magritte-text_typography-title-5-semibold___PRTQc_5-0-0{
|
|
528
528
|
font-family:var(--magritte-typography-title-5-semibold-font-family-v18-1-2);
|
|
529
529
|
font-weight:var(--magritte-typography-title-5-semibold-font-weight-v18-1-2);
|
|
530
530
|
line-height:var(--magritte-typography-title-5-semibold-line-height-v18-1-2);
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
text-transform:var(--magritte-typography-title-5-semibold-text-transform-v18-1-2);
|
|
535
535
|
text-decoration:var(--magritte-typography-title-5-semibold-text-decoration-v18-1-2);
|
|
536
536
|
}
|
|
537
|
-
.magritte-text_typography-subtitle-1-
|
|
537
|
+
.magritte-text_typography-subtitle-1-semibold___TNYKE_5-0-0{
|
|
538
538
|
font-family:var(--magritte-typography-subtitle-1-semibold-font-family-v18-1-2);
|
|
539
539
|
font-weight:var(--magritte-typography-subtitle-1-semibold-font-weight-v18-1-2);
|
|
540
540
|
line-height:var(--magritte-typography-subtitle-1-semibold-line-height-v18-1-2);
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
text-transform:var(--magritte-typography-subtitle-1-semibold-text-transform-v18-1-2);
|
|
545
545
|
text-decoration:var(--magritte-typography-subtitle-1-semibold-text-decoration-v18-1-2);
|
|
546
546
|
}
|
|
547
|
-
.magritte-text_typography-subtitle-2-
|
|
547
|
+
.magritte-text_typography-subtitle-2-semibold___8GJr9_5-0-0{
|
|
548
548
|
font-family:var(--magritte-typography-subtitle-2-semibold-font-family-v18-1-2);
|
|
549
549
|
font-weight:var(--magritte-typography-subtitle-2-semibold-font-weight-v18-1-2);
|
|
550
550
|
line-height:var(--magritte-typography-subtitle-2-semibold-line-height-v18-1-2);
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
text-transform:var(--magritte-typography-subtitle-2-semibold-text-transform-v18-1-2);
|
|
555
555
|
text-decoration:var(--magritte-typography-subtitle-2-semibold-text-decoration-v18-1-2);
|
|
556
556
|
}
|
|
557
|
-
.magritte-text_typography-subtitle-3-
|
|
557
|
+
.magritte-text_typography-subtitle-3-semibold___scHMl_5-0-0{
|
|
558
558
|
font-family:var(--magritte-typography-subtitle-3-semibold-font-family-v18-1-2);
|
|
559
559
|
font-weight:var(--magritte-typography-subtitle-3-semibold-font-weight-v18-1-2);
|
|
560
560
|
line-height:var(--magritte-typography-subtitle-3-semibold-line-height-v18-1-2);
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
text-transform:var(--magritte-typography-subtitle-3-semibold-text-transform-v18-1-2);
|
|
565
565
|
text-decoration:var(--magritte-typography-subtitle-3-semibold-text-decoration-v18-1-2);
|
|
566
566
|
}
|
|
567
|
-
.magritte-text_typography-subtitle-4-
|
|
567
|
+
.magritte-text_typography-subtitle-4-semibold___Yr4Bt_5-0-0{
|
|
568
568
|
font-family:var(--magritte-typography-subtitle-4-semibold-font-family-v18-1-2);
|
|
569
569
|
font-weight:var(--magritte-typography-subtitle-4-semibold-font-weight-v18-1-2);
|
|
570
570
|
line-height:var(--magritte-typography-subtitle-4-semibold-line-height-v18-1-2);
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
text-transform:var(--magritte-typography-subtitle-4-semibold-text-transform-v18-1-2);
|
|
575
575
|
text-decoration:var(--magritte-typography-subtitle-4-semibold-text-decoration-v18-1-2);
|
|
576
576
|
}
|
|
577
|
-
.magritte-text_typography-label-1-
|
|
577
|
+
.magritte-text_typography-label-1-regular___JMO56_5-0-0{
|
|
578
578
|
font-family:var(--magritte-typography-label-1-regular-font-family-v18-1-2);
|
|
579
579
|
font-weight:var(--magritte-typography-label-1-regular-font-weight-v18-1-2);
|
|
580
580
|
line-height:var(--magritte-typography-label-1-regular-line-height-v18-1-2);
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
text-transform:var(--magritte-typography-label-1-regular-text-transform-v18-1-2);
|
|
585
585
|
text-decoration:var(--magritte-typography-label-1-regular-text-decoration-v18-1-2);
|
|
586
586
|
}
|
|
587
|
-
.magritte-text_typography-label-2-
|
|
587
|
+
.magritte-text_typography-label-2-regular___7gS1P_5-0-0{
|
|
588
588
|
font-family:var(--magritte-typography-label-2-regular-font-family-v18-1-2);
|
|
589
589
|
font-weight:var(--magritte-typography-label-2-regular-font-weight-v18-1-2);
|
|
590
590
|
line-height:var(--magritte-typography-label-2-regular-line-height-v18-1-2);
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
text-transform:var(--magritte-typography-label-2-regular-text-transform-v18-1-2);
|
|
595
595
|
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v18-1-2);
|
|
596
596
|
}
|
|
597
|
-
.magritte-text_typography-label-3-
|
|
597
|
+
.magritte-text_typography-label-3-regular___DogGv_5-0-0{
|
|
598
598
|
font-family:var(--magritte-typography-label-3-regular-font-family-v18-1-2);
|
|
599
599
|
font-weight:var(--magritte-typography-label-3-regular-font-weight-v18-1-2);
|
|
600
600
|
line-height:var(--magritte-typography-label-3-regular-line-height-v18-1-2);
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
text-transform:var(--magritte-typography-label-3-regular-text-transform-v18-1-2);
|
|
605
605
|
text-decoration:var(--magritte-typography-label-3-regular-text-decoration-v18-1-2);
|
|
606
606
|
}
|
|
607
|
-
.magritte-text_typography-label-4-
|
|
607
|
+
.magritte-text_typography-label-4-regular___TIPoS_5-0-0{
|
|
608
608
|
font-family:var(--magritte-typography-label-4-regular-font-family-v18-1-2);
|
|
609
609
|
font-weight:var(--magritte-typography-label-4-regular-font-weight-v18-1-2);
|
|
610
610
|
line-height:var(--magritte-typography-label-4-regular-line-height-v18-1-2);
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
text-transform:var(--magritte-typography-label-4-regular-text-transform-v18-1-2);
|
|
615
615
|
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v18-1-2);
|
|
616
616
|
}
|
|
617
|
-
.magritte-text_typography-label-5-regular___y55-
|
|
617
|
+
.magritte-text_typography-label-5-regular___y55-P_5-0-0{
|
|
618
618
|
font-family:var(--magritte-typography-label-5-regular-font-family-v18-1-2);
|
|
619
619
|
font-weight:var(--magritte-typography-label-5-regular-font-weight-v18-1-2);
|
|
620
620
|
line-height:var(--magritte-typography-label-5-regular-line-height-v18-1-2);
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
text-transform:var(--magritte-typography-label-5-regular-text-transform-v18-1-2);
|
|
625
625
|
text-decoration:var(--magritte-typography-label-5-regular-text-decoration-v18-1-2);
|
|
626
626
|
}
|
|
627
|
-
.magritte-text_typography-paragraph-1-
|
|
627
|
+
.magritte-text_typography-paragraph-1-regular___ZvHBC_5-0-0{
|
|
628
628
|
font-family:var(--magritte-typography-paragraph-1-regular-font-family-v18-1-2);
|
|
629
629
|
font-weight:var(--magritte-typography-paragraph-1-regular-font-weight-v18-1-2);
|
|
630
630
|
line-height:var(--magritte-typography-paragraph-1-regular-line-height-v18-1-2);
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
text-transform:var(--magritte-typography-paragraph-1-regular-text-transform-v18-1-2);
|
|
635
635
|
text-decoration:var(--magritte-typography-paragraph-1-regular-text-decoration-v18-1-2);
|
|
636
636
|
}
|
|
637
|
-
.magritte-text_typography-paragraph-2-
|
|
637
|
+
.magritte-text_typography-paragraph-2-regular___ndKyc_5-0-0{
|
|
638
638
|
font-family:var(--magritte-typography-paragraph-2-regular-font-family-v18-1-2);
|
|
639
639
|
font-weight:var(--magritte-typography-paragraph-2-regular-font-weight-v18-1-2);
|
|
640
640
|
line-height:var(--magritte-typography-paragraph-2-regular-line-height-v18-1-2);
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
text-transform:var(--magritte-typography-paragraph-2-regular-text-transform-v18-1-2);
|
|
645
645
|
text-decoration:var(--magritte-typography-paragraph-2-regular-text-decoration-v18-1-2);
|
|
646
646
|
}
|
|
647
|
-
.magritte-text_typography-paragraph-3-
|
|
647
|
+
.magritte-text_typography-paragraph-3-regular___g0oZF_5-0-0{
|
|
648
648
|
font-family:var(--magritte-typography-paragraph-3-regular-font-family-v18-1-2);
|
|
649
649
|
font-weight:var(--magritte-typography-paragraph-3-regular-font-weight-v18-1-2);
|
|
650
650
|
line-height:var(--magritte-typography-paragraph-3-regular-line-height-v18-1-2);
|
|
@@ -654,7 +654,7 @@
|
|
|
654
654
|
text-transform:var(--magritte-typography-paragraph-3-regular-text-transform-v18-1-2);
|
|
655
655
|
text-decoration:var(--magritte-typography-paragraph-3-regular-text-decoration-v18-1-2);
|
|
656
656
|
}
|
|
657
|
-
.magritte-text_typography-paragraph-4-
|
|
657
|
+
.magritte-text_typography-paragraph-4-regular___Iy3Zy_5-0-0{
|
|
658
658
|
font-family:var(--magritte-typography-paragraph-4-regular-font-family-v18-1-2);
|
|
659
659
|
font-weight:var(--magritte-typography-paragraph-4-regular-font-weight-v18-1-2);
|
|
660
660
|
line-height:var(--magritte-typography-paragraph-4-regular-line-height-v18-1-2);
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
text-transform:var(--magritte-typography-paragraph-4-regular-text-transform-v18-1-2);
|
|
665
665
|
text-decoration:var(--magritte-typography-paragraph-4-regular-text-decoration-v18-1-2);
|
|
666
666
|
}
|
|
667
|
-
.magritte-text_typography-custom-1-
|
|
667
|
+
.magritte-text_typography-custom-1-semibold___Pv6Lp_5-0-0{
|
|
668
668
|
font-family:var(--magritte-typography-_custom-1-semibold-font-family-v18-1-2);
|
|
669
669
|
font-weight:var(--magritte-typography-_custom-1-semibold-font-weight-v18-1-2);
|
|
670
670
|
line-height:var(--magritte-typography-_custom-1-semibold-line-height-v18-1-2);
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
text-transform:var(--magritte-typography-_custom-1-semibold-text-transform-v18-1-2);
|
|
675
675
|
text-decoration:var(--magritte-typography-_custom-1-semibold-text-decoration-v18-1-2);
|
|
676
676
|
}
|
|
677
|
-
.magritte-text_typography-custom-2-
|
|
677
|
+
.magritte-text_typography-custom-2-semibold___UP1hj_5-0-0{
|
|
678
678
|
font-family:var(--magritte-typography-_custom-2-semibold-font-family-v18-1-2);
|
|
679
679
|
font-weight:var(--magritte-typography-_custom-2-semibold-font-weight-v18-1-2);
|
|
680
680
|
line-height:var(--magritte-typography-_custom-2-semibold-line-height-v18-1-2);
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
text-transform:var(--magritte-typography-_custom-2-semibold-text-transform-v18-1-2);
|
|
685
685
|
text-decoration:var(--magritte-typography-_custom-2-semibold-text-decoration-v18-1-2);
|
|
686
686
|
}
|
|
687
|
-
.magritte-text_typography-custom-3-
|
|
687
|
+
.magritte-text_typography-custom-3-semibold___6yO4m_5-0-0{
|
|
688
688
|
font-family:var(--magritte-typography-_custom-3-semibold-font-family-v18-1-2);
|
|
689
689
|
font-weight:var(--magritte-typography-_custom-3-semibold-font-weight-v18-1-2);
|
|
690
690
|
line-height:var(--magritte-typography-_custom-3-semibold-line-height-v18-1-2);
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
text-transform:var(--magritte-typography-_custom-3-semibold-text-transform-v18-1-2);
|
|
695
695
|
text-decoration:var(--magritte-typography-_custom-3-semibold-text-decoration-v18-1-2);
|
|
696
696
|
}
|
|
697
|
-
.magritte-text_typography-custom-4-
|
|
697
|
+
.magritte-text_typography-custom-4-semibold___NEahp_5-0-0{
|
|
698
698
|
font-family:var(--magritte-typography-_custom-4-semibold-font-family-v18-1-2);
|
|
699
699
|
font-weight:var(--magritte-typography-_custom-4-semibold-font-weight-v18-1-2);
|
|
700
700
|
line-height:var(--magritte-typography-_custom-4-semibold-line-height-v18-1-2);
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
text-transform:var(--magritte-typography-_custom-4-semibold-text-transform-v18-1-2);
|
|
705
705
|
text-decoration:var(--magritte-typography-_custom-4-semibold-text-decoration-v18-1-2);
|
|
706
706
|
}
|
|
707
|
-
.magritte-text_typography-custom-5-semibold___-
|
|
707
|
+
.magritte-text_typography-custom-5-semibold___-UJfV_5-0-0{
|
|
708
708
|
font-family:var(--magritte-typography-_custom-5-semibold-font-family-v18-1-2);
|
|
709
709
|
font-weight:var(--magritte-typography-_custom-5-semibold-font-weight-v18-1-2);
|
|
710
710
|
line-height:var(--magritte-typography-_custom-5-semibold-line-height-v18-1-2);
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
text-transform:var(--magritte-typography-_custom-5-semibold-text-transform-v18-1-2);
|
|
715
715
|
text-decoration:var(--magritte-typography-_custom-5-semibold-text-decoration-v18-1-2);
|
|
716
716
|
}
|
|
717
|
-
.magritte-text_typography-custom-1-italic___-
|
|
717
|
+
.magritte-text_typography-custom-1-italic___-CpMs_5-0-0{
|
|
718
718
|
font-family:var(--magritte-typography-_custom-1-italic-font-family-v18-1-2);
|
|
719
719
|
font-weight:var(--magritte-typography-_custom-1-italic-font-weight-v18-1-2);
|
|
720
720
|
line-height:var(--magritte-typography-_custom-1-italic-line-height-v18-1-2);
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
text-transform:var(--magritte-typography-_custom-1-italic-text-transform-v18-1-2);
|
|
725
725
|
text-decoration:var(--magritte-typography-_custom-1-italic-text-decoration-v18-1-2);
|
|
726
726
|
}
|
|
727
|
-
.magritte-text_typography-custom-2-
|
|
727
|
+
.magritte-text_typography-custom-2-italic___SvOG4_5-0-0{
|
|
728
728
|
font-family:var(--magritte-typography-_custom-2-italic-font-family-v18-1-2);
|
|
729
729
|
font-weight:var(--magritte-typography-_custom-2-italic-font-weight-v18-1-2);
|
|
730
730
|
line-height:var(--magritte-typography-_custom-2-italic-line-height-v18-1-2);
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
text-transform:var(--magritte-typography-_custom-2-italic-text-transform-v18-1-2);
|
|
735
735
|
text-decoration:var(--magritte-typography-_custom-2-italic-text-decoration-v18-1-2);
|
|
736
736
|
}
|
|
737
|
-
.magritte-text_typography-custom-3-italic___-
|
|
737
|
+
.magritte-text_typography-custom-3-italic___-g0na_5-0-0{
|
|
738
738
|
font-family:var(--magritte-typography-_custom-3-italic-font-family-v18-1-2);
|
|
739
739
|
font-weight:var(--magritte-typography-_custom-3-italic-font-weight-v18-1-2);
|
|
740
740
|
line-height:var(--magritte-typography-_custom-3-italic-line-height-v18-1-2);
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
text-transform:var(--magritte-typography-_custom-3-italic-text-transform-v18-1-2);
|
|
745
745
|
text-decoration:var(--magritte-typography-_custom-3-italic-text-decoration-v18-1-2);
|
|
746
746
|
}
|
|
747
|
-
.magritte-text_typography-custom-4-
|
|
747
|
+
.magritte-text_typography-custom-4-italic___gOGey_5-0-0{
|
|
748
748
|
font-family:var(--magritte-typography-_custom-4-italic-font-family-v18-1-2);
|
|
749
749
|
font-weight:var(--magritte-typography-_custom-4-italic-font-weight-v18-1-2);
|
|
750
750
|
line-height:var(--magritte-typography-_custom-4-italic-line-height-v18-1-2);
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
text-transform:var(--magritte-typography-_custom-4-italic-text-transform-v18-1-2);
|
|
755
755
|
text-decoration:var(--magritte-typography-_custom-4-italic-text-decoration-v18-1-2);
|
|
756
756
|
}
|
|
757
|
-
.magritte-text_typography-custom-5-
|
|
757
|
+
.magritte-text_typography-custom-5-italic___VR9wy_5-0-0{
|
|
758
758
|
font-family:var(--magritte-typography-_custom-5-italic-font-family-v18-1-2);
|
|
759
759
|
font-weight:var(--magritte-typography-_custom-5-italic-font-weight-v18-1-2);
|
|
760
760
|
line-height:var(--magritte-typography-_custom-5-italic-line-height-v18-1-2);
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
text-transform:var(--magritte-typography-_custom-5-italic-text-transform-v18-1-2);
|
|
765
765
|
text-decoration:var(--magritte-typography-_custom-5-italic-text-decoration-v18-1-2);
|
|
766
766
|
}
|
|
767
|
-
.magritte-text_typography-custom-1-
|
|
767
|
+
.magritte-text_typography-custom-1-medium___hik0e_5-0-0{
|
|
768
768
|
font-family:var(--magritte-typography-_custom-1-medium-font-family-v18-1-2);
|
|
769
769
|
font-weight:var(--magritte-typography-_custom-1-medium-font-weight-v18-1-2);
|
|
770
770
|
line-height:var(--magritte-typography-_custom-1-medium-line-height-v18-1-2);
|
|
@@ -774,7 +774,7 @@
|
|
|
774
774
|
text-transform:var(--magritte-typography-_custom-1-medium-text-transform-v18-1-2);
|
|
775
775
|
text-decoration:var(--magritte-typography-_custom-1-medium-text-decoration-v18-1-2);
|
|
776
776
|
}
|
|
777
|
-
.magritte-text_typography-custom-2-medium___-
|
|
777
|
+
.magritte-text_typography-custom-2-medium___-f6Sh_5-0-0{
|
|
778
778
|
font-family:var(--magritte-typography-_custom-2-medium-font-family-v18-1-2);
|
|
779
779
|
font-weight:var(--magritte-typography-_custom-2-medium-font-weight-v18-1-2);
|
|
780
780
|
line-height:var(--magritte-typography-_custom-2-medium-line-height-v18-1-2);
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
text-transform:var(--magritte-typography-_custom-2-medium-text-transform-v18-1-2);
|
|
785
785
|
text-decoration:var(--magritte-typography-_custom-2-medium-text-decoration-v18-1-2);
|
|
786
786
|
}
|
|
787
|
-
.magritte-text_typography-custom-3-
|
|
787
|
+
.magritte-text_typography-custom-3-medium___pLvIb_5-0-0{
|
|
788
788
|
font-family:var(--magritte-typography-_custom-3-medium-font-family-v18-1-2);
|
|
789
789
|
font-weight:var(--magritte-typography-_custom-3-medium-font-weight-v18-1-2);
|
|
790
790
|
line-height:var(--magritte-typography-_custom-3-medium-line-height-v18-1-2);
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
text-transform:var(--magritte-typography-_custom-3-medium-text-transform-v18-1-2);
|
|
795
795
|
text-decoration:var(--magritte-typography-_custom-3-medium-text-decoration-v18-1-2);
|
|
796
796
|
}
|
|
797
|
-
.magritte-text_typography-custom-4-
|
|
797
|
+
.magritte-text_typography-custom-4-medium___zZteM_5-0-0{
|
|
798
798
|
font-family:var(--magritte-typography-_custom-4-medium-font-family-v18-1-2);
|
|
799
799
|
font-weight:var(--magritte-typography-_custom-4-medium-font-weight-v18-1-2);
|
|
800
800
|
line-height:var(--magritte-typography-_custom-4-medium-line-height-v18-1-2);
|
|
@@ -804,7 +804,7 @@
|
|
|
804
804
|
text-transform:var(--magritte-typography-_custom-4-medium-text-transform-v18-1-2);
|
|
805
805
|
text-decoration:var(--magritte-typography-_custom-4-medium-text-decoration-v18-1-2);
|
|
806
806
|
}
|
|
807
|
-
.magritte-text_typography-custom-5-
|
|
807
|
+
.magritte-text_typography-custom-5-medium___gW1Y8_5-0-0{
|
|
808
808
|
font-family:var(--magritte-typography-_custom-5-medium-font-family-v18-1-2);
|
|
809
809
|
font-weight:var(--magritte-typography-_custom-5-medium-font-weight-v18-1-2);
|
|
810
810
|
line-height:var(--magritte-typography-_custom-5-medium-line-height-v18-1-2);
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
text-transform:var(--magritte-typography-_custom-5-medium-text-transform-v18-1-2);
|
|
815
815
|
text-decoration:var(--magritte-typography-_custom-5-medium-text-decoration-v18-1-2);
|
|
816
816
|
}
|
|
817
|
-
.magritte-text-typography-title-1-semibold___RE-
|
|
817
|
+
.magritte-text-typography-title-1-semibold___RE-5E_5-0-0{
|
|
818
818
|
font-family:var(--magritte-typography-title-1-semibold-font-family-v18-1-2);
|
|
819
819
|
font-weight:var(--magritte-typography-title-1-semibold-font-weight-v18-1-2);
|
|
820
820
|
line-height:var(--magritte-typography-title-1-semibold-line-height-v18-1-2);
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
text-transform:var(--magritte-typography-title-1-semibold-text-transform-v18-1-2);
|
|
825
825
|
text-decoration:var(--magritte-typography-title-1-semibold-text-decoration-v18-1-2);
|
|
826
826
|
}
|
|
827
|
-
.magritte-text-typography-title-2-semibold___r-
|
|
827
|
+
.magritte-text-typography-title-2-semibold___r-gyn_5-0-0{
|
|
828
828
|
font-family:var(--magritte-typography-title-2-semibold-font-family-v18-1-2);
|
|
829
829
|
font-weight:var(--magritte-typography-title-2-semibold-font-weight-v18-1-2);
|
|
830
830
|
line-height:var(--magritte-typography-title-2-semibold-line-height-v18-1-2);
|
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
text-transform:var(--magritte-typography-title-2-semibold-text-transform-v18-1-2);
|
|
835
835
|
text-decoration:var(--magritte-typography-title-2-semibold-text-decoration-v18-1-2);
|
|
836
836
|
}
|
|
837
|
-
.magritte-text-typography-title-3-
|
|
837
|
+
.magritte-text-typography-title-3-semibold___AxOn9_5-0-0{
|
|
838
838
|
font-family:var(--magritte-typography-title-3-semibold-font-family-v18-1-2);
|
|
839
839
|
font-weight:var(--magritte-typography-title-3-semibold-font-weight-v18-1-2);
|
|
840
840
|
line-height:var(--magritte-typography-title-3-semibold-line-height-v18-1-2);
|
|
@@ -844,7 +844,7 @@
|
|
|
844
844
|
text-transform:var(--magritte-typography-title-3-semibold-text-transform-v18-1-2);
|
|
845
845
|
text-decoration:var(--magritte-typography-title-3-semibold-text-decoration-v18-1-2);
|
|
846
846
|
}
|
|
847
|
-
.magritte-text-typography-title-4-
|
|
847
|
+
.magritte-text-typography-title-4-semibold___4FOf2_5-0-0{
|
|
848
848
|
font-family:var(--magritte-typography-title-4-semibold-font-family-v18-1-2);
|
|
849
849
|
font-weight:var(--magritte-typography-title-4-semibold-font-weight-v18-1-2);
|
|
850
850
|
line-height:var(--magritte-typography-title-4-semibold-line-height-v18-1-2);
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
text-transform:var(--magritte-typography-title-4-semibold-text-transform-v18-1-2);
|
|
855
855
|
text-decoration:var(--magritte-typography-title-4-semibold-text-decoration-v18-1-2);
|
|
856
856
|
}
|
|
857
|
-
.magritte-text-typography-title-5-
|
|
857
|
+
.magritte-text-typography-title-5-semibold___ayTa0_5-0-0{
|
|
858
858
|
font-family:var(--magritte-typography-title-5-semibold-font-family-v18-1-2);
|
|
859
859
|
font-weight:var(--magritte-typography-title-5-semibold-font-weight-v18-1-2);
|
|
860
860
|
line-height:var(--magritte-typography-title-5-semibold-line-height-v18-1-2);
|
|
@@ -864,30 +864,30 @@
|
|
|
864
864
|
text-transform:var(--magritte-typography-title-5-semibold-text-transform-v18-1-2);
|
|
865
865
|
text-decoration:var(--magritte-typography-title-5-semibold-text-decoration-v18-1-2);
|
|
866
866
|
}
|
|
867
|
-
.magritte-root___gbkM-
|
|
867
|
+
.magritte-root___gbkM-_5-0-0{
|
|
868
868
|
--transition-duration:var(--magritte-semantic-animation-ease-in-out-leopard-300-duration-v18-1-2);
|
|
869
869
|
--transition-delay:initial;
|
|
870
870
|
position:relative;
|
|
871
871
|
width:100%;
|
|
872
872
|
}
|
|
873
|
-
.magritte-
|
|
873
|
+
.magritte-swipeble___EVyAI_5-0-0{
|
|
874
874
|
position:relative;
|
|
875
875
|
box-sizing:border-box;
|
|
876
876
|
display:flex;
|
|
877
877
|
width:100%;
|
|
878
878
|
overflow:hidden;
|
|
879
879
|
}
|
|
880
|
-
.magritte-
|
|
880
|
+
.magritte-childrenWrapper___1tUbf_5-0-0{
|
|
881
881
|
width:100%;
|
|
882
882
|
transition-property:transform;
|
|
883
883
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-leopard-300-timing-function-v18-1-2);
|
|
884
884
|
}
|
|
885
885
|
@media (prefers-reduced-motion: no-preference){
|
|
886
|
-
.magritte-
|
|
886
|
+
.magritte-childrenWrapper___1tUbf_5-0-0{
|
|
887
887
|
transition-duration:var(--transition-duration);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
.magritte-
|
|
890
|
+
.magritte-buttons___PHNdL_5-0-0{
|
|
891
891
|
height:auto;
|
|
892
892
|
position:relative;
|
|
893
893
|
display:flex;
|
|
@@ -899,19 +899,19 @@
|
|
|
899
899
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-leopard-300-timing-function-v18-1-2);
|
|
900
900
|
}
|
|
901
901
|
@media (prefers-reduced-motion: no-preference){
|
|
902
|
-
.magritte-
|
|
902
|
+
.magritte-buttons___PHNdL_5-0-0{
|
|
903
903
|
transition-duration:var(--transition-duration);
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
.magritte-buttons-
|
|
906
|
+
.magritte-buttons-left___WPiN4_5-0-0{
|
|
907
907
|
position:absolute;
|
|
908
908
|
inset:0 auto 0 0;
|
|
909
909
|
}
|
|
910
|
-
.magritte-buttons-
|
|
910
|
+
.magritte-buttons-right___G3u6y_5-0-0{
|
|
911
911
|
position:absolute;
|
|
912
912
|
inset:0 0 0 auto;
|
|
913
913
|
}
|
|
914
|
-
.magritte-
|
|
914
|
+
.magritte-button___jZvyY_5-0-0{
|
|
915
915
|
all:unset;
|
|
916
916
|
min-width:auto;
|
|
917
917
|
max-width:100px;
|
|
@@ -928,17 +928,17 @@
|
|
|
928
928
|
user-select:none;
|
|
929
929
|
}
|
|
930
930
|
@media (prefers-reduced-motion: no-preference){
|
|
931
|
-
.magritte-
|
|
931
|
+
.magritte-button___jZvyY_5-0-0{
|
|
932
932
|
transition-duration:var(--transition-duration);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
.magritte-button-
|
|
935
|
+
.magritte-button-hide___5AEdR_5-0-0{
|
|
936
936
|
max-width:0;
|
|
937
937
|
}
|
|
938
|
-
.magritte-button-
|
|
938
|
+
.magritte-button-grow___IT4MK_5-0-0{
|
|
939
939
|
flex-grow:1;
|
|
940
940
|
}
|
|
941
|
-
.magritte-button-content___hlzd-
|
|
941
|
+
.magritte-button-content___hlzd-_5-0-0{
|
|
942
942
|
white-space:nowrap;
|
|
943
943
|
display:flex;
|
|
944
944
|
justify-content:center;
|
|
@@ -949,14 +949,14 @@
|
|
|
949
949
|
flex-grow:1;
|
|
950
950
|
flex-shrink:0;
|
|
951
951
|
}
|
|
952
|
-
.magritte-button-content-
|
|
952
|
+
.magritte-button-content-column___48Tzo_5-0-0{
|
|
953
953
|
margin:0 var(--magritte-core-space-3-x-v18-1-2) 0 var(--magritte-core-space-3-x-v18-1-2);
|
|
954
954
|
height:fit-content;
|
|
955
955
|
display:flex;
|
|
956
956
|
flex-direction:column;
|
|
957
957
|
align-items:center;
|
|
958
958
|
}
|
|
959
|
-
.magritte-button-
|
|
959
|
+
.magritte-button-label___l03VO_5-0-0{
|
|
960
960
|
font-family:var(--magritte-typography-paragraph-3-regular-font-family-v18-1-2);
|
|
961
961
|
font-weight:var(--magritte-typography-paragraph-3-regular-font-weight-v18-1-2);
|
|
962
962
|
line-height:var(--magritte-typography-paragraph-3-regular-line-height-v18-1-2);
|
|
@@ -966,67 +966,67 @@
|
|
|
966
966
|
text-transform:var(--magritte-typography-paragraph-3-regular-text-transform-v18-1-2);
|
|
967
967
|
text-decoration:var(--magritte-typography-paragraph-3-regular-text-decoration-v18-1-2);
|
|
968
968
|
}
|
|
969
|
-
.magritte-button_style-
|
|
969
|
+
.magritte-button_style-neutral___1yyqh_5-0-0{
|
|
970
970
|
background-color:var(--magritte-color-component-swipe-button-background-neutral-v18-1-2);
|
|
971
971
|
color:var(--magritte-color-component-swipe-button-text-label-v18-1-2);
|
|
972
972
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-content-v18-1-2);
|
|
973
973
|
}
|
|
974
|
-
.magritte-button_style-
|
|
974
|
+
.magritte-button_style-neutral___1yyqh_5-0-0:active{
|
|
975
975
|
background-color:var(--magritte-color-component-swipe-button-background-state-neutral-pressed-v18-1-2);
|
|
976
976
|
color:var(--magritte-color-component-swipe-button-text-state-label-pressed-v18-1-2);
|
|
977
977
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-state-content-pressed-v18-1-2);
|
|
978
978
|
}
|
|
979
|
-
.magritte-button_style-
|
|
979
|
+
.magritte-button_style-accent___L9krS_5-0-0{
|
|
980
980
|
background-color:var(--magritte-color-component-swipe-button-background-accent-v18-1-2);
|
|
981
981
|
color:var(--magritte-color-component-swipe-button-text-label-v18-1-2);
|
|
982
982
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-content-v18-1-2);
|
|
983
983
|
}
|
|
984
|
-
.magritte-button_style-
|
|
984
|
+
.magritte-button_style-accent___L9krS_5-0-0:active{
|
|
985
985
|
background-color:var(--magritte-color-component-swipe-button-background-state-accent-pressed-v18-1-2);
|
|
986
986
|
color:var(--magritte-color-component-swipe-button-text-state-label-pressed-v18-1-2);
|
|
987
987
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-state-content-pressed-v18-1-2);
|
|
988
988
|
}
|
|
989
|
-
.magritte-button_style-
|
|
989
|
+
.magritte-button_style-positive___2pgae_5-0-0{
|
|
990
990
|
background-color:var(--magritte-color-component-swipe-button-background-positive-v18-1-2);
|
|
991
991
|
color:var(--magritte-color-component-swipe-button-text-label-v18-1-2);
|
|
992
992
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-content-v18-1-2);
|
|
993
993
|
}
|
|
994
|
-
.magritte-button_style-
|
|
994
|
+
.magritte-button_style-positive___2pgae_5-0-0:active{
|
|
995
995
|
background-color:var(--magritte-color-component-swipe-button-background-state-positive-pressed-v18-1-2);
|
|
996
996
|
color:var(--magritte-color-component-swipe-button-text-state-label-pressed-v18-1-2);
|
|
997
997
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-state-content-pressed-v18-1-2);
|
|
998
998
|
}
|
|
999
|
-
.magritte-button_style-
|
|
999
|
+
.magritte-button_style-negative___UClE4_5-0-0{
|
|
1000
1000
|
background-color:var(--magritte-color-component-swipe-button-background-negative-v18-1-2);
|
|
1001
1001
|
color:var(--magritte-color-component-swipe-button-text-label-v18-1-2);
|
|
1002
1002
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-content-v18-1-2);
|
|
1003
1003
|
}
|
|
1004
|
-
.magritte-button_style-
|
|
1004
|
+
.magritte-button_style-negative___UClE4_5-0-0:active{
|
|
1005
1005
|
background-color:var(--magritte-color-component-swipe-button-background-state-negative-pressed-v18-1-2);
|
|
1006
1006
|
color:var(--magritte-color-component-swipe-button-text-state-label-pressed-v18-1-2);
|
|
1007
1007
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-state-content-pressed-v18-1-2);
|
|
1008
1008
|
}
|
|
1009
|
-
.magritte-button_style-
|
|
1009
|
+
.magritte-button_style-special___sGvAc_5-0-0{
|
|
1010
1010
|
background-color:var(--magritte-color-component-swipe-button-background-special-v18-1-2);
|
|
1011
1011
|
color:var(--magritte-color-component-swipe-button-text-label-v18-1-2);
|
|
1012
1012
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-content-v18-1-2);
|
|
1013
1013
|
}
|
|
1014
|
-
.magritte-button_style-
|
|
1014
|
+
.magritte-button_style-special___sGvAc_5-0-0:active{
|
|
1015
1015
|
background-color:var(--magritte-color-component-swipe-button-background-state-special-pressed-v18-1-2);
|
|
1016
1016
|
color:var(--magritte-color-component-swipe-button-text-state-label-pressed-v18-1-2);
|
|
1017
1017
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-state-content-pressed-v18-1-2);
|
|
1018
1018
|
}
|
|
1019
|
-
.magritte-button_style-
|
|
1019
|
+
.magritte-button_style-warning___5bEK0_5-0-0{
|
|
1020
1020
|
background-color:var(--magritte-color-component-swipe-button-background-warning-v18-1-2);
|
|
1021
1021
|
color:var(--magritte-color-component-swipe-button-text-label-v18-1-2);
|
|
1022
1022
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-content-v18-1-2);
|
|
1023
1023
|
}
|
|
1024
|
-
.magritte-button_style-
|
|
1024
|
+
.magritte-button_style-warning___5bEK0_5-0-0:active{
|
|
1025
1025
|
background-color:var(--magritte-color-component-swipe-button-background-state-warning-pressed-v18-1-2);
|
|
1026
1026
|
color:var(--magritte-color-component-swipe-button-text-state-label-pressed-v18-1-2);
|
|
1027
1027
|
--magritte-ui-icon-color-override:var(--magritte-color-component-swipe-button-icon-state-content-pressed-v18-1-2);
|
|
1028
1028
|
}
|
|
1029
|
-
.magritte-icon-
|
|
1029
|
+
.magritte-icon-wrapper___0xJZX_5-0-0{
|
|
1030
1030
|
height:24px;
|
|
1031
1031
|
transform:translate3d(0, 0, 0);
|
|
1032
1032
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-swipe",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@hh.ru/magritte-common-use-swipe": "3.0.1",
|
|
24
24
|
"@hh.ru/magritte-design-tokens": "18.1.2",
|
|
25
25
|
"@hh.ru/magritte-ui-breakpoint": "4.0.1",
|
|
26
|
-
"@hh.ru/magritte-ui-icon": "7.1.
|
|
26
|
+
"@hh.ru/magritte-ui-icon": "7.1.6",
|
|
27
27
|
"@hh.ru/magritte-ui-layer": "2.0.3",
|
|
28
28
|
"@hh.ru/magritte-ui-theme-provider": "1.1.22",
|
|
29
29
|
"@hh.ru/magritte-ui-typography": "3.0.9",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "77a359961872f43d688f9507b225fa72ba99a3e8"
|
|
40
40
|
}
|
package/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface SwipeBaseProps {
|
|
|
10
10
|
/** Вызывается при окончании свайпа (даже если кнопки не были раскрыты) */
|
|
11
11
|
onFinish?: VoidFunction;
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
|
|
13
|
+
'data-qa'?: string;
|
|
14
14
|
/** Флаг для воспроизведения демонстрационной анимации для обучения пользователей. Демонстрацию нельзя прервать во время воспроизведения. */
|
|
15
15
|
demo?: boolean;
|
|
16
16
|
/** Режим демонстрации двустороннего свайпа */
|