@alfalab/core-components-confirmation 13.1.8 → 13.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/component.desktop.js +1 -1
  2. package/component.mobile.js +2 -2
  3. package/component.responsive.js +1 -1
  4. package/components/base-confirmation/component.js +2 -2
  5. package/components/base-confirmation/index.css +3 -3
  6. package/components/base-confirmation/index.js +1 -1
  7. package/components/countdown-loader/component.js +1 -1
  8. package/components/countdown-loader/index.css +3 -3
  9. package/components/header/component.js +1 -1
  10. package/components/header/index.css +4 -4
  11. package/components/index.js +1 -1
  12. package/components/screens/fatal-error/component.js +1 -1
  13. package/components/screens/fatal-error/index.css +6 -6
  14. package/components/screens/hint/component.js +1 -1
  15. package/components/screens/hint/index.css +12 -12
  16. package/components/screens/index.js +1 -1
  17. package/components/screens/initial/component.js +1 -1
  18. package/components/screens/initial/countdown-section.js +1 -1
  19. package/components/screens/initial/index.css +18 -18
  20. package/components/screens/initial/index.js +1 -1
  21. package/components/screens/temp-block/component.js +1 -1
  22. package/components/screens/temp-block/index.css +7 -7
  23. package/{countdown-section-c990ef67.js → countdown-section-366a6558.js} +1 -1
  24. package/cssm/components/base-confirmation/index.module.css +1 -1
  25. package/cssm/components/countdown-loader/index.module.css +1 -1
  26. package/cssm/components/screens/initial/index.module.css +1 -1
  27. package/cssm/desktop/index.d.ts +2 -0
  28. package/cssm/desktop/index.js +40 -0
  29. package/cssm/mobile/index.d.ts +2 -0
  30. package/cssm/mobile/index.js +41 -0
  31. package/cssm/shared/index.d.ts +4 -0
  32. package/cssm/{shared.js → shared/index.js} +16 -16
  33. package/desktop/index.d.ts +2 -0
  34. package/{desktop.js → desktop/index.js} +12 -12
  35. package/desktop/package.json +3 -0
  36. package/esm/component.desktop.js +1 -1
  37. package/esm/component.mobile.js +2 -2
  38. package/esm/component.responsive.js +1 -1
  39. package/esm/components/base-confirmation/component.js +2 -2
  40. package/esm/components/base-confirmation/index.css +3 -3
  41. package/esm/components/base-confirmation/index.js +1 -1
  42. package/esm/components/countdown-loader/component.js +1 -1
  43. package/esm/components/countdown-loader/index.css +3 -3
  44. package/esm/components/header/component.js +1 -1
  45. package/esm/components/header/index.css +4 -4
  46. package/esm/components/index.js +1 -1
  47. package/esm/components/screens/fatal-error/component.js +1 -1
  48. package/esm/components/screens/fatal-error/index.css +6 -6
  49. package/esm/components/screens/hint/component.js +1 -1
  50. package/esm/components/screens/hint/index.css +12 -12
  51. package/esm/components/screens/index.js +1 -1
  52. package/esm/components/screens/initial/component.js +1 -1
  53. package/esm/components/screens/initial/countdown-section.js +1 -1
  54. package/esm/components/screens/initial/index.css +18 -18
  55. package/esm/components/screens/initial/index.js +1 -1
  56. package/esm/components/screens/temp-block/component.js +1 -1
  57. package/esm/components/screens/temp-block/index.css +7 -7
  58. package/esm/{countdown-section-98d4a5c5.js → countdown-section-a52bd3ee.js} +1 -1
  59. package/esm/desktop/index.d.ts +2 -0
  60. package/esm/desktop/index.js +23 -0
  61. package/esm/index.js +1 -1
  62. package/esm/mobile/index.d.ts +2 -0
  63. package/esm/mobile/index.js +23 -0
  64. package/esm/mobile.css +2 -2
  65. package/esm/shared/index.d.ts +4 -0
  66. package/esm/shared/index.js +20 -0
  67. package/index.js +1 -1
  68. package/mobile/index.d.ts +2 -0
  69. package/{mobile.js → mobile/index.js} +12 -12
  70. package/mobile/package.json +3 -0
  71. package/mobile.css +2 -2
  72. package/modern/component.desktop.js +1 -1
  73. package/modern/component.mobile.js +2 -2
  74. package/modern/component.responsive.js +1 -1
  75. package/modern/components/base-confirmation/component.js +2 -2
  76. package/modern/components/base-confirmation/index.css +3 -3
  77. package/modern/components/base-confirmation/index.js +1 -1
  78. package/modern/components/countdown-loader/component.js +1 -1
  79. package/modern/components/countdown-loader/index.css +3 -3
  80. package/modern/components/header/component.js +1 -1
  81. package/modern/components/header/index.css +4 -4
  82. package/modern/components/index.js +1 -1
  83. package/modern/components/screens/fatal-error/component.js +1 -1
  84. package/modern/components/screens/fatal-error/index.css +6 -6
  85. package/modern/components/screens/hint/component.js +1 -1
  86. package/modern/components/screens/hint/index.css +12 -12
  87. package/modern/components/screens/index.js +1 -1
  88. package/modern/components/screens/initial/component.js +1 -1
  89. package/modern/components/screens/initial/countdown-section.js +1 -1
  90. package/modern/components/screens/initial/index.css +18 -18
  91. package/modern/components/screens/initial/index.js +1 -1
  92. package/modern/components/screens/temp-block/component.js +1 -1
  93. package/modern/components/screens/temp-block/index.css +7 -7
  94. package/modern/{countdown-section-110aace9.js → countdown-section-da2679e3.js} +1 -1
  95. package/modern/desktop/index.d.ts +2 -0
  96. package/modern/desktop/index.js +22 -0
  97. package/modern/index.js +1 -1
  98. package/modern/mobile/index.d.ts +2 -0
  99. package/modern/mobile/index.js +22 -0
  100. package/modern/mobile.css +2 -2
  101. package/modern/shared/index.d.ts +4 -0
  102. package/modern/shared/index.js +20 -0
  103. package/package.json +5 -29
  104. package/shared/index.d.ts +4 -0
  105. package/{shared.js → shared/index.js} +10 -10
  106. package/shared/package.json +3 -0
  107. package/src/desktop/index.ts +3 -0
  108. package/src/desktop/package.json +3 -0
  109. package/src/mobile/index.ts +3 -0
  110. package/src/mobile/package.json +3 -0
  111. package/src/shared/index.ts +4 -0
  112. package/src/shared/package.json +3 -0
  113. package/Component-89f0cb07.d.ts +0 -62
  114. package/cssm/Component-89f0cb07.d.ts +0 -62
  115. package/cssm/desktop.d.ts +0 -2
  116. package/cssm/desktop.js +0 -40
  117. package/cssm/mobile.d.ts +0 -2
  118. package/cssm/mobile.js +0 -41
  119. package/cssm/shared.d.ts +0 -4
  120. package/cssm/typings-89f0cb07.d.ts +0 -93
  121. package/desktop.d.ts +0 -2
  122. package/esm/Component-89f0cb07.d.ts +0 -62
  123. package/esm/desktop.d.ts +0 -2
  124. package/esm/desktop.js +0 -23
  125. package/esm/mobile.d.ts +0 -2
  126. package/esm/mobile.js +0 -23
  127. package/esm/shared.d.ts +0 -4
  128. package/esm/shared.js +0 -20
  129. package/esm/typings-89f0cb07.d.ts +0 -93
  130. package/mobile.d.ts +0 -2
  131. package/modern/Component-89f0cb07.d.ts +0 -62
  132. package/modern/desktop.d.ts +0 -2
  133. package/modern/desktop.js +0 -22
  134. package/modern/mobile.d.ts +0 -2
  135. package/modern/mobile.js +0 -22
  136. package/modern/shared.d.ts +0 -4
  137. package/modern/shared.js +0 -20
  138. package/modern/typings-89f0cb07.d.ts +0 -93
  139. package/shared.d.ts +0 -4
  140. package/src/desktop.ts +0 -3
  141. package/src/mobile.ts +0 -3
  142. package/src/shared.ts +0 -4
  143. package/typings-89f0cb07.d.ts +0 -93
  144. /package/{countdown-section-c990ef67.d.ts → countdown-section-366a6558.d.ts} +0 -0
  145. /package/esm/{countdown-section-98d4a5c5.d.ts → countdown-section-a52bd3ee.d.ts} +0 -0
  146. /package/modern/{countdown-section-110aace9.d.ts → countdown-section-da2679e3.d.ts} +0 -0
@@ -0,0 +1,22 @@
1
+ export { ConfirmationDesktop } from '../component.desktop.js';
2
+ export { useConfirmation, useCountdown } from '../utils.js';
3
+ import 'react';
4
+ import '../components/base-confirmation/component.js';
5
+ import 'classnames';
6
+ import '@alfalab/hooks';
7
+ import '../context.js';
8
+ import '../types.js';
9
+ import '../components/screens/initial/component.js';
10
+ import '@alfalab/core-components-button/modern/mobile';
11
+ import '@alfalab/core-components-code-input/modern/desktop';
12
+ import '@alfalab/core-components-code-input/modern/mobile';
13
+ import '@alfalab/core-components-link/modern';
14
+ import '@alfalab/core-components-typography/modern';
15
+ import '../components/header/component.js';
16
+ import '../countdown-section-da2679e3.js';
17
+ import '@alfalab/core-components-button/modern';
18
+ import '@alfalab/core-components-spinner/modern';
19
+ import '../components/screens/hint/component.js';
20
+ import '../components/screens/fatal-error/component.js';
21
+ import '../components/screens/temp-block/component.js';
22
+ import '../components/countdown-loader/component.js';
package/modern/index.js CHANGED
@@ -15,7 +15,7 @@ import '@alfalab/core-components-code-input/modern/mobile';
15
15
  import '@alfalab/core-components-link/modern';
16
16
  import '@alfalab/core-components-typography/modern';
17
17
  import './components/header/component.js';
18
- import './countdown-section-110aace9.js';
18
+ import './countdown-section-da2679e3.js';
19
19
  import '@alfalab/core-components-button/modern';
20
20
  import '@alfalab/core-components-spinner/modern';
21
21
  import './components/screens/hint/component.js';
@@ -0,0 +1,2 @@
1
+ export * from "../component.mobile";
2
+ export { useConfirmation, useCountdown } from "../utils";
@@ -0,0 +1,22 @@
1
+ export { ConfirmationMobile } from '../component.mobile.js';
2
+ export { useConfirmation, useCountdown } from '../utils.js';
3
+ import 'react';
4
+ import 'classnames';
5
+ import '../components/base-confirmation/component.js';
6
+ import '@alfalab/hooks';
7
+ import '../context.js';
8
+ import '../types.js';
9
+ import '../components/screens/initial/component.js';
10
+ import '@alfalab/core-components-button/modern/mobile';
11
+ import '@alfalab/core-components-code-input/modern/desktop';
12
+ import '@alfalab/core-components-code-input/modern/mobile';
13
+ import '@alfalab/core-components-link/modern';
14
+ import '@alfalab/core-components-typography/modern';
15
+ import '../components/header/component.js';
16
+ import '../countdown-section-da2679e3.js';
17
+ import '@alfalab/core-components-button/modern';
18
+ import '@alfalab/core-components-spinner/modern';
19
+ import '../components/screens/hint/component.js';
20
+ import '../components/screens/fatal-error/component.js';
21
+ import '../components/screens/temp-block/component.js';
22
+ import '../components/countdown-loader/component.js';
package/modern/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1yf93 */
2
- .confirmation__container_1y0ph {
1
+ /* hash: sdvzw */
2
+ .confirmation__container_11qh4 {
3
3
  max-width: 288px;
4
4
  }
@@ -0,0 +1,4 @@
1
+ export * from "../components/index";
2
+ export * from "../context";
3
+ export * from "../types";
4
+ export { formatMsAsMinutes, ONE_MINUTE, ONE_DAY } from "../utils";
@@ -0,0 +1,20 @@
1
+ export { Initial } from '../components/screens/initial/component.js';
2
+ export { Hint } from '../components/screens/hint/component.js';
3
+ export { FatalError } from '../components/screens/fatal-error/component.js';
4
+ export { TempBlock } from '../components/screens/temp-block/component.js';
5
+ export { CountdownLoader } from '../components/countdown-loader/component.js';
6
+ export { ConfirmationContext } from '../context.js';
7
+ export { defaultTexts } from '../types.js';
8
+ export { ONE_DAY, ONE_MINUTE, formatMsAsMinutes } from '../utils.js';
9
+ import 'react';
10
+ import 'classnames';
11
+ import '@alfalab/core-components-button/modern/mobile';
12
+ import '@alfalab/core-components-code-input/modern/desktop';
13
+ import '@alfalab/core-components-code-input/modern/mobile';
14
+ import '@alfalab/core-components-link/modern';
15
+ import '@alfalab/core-components-typography/modern';
16
+ import '@alfalab/hooks';
17
+ import '../components/header/component.js';
18
+ import '../countdown-section-da2679e3.js';
19
+ import '@alfalab/core-components-button/modern';
20
+ import '@alfalab/core-components-spinner/modern';
package/package.json CHANGED
@@ -1,45 +1,21 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-confirmation",
3
- "version": "13.1.8",
3
+ "version": "13.2.1",
4
4
  "description": "Sms confirmation component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "main": "index.js",
8
8
  "module": "./esm/index.js",
9
- "exports": {
10
- ".": {
11
- "import": "./esm/index.js",
12
- "require": "./index.js"
13
- },
14
- "./mobile": {
15
- "import": "./esm/mobile.js",
16
- "require": "./mobile.js"
17
- },
18
- "./desktop": {
19
- "import": "./esm/desktop.js",
20
- "require": "./desktop.js"
21
- },
22
- "./shared": {
23
- "import": "./esm/shared.js",
24
- "require": "./shared.js"
25
- },
26
- "./esm": "./esm/index.js",
27
- "./cssm": "./cssm/index.js",
28
- "./modern": "./modern/index.js",
29
- "./esm/*": "./esm/*",
30
- "./cssm/*": "./cssm/*",
31
- "./modern/*": "./modern/*"
32
- },
33
9
  "publishConfig": {
34
10
  "access": "public",
35
11
  "directory": "dist"
36
12
  },
37
13
  "dependencies": {
38
- "@alfalab/core-components-button": "^9.0.6",
39
- "@alfalab/core-components-code-input": "^3.0.1",
14
+ "@alfalab/core-components-button": "^10.0.0",
15
+ "@alfalab/core-components-code-input": "^3.1.0",
40
16
  "@alfalab/core-components-link": "^5.1.1",
41
- "@alfalab/core-components-spinner": "^3.1.0",
42
- "@alfalab/core-components-typography": "^4.1.0",
17
+ "@alfalab/core-components-spinner": "^3.2.0",
18
+ "@alfalab/core-components-typography": "^4.2.0",
43
19
  "@alfalab/core-components-mq": "^4.2.0",
44
20
  "@alfalab/hooks": "^1.13.0",
45
21
  "classnames": "^2.3.1",
@@ -0,0 +1,4 @@
1
+ export * from "../components/index";
2
+ export * from "../context";
3
+ export * from "../types";
4
+ export { formatMsAsMinutes, ONE_MINUTE, ONE_DAY } from "../utils";
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_screens_initial_component = require('./components/screens/initial/component.js');
6
- var components_screens_hint_component = require('./components/screens/hint/component.js');
7
- var components_screens_fatalError_component = require('./components/screens/fatal-error/component.js');
8
- var components_screens_tempBlock_component = require('./components/screens/temp-block/component.js');
9
- var components_countdownLoader_component = require('./components/countdown-loader/component.js');
10
- var context = require('./context.js');
11
- var types = require('./types.js');
12
- var utils = require('./utils.js');
5
+ var components_screens_initial_component = require('../components/screens/initial/component.js');
6
+ var components_screens_hint_component = require('../components/screens/hint/component.js');
7
+ var components_screens_fatalError_component = require('../components/screens/fatal-error/component.js');
8
+ var components_screens_tempBlock_component = require('../components/screens/temp-block/component.js');
9
+ var components_countdownLoader_component = require('../components/countdown-loader/component.js');
10
+ var context = require('../context.js');
11
+ var types = require('../types.js');
12
+ var utils = require('../utils.js');
13
13
  require('react');
14
14
  require('classnames');
15
15
  require('@alfalab/core-components-button/mobile');
@@ -18,8 +18,8 @@ require('@alfalab/core-components-code-input/mobile');
18
18
  require('@alfalab/core-components-link');
19
19
  require('@alfalab/core-components-typography');
20
20
  require('@alfalab/hooks');
21
- require('./components/header/component.js');
22
- require('./countdown-section-c990ef67.js');
21
+ require('../components/header/component.js');
22
+ require('../countdown-section-366a6558.js');
23
23
  require('@alfalab/core-components-button');
24
24
  require('@alfalab/core-components-spinner');
25
25
 
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/shared/index.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ export * from '../component.desktop';
2
+
3
+ export { useConfirmation, useCountdown } from '../utils';
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/desktop/index.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ export * from '../component.mobile';
2
+
3
+ export { useConfirmation, useCountdown } from '../utils';
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/mobile/index.js"
3
+ }
@@ -0,0 +1,4 @@
1
+ export * from '../components';
2
+ export * from '../context';
3
+ export * from '../types';
4
+ export { formatMsAsMinutes, ONE_MINUTE, ONE_DAY } from '../utils';
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/shared/index.js"
3
+ }
@@ -1,62 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- /* eslint-disable no-plusplus, no-param-reassign */
4
- import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
5
- import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
6
- declare const isClient: () => boolean;
7
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
8
- type PaddingType = number | string | {
9
- top?: number;
10
- right?: number;
11
- bottom?: number;
12
- left?: number;
13
- };
14
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
15
- declare function easeInOutQuad(x: number): number;
16
- declare const easingFns: {
17
- easeInOutQuad: typeof easeInOutQuad;
18
- };
19
- /**
20
- * Возвращает true, если значение равно null или undefined
21
- */
22
- declare function isNil(value: unknown): boolean;
23
- /**
24
- * Выбор значения между min max границами
25
- */
26
- declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
27
- declare function noop(): void;
28
- declare const fnUtils: {
29
- clamp: typeof clamp;
30
- noop: typeof noop;
31
- isNil: typeof isNil;
32
- };
33
- /**
34
- * Запрещает каретке становиться за указанные границы
35
- */
36
- declare function caretGuard(guard: (value: string, selection: readonly [
37
- from: number,
38
- to: number
39
- ]) => [
40
- from: number,
41
- to: number
42
- ]): MaskitoPlugin;
43
- /**
44
- * Запрещает удалять указанный префикс
45
- */
46
- declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
47
- /**
48
- * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
49
- */
50
- declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
51
- declare const maskUtils: {
52
- insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
53
- prefixPostprocessor: typeof prefixPostprocessor;
54
- caretGuard: typeof caretGuard;
55
- };
56
- /**
57
- * Минимальное время отображения лоадера - 500мс,
58
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
59
- */
60
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
61
- declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
62
- export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -1,62 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- /* eslint-disable no-plusplus, no-param-reassign */
4
- import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
5
- import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
6
- declare const isClient: () => boolean;
7
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
8
- type PaddingType = number | string | {
9
- top?: number;
10
- right?: number;
11
- bottom?: number;
12
- left?: number;
13
- };
14
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
15
- declare function easeInOutQuad(x: number): number;
16
- declare const easingFns: {
17
- easeInOutQuad: typeof easeInOutQuad;
18
- };
19
- /**
20
- * Возвращает true, если значение равно null или undefined
21
- */
22
- declare function isNil(value: unknown): boolean;
23
- /**
24
- * Выбор значения между min max границами
25
- */
26
- declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
27
- declare function noop(): void;
28
- declare const fnUtils: {
29
- clamp: typeof clamp;
30
- noop: typeof noop;
31
- isNil: typeof isNil;
32
- };
33
- /**
34
- * Запрещает каретке становиться за указанные границы
35
- */
36
- declare function caretGuard(guard: (value: string, selection: readonly [
37
- from: number,
38
- to: number
39
- ]) => [
40
- from: number,
41
- to: number
42
- ]): MaskitoPlugin;
43
- /**
44
- * Запрещает удалять указанный префикс
45
- */
46
- declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
47
- /**
48
- * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
49
- */
50
- declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
51
- declare const maskUtils: {
52
- insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
53
- prefixPostprocessor: typeof prefixPostprocessor;
54
- caretGuard: typeof caretGuard;
55
- };
56
- /**
57
- * Минимальное время отображения лоадера - 500мс,
58
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
59
- */
60
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
61
- declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
62
- export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
package/cssm/desktop.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./component.desktop";
2
- export { useConfirmation, useCountdown } from "./utils";
package/cssm/desktop.js DELETED
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var component_desktop = require('./component.desktop.js');
6
- var utils = require('./utils.js');
7
- require('tslib');
8
- require('react');
9
- require('./components/base-confirmation/component.js');
10
- require('classnames');
11
- require('@alfalab/hooks');
12
- require('./context.js');
13
- require('./types.js');
14
- require('./components/screens/initial/component.js');
15
- require('@alfalab/core-components-button/cssm/mobile');
16
- require('@alfalab/core-components-code-input/cssm/desktop');
17
- require('@alfalab/core-components-code-input/cssm/mobile');
18
- require('@alfalab/core-components-link/cssm');
19
- require('@alfalab/core-components-typography/cssm');
20
- require('./components/header/component.js');
21
- require('./components/header/index.module.css');
22
- require('./components/screens/initial/countdown-section.js');
23
- require('@alfalab/core-components-button/cssm');
24
- require('@alfalab/core-components-spinner/cssm');
25
- require('./components/screens/initial/index.module.css');
26
- require('./components/screens/hint/component.js');
27
- require('./components/screens/hint/index.module.css');
28
- require('./components/screens/fatal-error/component.js');
29
- require('./components/screens/fatal-error/index.module.css');
30
- require('./components/screens/temp-block/component.js');
31
- require('./components/countdown-loader/component.js');
32
- require('./components/countdown-loader/index.module.css');
33
- require('./components/screens/temp-block/index.module.css');
34
- require('./components/base-confirmation/index.module.css');
35
-
36
-
37
-
38
- exports.ConfirmationDesktop = component_desktop.ConfirmationDesktop;
39
- exports.useConfirmation = utils.useConfirmation;
40
- exports.useCountdown = utils.useCountdown;
package/cssm/mobile.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./component.mobile";
2
- export { useConfirmation, useCountdown } from "./utils";
package/cssm/mobile.js DELETED
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var component_mobile = require('./component.mobile.js');
6
- var utils = require('./utils.js');
7
- require('tslib');
8
- require('react');
9
- require('classnames');
10
- require('./components/base-confirmation/component.js');
11
- require('@alfalab/hooks');
12
- require('./context.js');
13
- require('./types.js');
14
- require('./components/screens/initial/component.js');
15
- require('@alfalab/core-components-button/cssm/mobile');
16
- require('@alfalab/core-components-code-input/cssm/desktop');
17
- require('@alfalab/core-components-code-input/cssm/mobile');
18
- require('@alfalab/core-components-link/cssm');
19
- require('@alfalab/core-components-typography/cssm');
20
- require('./components/header/component.js');
21
- require('./components/header/index.module.css');
22
- require('./components/screens/initial/countdown-section.js');
23
- require('@alfalab/core-components-button/cssm');
24
- require('@alfalab/core-components-spinner/cssm');
25
- require('./components/screens/initial/index.module.css');
26
- require('./components/screens/hint/component.js');
27
- require('./components/screens/hint/index.module.css');
28
- require('./components/screens/fatal-error/component.js');
29
- require('./components/screens/fatal-error/index.module.css');
30
- require('./components/screens/temp-block/component.js');
31
- require('./components/countdown-loader/component.js');
32
- require('./components/countdown-loader/index.module.css');
33
- require('./components/screens/temp-block/index.module.css');
34
- require('./components/base-confirmation/index.module.css');
35
- require('./mobile.module.css');
36
-
37
-
38
-
39
- exports.ConfirmationMobile = component_mobile.ConfirmationMobile;
40
- exports.useConfirmation = utils.useConfirmation;
41
- exports.useCountdown = utils.useCountdown;
package/cssm/shared.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./components/index";
2
- export * from "./context";
3
- export * from "./types";
4
- export { formatMsAsMinutes, ONE_MINUTE, ONE_DAY } from "./utils";
@@ -1,93 +0,0 @@
1
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactNode } from 'react';
2
- type StyleColors = {
3
- default: {
4
- [key: string]: string;
5
- };
6
- inverted: {
7
- [key: string]: string;
8
- };
9
- };
10
- type ComponentProps = {
11
- /**
12
- * Тип кнопки
13
- * @default secondary
14
- */
15
- view?: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost';
16
- /**
17
- * Слот слева
18
- */
19
- leftAddons?: ReactNode;
20
- /**
21
- * Слот справа
22
- */
23
- rightAddons?: ReactNode;
24
- /**
25
- * Размер компонента
26
- * @default m
27
- */
28
- size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
29
- /**
30
- * Растягивает компонент на ширину контейнера
31
- * @default false
32
- */
33
- block?: boolean;
34
- /**
35
- * Дополнительный класс
36
- */
37
- className?: string;
38
- /**
39
- * Дополнительный класс для спиннера
40
- */
41
- spinnerClassName?: string;
42
- /**
43
- * Выводит ссылку в виде кнопки
44
- */
45
- href?: string;
46
- /**
47
- * Позволяет использовать кастомный компонент для кнопки (например Link из роутера)
48
- */
49
- Component?: ElementType;
50
- /**
51
- * Идентификатор для систем автоматизированного тестирования
52
- */
53
- dataTestId?: string;
54
- /**
55
- * Показать лоадер
56
- * @default false
57
- */
58
- loading?: boolean;
59
- /**
60
- * Не переносить текст кнопки на новую строку
61
- * @default false
62
- */
63
- nowrap?: boolean;
64
- /**
65
- * Набор цветов для компонента
66
- */
67
- colors?: 'default' | 'inverted';
68
- /**
69
- * Дочерние элементы.
70
- */
71
- children?: ReactNode;
72
- };
73
- type PrivateButtonProps = {
74
- /**
75
- * Основные стили компонента.
76
- */
77
- styles: {
78
- [key: string]: string;
79
- };
80
- /**
81
- * Стили компонента для default и inverted режима.
82
- */
83
- colorStylesMap: StyleColors;
84
- };
85
- type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
86
- type ButtonProps = CommonButtonProps & {
87
- /**
88
- * Контрольная точка, с нее начинается desktop версия
89
- * @default 1024
90
- */
91
- breakpoint?: number;
92
- };
93
- export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
package/desktop.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./component.desktop";
2
- export { useConfirmation, useCountdown } from "./utils";
@@ -1,62 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- /* eslint-disable no-plusplus, no-param-reassign */
4
- import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
5
- import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
6
- declare const isClient: () => boolean;
7
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
8
- type PaddingType = number | string | {
9
- top?: number;
10
- right?: number;
11
- bottom?: number;
12
- left?: number;
13
- };
14
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
15
- declare function easeInOutQuad(x: number): number;
16
- declare const easingFns: {
17
- easeInOutQuad: typeof easeInOutQuad;
18
- };
19
- /**
20
- * Возвращает true, если значение равно null или undefined
21
- */
22
- declare function isNil(value: unknown): boolean;
23
- /**
24
- * Выбор значения между min max границами
25
- */
26
- declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
27
- declare function noop(): void;
28
- declare const fnUtils: {
29
- clamp: typeof clamp;
30
- noop: typeof noop;
31
- isNil: typeof isNil;
32
- };
33
- /**
34
- * Запрещает каретке становиться за указанные границы
35
- */
36
- declare function caretGuard(guard: (value: string, selection: readonly [
37
- from: number,
38
- to: number
39
- ]) => [
40
- from: number,
41
- to: number
42
- ]): MaskitoPlugin;
43
- /**
44
- * Запрещает удалять указанный префикс
45
- */
46
- declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
47
- /**
48
- * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
49
- */
50
- declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
51
- declare const maskUtils: {
52
- insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
53
- prefixPostprocessor: typeof prefixPostprocessor;
54
- caretGuard: typeof caretGuard;
55
- };
56
- /**
57
- * Минимальное время отображения лоадера - 500мс,
58
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
59
- */
60
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
61
- declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
62
- export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
package/esm/desktop.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./component.desktop";
2
- export { useConfirmation, useCountdown } from "./utils";
package/esm/desktop.js DELETED
@@ -1,23 +0,0 @@
1
- export { ConfirmationDesktop } from './component.desktop.js';
2
- export { useConfirmation, useCountdown } from './utils.js';
3
- import 'tslib';
4
- import 'react';
5
- import './components/base-confirmation/component.js';
6
- import 'classnames';
7
- import '@alfalab/hooks';
8
- import './context.js';
9
- import './types.js';
10
- import './components/screens/initial/component.js';
11
- import '@alfalab/core-components-button/esm/mobile';
12
- import '@alfalab/core-components-code-input/esm/desktop';
13
- import '@alfalab/core-components-code-input/esm/mobile';
14
- import '@alfalab/core-components-link/esm';
15
- import '@alfalab/core-components-typography/esm';
16
- import './components/header/component.js';
17
- import './countdown-section-98d4a5c5.js';
18
- import '@alfalab/core-components-button/esm';
19
- import '@alfalab/core-components-spinner/esm';
20
- import './components/screens/hint/component.js';
21
- import './components/screens/fatal-error/component.js';
22
- import './components/screens/temp-block/component.js';
23
- import './components/countdown-loader/component.js';
package/esm/mobile.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./component.mobile";
2
- export { useConfirmation, useCountdown } from "./utils";