@dfds-ui/forms 2.0.23-alpha.da370b8f → 2.0.23-alpha.df859452

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.
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
18
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
19
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
20
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } // TODO: Refactor these types
21
21
  const colors = _theme.theme.colors;
22
22
  var _ref = process.env.NODE_ENV === "production" ? {
23
23
  name: "1408f10",
@@ -28,7 +28,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
28
28
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
29
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
30
30
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
31
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } // map over flags and created object with countryName, flagIcon and countryCode
32
32
  function getPhoneNumberWithPrefix(number, prefix, splitted) {
33
33
  return number === '' ? '' : splitted ? `${prefix}-${number}` : `${prefix}${number}`;
34
34
  }
@@ -9,7 +9,7 @@ var _FieldWrap = require("../field-wrap/FieldWrap");
9
9
  var _react2 = require("@emotion/react");
10
10
  var _theme = require("@dfds-ui/theme");
11
11
  var _typography = require("@dfds-ui/typography");
12
- const _excluded = ["name", "size", "assistiveText", "errorMessage", "required", "hideAsterisk", "label", "help", "defaultValue", "value", "onChange", "maxValueLength", "placeholder", "disabled", "showLengthCounter", "rows"];
12
+ const _excluded = ["name", "size", "assistiveText", "errorMessage", "required", "hideAsterisk", "label", "help", "defaultValue", "value", "onChange", "maxValueLength", "placeholder", "disabled", "showLengthCounter", "rows"]; // Paddings applied to the input fields on rem units.
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -21,7 +21,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
21
21
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
22
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
23
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24
- // Paddings applied to the input fields on rem units.
25
24
  const inputPaddings = {
26
25
  small: {
27
26
  vertical: 0.5,
@@ -10,6 +10,8 @@ import { FlexBox } from '@dfds-ui/react-components/flexbox';
10
10
  import { theme } from '@dfds-ui/theme';
11
11
  import { InputComposition, InputIcon, InputControl } from '@dfds-ui/react-components/forms/input/InputComposition';
12
12
  import { typography } from '@dfds-ui/typography';
13
+
14
+ // TODO: Refactor these types
13
15
  import { jsx as ___EmotionJSX } from "@emotion/react";
14
16
  var colors = theme.colors;
15
17
  var _ref = process.env.NODE_ENV === "production" ? {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Form components",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.0.23-alpha.da370b8f",
6
+ "version": "2.0.23-alpha.df859452",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
@@ -17,13 +17,13 @@
17
17
  "react-select": "^4.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@dfds-ui/hooks": "2.0.23-alpha.da370b8f",
21
- "@dfds-ui/icons": "2.0.23-alpha.da370b8f",
22
- "@dfds-ui/react-components": "2.0.23-alpha.da370b8f",
23
- "@dfds-ui/theme": "2.0.23-alpha.da370b8f",
24
- "@dfds-ui/typography": "2.0.23-alpha.da370b8f"
20
+ "@dfds-ui/hooks": "2.0.23-alpha.df859452",
21
+ "@dfds-ui/icons": "2.0.23-alpha.df859452",
22
+ "@dfds-ui/react-components": "2.0.23-alpha.df859452",
23
+ "@dfds-ui/theme": "2.0.23-alpha.df859452",
24
+ "@dfds-ui/typography": "2.0.23-alpha.df859452"
25
25
  },
26
- "gitHead": "da370b8fe866cca4e716589136faf90bf3b9e808",
26
+ "gitHead": "df8594524df3bf0dfdd262ae7f6c7c13904052f6",
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  }
@@ -20,6 +20,8 @@ import { Label } from '../label/Label';
20
20
  import ErrorText from '../error-text/ErrorText';
21
21
  import * as flags from '@dfds-ui/icons/flags';
22
22
  import { ChevronDown } from '@dfds-ui/icons/system';
23
+
24
+ // map over flags and created object with countryName, flagIcon and countryCode
23
25
  import { jsx as ___EmotionJSX } from "@emotion/react";
24
26
  function getPhoneNumberWithPrefix(number, prefix, splitted) {
25
27
  return number === '' ? '' : splitted ? "".concat(prefix, "-").concat(number) : "".concat(prefix).concat(number);