@alfalab/core-components-confirmation 13.8.2 → 13.9.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/component.responsive.d.ts +5 -0
- package/component.responsive.js +2 -3
- package/components/base-confirmation/component.js +4 -4
- package/components/base-confirmation/index.css +2 -2
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -2
- package/components/header/component.js +1 -1
- package/components/header/index.css +4 -4
- package/components/screens/fatal-error/component.js +3 -3
- package/components/screens/fatal-error/index.css +7 -7
- package/components/screens/hint/component.js +7 -5
- package/components/screens/hint/index.css +13 -13
- package/components/screens/initial/component.js +1 -1
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +19 -19
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +8 -8
- package/context.js +1 -0
- package/{countdown-section-b633717a.js → countdown-section-d7a44cd1.js} +4 -4
- package/cssm/component.responsive.d.ts +5 -0
- package/cssm/component.responsive.js +2 -3
- package/cssm/components/base-confirmation/component.js +3 -3
- package/cssm/components/screens/fatal-error/component.js +2 -2
- package/cssm/components/screens/hint/component.js +6 -4
- package/cssm/components/screens/initial/countdown-section.js +3 -3
- package/cssm/context.js +1 -0
- package/cssm/types.d.ts +11 -27
- package/cssm/types.js +2 -0
- package/cssm/utils.d.ts +5 -1
- package/cssm/utils.js +8 -0
- package/esm/component.responsive.d.ts +5 -0
- package/esm/component.responsive.js +3 -4
- package/esm/components/base-confirmation/component.js +4 -4
- package/esm/components/base-confirmation/index.css +2 -2
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/screens/fatal-error/component.js +3 -3
- package/esm/components/screens/fatal-error/index.css +7 -7
- package/esm/components/screens/hint/component.js +7 -5
- package/esm/components/screens/hint/index.css +13 -13
- package/esm/components/screens/initial/component.js +1 -1
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +19 -19
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +8 -8
- package/esm/context.js +1 -0
- package/esm/{countdown-section-88d8eded.js → countdown-section-25714e1f.js} +4 -4
- package/esm/mobile/component.mobile.js +1 -1
- package/esm/mobile/mobile.css +2 -2
- package/esm/types.d.ts +11 -27
- package/esm/types.js +2 -0
- package/esm/utils.d.ts +5 -1
- package/esm/utils.js +8 -1
- package/mobile/component.mobile.js +1 -1
- package/mobile/mobile.css +2 -2
- package/modern/component.responsive.d.ts +5 -0
- package/modern/component.responsive.js +3 -4
- package/modern/components/base-confirmation/component.js +3 -3
- package/modern/components/base-confirmation/index.css +2 -2
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -2
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +4 -4
- package/modern/components/screens/fatal-error/component.js +3 -3
- package/modern/components/screens/fatal-error/index.css +7 -7
- package/modern/components/screens/hint/component.js +7 -5
- package/modern/components/screens/hint/index.css +13 -13
- package/modern/components/screens/initial/component.js +1 -1
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +19 -19
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +8 -8
- package/modern/context.js +1 -0
- package/modern/{countdown-section-9cd2a918.js → countdown-section-cdcdc727.js} +4 -4
- package/modern/mobile/component.mobile.js +1 -1
- package/modern/mobile/mobile.css +2 -2
- package/modern/types.d.ts +11 -27
- package/modern/types.js +2 -0
- package/modern/utils.d.ts +5 -1
- package/modern/utils.js +8 -1
- package/moderncssm/component.responsive.d.ts +5 -0
- package/moderncssm/component.responsive.js +3 -4
- package/moderncssm/components/base-confirmation/component.js +2 -2
- package/moderncssm/components/screens/fatal-error/component.js +2 -2
- package/moderncssm/components/screens/hint/component.js +6 -4
- package/moderncssm/components/screens/initial/countdown-section.js +3 -3
- package/moderncssm/context.js +1 -0
- package/moderncssm/types.d.ts +11 -27
- package/moderncssm/types.js +2 -0
- package/moderncssm/utils.d.ts +5 -1
- package/moderncssm/utils.js +8 -1
- package/package.json +5 -5
- package/src/component.responsive.tsx +11 -5
- package/src/components/base-confirmation/component.tsx +3 -2
- package/src/components/screens/fatal-error/component.tsx +2 -1
- package/src/components/screens/hint/component.tsx +10 -6
- package/src/components/screens/initial/countdown-section.tsx +4 -2
- package/src/context.ts +1 -0
- package/src/types.ts +15 -11
- package/src/utils.ts +9 -0
- package/types.d.ts +11 -27
- package/types.js +2 -0
- package/utils.d.ts +5 -1
- package/utils.js +8 -0
- /package/{countdown-section-b633717a.d.ts → countdown-section-d7a44cd1.d.ts} +0 -0
- /package/esm/{countdown-section-88d8eded.d.ts → countdown-section-25714e1f.d.ts} +0 -0
- /package/modern/{countdown-section-9cd2a918.d.ts → countdown-section-cdcdc727.d.ts} +0 -0
package/types.js
CHANGED
|
@@ -18,6 +18,8 @@ var defaultTexts = {
|
|
|
18
18
|
tempBlockDescription: 'Повторное подтверждение кодом будет возможно через 24\xa0часа',
|
|
19
19
|
codeSended: 'Код выслан',
|
|
20
20
|
countdown: 'Запросить повторно можно через',
|
|
21
|
+
domesticPhone: '8 800 200 00 00',
|
|
22
|
+
internationalPhone: '+7 495 78 888 78',
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
exports.defaultTexts = defaultTexts;
|
package/utils.d.ts
CHANGED
|
@@ -27,4 +27,8 @@ declare const useConfirmation: ({ state, screen, blockSmsRetry }?: UseConfirmati
|
|
|
27
27
|
setConfirmationScreen: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
28
28
|
setConfirmationBlockSmsRetry: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @returns ссылку для набора номера
|
|
32
|
+
*/
|
|
33
|
+
declare function getPhoneHref(phone: string): string;
|
|
34
|
+
export { formatMsAsMinutes, useCountdown, ONE_DAY, ONE_MINUTE, useConfirmation, getPhoneHref };
|
package/utils.js
CHANGED
|
@@ -74,9 +74,17 @@ var useConfirmation = function (_a) {
|
|
|
74
74
|
setConfirmationBlockSmsRetry: setConfirmationBlockSmsRetry,
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
var NON_NUMBER_OR_PLUS_REGEXP = new RegExp(/[^\d+]/g);
|
|
78
|
+
/**
|
|
79
|
+
* @returns ссылку для набора номера
|
|
80
|
+
*/
|
|
81
|
+
function getPhoneHref(phone) {
|
|
82
|
+
return "tel:".concat(phone.replace(NON_NUMBER_OR_PLUS_REGEXP, ''));
|
|
83
|
+
}
|
|
77
84
|
|
|
78
85
|
exports.ONE_DAY = ONE_DAY;
|
|
79
86
|
exports.ONE_MINUTE = ONE_MINUTE;
|
|
80
87
|
exports.formatMsAsMinutes = formatMsAsMinutes;
|
|
88
|
+
exports.getPhoneHref = getPhoneHref;
|
|
81
89
|
exports.useConfirmation = useConfirmation;
|
|
82
90
|
exports.useCountdown = useCountdown;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|