@redneckz/wildless-cms-uni-blocks 0.14.904 → 0.14.905
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/bundle/bundle.umd.js +88 -85
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/dist/components/ApplicationForm/ApplicationForm.js +3 -2
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/retail/utils/latinFieldsUtils.js +74 -77
- package/dist/retail/utils/latinFieldsUtils.js.map +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +3 -2
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/retail/utils/latinFieldsUtils.js +74 -77
- package/lib/retail/utils/latinFieldsUtils.js.map +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +88 -85
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -2
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/retail/utils/latinFieldsUtils.js +74 -77
- package/mobile/dist/retail/utils/latinFieldsUtils.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -2
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/retail/utils/latinFieldsUtils.js +74 -77
- package/mobile/lib/retail/utils/latinFieldsUtils.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +3 -2
- package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +0 -1
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +0 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +4 -1
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +26 -23
- package/mobile/src/retail/utils/latinFieldsUtils.ts +76 -78
- package/mobile/src/ui-kit/Input/Input.tsx +0 -1
- package/mobile/src/ui-kit/Select/Select.tsx +2 -2
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +3 -5
- package/src/components/ApplicationForm/ApplicationFormContent.ts +3 -2
- package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +0 -1
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +0 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +4 -1
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +26 -23
- package/src/retail/utils/latinFieldsUtils.ts +76 -78
- package/src/ui-kit/Input/Input.tsx +0 -1
- package/src/ui-kit/Select/Select.tsx +2 -2
- package/src/ui-kit/Select/SelectPopup.tsx +1 -1
|
@@ -2,82 +2,80 @@ const latinPattern = /^[\u0041-\u005A\u0061-\u007A\s]+$/u;
|
|
|
2
2
|
|
|
3
3
|
export const isLatin = (_ = '') => latinPattern.test(_);
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'-': '-',
|
|
79
|
-
' ': ' ',
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return str.replace(/[А-ЯЁа-яё,. -]/g, (_) => replacer[_.toLowerCase()].toUpperCase() || '');
|
|
5
|
+
const REPLACER = {
|
|
6
|
+
А: 'A',
|
|
7
|
+
Б: 'B',
|
|
8
|
+
В: 'V',
|
|
9
|
+
Г: 'G',
|
|
10
|
+
Д: 'D',
|
|
11
|
+
Е: 'E',
|
|
12
|
+
Ё: 'E',
|
|
13
|
+
Ж: 'ZH',
|
|
14
|
+
З: 'Z',
|
|
15
|
+
И: 'I',
|
|
16
|
+
Й: 'I',
|
|
17
|
+
К: 'K',
|
|
18
|
+
Л: 'L',
|
|
19
|
+
М: 'M',
|
|
20
|
+
Н: 'N',
|
|
21
|
+
О: 'O',
|
|
22
|
+
П: 'P',
|
|
23
|
+
Р: 'R',
|
|
24
|
+
С: 'S',
|
|
25
|
+
Т: 'T',
|
|
26
|
+
У: 'U',
|
|
27
|
+
Ф: 'F',
|
|
28
|
+
Х: 'KH',
|
|
29
|
+
Ц: 'TS',
|
|
30
|
+
Ч: 'CH',
|
|
31
|
+
Ш: 'SH',
|
|
32
|
+
Щ: 'SHCH',
|
|
33
|
+
Ъ: 'IE',
|
|
34
|
+
Ы: 'Y',
|
|
35
|
+
Ь: '',
|
|
36
|
+
Э: 'E',
|
|
37
|
+
Ю: 'YU',
|
|
38
|
+
Я: 'YA',
|
|
39
|
+
'': '',
|
|
40
|
+
// Lower case
|
|
41
|
+
а: 'A',
|
|
42
|
+
б: 'B',
|
|
43
|
+
в: 'V',
|
|
44
|
+
г: 'G',
|
|
45
|
+
д: 'D',
|
|
46
|
+
е: 'E',
|
|
47
|
+
ё: 'E',
|
|
48
|
+
ж: 'ZH',
|
|
49
|
+
з: 'Z',
|
|
50
|
+
и: 'I',
|
|
51
|
+
й: 'I',
|
|
52
|
+
к: 'K',
|
|
53
|
+
л: 'L',
|
|
54
|
+
м: 'M',
|
|
55
|
+
н: 'N',
|
|
56
|
+
о: 'O',
|
|
57
|
+
п: 'P',
|
|
58
|
+
р: 'R',
|
|
59
|
+
с: 'S',
|
|
60
|
+
т: 'T',
|
|
61
|
+
у: 'U',
|
|
62
|
+
ф: 'F',
|
|
63
|
+
х: 'KH',
|
|
64
|
+
ц: 'TS',
|
|
65
|
+
ч: 'CH',
|
|
66
|
+
ш: 'SH',
|
|
67
|
+
щ: 'SHCH',
|
|
68
|
+
ъ: 'IE',
|
|
69
|
+
ы: 'Y',
|
|
70
|
+
ь: '',
|
|
71
|
+
э: 'E',
|
|
72
|
+
ю: 'YU',
|
|
73
|
+
я: 'YA',
|
|
74
|
+
'.': '.',
|
|
75
|
+
',': ',',
|
|
76
|
+
'-': '-',
|
|
77
|
+
' ': ' ',
|
|
83
78
|
};
|
|
79
|
+
|
|
80
|
+
export const autoTranslateToLatin = (str: string): string =>
|
|
81
|
+
str.replace(/[А-ЯЁа-яё,. -]/g, (_) => REPLACER[_.toLowerCase()].toUpperCase() || '');
|
|
@@ -4,6 +4,7 @@ import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
|
4
4
|
import { type ControlProps } from '../../model/ControlProps';
|
|
5
5
|
import { type DefaultControlType } from '../../model/DefaultControlType';
|
|
6
6
|
import { type IconVersion } from '../../model/IconVersion';
|
|
7
|
+
import { type PlaceholderProps } from '../../model/PlaceholderProps';
|
|
7
8
|
import { debounce } from '../../utils/debounce';
|
|
8
9
|
import { style } from '../../utils/style';
|
|
9
10
|
import { Icon } from '../Icon/Icon';
|
|
@@ -23,11 +24,10 @@ export interface SelectProps extends DefaultControlType, ControlProps<Option> {
|
|
|
23
24
|
onSearchQuery?: (value: string) => void;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
type renderOptionTextProps = {
|
|
27
|
+
type renderOptionTextProps = PlaceholderProps & {
|
|
27
28
|
isManualInput?: boolean;
|
|
28
29
|
query?: string;
|
|
29
30
|
value?: Option;
|
|
30
|
-
placeholder?: string;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const Select = JSX<SelectProps>(
|
|
@@ -59,7 +59,7 @@ export const SelectPopup = JSX<SelectPopupProps>(
|
|
|
59
59
|
width="16"
|
|
60
60
|
height="16"
|
|
61
61
|
iconVersion={iconVersion}
|
|
62
|
-
className={style('absolute right-4 pt-3xs', {
|
|
62
|
+
className={style('absolute right-4 pt-3xs sm:pt-2xs sm:right-2', {
|
|
63
63
|
hidden: option.key !== value?.key,
|
|
64
64
|
})}
|
|
65
65
|
/>
|