@bigbinary/neeto-molecules 4.0.1 → 4.0.2

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.
@@ -2,8 +2,8 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
4
  import { useField } from 'formik';
5
- import { P as PhoneNumberInput, g as getPhoneData, S as SingleValue } from './phone-number-BPy1zqqJ.js';
6
- export { i as isPhoneNumberValid, v as validation } from './phone-number-BPy1zqqJ.js';
5
+ import { P as PhoneNumberInput, g as getPhoneData, S as SingleValue } from './phone-number-CSXPpNBP.js';
6
+ export { i as isPhoneNumberValid, v as validation } from './phone-number-CSXPpNBP.js';
7
7
  import { jsx, jsxs } from 'react/jsx-runtime';
8
8
  import { memo } from 'react';
9
9
  import classnames from 'classnames';
@@ -15,6 +15,7 @@ import '@tanstack/react-query';
15
15
  import 'libphonenumber-js/min';
16
16
  import '@bigbinary/neetoui/Input';
17
17
  import '@bigbinary/neetoui/Select';
18
+ import 'react-i18next';
18
19
  import './_commonjsHelpers-BFTU3MAI.js';
19
20
  import 'ramda';
20
21
  import '@bigbinary/neetoui/Tooltip';
@@ -28,7 +29,6 @@ import './inject-css-DmrvuTKK.js';
28
29
  import '@bigbinary/neeto-commons-frontend/utils/general';
29
30
  import '@bigbinary/neeto-icons/Copy';
30
31
  import '@bigbinary/neeto-icons/Check';
31
- import 'react-i18next';
32
32
 
33
33
  var _excluded$1 = ["name"];
34
34
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -34,7 +34,7 @@ import Close from '@bigbinary/neeto-icons/Close';
34
34
  import Input from '@bigbinary/neetoui/Input';
35
35
  import '@babel/runtime/helpers/objectWithoutProperties';
36
36
  import 'formik';
37
- import { P as PhoneNumberInput } from './phone-number-BPy1zqqJ.js';
37
+ import { P as PhoneNumberInput } from './phone-number-CSXPpNBP.js';
38
38
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
39
39
  import '@bigbinary/neeto-commons-frontend/utils/general';
40
40
  import '@bigbinary/neeto-icons/Copy';
@@ -4,7 +4,7 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
4
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
5
5
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
6
6
  var formik = require('formik');
7
- var phoneNumber = require('./phone-number-BE-Z-FwN.js');
7
+ var phoneNumber = require('./phone-number-C93qn93_.js');
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
9
  var React = require('react');
10
10
  var classnames = require('classnames');
@@ -16,6 +16,7 @@ require('@tanstack/react-query');
16
16
  require('libphonenumber-js/min');
17
17
  require('@bigbinary/neetoui/Input');
18
18
  require('@bigbinary/neetoui/Select');
19
+ require('react-i18next');
19
20
  require('./_commonjsHelpers-BJu3ubxk.js');
20
21
  require('ramda');
21
22
  require('@bigbinary/neetoui/Tooltip');
@@ -29,7 +30,6 @@ require('./inject-css-vQvjPR2x.js');
29
30
  require('@bigbinary/neeto-commons-frontend/utils/general');
30
31
  require('@bigbinary/neeto-icons/Copy');
31
32
  require('@bigbinary/neeto-icons/Check');
32
- require('react-i18next');
33
33
 
34
34
  var _excluded$1 = ["name"];
35
35
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -36,7 +36,7 @@ var Close = require('@bigbinary/neeto-icons/Close');
36
36
  var Input = require('@bigbinary/neetoui/Input');
37
37
  require('@babel/runtime/helpers/objectWithoutProperties');
38
38
  require('formik');
39
- var phoneNumber = require('./phone-number-BE-Z-FwN.js');
39
+ var phoneNumber = require('./phone-number-C93qn93_.js');
40
40
  var jsxRuntime = require('react/jsx-runtime');
41
41
  require('@bigbinary/neeto-commons-frontend/utils/general');
42
42
  require('@bigbinary/neeto-icons/Copy');
@@ -10,6 +10,7 @@ var neetoCist = require('@bigbinary/neeto-cist');
10
10
  var Input = require('@bigbinary/neetoui/Input');
11
11
  var classnames = require('classnames');
12
12
  var Select = require('@bigbinary/neetoui/Select');
13
+ var reactI18next = require('react-i18next');
13
14
  var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
14
15
  var ramda = require('ramda');
15
16
  var Tooltip = require('@bigbinary/neetoui/Tooltip');
@@ -113,6 +114,8 @@ var CountryPicker = function CountryPicker(_ref) {
113
114
  _useState2 = _slicedToArray(_useState, 2),
114
115
  searchTerm = _useState2[0],
115
116
  setSearchTerm = _useState2[1];
117
+ var _useTranslation = reactI18next.useTranslation(),
118
+ t = _useTranslation.t;
116
119
  return /*#__PURE__*/jsxRuntime.jsx("div", {
117
120
  className: classnames("flex-shrink-0", {
118
121
  "w-10": !searchTerm,
@@ -120,6 +123,7 @@ var CountryPicker = function CountryPicker(_ref) {
120
123
  }),
121
124
  children: /*#__PURE__*/jsxRuntime.jsx(Select, _objectSpread$1({
122
125
  isSearchable: true,
126
+ "aria-label": t("neetoMolecules.phoneNumberInput.countryCodeAriaLabel"),
123
127
  "data-testid": "phonenumber-country-picker",
124
128
  options: COUNTRY_PICKER_OPTIONS,
125
129
  strategy: "fixed",
@@ -297,7 +301,9 @@ var PhoneNumberInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
297
301
  error: error,
298
302
  onKeyDown: onKeyDown,
299
303
  ref: ref,
304
+ autoComplete: "tel",
300
305
  "data-testid": "phonenumber-input",
306
+ inputMode: "tel",
301
307
  type: "tel",
302
308
  value: formattedValue,
303
309
  prefix: /*#__PURE__*/jsxRuntime.jsx(CountryPicker$1, _objectSpread({
@@ -318,4 +324,4 @@ exports.SingleValue = SingleValue$1;
318
324
  exports.getPhoneData = getPhoneData;
319
325
  exports.isPhoneNumberValid = isPhoneNumberValid;
320
326
  exports.validation = validation;
321
- //# sourceMappingURL=phone-number-BE-Z-FwN.js.map
327
+ //# sourceMappingURL=phone-number-C93qn93_.js.map