@redneckz/wildless-cms-uni-blocks 0.14.903 → 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.
Files changed (104) hide show
  1. package/bundle/bundle.umd.js +89 -102
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  4. package/dist/components/ApplicationForm/ApplicationForm.js +3 -2
  5. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  6. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  7. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  8. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
  9. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  10. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
  11. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  12. package/dist/retail/components/Fields/AddressFactField.js +2 -17
  13. package/dist/retail/components/Fields/AddressFactField.js.map +1 -1
  14. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
  15. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  16. package/dist/retail/utils/latinFieldsUtils.js +74 -77
  17. package/dist/retail/utils/latinFieldsUtils.js.map +1 -1
  18. package/dist/ui-kit/Input/Input.js.map +1 -1
  19. package/dist/ui-kit/Select/Select.js.map +1 -1
  20. package/dist/ui-kit/Select/SelectPopup.js +1 -1
  21. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  22. package/lib/common.css +1 -1
  23. package/lib/components/ApplicationForm/ApplicationForm.js +3 -2
  24. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  25. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  26. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  27. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
  28. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  29. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
  30. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  31. package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
  32. package/lib/retail/components/Fields/AddressFactField.js +2 -17
  33. package/lib/retail/components/Fields/AddressFactField.js.map +1 -1
  34. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
  35. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  36. package/lib/retail/utils/latinFieldsUtils.js +74 -77
  37. package/lib/retail/utils/latinFieldsUtils.js.map +1 -1
  38. package/lib/ui-kit/Input/Input.js.map +1 -1
  39. package/lib/ui-kit/Select/Select.js.map +1 -1
  40. package/lib/ui-kit/Select/SelectPopup.js +1 -1
  41. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  42. package/mobile/bundle/bundle.umd.js +89 -102
  43. package/mobile/bundle/bundle.umd.min.js +1 -1
  44. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  45. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -2
  46. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  47. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  48. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  49. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
  50. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  51. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
  52. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  53. package/mobile/dist/retail/components/Fields/AddressFactField.js +2 -17
  54. package/mobile/dist/retail/components/Fields/AddressFactField.js.map +1 -1
  55. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
  56. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  57. package/mobile/dist/retail/utils/latinFieldsUtils.js +74 -77
  58. package/mobile/dist/retail/utils/latinFieldsUtils.js.map +1 -1
  59. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  60. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  61. package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
  62. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  63. package/mobile/lib/common.css +1 -1
  64. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -2
  65. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  66. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  67. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  68. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +0 -1
  69. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  70. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
  71. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  72. package/mobile/lib/retail/components/Fields/AddressFactField.js +2 -17
  73. package/mobile/lib/retail/components/Fields/AddressFactField.js.map +1 -1
  74. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +6 -3
  75. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  76. package/mobile/lib/retail/utils/latinFieldsUtils.js +74 -77
  77. package/mobile/lib/retail/utils/latinFieldsUtils.js.map +1 -1
  78. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  79. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  80. package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
  81. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  82. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -5
  83. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +3 -2
  84. package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +0 -1
  85. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +0 -1
  86. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +4 -1
  87. package/mobile/src/retail/components/Fields/AddressFactField.tsx +2 -17
  88. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +26 -23
  89. package/mobile/src/retail/utils/latinFieldsUtils.ts +76 -78
  90. package/mobile/src/ui-kit/Input/Input.tsx +0 -1
  91. package/mobile/src/ui-kit/Select/Select.tsx +2 -2
  92. package/mobile/src/ui-kit/Select/SelectPopup.tsx +1 -1
  93. package/package.json +1 -1
  94. package/src/components/ApplicationForm/ApplicationForm.tsx +3 -5
  95. package/src/components/ApplicationForm/ApplicationFormContent.ts +3 -2
  96. package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +0 -1
  97. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +0 -1
  98. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +4 -1
  99. package/src/retail/components/Fields/AddressFactField.tsx +2 -17
  100. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +26 -23
  101. package/src/retail/utils/latinFieldsUtils.ts +76 -78
  102. package/src/ui-kit/Input/Input.tsx +0 -1
  103. package/src/ui-kit/Select/Select.tsx +2 -2
  104. package/src/ui-kit/Select/SelectPopup.tsx +1 -1
@@ -62,12 +62,9 @@ export const ApplicationForm = UniBlock<ApplicationFormProps>(
62
62
  [inputs, typeForm],
63
63
  );
64
64
  const router = useRouter();
65
-
65
+ const aspects = useAspects();
66
66
  const formValidator = useMemo(() => getFormValidator(inputs), [inputs]);
67
-
68
67
  const responseTypeDialog = useDialog(ResponseTypeDialog);
69
- const aspects = useAspects();
70
-
71
68
  const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
72
69
 
73
70
  const handleSubmit = useCallback(
@@ -114,6 +111,7 @@ export const ApplicationForm = UniBlock<ApplicationFormProps>(
114
111
  onSubmit: handleSubmit,
115
112
  });
116
113
  const fieldName = getConsentDataProcessing(inputs)?.name;
114
+ const consentDataProcessing = fieldName ? field('consentDataProcessing') : undefined;
117
115
 
118
116
  return (
119
117
  <ApplicationFormLayout
@@ -124,7 +122,7 @@ export const ApplicationForm = UniBlock<ApplicationFormProps>(
124
122
  <form onSubmit={onSubmit}>
125
123
  {renderSections(sections, field, { typeForm, additionalParams })}
126
124
  {renderAgreementSubmit({
127
- consentDataProcessing: fieldName ? field('consentDataProcessing') : undefined,
125
+ consentDataProcessing,
128
126
  link,
129
127
  button,
130
128
  typeForm,
@@ -5,6 +5,7 @@ import { type LabelProps, type TextProps, type TitleProps } from '../../model/He
5
5
  import { type InputSectionsType } from '../../model/InputSectionsType';
6
6
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
7
7
  import { type Target } from '../../model/LinkProps';
8
+ import { type PlaceholderProps } from '../../model/PlaceholderProps';
8
9
  import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
9
10
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
10
11
 
@@ -34,11 +35,11 @@ export type FilledByEsiaProps = {
34
35
  export type FieldDef = Required &
35
36
  LabelProps &
36
37
  ConditionFieldProps &
37
- FilledByEsiaProps & {
38
+ FilledByEsiaProps &
39
+ PlaceholderProps & {
38
40
  name?: NameFieldDef;
39
41
  dadata?: boolean;
40
42
  defaultValue?: string;
41
- placeholder?: string;
42
43
  };
43
44
 
44
45
  /** @hidden */
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable max-lines */
2
- /* eslint-disable max-lines-per-function */
3
2
  import { type EsiaRequestProfileResponse } from '../../retail/api/esiaRequestProfile';
4
3
  import { uploadFile, type DocumentCategory } from '../../retail/api/uploadFile';
5
4
  import { type Address, type File, type LeadFormState } from '../../retail/model/LeadFormState';
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable camelcase */
2
- /* eslint-disable max-lines-per-function */
3
2
  import { useCallback, useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
4
3
  import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
5
4
  import { useSetter } from '../../hooks/useSetter';
@@ -22,7 +22,10 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
22
22
  const currentLocation = useLocation();
23
23
  const exchangeRates = useFetchExchangeRateData(currentLocation);
24
24
 
25
- const currencyRates = getCurrencyRates(exchangeRates?.exchangeRate?.currencies);
25
+ const filteredCurrencyRates = exchangeRates?.exchangeRate?.currencies?.filter(
26
+ (_) => _.buyExchangeRate !== 0 || _.saleExchangeRate !== 0,
27
+ );
28
+ const currencyRates = getCurrencyRates(filteredCurrencyRates);
26
29
 
27
30
  const currencyRatesBuy = currencyRates.filter((_) => _.buyExchangeRate);
28
31
  currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
@@ -3,6 +3,7 @@ import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type CustomFieldProps } from '../../../ui-kit/FormField/CustomFieldProps';
4
4
  import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
5
5
  import { DaDataInputControl } from '../DaDataInputControl/DaDataInputControl';
6
+ import { getAddressFromDaDataItem } from './AddressField';
6
7
 
7
8
  export const AddressFactField = JSX<CustomFieldProps>(({ field, input }) => {
8
9
  const fieldName = 'addressFact';
@@ -16,23 +17,7 @@ export const AddressFactField = JSX<CustomFieldProps>(({ field, input }) => {
16
17
  }, [value, field('addressRegistration').value]);
17
18
 
18
19
  const onDaDataChange = useCallback((item: DaDataSuggestion) => {
19
- field?.(fieldName)?.onChange?.({
20
- apartment: item?.data?.flat,
21
- city: item?.data?.city,
22
- district: item?.data?.area_with_type,
23
- fullAddress: item?.value,
24
- fiasCode: item?.data?.fias_id,
25
- house: item?.data?.house,
26
- locality: item?.data?.settlement_with_type,
27
- okatoRegionCode: item?.data?.okato,
28
- postcode: item?.data?.postal_code,
29
- region: item?.data?.region,
30
- regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
31
- street: item?.data?.house,
32
- qc: item?.data?.qc,
33
- qcComplete: item?.data?.qc_complete,
34
- qcHouse: item?.data?.qc_house,
35
- });
20
+ field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
36
21
  }, []);
37
22
 
38
23
  const onChange = useCallback((val: string) => {
@@ -1,4 +1,3 @@
1
- /* eslint-disable max-lines-per-function */
2
1
  import { JSX } from '@redneckz/uni-jsx';
3
2
  import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
4
3
  import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
@@ -38,6 +37,7 @@ export interface VerifyPhoneDialogProps extends OnCloseProps {
38
37
  }
39
38
 
40
39
  export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
40
+ // eslint-disable-next-line max-lines-per-function
41
41
  ({
42
42
  phone,
43
43
  withDescription = true,
@@ -70,9 +70,7 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
70
70
  });
71
71
 
72
72
  const captchaDialog = useDialog(CaptchaDialog);
73
-
74
73
  const phoneNumber = formatPhone(phone);
75
-
76
74
  const restartTimer = useCountDownTimer({ seconds: timeNextReq, onTick: setTimeNextReq });
77
75
 
78
76
  const handleSendCode = useCallback(async () => {
@@ -110,14 +108,7 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
110
108
  return (
111
109
  <Dialog maxWidth="lg" onClose={onClose}>
112
110
  <div className="flex flex-col gap-xl items-center rounded-md">
113
- <Headline
114
- className="w-full"
115
- title="Подтвердите номер телефона"
116
- description={`Мы отправили код на ${phone}`}
117
- headlineVersion="XS"
118
- isEmbedded={true}
119
- as="h6"
120
- />
111
+ {renderHeadline(phone)}
121
112
  <InputCode
122
113
  values={values}
123
114
  setValues={setValues}
@@ -125,18 +116,7 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
125
116
  hasError={hasError}
126
117
  />
127
118
  {renderText(timeNextReq, handleSendCode)}
128
-
129
- {withDescription ? (
130
- <RichText itemSize="list-s">
131
- <span>Вводя код, я подтверждаю, что ознакомлен и подписываю: </span>
132
- <ul>
133
- {consents?.map((_, i) => (
134
- <li key={`${_}-${i}`}>{_}</li>
135
- ))}
136
- </ul>
137
- </RichText>
138
- ) : null}
139
-
119
+ {renderDescription(consents, withDescription)}
140
120
  {renderNextButton(isSubmitButtonDisabled, handleSubmit)}
141
121
  {isLoading ? <Loader blur={false} /> : null}
142
122
  </div>
@@ -145,6 +125,29 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
145
125
  },
146
126
  );
147
127
 
128
+ const renderHeadline = (phone: string) => (
129
+ <Headline
130
+ className="w-full"
131
+ title="Подтвердите номер телефона"
132
+ description={`Мы отправили код на ${phone}`}
133
+ headlineVersion="XS"
134
+ isEmbedded={true}
135
+ as="h6"
136
+ />
137
+ );
138
+
139
+ const renderDescription = (consents?: string[], isRender = false) =>
140
+ isRender ? (
141
+ <RichText itemSize="list-s">
142
+ <span>Вводя код, я подтверждаю, что ознакомлен и подписываю: </span>
143
+ <ul>
144
+ {consents?.map((_, i) => (
145
+ <li key={`${_}-${i}`}>{_}</li>
146
+ ))}
147
+ </ul>
148
+ </RichText>
149
+ ) : null;
150
+
148
151
  const renderNextButton = (disabled: boolean, onClick: () => void) => (
149
152
  <SubmitButton text="Далее" disabled={disabled} onClick={onClick} />
150
153
  );
@@ -2,82 +2,80 @@ const latinPattern = /^[\u0041-\u005A\u0061-\u007A\s]+$/u;
2
2
 
3
3
  export const isLatin = (_ = '') => latinPattern.test(_);
4
4
 
5
- // eslint-disable-next-line max-lines-per-function
6
- export const autoTranslateToLatin = (str: string): string => {
7
- const replacer = {
8
- А: 'A',
9
- Б: 'B',
10
- В: 'V',
11
- Г: 'G',
12
- Д: 'D',
13
- Е: 'E',
14
- Ё: 'E',
15
- Ж: 'ZH',
16
- З: 'Z',
17
- И: 'I',
18
- Й: 'I',
19
- К: 'K',
20
- Л: 'L',
21
- М: 'M',
22
- Н: 'N',
23
- О: 'O',
24
- П: 'P',
25
- Р: 'R',
26
- С: 'S',
27
- Т: 'T',
28
- У: 'U',
29
- Ф: 'F',
30
- Х: 'KH',
31
- Ц: 'TS',
32
- Ч: 'CH',
33
- Ш: 'SH',
34
- Щ: 'SHCH',
35
- Ъ: 'IE',
36
- Ы: 'Y',
37
- Ь: '',
38
- Э: 'E',
39
- Ю: 'YU',
40
- Я: 'YA',
41
- '': '',
42
- // Lower case
43
- а: 'A',
44
- б: 'B',
45
- в: 'V',
46
- г: 'G',
47
- д: 'D',
48
- е: 'E',
49
- ё: 'E',
50
- ж: 'ZH',
51
- з: 'Z',
52
- и: 'I',
53
- й: 'I',
54
- к: 'K',
55
- л: 'L',
56
- м: 'M',
57
- н: 'N',
58
- о: 'O',
59
- п: 'P',
60
- р: 'R',
61
- с: 'S',
62
- т: 'T',
63
- у: 'U',
64
- ф: 'F',
65
- х: 'KH',
66
- ц: 'TS',
67
- ч: 'CH',
68
- ш: 'SH',
69
- щ: 'SHCH',
70
- ъ: 'IE',
71
- ы: 'Y',
72
- ь: '',
73
- э: 'E',
74
- ю: 'YU',
75
- я: 'YA',
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() || '');
@@ -44,7 +44,6 @@ export const Input = JSX<InputProps>(
44
44
 
45
45
  const paddingStyle = children ? 'pr-3xl' : '';
46
46
  const validStyle = getValidStyle(valid);
47
-
48
47
  const ariaLabel = label ?? name ?? id;
49
48
 
50
49
  return (
@@ -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
  />