@alfalab/core-components-pattern-lock 2.5.11 → 2.5.12-snapshot-1393ffa
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.js +4 -3
- package/Component.responsive.js.map +1 -0
- package/components/base-pattern-lock/Component.js +9 -10
- package/components/base-pattern-lock/Component.js.map +1 -0
- package/components/base-pattern-lock/index.css +10 -31
- package/components/base-pattern-lock/index.js +3 -2
- package/components/base-pattern-lock/index.js.map +1 -0
- package/components/base-pattern-lock/index.module.css.js +8 -0
- package/components/base-pattern-lock/index.module.css.js.map +1 -0
- package/consts.js +1 -0
- package/consts.js.map +1 -0
- package/cssm/Component.responsive.js +6 -5
- package/cssm/Component.responsive.js.map +1 -0
- package/cssm/components/base-pattern-lock/Component.js +3 -2
- package/cssm/components/base-pattern-lock/Component.js.map +1 -0
- package/cssm/components/base-pattern-lock/index.js +3 -2
- package/cssm/components/base-pattern-lock/index.js.map +1 -0
- package/cssm/components/base-pattern-lock/index.module.css +3 -23
- package/cssm/consts.js +1 -0
- package/cssm/consts.js.map +1 -0
- package/cssm/desktop/Component.desktop.js +3 -2
- package/cssm/desktop/Component.desktop.js.map +1 -0
- package/cssm/desktop/desktop.module.css +2 -23
- package/cssm/desktop/index.js +3 -2
- package/cssm/desktop/index.js.map +1 -0
- package/cssm/hooks/use-pattern-lock-cleanup.js +1 -0
- package/cssm/hooks/use-pattern-lock-cleanup.js.map +1 -0
- package/cssm/index.js +1 -0
- package/cssm/index.js.map +1 -0
- package/cssm/mobile/Component.mobile.js +3 -2
- package/cssm/mobile/Component.mobile.js.map +1 -0
- package/cssm/mobile/index.js +3 -2
- package/cssm/mobile/index.js.map +1 -0
- package/cssm/mobile/mobile.module.css +2 -23
- package/cssm/shared/index.js +3 -2
- package/cssm/shared/index.js.map +1 -0
- package/cssm/src/Component.responsive.d.ts +4 -0
- package/cssm/src/components/base-pattern-lock/Component.d.ts +4 -0
- package/cssm/src/components/base-pattern-lock/index.d.ts +1 -0
- package/cssm/src/consts.d.ts +10 -0
- package/cssm/src/desktop/Component.desktop.d.ts +4 -0
- package/cssm/src/desktop/index.d.ts +2 -0
- package/cssm/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
- package/cssm/src/index.d.ts +3 -0
- package/cssm/src/mobile/Component.mobile.d.ts +4 -0
- package/cssm/src/mobile/index.d.ts +2 -0
- package/cssm/src/shared/index.d.ts +2 -0
- package/cssm/{typings.d.ts → src/typings.d.ts} +6 -6
- package/cssm/src/utils.d.ts +13 -0
- package/cssm/typings.js +1 -0
- package/cssm/typings.js.map +1 -0
- package/cssm/utils.js +3 -2
- package/cssm/utils.js.map +1 -0
- package/desktop/Component.desktop.js +4 -5
- package/desktop/Component.desktop.js.map +1 -0
- package/desktop/desktop.css +5 -27
- package/desktop/desktop.module.css.js +8 -0
- package/desktop/desktop.module.css.js.map +1 -0
- package/desktop/index.js +3 -2
- package/desktop/index.js.map +1 -0
- package/esm/Component.responsive.js +1 -0
- package/esm/Component.responsive.js.map +1 -0
- package/esm/components/base-pattern-lock/Component.js +3 -4
- package/esm/components/base-pattern-lock/Component.js.map +1 -0
- package/esm/components/base-pattern-lock/index.css +10 -31
- package/esm/components/base-pattern-lock/index.js +1 -0
- package/esm/components/base-pattern-lock/index.js.map +1 -0
- package/esm/components/base-pattern-lock/index.module.css.js +6 -0
- package/esm/components/base-pattern-lock/index.module.css.js.map +1 -0
- package/esm/consts.js +1 -0
- package/esm/consts.js.map +1 -0
- package/esm/desktop/Component.desktop.js +2 -3
- package/esm/desktop/Component.desktop.js.map +1 -0
- package/esm/desktop/desktop.css +5 -27
- package/esm/desktop/desktop.module.css.js +6 -0
- package/esm/desktop/desktop.module.css.js.map +1 -0
- package/esm/desktop/index.js +1 -0
- package/esm/desktop/index.js.map +1 -0
- package/esm/hooks/use-pattern-lock-cleanup.js +1 -0
- package/esm/hooks/use-pattern-lock-cleanup.js.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/mobile/Component.mobile.js +2 -3
- package/esm/mobile/Component.mobile.js.map +1 -0
- package/esm/mobile/index.js +1 -0
- package/esm/mobile/index.js.map +1 -0
- package/esm/mobile/mobile.css +4 -26
- package/esm/mobile/mobile.module.css.js +6 -0
- package/esm/mobile/mobile.module.css.js.map +1 -0
- package/esm/shared/index.js +1 -0
- package/esm/shared/index.js.map +1 -0
- package/esm/src/Component.responsive.d.ts +4 -0
- package/esm/src/components/base-pattern-lock/Component.d.ts +4 -0
- package/esm/src/components/base-pattern-lock/index.d.ts +1 -0
- package/esm/src/consts.d.ts +10 -0
- package/esm/src/desktop/Component.desktop.d.ts +4 -0
- package/esm/src/desktop/index.d.ts +2 -0
- package/esm/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
- package/esm/src/index.d.ts +3 -0
- package/esm/src/mobile/Component.mobile.d.ts +4 -0
- package/esm/src/mobile/index.d.ts +2 -0
- package/esm/src/shared/index.d.ts +2 -0
- package/esm/{typings.d.ts → src/typings.d.ts} +6 -6
- package/esm/src/utils.d.ts +13 -0
- package/esm/typings.js +1 -0
- package/esm/typings.js.map +1 -0
- package/esm/utils.js +2 -1
- package/esm/utils.js.map +1 -0
- package/hooks/use-pattern-lock-cleanup.js +1 -0
- package/hooks/use-pattern-lock-cleanup.js.map +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -0
- package/mobile/Component.mobile.js +4 -5
- package/mobile/Component.mobile.js.map +1 -0
- package/mobile/index.js +3 -2
- package/mobile/index.js.map +1 -0
- package/mobile/mobile.css +4 -26
- package/mobile/mobile.module.css.js +8 -0
- package/mobile/mobile.module.css.js.map +1 -0
- package/modern/Component.responsive.js +1 -0
- package/modern/Component.responsive.js.map +1 -0
- package/modern/components/base-pattern-lock/Component.js +4 -5
- package/modern/components/base-pattern-lock/Component.js.map +1 -0
- package/modern/components/base-pattern-lock/index.css +10 -31
- package/modern/components/base-pattern-lock/index.js +1 -0
- package/modern/components/base-pattern-lock/index.js.map +1 -0
- package/modern/components/base-pattern-lock/index.module.css.js +6 -0
- package/modern/components/base-pattern-lock/index.module.css.js.map +1 -0
- package/modern/consts.js +1 -0
- package/modern/consts.js.map +1 -0
- package/modern/desktop/Component.desktop.js +2 -3
- package/modern/desktop/Component.desktop.js.map +1 -0
- package/modern/desktop/desktop.css +5 -27
- package/modern/desktop/desktop.module.css.js +6 -0
- package/modern/desktop/desktop.module.css.js.map +1 -0
- package/modern/desktop/index.js +1 -0
- package/modern/desktop/index.js.map +1 -0
- package/modern/hooks/use-pattern-lock-cleanup.js +1 -0
- package/modern/hooks/use-pattern-lock-cleanup.js.map +1 -0
- package/modern/index.js +1 -0
- package/modern/index.js.map +1 -0
- package/modern/mobile/Component.mobile.js +2 -3
- package/modern/mobile/Component.mobile.js.map +1 -0
- package/modern/mobile/index.js +1 -0
- package/modern/mobile/index.js.map +1 -0
- package/modern/mobile/mobile.css +4 -26
- package/modern/mobile/mobile.module.css.js +6 -0
- package/modern/mobile/mobile.module.css.js.map +1 -0
- package/modern/shared/index.js +1 -0
- package/modern/shared/index.js.map +1 -0
- package/modern/src/Component.responsive.d.ts +4 -0
- package/modern/src/components/base-pattern-lock/Component.d.ts +4 -0
- package/modern/src/components/base-pattern-lock/index.d.ts +1 -0
- package/modern/src/consts.d.ts +10 -0
- package/modern/src/desktop/Component.desktop.d.ts +4 -0
- package/modern/src/desktop/index.d.ts +2 -0
- package/modern/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
- package/modern/src/index.d.ts +3 -0
- package/modern/src/mobile/Component.mobile.d.ts +4 -0
- package/modern/src/mobile/index.d.ts +2 -0
- package/modern/src/shared/index.d.ts +2 -0
- package/modern/{typings.d.ts → src/typings.d.ts} +6 -6
- package/modern/src/utils.d.ts +13 -0
- package/modern/typings.js +1 -0
- package/modern/typings.js.map +1 -0
- package/modern/utils.js +2 -1
- package/modern/utils.js.map +1 -0
- package/moderncssm/Component.responsive.js +1 -0
- package/moderncssm/Component.responsive.js.map +1 -0
- package/moderncssm/components/base-pattern-lock/Component.js +3 -2
- package/moderncssm/components/base-pattern-lock/Component.js.map +1 -0
- package/moderncssm/components/base-pattern-lock/index.js +1 -0
- package/moderncssm/components/base-pattern-lock/index.js.map +1 -0
- package/moderncssm/components/base-pattern-lock/index.module.css +0 -1
- package/moderncssm/consts.js +1 -0
- package/moderncssm/consts.js.map +1 -0
- package/moderncssm/desktop/Component.desktop.js +1 -0
- package/moderncssm/desktop/Component.desktop.js.map +1 -0
- package/moderncssm/desktop/desktop.module.css +0 -1
- package/moderncssm/desktop/index.js +1 -0
- package/moderncssm/desktop/index.js.map +1 -0
- package/moderncssm/hooks/use-pattern-lock-cleanup.js +1 -0
- package/moderncssm/hooks/use-pattern-lock-cleanup.js.map +1 -0
- package/moderncssm/index.js +1 -0
- package/moderncssm/index.js.map +1 -0
- package/moderncssm/mobile/Component.mobile.js +1 -0
- package/moderncssm/mobile/Component.mobile.js.map +1 -0
- package/moderncssm/mobile/index.js +1 -0
- package/moderncssm/mobile/index.js.map +1 -0
- package/moderncssm/mobile/mobile.module.css +0 -1
- package/moderncssm/shared/index.js +1 -0
- package/moderncssm/shared/index.js.map +1 -0
- package/moderncssm/src/Component.responsive.d.ts +4 -0
- package/moderncssm/src/components/base-pattern-lock/Component.d.ts +4 -0
- package/moderncssm/src/components/base-pattern-lock/index.d.ts +1 -0
- package/moderncssm/src/consts.d.ts +10 -0
- package/moderncssm/src/desktop/Component.desktop.d.ts +4 -0
- package/moderncssm/src/desktop/index.d.ts +2 -0
- package/moderncssm/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
- package/moderncssm/src/index.d.ts +3 -0
- package/moderncssm/src/mobile/Component.mobile.d.ts +4 -0
- package/moderncssm/src/mobile/index.d.ts +2 -0
- package/moderncssm/src/shared/index.d.ts +2 -0
- package/moderncssm/{typings.d.ts → src/typings.d.ts} +6 -6
- package/moderncssm/src/utils.d.ts +13 -0
- package/moderncssm/typings.js +1 -0
- package/moderncssm/typings.js.map +1 -0
- package/moderncssm/utils.js +2 -1
- package/moderncssm/utils.js.map +1 -0
- package/package.json +6 -6
- package/shared/index.js +3 -2
- package/shared/index.js.map +1 -0
- package/src/Component.responsive.d.ts +4 -0
- package/src/components/base-pattern-lock/Component.d.ts +4 -0
- package/src/components/base-pattern-lock/index.d.ts +1 -0
- package/src/consts.d.ts +10 -0
- package/src/desktop/Component.desktop.d.ts +4 -0
- package/src/desktop/index.d.ts +2 -0
- package/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
- package/src/index.d.ts +3 -0
- package/src/mobile/Component.mobile.d.ts +4 -0
- package/src/mobile/index.d.ts +2 -0
- package/src/shared/index.d.ts +2 -0
- package/src/typings.d.ts +96 -0
- package/src/utils.d.ts +13 -0
- package/typings.js +1 -0
- package/typings.js.map +1 -0
- package/utils.js +1 -0
- package/utils.js.map +1 -0
- package/Component.responsive.d.ts +0 -6
- package/components/base-pattern-lock/Component.d.ts +0 -6
- package/components/base-pattern-lock/index.d.ts +0 -1
- package/consts.d.ts +0 -11
- package/cssm/Component.responsive.d.ts +0 -6
- package/cssm/components/base-pattern-lock/Component.d.ts +0 -6
- package/cssm/components/base-pattern-lock/index.d.ts +0 -1
- package/cssm/consts.d.ts +0 -11
- package/cssm/desktop/Component.desktop.d.ts +0 -6
- package/cssm/desktop/index.d.ts +0 -2
- package/cssm/hooks/use-pattern-lock-cleanup.d.ts +0 -6
- package/cssm/index.d.ts +0 -3
- package/cssm/mobile/Component.mobile.d.ts +0 -6
- package/cssm/mobile/index.d.ts +0 -2
- package/cssm/shared/index.d.ts +0 -2
- package/cssm/utils.d.ts +0 -14
- package/cssm/vars.css +0 -0
- package/desktop/Component.desktop.d.ts +0 -6
- package/desktop/index.d.ts +0 -2
- package/esm/Component.responsive.d.ts +0 -6
- package/esm/components/base-pattern-lock/Component.d.ts +0 -6
- package/esm/components/base-pattern-lock/index.d.ts +0 -1
- package/esm/consts.d.ts +0 -11
- package/esm/desktop/Component.desktop.d.ts +0 -6
- package/esm/desktop/index.d.ts +0 -2
- package/esm/hooks/use-pattern-lock-cleanup.d.ts +0 -6
- package/esm/index.d.ts +0 -3
- package/esm/mobile/Component.mobile.d.ts +0 -6
- package/esm/mobile/index.d.ts +0 -2
- package/esm/shared/index.d.ts +0 -2
- package/esm/utils.d.ts +0 -14
- package/hooks/use-pattern-lock-cleanup.d.ts +0 -6
- package/index.d.ts +0 -3
- package/mobile/Component.mobile.d.ts +0 -6
- package/mobile/index.d.ts +0 -2
- package/modern/Component.responsive.d.ts +0 -6
- package/modern/components/base-pattern-lock/Component.d.ts +0 -6
- package/modern/components/base-pattern-lock/index.d.ts +0 -1
- package/modern/consts.d.ts +0 -11
- package/modern/desktop/Component.desktop.d.ts +0 -6
- package/modern/desktop/index.d.ts +0 -2
- package/modern/hooks/use-pattern-lock-cleanup.d.ts +0 -6
- package/modern/index.d.ts +0 -3
- package/modern/mobile/Component.mobile.d.ts +0 -6
- package/modern/mobile/index.d.ts +0 -2
- package/modern/shared/index.d.ts +0 -2
- package/modern/utils.d.ts +0 -14
- package/moderncssm/Component.responsive.d.ts +0 -6
- package/moderncssm/components/base-pattern-lock/Component.d.ts +0 -6
- package/moderncssm/components/base-pattern-lock/index.d.ts +0 -1
- package/moderncssm/consts.d.ts +0 -11
- package/moderncssm/desktop/Component.desktop.d.ts +0 -6
- package/moderncssm/desktop/index.d.ts +0 -2
- package/moderncssm/hooks/use-pattern-lock-cleanup.d.ts +0 -6
- package/moderncssm/index.d.ts +0 -3
- package/moderncssm/mobile/Component.mobile.d.ts +0 -6
- package/moderncssm/mobile/index.d.ts +0 -2
- package/moderncssm/shared/index.d.ts +0 -2
- package/moderncssm/utils.d.ts +0 -14
- package/moderncssm/vars.css +0 -0
- package/shared/index.d.ts +0 -2
- package/typings.d.ts +0 -96
- package/utils.d.ts +0 -14
package/src/typings.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { ReactPatternLockProps } from '@alfalab/react-canvas-pattern-lock';
|
|
3
|
+
declare type ConditionalProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Показать кнопку "забыли код"
|
|
6
|
+
* @default "Забыли код?"
|
|
7
|
+
*/
|
|
8
|
+
showForgotCodeBtn: true;
|
|
9
|
+
/**
|
|
10
|
+
* Текст кнопки "забыли код"
|
|
11
|
+
* @default "Забыли код?"
|
|
12
|
+
*/
|
|
13
|
+
forgotCodeBtnText?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Коллбэк, вызываемый при клике на кнопку "Забыли код"
|
|
16
|
+
*/
|
|
17
|
+
onForgotBtnClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
18
|
+
} | {
|
|
19
|
+
showForgotCodeBtn?: false;
|
|
20
|
+
onForgotBtnClick?: never;
|
|
21
|
+
forgotCodeBtnText?: never;
|
|
22
|
+
};
|
|
23
|
+
export declare type CommonPatternLockProps = {
|
|
24
|
+
/**
|
|
25
|
+
* Дополнительный класс
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Идентификатор для систем автоматизированного тестирования.
|
|
30
|
+
* Для сообщения используется модификатор -message, ошибки -error,
|
|
31
|
+
* кнопки "забыли код" -forgot-code-btn
|
|
32
|
+
*/
|
|
33
|
+
dataTestId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Следить ли за изменениями значений цветовых токенов
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
observeTokens?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Параметры MutationObserver для наблюдения за изменениями режима(css custom properties)
|
|
41
|
+
*/
|
|
42
|
+
observerParams?: {
|
|
43
|
+
getTarget?: () => Node;
|
|
44
|
+
options?: MutationObserverInit;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Дополнительный класс для message/errorMessage
|
|
48
|
+
*/
|
|
49
|
+
messageClassName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Отключает ввод паттерна
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
} & Omit<ReactPatternLockProps, 'theme' | 'width' | 'height' | 'rows' | 'cols' | 'hover' | 'justifyNodes'> & ConditionalProps;
|
|
56
|
+
export declare type PrivatePatternLockProps = {
|
|
57
|
+
/**
|
|
58
|
+
* Включает ховер-эффект
|
|
59
|
+
*/
|
|
60
|
+
hover?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Стили компонента
|
|
63
|
+
*/
|
|
64
|
+
styles: {
|
|
65
|
+
[key: string]: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare type PatternLockProps = CommonPatternLockProps & {
|
|
69
|
+
/**
|
|
70
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
71
|
+
* @default 1024
|
|
72
|
+
*/
|
|
73
|
+
breakpoint?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Версия, которая будет использоваться при серверном рендеринге
|
|
76
|
+
*/
|
|
77
|
+
client?: 'desktop' | 'mobile';
|
|
78
|
+
/**
|
|
79
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
80
|
+
* @deprecated Используйте client
|
|
81
|
+
*/
|
|
82
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
83
|
+
};
|
|
84
|
+
export declare type ObservableTokens = {
|
|
85
|
+
ACCENT_INITIAL: string;
|
|
86
|
+
ACCENT_SUCCESS: string;
|
|
87
|
+
ACCENT_FAILURE: string;
|
|
88
|
+
RING_BG_INITIAL: string;
|
|
89
|
+
SELECTED_RING_BG_INITIAL: string;
|
|
90
|
+
SELECTED_RING_BG_SUCCESS: string;
|
|
91
|
+
SELECTED_RING_BG_FAILURE: string;
|
|
92
|
+
PRIMARY: string;
|
|
93
|
+
HOVER_INNER: string;
|
|
94
|
+
HOVER_OUTER: string;
|
|
95
|
+
};
|
|
96
|
+
export {};
|
package/src/utils.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Theme, ThemeParams } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
+
export declare function getDefaultObserveTarget(): HTMLHeadElement;
|
|
3
|
+
export declare function getColorByToken(token: string): string;
|
|
4
|
+
export declare const getSizes: () => {
|
|
5
|
+
elementSizes: ThemeParams['dimens'];
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function getTheme(dimens: ThemeParams['dimens']): Theme;
|
|
10
|
+
export declare function getPatternLockTestIds(dataTestId: string): {
|
|
11
|
+
patternLock: string;
|
|
12
|
+
forgotCodeBtn: string;
|
|
13
|
+
};
|
package/typings.js
CHANGED
package/typings.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typings.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/utils.js
CHANGED
package/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../src/utils.ts"],"sourcesContent":["import { getDataTestId } from '@alfalab/core-components-shared';\nimport { Theme, ThemeParams } from '@alfalab/react-canvas-pattern-lock';\n\nimport { OBSERVABLE_TOKENS, THEME_STATE } from './consts';\n\nexport function getDefaultObserveTarget() {\n return document.head;\n}\n\nexport function getColorByToken(token: string) {\n return getComputedStyle(document.documentElement).getPropertyValue(token);\n}\n\nexport const getSizes = (() => {\n const COMMON_SIZES = {\n lineWidth: 6,\n nodeRing: 0,\n nodeCore: 12,\n };\n\n let cachedSize: { elementSizes: ThemeParams['dimens']; width: number; height: number };\n\n return () => {\n if (cachedSize) {\n return cachedSize;\n }\n\n cachedSize = {\n elementSizes: { ...COMMON_SIZES, nodeRadius: 32 },\n width: 240,\n height: 240,\n };\n\n return cachedSize;\n };\n})();\n\nexport function getTheme(dimens: ThemeParams['dimens']): Theme {\n const baseColors = {\n primary: getColorByToken(OBSERVABLE_TOKENS.PRIMARY),\n bg: 'transparent',\n ringBg: getColorByToken(OBSERVABLE_TOKENS.RING_BG_INITIAL),\n hover: {\n inner: getColorByToken(OBSERVABLE_TOKENS.HOVER_INNER),\n outer: getColorByToken(OBSERVABLE_TOKENS.HOVER_OUTER),\n },\n };\n\n return {\n [THEME_STATE.INITIAL]: {\n colors: {\n ...baseColors,\n accent: getColorByToken(OBSERVABLE_TOKENS.ACCENT_INITIAL),\n selectedRingBg: getColorByToken(OBSERVABLE_TOKENS.SELECTED_RING_BG_INITIAL),\n },\n dimens,\n },\n [THEME_STATE.SUCCESS]: {\n colors: {\n ...baseColors,\n accent: getColorByToken(OBSERVABLE_TOKENS.ACCENT_SUCCESS),\n selectedRingBg: getColorByToken(OBSERVABLE_TOKENS.SELECTED_RING_BG_SUCCESS),\n },\n dimens,\n },\n [THEME_STATE.FAILURE]: {\n colors: {\n ...baseColors,\n accent: getColorByToken(OBSERVABLE_TOKENS.ACCENT_FAILURE),\n selectedRingBg: getColorByToken(OBSERVABLE_TOKENS.SELECTED_RING_BG_FAILURE),\n },\n dimens,\n },\n };\n}\n\nexport function getPatternLockTestIds(dataTestId: string) {\n return {\n patternLock: dataTestId,\n forgotCodeBtn: getDataTestId(dataTestId, 'forgot-code-btn'),\n };\n}\n"],"names":["OBSERVABLE_TOKENS","THEME_STATE","__assign","getDataTestId"],"mappings":";;;;;;;;SAKgB,uBAAuB,GAAA;IACnC,OAAO,QAAQ,CAAC,IAAI;AACxB;AAEM,SAAU,eAAe,CAAC,KAAa,EAAA;IACzC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC;AAC7E;AAEO,IAAM,QAAQ,GAAG,CAAC,YAAA;AACrB,IAAA,IAAM,YAAY,GAAG;AACjB,QAAA,SAAS,EAAE,CAAC;AACZ,QAAA,QAAQ,EAAE,CAAC;AACX,QAAA,QAAQ,EAAE,EAAE;KACf;AAED,IAAA,IAAI,UAAkF;IAEtF,OAAO,YAAA;AACH,QAAA,IAAI,UAAU,EAAE;AACZ,YAAA,OAAO,UAAU;AACpB;AAED,QAAA,UAAU,GAAG;AACT,YAAA,YAAY,oCAAO,YAAY,CAAA,EAAA,EAAE,UAAU,EAAE,EAAE,EAAE,CAAA;AACjD,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,MAAM,EAAE,GAAG;SACd;AAED,QAAA,OAAO,UAAU;AACrB,KAAC;AACL,CAAC;AAEK,SAAU,QAAQ,CAAC,MAA6B,EAAA;;AAClD,IAAA,IAAM,UAAU,GAAG;AACf,QAAA,OAAO,EAAE,eAAe,CAACA,wBAAiB,CAAC,OAAO,CAAC;AACnD,QAAA,EAAE,EAAE,aAAa;AACjB,QAAA,MAAM,EAAE,eAAe,CAACA,wBAAiB,CAAC,eAAe,CAAC;AAC1D,QAAA,KAAK,EAAE;AACH,YAAA,KAAK,EAAE,eAAe,CAACA,wBAAiB,CAAC,WAAW,CAAC;AACrD,YAAA,KAAK,EAAE,eAAe,CAACA,wBAAiB,CAAC,WAAW,CAAC;AACxD,SAAA;KACJ;AAED,IAAA,OAAA,EAAA,GAAA,EAAA;QACI,EAAC,CAAAC,kBAAW,CAAC,OAAO,CAAG,GAAA;YACnB,MAAM,EAAAC,cAAA,CAAAA,cAAA,CAAA,EAAA,EACC,UAAU,CACb,EAAA,EAAA,MAAM,EAAE,eAAe,CAACF,wBAAiB,CAAC,cAAc,CAAC,EACzD,cAAc,EAAE,eAAe,CAACA,wBAAiB,CAAC,wBAAwB,CAAC,EAC9E,CAAA;AACD,YAAA,MAAM,EAAA,MAAA;AACT,SAAA;QACD,EAAC,CAAAC,kBAAW,CAAC,OAAO,CAAG,GAAA;YACnB,MAAM,EAAAC,cAAA,CAAAA,cAAA,CAAA,EAAA,EACC,UAAU,CACb,EAAA,EAAA,MAAM,EAAE,eAAe,CAACF,wBAAiB,CAAC,cAAc,CAAC,EACzD,cAAc,EAAE,eAAe,CAACA,wBAAiB,CAAC,wBAAwB,CAAC,EAC9E,CAAA;AACD,YAAA,MAAM,EAAA,MAAA;AACT,SAAA;QACD,EAAC,CAAAC,kBAAW,CAAC,OAAO,CAAG,GAAA;YACnB,MAAM,EAAAC,cAAA,CAAAA,cAAA,CAAA,EAAA,EACC,UAAU,CACb,EAAA,EAAA,MAAM,EAAE,eAAe,CAACF,wBAAiB,CAAC,cAAc,CAAC,EACzD,cAAc,EAAE,eAAe,CAACA,wBAAiB,CAAC,wBAAwB,CAAC,EAC9E,CAAA;AACD,YAAA,MAAM,EAAA,MAAA;AACT,SAAA;AACH,QAAA,EAAA;AACN;AAEM,SAAU,qBAAqB,CAAC,UAAkB,EAAA;IACpD,OAAO;AACH,QAAA,WAAW,EAAE,UAAU;AACvB,QAAA,aAAa,EAAEG,kCAAa,CAAC,UAAU,EAAE,iBAAiB,CAAC;KAC9D;AACL;;;;;;;;"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { PatternLockProps } from "./typings";
|
|
5
|
-
declare const PatternLock: React.ForwardRefExoticComponent<PatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLock };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps, PrivatePatternLockProps } from "../../typings";
|
|
5
|
-
declare const BasePatternLock: React.ForwardRefExoticComponent<(CommonPatternLockProps & PrivatePatternLockProps) & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { BasePatternLock };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Component";
|
package/consts.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactPatternLockProps } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
import { ObservableTokens } from "./typings";
|
|
3
|
-
declare const OBSERVE_OPTIONS: MutationObserverInit;
|
|
4
|
-
declare const DEFAULT_EXTRA_BOUNDS: ReactPatternLockProps['extraBounds'];
|
|
5
|
-
declare const OBSERVABLE_TOKENS: ObservableTokens;
|
|
6
|
-
declare const THEME_STATE: {
|
|
7
|
-
INITIAL: string;
|
|
8
|
-
SUCCESS: string;
|
|
9
|
-
FAILURE: string;
|
|
10
|
-
};
|
|
11
|
-
export { OBSERVE_OPTIONS, DEFAULT_EXTRA_BOUNDS, OBSERVABLE_TOKENS, THEME_STATE };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { PatternLockProps } from "./typings";
|
|
5
|
-
declare const PatternLock: React.ForwardRefExoticComponent<PatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLock };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps, PrivatePatternLockProps } from "../../typings";
|
|
5
|
-
declare const BasePatternLock: React.ForwardRefExoticComponent<(CommonPatternLockProps & PrivatePatternLockProps) & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { BasePatternLock };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Component";
|
package/cssm/consts.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactPatternLockProps } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
import { ObservableTokens } from "./typings";
|
|
3
|
-
declare const OBSERVE_OPTIONS: MutationObserverInit;
|
|
4
|
-
declare const DEFAULT_EXTRA_BOUNDS: ReactPatternLockProps['extraBounds'];
|
|
5
|
-
declare const OBSERVABLE_TOKENS: ObservableTokens;
|
|
6
|
-
declare const THEME_STATE: {
|
|
7
|
-
INITIAL: string;
|
|
8
|
-
SUCCESS: string;
|
|
9
|
-
FAILURE: string;
|
|
10
|
-
};
|
|
11
|
-
export { OBSERVE_OPTIONS, DEFAULT_EXTRA_BOUNDS, OBSERVABLE_TOKENS, THEME_STATE };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockDesktop: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockDesktop };
|
package/cssm/desktop/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
3
|
-
declare const usePatternLockCleanup: (patternLockRef: React.MutableRefObject<TPatternLockInstance | null>) => {
|
|
4
|
-
clear: void;
|
|
5
|
-
};
|
|
6
|
-
export { usePatternLockCleanup };
|
package/cssm/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockMobile: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockMobile };
|
package/cssm/mobile/index.d.ts
DELETED
package/cssm/shared/index.d.ts
DELETED
package/cssm/utils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Theme, ThemeParams } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
declare function getDefaultObserveTarget(): HTMLHeadElement;
|
|
3
|
-
declare function getColorByToken(token: string): string;
|
|
4
|
-
declare const getSizes: () => {
|
|
5
|
-
elementSizes: ThemeParams['dimens'];
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
declare function getTheme(dimens: ThemeParams['dimens']): Theme;
|
|
10
|
-
declare function getPatternLockTestIds(dataTestId: string): {
|
|
11
|
-
patternLock: string;
|
|
12
|
-
forgotCodeBtn: string;
|
|
13
|
-
};
|
|
14
|
-
export { getDefaultObserveTarget, getColorByToken, getSizes, getTheme, getPatternLockTestIds };
|
package/cssm/vars.css
DELETED
|
File without changes
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockDesktop: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockDesktop };
|
package/desktop/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { PatternLockProps } from "./typings";
|
|
5
|
-
declare const PatternLock: React.ForwardRefExoticComponent<PatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLock };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps, PrivatePatternLockProps } from "../../typings";
|
|
5
|
-
declare const BasePatternLock: React.ForwardRefExoticComponent<(CommonPatternLockProps & PrivatePatternLockProps) & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { BasePatternLock };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Component";
|
package/esm/consts.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactPatternLockProps } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
import { ObservableTokens } from "./typings";
|
|
3
|
-
declare const OBSERVE_OPTIONS: MutationObserverInit;
|
|
4
|
-
declare const DEFAULT_EXTRA_BOUNDS: ReactPatternLockProps['extraBounds'];
|
|
5
|
-
declare const OBSERVABLE_TOKENS: ObservableTokens;
|
|
6
|
-
declare const THEME_STATE: {
|
|
7
|
-
INITIAL: string;
|
|
8
|
-
SUCCESS: string;
|
|
9
|
-
FAILURE: string;
|
|
10
|
-
};
|
|
11
|
-
export { OBSERVE_OPTIONS, DEFAULT_EXTRA_BOUNDS, OBSERVABLE_TOKENS, THEME_STATE };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockDesktop: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockDesktop };
|
package/esm/desktop/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
3
|
-
declare const usePatternLockCleanup: (patternLockRef: React.MutableRefObject<TPatternLockInstance | null>) => {
|
|
4
|
-
clear: void;
|
|
5
|
-
};
|
|
6
|
-
export { usePatternLockCleanup };
|
package/esm/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockMobile: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockMobile };
|
package/esm/mobile/index.d.ts
DELETED
package/esm/shared/index.d.ts
DELETED
package/esm/utils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Theme, ThemeParams } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
declare function getDefaultObserveTarget(): HTMLHeadElement;
|
|
3
|
-
declare function getColorByToken(token: string): string;
|
|
4
|
-
declare const getSizes: () => {
|
|
5
|
-
elementSizes: ThemeParams['dimens'];
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
declare function getTheme(dimens: ThemeParams['dimens']): Theme;
|
|
10
|
-
declare function getPatternLockTestIds(dataTestId: string): {
|
|
11
|
-
patternLock: string;
|
|
12
|
-
forgotCodeBtn: string;
|
|
13
|
-
};
|
|
14
|
-
export { getDefaultObserveTarget, getColorByToken, getSizes, getTheme, getPatternLockTestIds };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
3
|
-
declare const usePatternLockCleanup: (patternLockRef: React.MutableRefObject<TPatternLockInstance | null>) => {
|
|
4
|
-
clear: void;
|
|
5
|
-
};
|
|
6
|
-
export { usePatternLockCleanup };
|
package/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockMobile: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockMobile };
|
package/mobile/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { PatternLockProps } from "./typings";
|
|
5
|
-
declare const PatternLock: React.ForwardRefExoticComponent<PatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLock };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps, PrivatePatternLockProps } from "../../typings";
|
|
5
|
-
declare const BasePatternLock: React.ForwardRefExoticComponent<(CommonPatternLockProps & PrivatePatternLockProps) & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { BasePatternLock };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Component";
|
package/modern/consts.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactPatternLockProps } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
import { ObservableTokens } from "./typings";
|
|
3
|
-
declare const OBSERVE_OPTIONS: MutationObserverInit;
|
|
4
|
-
declare const DEFAULT_EXTRA_BOUNDS: ReactPatternLockProps['extraBounds'];
|
|
5
|
-
declare const OBSERVABLE_TOKENS: ObservableTokens;
|
|
6
|
-
declare const THEME_STATE: {
|
|
7
|
-
INITIAL: string;
|
|
8
|
-
SUCCESS: string;
|
|
9
|
-
FAILURE: string;
|
|
10
|
-
};
|
|
11
|
-
export { OBSERVE_OPTIONS, DEFAULT_EXTRA_BOUNDS, OBSERVABLE_TOKENS, THEME_STATE };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockDesktop: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
3
|
-
declare const usePatternLockCleanup: (patternLockRef: React.MutableRefObject<TPatternLockInstance | null>) => {
|
|
4
|
-
clear: void;
|
|
5
|
-
};
|
|
6
|
-
export { usePatternLockCleanup };
|
package/modern/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockMobile: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockMobile };
|
package/modern/mobile/index.d.ts
DELETED
package/modern/shared/index.d.ts
DELETED
package/modern/utils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Theme, ThemeParams } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
declare function getDefaultObserveTarget(): HTMLHeadElement;
|
|
3
|
-
declare function getColorByToken(token: string): string;
|
|
4
|
-
declare const getSizes: () => {
|
|
5
|
-
elementSizes: ThemeParams['dimens'];
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
declare function getTheme(dimens: ThemeParams['dimens']): Theme;
|
|
10
|
-
declare function getPatternLockTestIds(dataTestId: string): {
|
|
11
|
-
patternLock: string;
|
|
12
|
-
forgotCodeBtn: string;
|
|
13
|
-
};
|
|
14
|
-
export { getDefaultObserveTarget, getColorByToken, getSizes, getTheme, getPatternLockTestIds };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { PatternLockProps } from "./typings";
|
|
5
|
-
declare const PatternLock: React.ForwardRefExoticComponent<PatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLock };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps, PrivatePatternLockProps } from "../../typings";
|
|
5
|
-
declare const BasePatternLock: React.ForwardRefExoticComponent<(CommonPatternLockProps & PrivatePatternLockProps) & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { BasePatternLock };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Component";
|
package/moderncssm/consts.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactPatternLockProps } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
import { ObservableTokens } from "./typings";
|
|
3
|
-
declare const OBSERVE_OPTIONS: MutationObserverInit;
|
|
4
|
-
declare const DEFAULT_EXTRA_BOUNDS: ReactPatternLockProps['extraBounds'];
|
|
5
|
-
declare const OBSERVABLE_TOKENS: ObservableTokens;
|
|
6
|
-
declare const THEME_STATE: {
|
|
7
|
-
INITIAL: string;
|
|
8
|
-
SUCCESS: string;
|
|
9
|
-
FAILURE: string;
|
|
10
|
-
};
|
|
11
|
-
export { OBSERVE_OPTIONS, DEFAULT_EXTRA_BOUNDS, OBSERVABLE_TOKENS, THEME_STATE };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockDesktop: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
3
|
-
declare const usePatternLockCleanup: (patternLockRef: React.MutableRefObject<TPatternLockInstance | null>) => {
|
|
4
|
-
clear: void;
|
|
5
|
-
};
|
|
6
|
-
export { usePatternLockCleanup };
|
package/moderncssm/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TPatternLockInstance } from '@alfalab/react-canvas-pattern-lock';
|
|
4
|
-
import { CommonPatternLockProps } from "../typings";
|
|
5
|
-
declare const PatternLockMobile: React.ForwardRefExoticComponent<CommonPatternLockProps & React.RefAttributes<TPatternLockInstance>>;
|
|
6
|
-
export { PatternLockMobile };
|
package/moderncssm/utils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Theme, ThemeParams } from '@alfalab/react-canvas-pattern-lock';
|
|
2
|
-
declare function getDefaultObserveTarget(): HTMLHeadElement;
|
|
3
|
-
declare function getColorByToken(token: string): string;
|
|
4
|
-
declare const getSizes: () => {
|
|
5
|
-
elementSizes: ThemeParams['dimens'];
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
declare function getTheme(dimens: ThemeParams['dimens']): Theme;
|
|
10
|
-
declare function getPatternLockTestIds(dataTestId: string): {
|
|
11
|
-
patternLock: string;
|
|
12
|
-
forgotCodeBtn: string;
|
|
13
|
-
};
|
|
14
|
-
export { getDefaultObserveTarget, getColorByToken, getSizes, getTheme, getPatternLockTestIds };
|
package/moderncssm/vars.css
DELETED
|
File without changes
|
package/shared/index.d.ts
DELETED