@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.
Files changed (292) hide show
  1. package/Component.responsive.js +4 -3
  2. package/Component.responsive.js.map +1 -0
  3. package/components/base-pattern-lock/Component.js +9 -10
  4. package/components/base-pattern-lock/Component.js.map +1 -0
  5. package/components/base-pattern-lock/index.css +10 -31
  6. package/components/base-pattern-lock/index.js +3 -2
  7. package/components/base-pattern-lock/index.js.map +1 -0
  8. package/components/base-pattern-lock/index.module.css.js +8 -0
  9. package/components/base-pattern-lock/index.module.css.js.map +1 -0
  10. package/consts.js +1 -0
  11. package/consts.js.map +1 -0
  12. package/cssm/Component.responsive.js +6 -5
  13. package/cssm/Component.responsive.js.map +1 -0
  14. package/cssm/components/base-pattern-lock/Component.js +3 -2
  15. package/cssm/components/base-pattern-lock/Component.js.map +1 -0
  16. package/cssm/components/base-pattern-lock/index.js +3 -2
  17. package/cssm/components/base-pattern-lock/index.js.map +1 -0
  18. package/cssm/components/base-pattern-lock/index.module.css +3 -23
  19. package/cssm/consts.js +1 -0
  20. package/cssm/consts.js.map +1 -0
  21. package/cssm/desktop/Component.desktop.js +3 -2
  22. package/cssm/desktop/Component.desktop.js.map +1 -0
  23. package/cssm/desktop/desktop.module.css +2 -23
  24. package/cssm/desktop/index.js +3 -2
  25. package/cssm/desktop/index.js.map +1 -0
  26. package/cssm/hooks/use-pattern-lock-cleanup.js +1 -0
  27. package/cssm/hooks/use-pattern-lock-cleanup.js.map +1 -0
  28. package/cssm/index.js +1 -0
  29. package/cssm/index.js.map +1 -0
  30. package/cssm/mobile/Component.mobile.js +3 -2
  31. package/cssm/mobile/Component.mobile.js.map +1 -0
  32. package/cssm/mobile/index.js +3 -2
  33. package/cssm/mobile/index.js.map +1 -0
  34. package/cssm/mobile/mobile.module.css +2 -23
  35. package/cssm/shared/index.js +3 -2
  36. package/cssm/shared/index.js.map +1 -0
  37. package/cssm/src/Component.responsive.d.ts +4 -0
  38. package/cssm/src/components/base-pattern-lock/Component.d.ts +4 -0
  39. package/cssm/src/components/base-pattern-lock/index.d.ts +1 -0
  40. package/cssm/src/consts.d.ts +10 -0
  41. package/cssm/src/desktop/Component.desktop.d.ts +4 -0
  42. package/cssm/src/desktop/index.d.ts +2 -0
  43. package/cssm/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
  44. package/cssm/src/index.d.ts +3 -0
  45. package/cssm/src/mobile/Component.mobile.d.ts +4 -0
  46. package/cssm/src/mobile/index.d.ts +2 -0
  47. package/cssm/src/shared/index.d.ts +2 -0
  48. package/cssm/{typings.d.ts → src/typings.d.ts} +6 -6
  49. package/cssm/src/utils.d.ts +13 -0
  50. package/cssm/typings.js +1 -0
  51. package/cssm/typings.js.map +1 -0
  52. package/cssm/utils.js +3 -2
  53. package/cssm/utils.js.map +1 -0
  54. package/desktop/Component.desktop.js +4 -5
  55. package/desktop/Component.desktop.js.map +1 -0
  56. package/desktop/desktop.css +5 -27
  57. package/desktop/desktop.module.css.js +8 -0
  58. package/desktop/desktop.module.css.js.map +1 -0
  59. package/desktop/index.js +3 -2
  60. package/desktop/index.js.map +1 -0
  61. package/esm/Component.responsive.js +1 -0
  62. package/esm/Component.responsive.js.map +1 -0
  63. package/esm/components/base-pattern-lock/Component.js +3 -4
  64. package/esm/components/base-pattern-lock/Component.js.map +1 -0
  65. package/esm/components/base-pattern-lock/index.css +10 -31
  66. package/esm/components/base-pattern-lock/index.js +1 -0
  67. package/esm/components/base-pattern-lock/index.js.map +1 -0
  68. package/esm/components/base-pattern-lock/index.module.css.js +6 -0
  69. package/esm/components/base-pattern-lock/index.module.css.js.map +1 -0
  70. package/esm/consts.js +1 -0
  71. package/esm/consts.js.map +1 -0
  72. package/esm/desktop/Component.desktop.js +2 -3
  73. package/esm/desktop/Component.desktop.js.map +1 -0
  74. package/esm/desktop/desktop.css +5 -27
  75. package/esm/desktop/desktop.module.css.js +6 -0
  76. package/esm/desktop/desktop.module.css.js.map +1 -0
  77. package/esm/desktop/index.js +1 -0
  78. package/esm/desktop/index.js.map +1 -0
  79. package/esm/hooks/use-pattern-lock-cleanup.js +1 -0
  80. package/esm/hooks/use-pattern-lock-cleanup.js.map +1 -0
  81. package/esm/index.js +1 -0
  82. package/esm/index.js.map +1 -0
  83. package/esm/mobile/Component.mobile.js +2 -3
  84. package/esm/mobile/Component.mobile.js.map +1 -0
  85. package/esm/mobile/index.js +1 -0
  86. package/esm/mobile/index.js.map +1 -0
  87. package/esm/mobile/mobile.css +4 -26
  88. package/esm/mobile/mobile.module.css.js +6 -0
  89. package/esm/mobile/mobile.module.css.js.map +1 -0
  90. package/esm/shared/index.js +1 -0
  91. package/esm/shared/index.js.map +1 -0
  92. package/esm/src/Component.responsive.d.ts +4 -0
  93. package/esm/src/components/base-pattern-lock/Component.d.ts +4 -0
  94. package/esm/src/components/base-pattern-lock/index.d.ts +1 -0
  95. package/esm/src/consts.d.ts +10 -0
  96. package/esm/src/desktop/Component.desktop.d.ts +4 -0
  97. package/esm/src/desktop/index.d.ts +2 -0
  98. package/esm/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
  99. package/esm/src/index.d.ts +3 -0
  100. package/esm/src/mobile/Component.mobile.d.ts +4 -0
  101. package/esm/src/mobile/index.d.ts +2 -0
  102. package/esm/src/shared/index.d.ts +2 -0
  103. package/esm/{typings.d.ts → src/typings.d.ts} +6 -6
  104. package/esm/src/utils.d.ts +13 -0
  105. package/esm/typings.js +1 -0
  106. package/esm/typings.js.map +1 -0
  107. package/esm/utils.js +2 -1
  108. package/esm/utils.js.map +1 -0
  109. package/hooks/use-pattern-lock-cleanup.js +1 -0
  110. package/hooks/use-pattern-lock-cleanup.js.map +1 -0
  111. package/index.js +1 -0
  112. package/index.js.map +1 -0
  113. package/mobile/Component.mobile.js +4 -5
  114. package/mobile/Component.mobile.js.map +1 -0
  115. package/mobile/index.js +3 -2
  116. package/mobile/index.js.map +1 -0
  117. package/mobile/mobile.css +4 -26
  118. package/mobile/mobile.module.css.js +8 -0
  119. package/mobile/mobile.module.css.js.map +1 -0
  120. package/modern/Component.responsive.js +1 -0
  121. package/modern/Component.responsive.js.map +1 -0
  122. package/modern/components/base-pattern-lock/Component.js +4 -5
  123. package/modern/components/base-pattern-lock/Component.js.map +1 -0
  124. package/modern/components/base-pattern-lock/index.css +10 -31
  125. package/modern/components/base-pattern-lock/index.js +1 -0
  126. package/modern/components/base-pattern-lock/index.js.map +1 -0
  127. package/modern/components/base-pattern-lock/index.module.css.js +6 -0
  128. package/modern/components/base-pattern-lock/index.module.css.js.map +1 -0
  129. package/modern/consts.js +1 -0
  130. package/modern/consts.js.map +1 -0
  131. package/modern/desktop/Component.desktop.js +2 -3
  132. package/modern/desktop/Component.desktop.js.map +1 -0
  133. package/modern/desktop/desktop.css +5 -27
  134. package/modern/desktop/desktop.module.css.js +6 -0
  135. package/modern/desktop/desktop.module.css.js.map +1 -0
  136. package/modern/desktop/index.js +1 -0
  137. package/modern/desktop/index.js.map +1 -0
  138. package/modern/hooks/use-pattern-lock-cleanup.js +1 -0
  139. package/modern/hooks/use-pattern-lock-cleanup.js.map +1 -0
  140. package/modern/index.js +1 -0
  141. package/modern/index.js.map +1 -0
  142. package/modern/mobile/Component.mobile.js +2 -3
  143. package/modern/mobile/Component.mobile.js.map +1 -0
  144. package/modern/mobile/index.js +1 -0
  145. package/modern/mobile/index.js.map +1 -0
  146. package/modern/mobile/mobile.css +4 -26
  147. package/modern/mobile/mobile.module.css.js +6 -0
  148. package/modern/mobile/mobile.module.css.js.map +1 -0
  149. package/modern/shared/index.js +1 -0
  150. package/modern/shared/index.js.map +1 -0
  151. package/modern/src/Component.responsive.d.ts +4 -0
  152. package/modern/src/components/base-pattern-lock/Component.d.ts +4 -0
  153. package/modern/src/components/base-pattern-lock/index.d.ts +1 -0
  154. package/modern/src/consts.d.ts +10 -0
  155. package/modern/src/desktop/Component.desktop.d.ts +4 -0
  156. package/modern/src/desktop/index.d.ts +2 -0
  157. package/modern/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
  158. package/modern/src/index.d.ts +3 -0
  159. package/modern/src/mobile/Component.mobile.d.ts +4 -0
  160. package/modern/src/mobile/index.d.ts +2 -0
  161. package/modern/src/shared/index.d.ts +2 -0
  162. package/modern/{typings.d.ts → src/typings.d.ts} +6 -6
  163. package/modern/src/utils.d.ts +13 -0
  164. package/modern/typings.js +1 -0
  165. package/modern/typings.js.map +1 -0
  166. package/modern/utils.js +2 -1
  167. package/modern/utils.js.map +1 -0
  168. package/moderncssm/Component.responsive.js +1 -0
  169. package/moderncssm/Component.responsive.js.map +1 -0
  170. package/moderncssm/components/base-pattern-lock/Component.js +3 -2
  171. package/moderncssm/components/base-pattern-lock/Component.js.map +1 -0
  172. package/moderncssm/components/base-pattern-lock/index.js +1 -0
  173. package/moderncssm/components/base-pattern-lock/index.js.map +1 -0
  174. package/moderncssm/components/base-pattern-lock/index.module.css +0 -1
  175. package/moderncssm/consts.js +1 -0
  176. package/moderncssm/consts.js.map +1 -0
  177. package/moderncssm/desktop/Component.desktop.js +1 -0
  178. package/moderncssm/desktop/Component.desktop.js.map +1 -0
  179. package/moderncssm/desktop/desktop.module.css +0 -1
  180. package/moderncssm/desktop/index.js +1 -0
  181. package/moderncssm/desktop/index.js.map +1 -0
  182. package/moderncssm/hooks/use-pattern-lock-cleanup.js +1 -0
  183. package/moderncssm/hooks/use-pattern-lock-cleanup.js.map +1 -0
  184. package/moderncssm/index.js +1 -0
  185. package/moderncssm/index.js.map +1 -0
  186. package/moderncssm/mobile/Component.mobile.js +1 -0
  187. package/moderncssm/mobile/Component.mobile.js.map +1 -0
  188. package/moderncssm/mobile/index.js +1 -0
  189. package/moderncssm/mobile/index.js.map +1 -0
  190. package/moderncssm/mobile/mobile.module.css +0 -1
  191. package/moderncssm/shared/index.js +1 -0
  192. package/moderncssm/shared/index.js.map +1 -0
  193. package/moderncssm/src/Component.responsive.d.ts +4 -0
  194. package/moderncssm/src/components/base-pattern-lock/Component.d.ts +4 -0
  195. package/moderncssm/src/components/base-pattern-lock/index.d.ts +1 -0
  196. package/moderncssm/src/consts.d.ts +10 -0
  197. package/moderncssm/src/desktop/Component.desktop.d.ts +4 -0
  198. package/moderncssm/src/desktop/index.d.ts +2 -0
  199. package/moderncssm/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
  200. package/moderncssm/src/index.d.ts +3 -0
  201. package/moderncssm/src/mobile/Component.mobile.d.ts +4 -0
  202. package/moderncssm/src/mobile/index.d.ts +2 -0
  203. package/moderncssm/src/shared/index.d.ts +2 -0
  204. package/moderncssm/{typings.d.ts → src/typings.d.ts} +6 -6
  205. package/moderncssm/src/utils.d.ts +13 -0
  206. package/moderncssm/typings.js +1 -0
  207. package/moderncssm/typings.js.map +1 -0
  208. package/moderncssm/utils.js +2 -1
  209. package/moderncssm/utils.js.map +1 -0
  210. package/package.json +6 -6
  211. package/shared/index.js +3 -2
  212. package/shared/index.js.map +1 -0
  213. package/src/Component.responsive.d.ts +4 -0
  214. package/src/components/base-pattern-lock/Component.d.ts +4 -0
  215. package/src/components/base-pattern-lock/index.d.ts +1 -0
  216. package/src/consts.d.ts +10 -0
  217. package/src/desktop/Component.desktop.d.ts +4 -0
  218. package/src/desktop/index.d.ts +2 -0
  219. package/src/hooks/use-pattern-lock-cleanup.d.ts +4 -0
  220. package/src/index.d.ts +3 -0
  221. package/src/mobile/Component.mobile.d.ts +4 -0
  222. package/src/mobile/index.d.ts +2 -0
  223. package/src/shared/index.d.ts +2 -0
  224. package/src/typings.d.ts +96 -0
  225. package/src/utils.d.ts +13 -0
  226. package/typings.js +1 -0
  227. package/typings.js.map +1 -0
  228. package/utils.js +1 -0
  229. package/utils.js.map +1 -0
  230. package/Component.responsive.d.ts +0 -6
  231. package/components/base-pattern-lock/Component.d.ts +0 -6
  232. package/components/base-pattern-lock/index.d.ts +0 -1
  233. package/consts.d.ts +0 -11
  234. package/cssm/Component.responsive.d.ts +0 -6
  235. package/cssm/components/base-pattern-lock/Component.d.ts +0 -6
  236. package/cssm/components/base-pattern-lock/index.d.ts +0 -1
  237. package/cssm/consts.d.ts +0 -11
  238. package/cssm/desktop/Component.desktop.d.ts +0 -6
  239. package/cssm/desktop/index.d.ts +0 -2
  240. package/cssm/hooks/use-pattern-lock-cleanup.d.ts +0 -6
  241. package/cssm/index.d.ts +0 -3
  242. package/cssm/mobile/Component.mobile.d.ts +0 -6
  243. package/cssm/mobile/index.d.ts +0 -2
  244. package/cssm/shared/index.d.ts +0 -2
  245. package/cssm/utils.d.ts +0 -14
  246. package/cssm/vars.css +0 -0
  247. package/desktop/Component.desktop.d.ts +0 -6
  248. package/desktop/index.d.ts +0 -2
  249. package/esm/Component.responsive.d.ts +0 -6
  250. package/esm/components/base-pattern-lock/Component.d.ts +0 -6
  251. package/esm/components/base-pattern-lock/index.d.ts +0 -1
  252. package/esm/consts.d.ts +0 -11
  253. package/esm/desktop/Component.desktop.d.ts +0 -6
  254. package/esm/desktop/index.d.ts +0 -2
  255. package/esm/hooks/use-pattern-lock-cleanup.d.ts +0 -6
  256. package/esm/index.d.ts +0 -3
  257. package/esm/mobile/Component.mobile.d.ts +0 -6
  258. package/esm/mobile/index.d.ts +0 -2
  259. package/esm/shared/index.d.ts +0 -2
  260. package/esm/utils.d.ts +0 -14
  261. package/hooks/use-pattern-lock-cleanup.d.ts +0 -6
  262. package/index.d.ts +0 -3
  263. package/mobile/Component.mobile.d.ts +0 -6
  264. package/mobile/index.d.ts +0 -2
  265. package/modern/Component.responsive.d.ts +0 -6
  266. package/modern/components/base-pattern-lock/Component.d.ts +0 -6
  267. package/modern/components/base-pattern-lock/index.d.ts +0 -1
  268. package/modern/consts.d.ts +0 -11
  269. package/modern/desktop/Component.desktop.d.ts +0 -6
  270. package/modern/desktop/index.d.ts +0 -2
  271. package/modern/hooks/use-pattern-lock-cleanup.d.ts +0 -6
  272. package/modern/index.d.ts +0 -3
  273. package/modern/mobile/Component.mobile.d.ts +0 -6
  274. package/modern/mobile/index.d.ts +0 -2
  275. package/modern/shared/index.d.ts +0 -2
  276. package/modern/utils.d.ts +0 -14
  277. package/moderncssm/Component.responsive.d.ts +0 -6
  278. package/moderncssm/components/base-pattern-lock/Component.d.ts +0 -6
  279. package/moderncssm/components/base-pattern-lock/index.d.ts +0 -1
  280. package/moderncssm/consts.d.ts +0 -11
  281. package/moderncssm/desktop/Component.desktop.d.ts +0 -6
  282. package/moderncssm/desktop/index.d.ts +0 -2
  283. package/moderncssm/hooks/use-pattern-lock-cleanup.d.ts +0 -6
  284. package/moderncssm/index.d.ts +0 -3
  285. package/moderncssm/mobile/Component.mobile.d.ts +0 -6
  286. package/moderncssm/mobile/index.d.ts +0 -2
  287. package/moderncssm/shared/index.d.ts +0 -2
  288. package/moderncssm/utils.d.ts +0 -14
  289. package/moderncssm/vars.css +0 -0
  290. package/shared/index.d.ts +0 -2
  291. package/typings.d.ts +0 -96
  292. package/utils.d.ts +0 -14
@@ -0,0 +1,2 @@
1
+ export { PatternLockMobile } from './Component.mobile';
2
+ export type { CommonPatternLockProps as PatternLockMobileProps } from '../typings';
@@ -0,0 +1,2 @@
1
+ export { getPatternLockTestIds } from '../utils';
2
+ export { usePatternLockCleanup } from '../hooks/use-pattern-lock-cleanup';
@@ -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
@@ -1,2 +1,3 @@
1
1
  'use strict';
2
2
 
3
+ //# sourceMappingURL=typings.js.map
package/typings.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typings.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/utils.js CHANGED
@@ -69,3 +69,4 @@ exports.getDefaultObserveTarget = getDefaultObserveTarget;
69
69
  exports.getPatternLockTestIds = getPatternLockTestIds;
70
70
  exports.getSizes = getSizes;
71
71
  exports.getTheme = getTheme;
72
+ //# sourceMappingURL=utils.js.map
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 };
@@ -1,2 +0,0 @@
1
- export { PatternLockDesktop } from "./Component.desktop";
2
- export type { CommonPatternLockProps as PatternLockDesktopProps } from "../typings";
@@ -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,3 +0,0 @@
1
- export type { PatternLockProps } from "./typings";
2
- export * from "./Component.responsive";
3
- export { THEME_STATE } from "./consts";
@@ -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 };
@@ -1,2 +0,0 @@
1
- export { PatternLockMobile } from "./Component.mobile";
2
- export type { CommonPatternLockProps as PatternLockMobileProps } from "../typings";
@@ -1,2 +0,0 @@
1
- export { getPatternLockTestIds } from "../utils";
2
- export { usePatternLockCleanup } from "../hooks/use-pattern-lock-cleanup";
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 };
@@ -1,2 +0,0 @@
1
- export { PatternLockDesktop } from "./Component.desktop";
2
- export type { CommonPatternLockProps as PatternLockDesktopProps } from "../typings";
@@ -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 };
@@ -1,2 +0,0 @@
1
- export { PatternLockDesktop } from "./Component.desktop";
2
- export type { CommonPatternLockProps as PatternLockDesktopProps } from "../typings";
@@ -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,3 +0,0 @@
1
- export type { PatternLockProps } from "./typings";
2
- export * from "./Component.responsive";
3
- export { THEME_STATE } from "./consts";
@@ -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 };
@@ -1,2 +0,0 @@
1
- export { PatternLockMobile } from "./Component.mobile";
2
- export type { CommonPatternLockProps as PatternLockMobileProps } from "../typings";
@@ -1,2 +0,0 @@
1
- export { getPatternLockTestIds } from "../utils";
2
- export { usePatternLockCleanup } from "../hooks/use-pattern-lock-cleanup";
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,3 +0,0 @@
1
- export type { PatternLockProps } from "./typings";
2
- export * from "./Component.responsive";
3
- export { THEME_STATE } from "./consts";
@@ -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,2 +0,0 @@
1
- export { PatternLockMobile } from "./Component.mobile";
2
- export type { CommonPatternLockProps as PatternLockMobileProps } from "../typings";
@@ -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";
@@ -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,2 +0,0 @@
1
- export { PatternLockDesktop } from "./Component.desktop";
2
- export type { CommonPatternLockProps as PatternLockDesktopProps } from "../typings";
@@ -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,3 +0,0 @@
1
- export type { PatternLockProps } from "./typings";
2
- export * from "./Component.responsive";
3
- export { THEME_STATE } from "./consts";
@@ -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 };
@@ -1,2 +0,0 @@
1
- export { PatternLockMobile } from "./Component.mobile";
2
- export type { CommonPatternLockProps as PatternLockMobileProps } from "../typings";
@@ -1,2 +0,0 @@
1
- export { getPatternLockTestIds } from "../utils";
2
- export { usePatternLockCleanup } from "../hooks/use-pattern-lock-cleanup";
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";
@@ -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,2 +0,0 @@
1
- export { PatternLockDesktop } from "./Component.desktop";
2
- export type { CommonPatternLockProps as PatternLockDesktopProps } from "../typings";
@@ -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 };
@@ -1,3 +0,0 @@
1
- export type { PatternLockProps } from "./typings";
2
- export * from "./Component.responsive";
3
- export { THEME_STATE } from "./consts";
@@ -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 };
@@ -1,2 +0,0 @@
1
- export { PatternLockMobile } from "./Component.mobile";
2
- export type { CommonPatternLockProps as PatternLockMobileProps } from "../typings";
@@ -1,2 +0,0 @@
1
- export { getPatternLockTestIds } from "../utils";
2
- export { usePatternLockCleanup } from "../hooks/use-pattern-lock-cleanup";
@@ -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 };
File without changes
package/shared/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { getPatternLockTestIds } from "../utils";
2
- export { usePatternLockCleanup } from "../hooks/use-pattern-lock-cleanup";