@alfalab/core-components-intl-phone-input 9.2.17 → 9.2.18
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.js +36 -18
- package/components/flag-icon/component.js +3 -1
- package/components/flag-icon/flagSprite.js +2 -0
- package/components/flag-icon/index.css +3 -3
- package/components/flag-icon/index.js +2 -0
- package/components/index.js +2 -0
- package/components/select/component.js +3 -1
- package/components/select/index.css +7 -7
- package/components/select/index.js +2 -0
- package/components/select-field/component.js +3 -1
- package/components/select-field/index.css +11 -11
- package/components/select-field/index.js +2 -0
- package/cssm/component.js +34 -16
- package/cssm/components/flag-icon/component.js +2 -0
- package/cssm/components/flag-icon/flagSprite.js +2 -0
- package/cssm/components/flag-icon/index.js +2 -0
- package/cssm/components/index.js +2 -0
- package/cssm/components/select/component.js +2 -0
- package/cssm/components/select/index.js +2 -0
- package/cssm/components/select/index.module.css +1 -1
- package/cssm/components/select-field/component.js +2 -0
- package/cssm/components/select-field/index.js +2 -0
- package/cssm/components/select-field/index.module.css +2 -2
- package/cssm/index.js +2 -0
- package/cssm/index.module.css +1 -1
- package/cssm/useCaretAvoidCountryCode.js +2 -0
- package/cssm/utils/calculateCaretPos.js +2 -0
- package/cssm/utils/format-phone-with-unclearable-country-code.js +2 -0
- package/cssm/utils/preparePasteData.js +2 -0
- package/esm/component.js +34 -18
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +3 -3
- package/esm/components/select/component.js +1 -1
- package/esm/components/select/index.css +7 -7
- package/esm/components/select-field/component.js +1 -1
- package/esm/components/select-field/index.css +11 -11
- package/esm/index.css +6 -6
- package/index.css +6 -6
- package/index.js +2 -0
- package/modern/component.js +34 -18
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +3 -3
- package/modern/components/select/component.js +1 -1
- package/modern/components/select/index.css +7 -7
- package/modern/components/select-field/component.js +1 -1
- package/modern/components/select-field/index.css +11 -11
- package/modern/index.css +6 -6
- package/package.json +5 -5
- package/useCaretAvoidCountryCode.js +2 -0
- package/utils/calculateCaretPos.js +2 -0
- package/utils/format-phone-with-unclearable-country-code.js +2 -0
- package/utils/preparePasteData.js +2 -0
- /package/esm/{libphonenumber-js.min-7b207edb.d.ts → libphonenumber-js.min-d38246a5.d.ts} +0 -0
- /package/esm/{libphonenumber-js.min-7b207edb.js → libphonenumber-js.min-d38246a5.js} +0 -0
- /package/{libphonenumber-js.min-8ac34021.d.ts → libphonenumber-js.min-7f558ade.d.ts} +0 -0
- /package/{libphonenumber-js.min-8ac34021.js → libphonenumber-js.min-7f558ade.js} +0 -0
- /package/modern/{libphonenumber-js.min-7b207edb.d.ts → libphonenumber-js.min-d38246a5.d.ts} +0 -0
- /package/modern/{libphonenumber-js.min-7b207edb.js → libphonenumber-js.min-d38246a5.js} +0 -0
package/component.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var tslib = require('tslib');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var cn = require('classnames');
|
|
@@ -24,7 +26,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
24
26
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
25
27
|
var WorldMagnifierMIcon__default = /*#__PURE__*/_interopDefaultCompat(WorldMagnifierMIcon);
|
|
26
28
|
|
|
27
|
-
var styles = {"addons":"intl-phone-
|
|
29
|
+
var styles = {"addons":"intl-phone-input__addons_1iymy","l":"intl-phone-input__l_1iymy","xl":"intl-phone-input__xl_1iymy","flagIconWrapper":"intl-phone-input__flagIconWrapper_1iymy","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1iymy"};
|
|
28
30
|
require('./index.css')
|
|
29
31
|
|
|
30
32
|
var countriesHash = utils.getCountriesHash();
|
|
@@ -101,6 +103,12 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
101
103
|
});
|
|
102
104
|
return targetCountry;
|
|
103
105
|
};
|
|
106
|
+
var changePhone = function (phone, iso2) {
|
|
107
|
+
var newValue = formatPhone(phone, iso2);
|
|
108
|
+
if (newValue !== value) {
|
|
109
|
+
onChange(newValue);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
104
112
|
var addCountryCode = function (inputValue) {
|
|
105
113
|
if (clearableCountryCode || !countryIso2) {
|
|
106
114
|
return inputValue.length === 1 && inputValue !== '+'
|
|
@@ -112,7 +120,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
112
120
|
};
|
|
113
121
|
var setCountryByDialCode = function (inputValue) {
|
|
114
122
|
var country = getCountryByNumber(inputValue);
|
|
115
|
-
|
|
123
|
+
changePhone(addCountryCode(inputValue));
|
|
116
124
|
if (country) {
|
|
117
125
|
setCountryIso2(country.iso2);
|
|
118
126
|
handleCountryChange(country.iso2);
|
|
@@ -132,7 +140,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
132
140
|
};
|
|
133
141
|
var handleInputChange = function (event) {
|
|
134
142
|
setCountryByDialCodeWithLengthCheck(event.target.value);
|
|
135
|
-
|
|
143
|
+
changePhone(addCountryCode(event.target.value));
|
|
136
144
|
};
|
|
137
145
|
var handleSelectChange = function (_a) {
|
|
138
146
|
var selected = _a.selected;
|
|
@@ -151,7 +159,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
151
159
|
if (!selected)
|
|
152
160
|
return;
|
|
153
161
|
setCountryByDialCodeWithLengthCheck(selected.key);
|
|
154
|
-
|
|
162
|
+
changePhone(selected.key);
|
|
155
163
|
};
|
|
156
164
|
var country = countryIso2 && countriesHash[countryIso2];
|
|
157
165
|
var countryCodeLength = country ? "+".concat(country.dialCode).length : 0;
|
|
@@ -198,25 +206,27 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
198
206
|
setCountryByDialCodeWithLengthCheck(newValue);
|
|
199
207
|
onChange(newValue);
|
|
200
208
|
};
|
|
201
|
-
var handleDeleteChar = function (event
|
|
209
|
+
var handleDeleteChar = function (event) {
|
|
202
210
|
var input = event.target;
|
|
203
|
-
|
|
211
|
+
var selectionStart = input.selectionStart || 0;
|
|
212
|
+
var selectionEnd = input.selectionEnd || 0;
|
|
213
|
+
if (!clearableCountryCode && selectionEnd <= countryCodeLength)
|
|
204
214
|
return;
|
|
205
215
|
var currentValue = input.value;
|
|
206
216
|
var isMaskSymbol = function (count) {
|
|
207
|
-
var isMask = MASK_SYMBOLS.includes(currentValue.charAt(
|
|
217
|
+
var isMask = MASK_SYMBOLS.includes(currentValue.charAt(selectionEnd - 1 - count));
|
|
208
218
|
var isPossibleToRemove = clearableCountryCode
|
|
209
|
-
?
|
|
210
|
-
:
|
|
219
|
+
? selectionEnd - count > 0
|
|
220
|
+
: selectionEnd - count > countryCodeLength;
|
|
211
221
|
return isMask && isPossibleToRemove;
|
|
212
222
|
};
|
|
213
|
-
var deletedCharsCount = 1;
|
|
223
|
+
var deletedCharsCount = Math.max(1, selectionEnd - selectionStart);
|
|
214
224
|
// Высчитываем кол-во символов, которые нужно удалить.
|
|
215
225
|
while (isMaskSymbol(deletedCharsCount)) {
|
|
216
226
|
deletedCharsCount += 1;
|
|
217
227
|
}
|
|
218
|
-
var phonePart = currentValue.slice(0,
|
|
219
|
-
var newValue = formatPhone(addCountryCode(phonePart + currentValue.slice(
|
|
228
|
+
var phonePart = currentValue.slice(0, selectionEnd - deletedCharsCount);
|
|
229
|
+
var newValue = formatPhone(addCountryCode(phonePart + currentValue.slice(selectionEnd)));
|
|
220
230
|
var phonePartWithoutMask = phonePart.replace(/[^0-9+]+/g, '');
|
|
221
231
|
setCaretPos(utils_calculateCaretPos.calculateCaretPos(phonePartWithoutMask, newValue));
|
|
222
232
|
setCountryByDialCodeWithLengthCheck(newValue);
|
|
@@ -225,12 +235,20 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
225
235
|
var handleKeyDown = function (event) {
|
|
226
236
|
var input = event.target;
|
|
227
237
|
var caretPosition = input.selectionStart || 0;
|
|
238
|
+
var disallowedSymbols = /[/|?!@#$%^&*()_=A-Za-zА-Яа-яЁё,. ]/;
|
|
239
|
+
var withoutCombo = !event.altKey && !event.metaKey && !event.ctrlKey;
|
|
240
|
+
// Запрещаем вводить неразрешенные символы за исключением комбинций клавиш
|
|
241
|
+
if (withoutCombo && event.key.length === 1 && disallowedSymbols.test(event.key)) {
|
|
242
|
+
event.preventDefault();
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
228
245
|
// Нажат только Backspace, не сочетание клавиш с ним.
|
|
229
|
-
if (!event.shiftKey &&
|
|
246
|
+
if (!event.shiftKey && withoutCombo && event.key === 'Backspace') {
|
|
230
247
|
if (!caretPosition)
|
|
231
248
|
return;
|
|
232
249
|
event.preventDefault();
|
|
233
|
-
handleDeleteChar(event
|
|
250
|
+
handleDeleteChar(event);
|
|
251
|
+
return;
|
|
234
252
|
}
|
|
235
253
|
if (event.key.length === 1 && /[0-9+]/.test(event.key)) {
|
|
236
254
|
event.preventDefault();
|
|
@@ -263,7 +281,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
263
281
|
var resultNumber = preparedNumber.substring(0, maxPhoneLength + 1);
|
|
264
282
|
if (resultNumber) {
|
|
265
283
|
setCountryIso2(targetCountry ? targetCountry.iso2 : undefined);
|
|
266
|
-
|
|
284
|
+
changePhone(addCountryCode(resultNumber));
|
|
267
285
|
}
|
|
268
286
|
};
|
|
269
287
|
React.useEffect(function () {
|
|
@@ -276,11 +294,11 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
276
294
|
if (phoneLibUtils.current)
|
|
277
295
|
return;
|
|
278
296
|
Promise.resolve().then(function () { return require(
|
|
279
|
-
/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-
|
|
297
|
+
/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-7f558ade.js'); })
|
|
280
298
|
.then(function (utils) {
|
|
281
299
|
phoneLibUtils.current = utils.AsYouType;
|
|
282
300
|
if (canBeEmptyCountry) {
|
|
283
|
-
|
|
301
|
+
changePhone(value);
|
|
284
302
|
}
|
|
285
303
|
else {
|
|
286
304
|
setCountryByDialCode(value);
|
|
@@ -302,7 +320,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
302
320
|
setCountryIso2(undefined);
|
|
303
321
|
handleCountryChange(undefined);
|
|
304
322
|
}
|
|
305
|
-
|
|
323
|
+
changePhone(value, newCountry === null || newCountry === void 0 ? void 0 : newCountry.iso2);
|
|
306
324
|
}
|
|
307
325
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
308
326
|
}, [value, canBeEmptyCountry, countryIso2, defaultCountryIso2]);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var React = require('react');
|
|
4
6
|
var cn = require('classnames');
|
|
5
7
|
var components_flagIcon_flagSprite = require('./flagSprite.js');
|
|
@@ -9,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
13
|
|
|
12
|
-
var styles = {"flagIcon":"intl-phone-
|
|
14
|
+
var styles = {"flagIcon":"intl-phone-input__flagIcon_mruub","flagPlaceholder":"intl-phone-input__flagPlaceholder_mruub"};
|
|
13
15
|
require('./index.css')
|
|
14
16
|
|
|
15
17
|
/**
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var flagSprite = {
|
|
4
6
|
'ge-ab': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path d="M0 0h24v24H0z"/><g clip-path="url(#a)"><path fill="#F5F5F5" d="M24 6.4H0v2.2h24V6.4Z"/><path fill="#73AF00" d="M24 8.6H0V11h24V8.6Z"/><path fill="#F5F5F5" d="M24 10.9H0V13h24V11Z"/><path fill="#73AF00" d="M24 13.1H0v2.3h24V13Z"/><path fill="#F5F5F5" d="M24 15.4H0v2.2h24v-2.2Z"/><path fill="#73AF00" d="M22.2 4.1H1.8C.8 4.1 0 5 0 6v.5h24v-.5c0-1-.8-1.8-1.8-1.8ZM24 17.6H0v.5c0 1 .8 1.7 1.7 1.8h20.6c1 0 1.7-.9 1.7-1.8v-.5Z"/><path fill="#FF4B55" d="M0 6v4.5c0 .2.2.4.4.4h11.2c.2 0 .4-.2.4-.4v-6c0-.2-.2-.3-.4-.4H1.8C.8 4.1 0 5 0 6Z"/><path fill="#F5F5F5" d="M6.4 10.3H5.6l-.3-.6V7.3a.1.1 0 0 1 .2 0V8h.1V6.8a.1.1 0 0 1 .3 0V8L6 6.7a.1.1 0 0 1 .2 0V8h.2V7a.1.1 0 0 1 .2 0v1.2l.3.6c0-.2.2-.5.4-.6h.1v.2a1 1 0 0 0-.2.7v.1l-.6.7v.3l-.2.1ZM6 4.7l.1.3h.4l-.3.3.1.3-.3-.2-.3.2v-.3L5.6 5H6v-.4H6ZM4.4 5.2l.1.3H5l-.3.3.1.3-.3-.2-.3.2v-.3L4 5.6v-.1h.4v-.3h.1ZM7.7 5.2l.1.3h.3l-.2.3V6L7.7 6l-.3.2v-.3l-.2-.2v-.1h.3l.1-.3ZM8.8 6.4v.3h.4L9 7v.3l-.3-.2-.2.2V7l-.3-.2h.4l.1-.4ZM3.2 6.4l.1.3h.4l-.3.3.1.3-.3-.2-.3.2L3 7l-.3-.2h.4v-.4h.1ZM9 8l.2.3h.3v.1l-.2.2v.3l-.2-.1-.3.2v-.4l-.2-.2h.3L9 8ZM2.8 8l.1.3h.4v.1l-.3.2.1.3-.3-.1-.3.2v-.4l-.2-.2h.4V8h.1Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h24v24H0V0Z"/></clipPath></defs></svg>',
|
|
5
7
|
af: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path d="M0 0h24v24H0z"/><path fill="#464655" d="M1.8 19.9H8V4H1.8C.8 4.1 0 5 0 6v12.2c0 1 .8 1.8 1.8 1.8Z"/><path fill="#FF4B55" d="M16 4.1H8V20h8V4Z"/><path fill="#73AF00" d="M22.2 19.9c1 0 1.8-.8 1.8-1.8V5.9c0-1-.8-1.8-1.8-1.8H16V20h6.2Z"/><path fill="#F5F5F5" d="M11.4 11.6H11v.1h.4ZM13 12.8h-2v-.2h2v.2ZM13 10.9h-2v.2h2V11Z"/><path fill="#F5F5F5" d="M12.6 11h-1.2l.2-.2h.8l.2.2ZM11.4 12.2H11v.3h.4v-.3ZM11.4 11.9H11v.2h.4v-.2ZM11.4 11.3H11v.2h.4v-.2ZM13 12.2h-.4v.3h.4v-.3ZM13 11.9h-.4v.2h.4v-.2ZM13 11.3h-.4v.2h.4v-.2ZM13 11.6h-.4v.1h.4ZM11.4 10.3h-.2v.5h.2v-.5ZM11.4 10.2h-.2V10a.1.1 0 0 1 .2 0ZM12.8 10.3h-.2v.5h.2v-.5ZM12.8 10.2h-.2V10a.1.1 0 0 1 .2 0ZM12 11.3c-.3 0-.5.2-.5.4v.8h1v-.8c0-.2-.2-.4-.5-.4Z"/><path fill="#F5F5F5" d="m11.2 12-.6-.8a.1.1 0 1 0-.2.1l.1.1-.3.8.4.3.3-.7.2.3h.1Zm-.6.3-.3-.3.2-.3.3.3-.2.3ZM12.9 12l.2-.2.3.7.4-.3-.3-.8a.1.1 0 1 0 0-.2l-.7.8Zm.4 0 .2-.3.2.3-.3.3-.1-.3ZM12.1 10h-.2a.5.5 0 0 0-.4.7h1v-.2c0-.2-.2-.4-.4-.4ZM9.3 11.8a2.8 2.8 0 0 1 0-.6 2.6 2.6 0 0 0 0 .7h.3a2.4 2.4 0 0 1 0-.5l.2.6s.4-.6-.3-1.2v.2h-.4a3 3 0 0 0-.1.8h.3Z"/><path fill="#F5F5F5" d="M10.3 9.4a.1.1 0 1 0-.1-.2c-.6.5-1 1-1.1 1.7h.2c.2-.6.5-1.1 1-1.5Z"/><path fill="#F5F5F5" d="M10.2 9.7c-.3.3-.5.6-.6 1h.1l.6-.8a.1.1 0 0 0-.1-.2ZM9.7 13.2l-.4-.9h.2c0 .4.2.6.4.9h.2l-.3-.7h.1l.4.6h.2a2 2 0 0 1-.2-.4l-.2-.4-.2-.2h-.4l-.1-.1h-.1l-.3-.1H9v.2l.2.1c0 .4.2.7.4 1h.2ZM14.5 11v-.2c-.7.6-.3 1.2-.3 1.2 0-.2 0-.4.2-.6a2.1 2.1 0 0 1 0 .6l.2-.1a2.7 2.7 0 0 0 0-.7h.1a2.8 2.8 0 0 1 0 .6h.3a3 3 0 0 0 0-.7h-.5ZM14.7 10.9h.2a3 3 0 0 0-1-1.7.1.1 0 0 0-.2.2c.5.4.8 1 1 1.5ZM14.4 10.6l-.6-.9a.1.1 0 1 0-.1.2l.6.9.1-.2ZM15 11.9h-.3v.1h-.2l-.4.1-.2.2-.2.4-.2.3h.2c.2 0 .3-.3.4-.4l.1-.1-.3.6h.2l.4-.7h.2l-.4.8h.2c.2-.3.4-.6.4-1l.1-.1.1-.2H15ZM13.3 13.2a2 2 0 0 1-2.5 0h-.2l-1.2.2.2.2.3.1.7.6v.1a3 3 0 0 0 2.9 0l-.1-.1.7-.6h.3l.2-.3-1.2-.2h-.1Zm-2.6.9-.6-.5h.2l.5.4Zm3.2-.5-.6.5V14l.4-.4h.2ZM12 14c-.6 0-1.1-.2-1.5-.5h.1a2.3 2.3 0 0 0 2.8 0h.1c-.4.3-1 .5-1.5.5Z"/><path fill="#F5F5F5" d="m10.7 13 .1.2h2.4l.1-.2h-2.6Z"/></svg>',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: db949 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
--gap-3xs: 2px;
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__flagIcon_mruub {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagPlaceholder_mruub {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
package/components/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var components_selectField_component = require('./select-field/component.js');
|
|
4
6
|
var components_flagIcon_component = require('./flag-icon/component.js');
|
|
5
7
|
var components_select_component = require('./select/component.js');
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var tslib = require('tslib');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var coreComponentsSelect = require('@alfalab/core-components-select');
|
|
@@ -15,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
17
|
|
|
16
18
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
19
|
|
|
18
|
-
var styles = {"component":"intl-phone-
|
|
20
|
+
var styles = {"component":"intl-phone-input__component_gm7gr","option":"intl-phone-input__option_gm7gr","flag":"intl-phone-input__flag_gm7gr","countryName":"intl-phone-input__countryName_gm7gr","dialCode":"intl-phone-input__dialCode_gm7gr"};
|
|
19
21
|
require('./index.css')
|
|
20
22
|
|
|
21
23
|
var CountriesSelect = function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nhud */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-secondary: rgba(
|
|
4
|
+
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
19
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__component_gm7gr {
|
|
21
21
|
position: static;
|
|
22
22
|
display: flex;
|
|
23
23
|
min-width: initial;
|
|
24
24
|
height: 100%;
|
|
25
|
-
} .intl-phone-
|
|
25
|
+
} .intl-phone-input__option_gm7gr {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: flex-start;
|
|
28
|
-
} .intl-phone-
|
|
28
|
+
} .intl-phone-input__flag_gm7gr {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
margin-right: var(--gap-xs);
|
|
31
|
-
} .intl-phone-
|
|
31
|
+
} .intl-phone-input__countryName_gm7gr {
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .intl-phone-
|
|
33
|
+
} .intl-phone-input__dialCode_gm7gr {
|
|
34
34
|
color: var(--text-secondary-color);
|
|
35
35
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var tslib = require('tslib');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -16,7 +18,7 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
|
16
18
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
19
|
var WorldMagnifierMIcon__default = /*#__PURE__*/_interopDefaultCompat(WorldMagnifierMIcon);
|
|
18
20
|
|
|
19
|
-
var styles = {"component":"intl-phone-
|
|
21
|
+
var styles = {"component":"intl-phone-input__component_1bmz8","flagIconContainer":"intl-phone-input__flagIconContainer_1bmz8","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1bmz8","disabled":"intl-phone-input__disabled_1bmz8","inner":"intl-phone-input__inner_1bmz8","l":"intl-phone-input__l_1bmz8","xl":"intl-phone-input__xl_1bmz8","focusVisible":"intl-phone-input__focusVisible_1bmz8"};
|
|
20
22
|
require('./index.css')
|
|
21
23
|
|
|
22
24
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: z3p4x */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-border-link: #
|
|
5
|
-
--color-light-graphic-secondary: #
|
|
4
|
+
--color-light-border-link: #0072ef;
|
|
5
|
+
--color-light-graphic-secondary: #86868a; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
7
|
} :root {
|
|
8
8
|
} :root {
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .intl-phone-
|
|
24
|
+
} .intl-phone-input__component_1bmz8 {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .intl-phone-
|
|
29
|
+
} .intl-phone-input__flagIconContainer_1bmz8 {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
margin-right: var(--gap-2xs);
|
|
36
|
-
} .intl-phone-
|
|
36
|
+
} .intl-phone-input__emptyCountryIcon_1bmz8 {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .intl-phone-
|
|
38
|
+
} .intl-phone-input__disabled_1bmz8 {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .intl-phone-
|
|
40
|
+
} .intl-phone-input__inner_1bmz8 {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
height: 100%;
|
|
45
45
|
padding-left: var(--gap-s);
|
|
46
46
|
outline: none;
|
|
47
|
-
} .intl-phone-
|
|
48
|
-
.intl-phone-
|
|
47
|
+
} .intl-phone-input__l_1bmz8 .intl-phone-input__inner_1bmz8,
|
|
48
|
+
.intl-phone-input__xl_1bmz8 .intl-phone-input__inner_1bmz8 {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .intl-phone-
|
|
50
|
+
} .intl-phone-input__focusVisible_1bmz8 {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
package/cssm/component.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var tslib = require('tslib');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var cn = require('classnames');
|
|
@@ -103,6 +105,12 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
103
105
|
});
|
|
104
106
|
return targetCountry;
|
|
105
107
|
};
|
|
108
|
+
var changePhone = function (phone, iso2) {
|
|
109
|
+
var newValue = formatPhone(phone, iso2);
|
|
110
|
+
if (newValue !== value) {
|
|
111
|
+
onChange(newValue);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
106
114
|
var addCountryCode = function (inputValue) {
|
|
107
115
|
if (clearableCountryCode || !countryIso2) {
|
|
108
116
|
return inputValue.length === 1 && inputValue !== '+'
|
|
@@ -114,7 +122,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
114
122
|
};
|
|
115
123
|
var setCountryByDialCode = function (inputValue) {
|
|
116
124
|
var country = getCountryByNumber(inputValue);
|
|
117
|
-
|
|
125
|
+
changePhone(addCountryCode(inputValue));
|
|
118
126
|
if (country) {
|
|
119
127
|
setCountryIso2(country.iso2);
|
|
120
128
|
handleCountryChange(country.iso2);
|
|
@@ -134,7 +142,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
134
142
|
};
|
|
135
143
|
var handleInputChange = function (event) {
|
|
136
144
|
setCountryByDialCodeWithLengthCheck(event.target.value);
|
|
137
|
-
|
|
145
|
+
changePhone(addCountryCode(event.target.value));
|
|
138
146
|
};
|
|
139
147
|
var handleSelectChange = function (_a) {
|
|
140
148
|
var selected = _a.selected;
|
|
@@ -153,7 +161,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
153
161
|
if (!selected)
|
|
154
162
|
return;
|
|
155
163
|
setCountryByDialCodeWithLengthCheck(selected.key);
|
|
156
|
-
|
|
164
|
+
changePhone(selected.key);
|
|
157
165
|
};
|
|
158
166
|
var country = countryIso2 && countriesHash[countryIso2];
|
|
159
167
|
var countryCodeLength = country ? "+".concat(country.dialCode).length : 0;
|
|
@@ -200,25 +208,27 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
200
208
|
setCountryByDialCodeWithLengthCheck(newValue);
|
|
201
209
|
onChange(newValue);
|
|
202
210
|
};
|
|
203
|
-
var handleDeleteChar = function (event
|
|
211
|
+
var handleDeleteChar = function (event) {
|
|
204
212
|
var input = event.target;
|
|
205
|
-
|
|
213
|
+
var selectionStart = input.selectionStart || 0;
|
|
214
|
+
var selectionEnd = input.selectionEnd || 0;
|
|
215
|
+
if (!clearableCountryCode && selectionEnd <= countryCodeLength)
|
|
206
216
|
return;
|
|
207
217
|
var currentValue = input.value;
|
|
208
218
|
var isMaskSymbol = function (count) {
|
|
209
|
-
var isMask = MASK_SYMBOLS.includes(currentValue.charAt(
|
|
219
|
+
var isMask = MASK_SYMBOLS.includes(currentValue.charAt(selectionEnd - 1 - count));
|
|
210
220
|
var isPossibleToRemove = clearableCountryCode
|
|
211
|
-
?
|
|
212
|
-
:
|
|
221
|
+
? selectionEnd - count > 0
|
|
222
|
+
: selectionEnd - count > countryCodeLength;
|
|
213
223
|
return isMask && isPossibleToRemove;
|
|
214
224
|
};
|
|
215
|
-
var deletedCharsCount = 1;
|
|
225
|
+
var deletedCharsCount = Math.max(1, selectionEnd - selectionStart);
|
|
216
226
|
// Высчитываем кол-во символов, которые нужно удалить.
|
|
217
227
|
while (isMaskSymbol(deletedCharsCount)) {
|
|
218
228
|
deletedCharsCount += 1;
|
|
219
229
|
}
|
|
220
|
-
var phonePart = currentValue.slice(0,
|
|
221
|
-
var newValue = formatPhone(addCountryCode(phonePart + currentValue.slice(
|
|
230
|
+
var phonePart = currentValue.slice(0, selectionEnd - deletedCharsCount);
|
|
231
|
+
var newValue = formatPhone(addCountryCode(phonePart + currentValue.slice(selectionEnd)));
|
|
222
232
|
var phonePartWithoutMask = phonePart.replace(/[^0-9+]+/g, '');
|
|
223
233
|
setCaretPos(utils_calculateCaretPos.calculateCaretPos(phonePartWithoutMask, newValue));
|
|
224
234
|
setCountryByDialCodeWithLengthCheck(newValue);
|
|
@@ -227,12 +237,20 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
227
237
|
var handleKeyDown = function (event) {
|
|
228
238
|
var input = event.target;
|
|
229
239
|
var caretPosition = input.selectionStart || 0;
|
|
240
|
+
var disallowedSymbols = /[/|?!@#$%^&*()_=A-Za-zА-Яа-яЁё,. ]/;
|
|
241
|
+
var withoutCombo = !event.altKey && !event.metaKey && !event.ctrlKey;
|
|
242
|
+
// Запрещаем вводить неразрешенные символы за исключением комбинций клавиш
|
|
243
|
+
if (withoutCombo && event.key.length === 1 && disallowedSymbols.test(event.key)) {
|
|
244
|
+
event.preventDefault();
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
230
247
|
// Нажат только Backspace, не сочетание клавиш с ним.
|
|
231
|
-
if (!event.shiftKey &&
|
|
248
|
+
if (!event.shiftKey && withoutCombo && event.key === 'Backspace') {
|
|
232
249
|
if (!caretPosition)
|
|
233
250
|
return;
|
|
234
251
|
event.preventDefault();
|
|
235
|
-
handleDeleteChar(event
|
|
252
|
+
handleDeleteChar(event);
|
|
253
|
+
return;
|
|
236
254
|
}
|
|
237
255
|
if (event.key.length === 1 && /[0-9+]/.test(event.key)) {
|
|
238
256
|
event.preventDefault();
|
|
@@ -265,7 +283,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
265
283
|
var resultNumber = preparedNumber.substring(0, maxPhoneLength + 1);
|
|
266
284
|
if (resultNumber) {
|
|
267
285
|
setCountryIso2(targetCountry ? targetCountry.iso2 : undefined);
|
|
268
|
-
|
|
286
|
+
changePhone(addCountryCode(resultNumber));
|
|
269
287
|
}
|
|
270
288
|
};
|
|
271
289
|
React.useEffect(function () {
|
|
@@ -282,7 +300,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
282
300
|
.then(function (utils) {
|
|
283
301
|
phoneLibUtils.current = utils.AsYouType;
|
|
284
302
|
if (canBeEmptyCountry) {
|
|
285
|
-
|
|
303
|
+
changePhone(value);
|
|
286
304
|
}
|
|
287
305
|
else {
|
|
288
306
|
setCountryByDialCode(value);
|
|
@@ -304,7 +322,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
304
322
|
setCountryIso2(undefined);
|
|
305
323
|
handleCountryChange(undefined);
|
|
306
324
|
}
|
|
307
|
-
|
|
325
|
+
changePhone(value, newCountry === null || newCountry === void 0 ? void 0 : newCountry.iso2);
|
|
308
326
|
}
|
|
309
327
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
310
328
|
}, [value, canBeEmptyCountry, countryIso2, defaultCountryIso2]);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var flagSprite = {
|
|
4
6
|
'ge-ab': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path d="M0 0h24v24H0z"/><g clip-path="url(#a)"><path fill="#F5F5F5" d="M24 6.4H0v2.2h24V6.4Z"/><path fill="#73AF00" d="M24 8.6H0V11h24V8.6Z"/><path fill="#F5F5F5" d="M24 10.9H0V13h24V11Z"/><path fill="#73AF00" d="M24 13.1H0v2.3h24V13Z"/><path fill="#F5F5F5" d="M24 15.4H0v2.2h24v-2.2Z"/><path fill="#73AF00" d="M22.2 4.1H1.8C.8 4.1 0 5 0 6v.5h24v-.5c0-1-.8-1.8-1.8-1.8ZM24 17.6H0v.5c0 1 .8 1.7 1.7 1.8h20.6c1 0 1.7-.9 1.7-1.8v-.5Z"/><path fill="#FF4B55" d="M0 6v4.5c0 .2.2.4.4.4h11.2c.2 0 .4-.2.4-.4v-6c0-.2-.2-.3-.4-.4H1.8C.8 4.1 0 5 0 6Z"/><path fill="#F5F5F5" d="M6.4 10.3H5.6l-.3-.6V7.3a.1.1 0 0 1 .2 0V8h.1V6.8a.1.1 0 0 1 .3 0V8L6 6.7a.1.1 0 0 1 .2 0V8h.2V7a.1.1 0 0 1 .2 0v1.2l.3.6c0-.2.2-.5.4-.6h.1v.2a1 1 0 0 0-.2.7v.1l-.6.7v.3l-.2.1ZM6 4.7l.1.3h.4l-.3.3.1.3-.3-.2-.3.2v-.3L5.6 5H6v-.4H6ZM4.4 5.2l.1.3H5l-.3.3.1.3-.3-.2-.3.2v-.3L4 5.6v-.1h.4v-.3h.1ZM7.7 5.2l.1.3h.3l-.2.3V6L7.7 6l-.3.2v-.3l-.2-.2v-.1h.3l.1-.3ZM8.8 6.4v.3h.4L9 7v.3l-.3-.2-.2.2V7l-.3-.2h.4l.1-.4ZM3.2 6.4l.1.3h.4l-.3.3.1.3-.3-.2-.3.2L3 7l-.3-.2h.4v-.4h.1ZM9 8l.2.3h.3v.1l-.2.2v.3l-.2-.1-.3.2v-.4l-.2-.2h.3L9 8ZM2.8 8l.1.3h.4v.1l-.3.2.1.3-.3-.1-.3.2v-.4l-.2-.2h.4V8h.1Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h24v24H0V0Z"/></clipPath></defs></svg>',
|
|
5
7
|
af: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path d="M0 0h24v24H0z"/><path fill="#464655" d="M1.8 19.9H8V4H1.8C.8 4.1 0 5 0 6v12.2c0 1 .8 1.8 1.8 1.8Z"/><path fill="#FF4B55" d="M16 4.1H8V20h8V4Z"/><path fill="#73AF00" d="M22.2 19.9c1 0 1.8-.8 1.8-1.8V5.9c0-1-.8-1.8-1.8-1.8H16V20h6.2Z"/><path fill="#F5F5F5" d="M11.4 11.6H11v.1h.4ZM13 12.8h-2v-.2h2v.2ZM13 10.9h-2v.2h2V11Z"/><path fill="#F5F5F5" d="M12.6 11h-1.2l.2-.2h.8l.2.2ZM11.4 12.2H11v.3h.4v-.3ZM11.4 11.9H11v.2h.4v-.2ZM11.4 11.3H11v.2h.4v-.2ZM13 12.2h-.4v.3h.4v-.3ZM13 11.9h-.4v.2h.4v-.2ZM13 11.3h-.4v.2h.4v-.2ZM13 11.6h-.4v.1h.4ZM11.4 10.3h-.2v.5h.2v-.5ZM11.4 10.2h-.2V10a.1.1 0 0 1 .2 0ZM12.8 10.3h-.2v.5h.2v-.5ZM12.8 10.2h-.2V10a.1.1 0 0 1 .2 0ZM12 11.3c-.3 0-.5.2-.5.4v.8h1v-.8c0-.2-.2-.4-.5-.4Z"/><path fill="#F5F5F5" d="m11.2 12-.6-.8a.1.1 0 1 0-.2.1l.1.1-.3.8.4.3.3-.7.2.3h.1Zm-.6.3-.3-.3.2-.3.3.3-.2.3ZM12.9 12l.2-.2.3.7.4-.3-.3-.8a.1.1 0 1 0 0-.2l-.7.8Zm.4 0 .2-.3.2.3-.3.3-.1-.3ZM12.1 10h-.2a.5.5 0 0 0-.4.7h1v-.2c0-.2-.2-.4-.4-.4ZM9.3 11.8a2.8 2.8 0 0 1 0-.6 2.6 2.6 0 0 0 0 .7h.3a2.4 2.4 0 0 1 0-.5l.2.6s.4-.6-.3-1.2v.2h-.4a3 3 0 0 0-.1.8h.3Z"/><path fill="#F5F5F5" d="M10.3 9.4a.1.1 0 1 0-.1-.2c-.6.5-1 1-1.1 1.7h.2c.2-.6.5-1.1 1-1.5Z"/><path fill="#F5F5F5" d="M10.2 9.7c-.3.3-.5.6-.6 1h.1l.6-.8a.1.1 0 0 0-.1-.2ZM9.7 13.2l-.4-.9h.2c0 .4.2.6.4.9h.2l-.3-.7h.1l.4.6h.2a2 2 0 0 1-.2-.4l-.2-.4-.2-.2h-.4l-.1-.1h-.1l-.3-.1H9v.2l.2.1c0 .4.2.7.4 1h.2ZM14.5 11v-.2c-.7.6-.3 1.2-.3 1.2 0-.2 0-.4.2-.6a2.1 2.1 0 0 1 0 .6l.2-.1a2.7 2.7 0 0 0 0-.7h.1a2.8 2.8 0 0 1 0 .6h.3a3 3 0 0 0 0-.7h-.5ZM14.7 10.9h.2a3 3 0 0 0-1-1.7.1.1 0 0 0-.2.2c.5.4.8 1 1 1.5ZM14.4 10.6l-.6-.9a.1.1 0 1 0-.1.2l.6.9.1-.2ZM15 11.9h-.3v.1h-.2l-.4.1-.2.2-.2.4-.2.3h.2c.2 0 .3-.3.4-.4l.1-.1-.3.6h.2l.4-.7h.2l-.4.8h.2c.2-.3.4-.6.4-1l.1-.1.1-.2H15ZM13.3 13.2a2 2 0 0 1-2.5 0h-.2l-1.2.2.2.2.3.1.7.6v.1a3 3 0 0 0 2.9 0l-.1-.1.7-.6h.3l.2-.3-1.2-.2h-.1Zm-2.6.9-.6-.5h.2l.5.4Zm3.2-.5-.6.5V14l.4-.4h.2ZM12 14c-.6 0-1.1-.2-1.5-.5h.1a2.3 2.3 0 0 0 2.8 0h.1c-.4.3-1 .5-1.5.5Z"/><path fill="#F5F5F5" d="m10.7 13 .1.2h2.4l.1-.2h-2.6Z"/></svg>',
|
package/cssm/components/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var components_selectField_component = require('./select-field/component.js');
|
|
4
6
|
var components_flagIcon_component = require('./flag-icon/component.js');
|
|
5
7
|
var components_select_component = require('./select/component.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
-
--color-light-text-secondary: rgba(
|
|
3
|
+
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
-
--color-light-border-link: #
|
|
4
|
-
--color-light-graphic-secondary: #
|
|
3
|
+
--color-light-border-link: #0072ef;
|
|
4
|
+
--color-light-graphic-secondary: #86868a; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|