@dfds-ui/react-components 2.0.23-alpha.df859452 → 2.0.23-alpha.e8d31cdb
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/cjs/card/Card.js +1 -1
- package/cjs/common/arrow.js +4 -4
- package/cjs/common/polymorphic.js +1 -4
- package/cjs/data-table/DataTable.js +0 -1
- package/cjs/date-range-picker/DateRangePicker.js +1 -1
- package/cjs/elevation/index.js +0 -2
- package/cjs/forms/email-field/EmailField.js +2 -1
- package/cjs/forms/input/InputComposition.js +1 -8
- package/cjs/forms/password-field/PasswordField.js +1 -1
- package/cjs/forms/reactselect/ReactSelect.js +1 -1
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +0 -1
- package/cjs/forms/select/Select.js +1 -1
- package/cjs/forms/tel-field/TelField.js +3 -1
- package/cjs/forms/text-field/TextField.js +1 -1
- package/cjs/global-styles/ResetStyles.js +8 -7
- package/cjs/styles/style-helpers.js +1 -1
- package/common/arrow.js +4 -4
- package/common/polymorphic.js +0 -2
- package/forms/text-field/TextField.js +0 -2
- package/package.json +9 -9
package/cjs/card/Card.js
CHANGED
|
@@ -23,7 +23,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
23
23
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
24
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
25
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
26
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
const CardContext = /*#__PURE__*/_react.default.createContext({});
|
|
28
28
|
exports.CardContext = CardContext;
|
|
29
29
|
const CardContainer = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
package/cjs/common/arrow.js
CHANGED
|
@@ -11,10 +11,6 @@ function px(size) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// currently limited positions
|
|
14
|
-
/**
|
|
15
|
-
* Create css for an arrow
|
|
16
|
-
* A <div> tag must surround {children} to work
|
|
17
|
-
*/
|
|
18
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
19
15
|
name: "abcix4",
|
|
20
16
|
styles: "top:0"
|
|
@@ -33,6 +29,10 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
33
29
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21tb24vYXJyb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkJrQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tbW9uL2Fycm93LnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmZ1bmN0aW9uIHB4KHNpemU6IG51bWJlcikge1xuICByZXR1cm4gYCR7c2l6ZX1weGBcbn1cblxuLy8gY3VycmVudGx5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ICB9XG4gIGBcbn1cbiJdfQ== */",
|
|
34
30
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
35
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Create css for an arrow
|
|
34
|
+
* A <div> tag must surround {children} to work
|
|
35
|
+
*/
|
|
36
36
|
function arrow(size, color, offset = 20, position = 'top-right') {
|
|
37
37
|
const degToRad = x => {
|
|
38
38
|
return x / 180 * Math.PI;
|
|
@@ -8,10 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
11
|
-
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); }
|
|
12
|
-
// TODO: Consider changing to this pattern:
|
|
13
|
-
// https://blog.andrewbran.ch/polymorphic-react-components/
|
|
14
|
-
// https://github.com/kripod/react-polymorphic-box
|
|
11
|
+
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); }
|
|
15
12
|
/**
|
|
16
13
|
* Given a PolymorphicComponent and a desired RenderComponent this function will returns are new component where the
|
|
17
14
|
* polymorphic prop will point to the provided `RenderComponent`.
|
|
@@ -9,7 +9,6 @@ var _react2 = require("@emotion/react");
|
|
|
9
9
|
var _checkbox = require("../forms/checkbox");
|
|
10
10
|
var _theme = require("@dfds-ui/theme");
|
|
11
11
|
const _excluded = ["children", "onChange", "columns", "data", "hasHeader"];
|
|
12
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
13
12
|
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
13
|
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
14
|
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); }
|
|
@@ -26,7 +26,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
26
26
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
27
27
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
28
28
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
29
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
30
30
|
// Do a wrapper to support styled components: https://github.com/airbnb/react-dates/issues/1030#issuecomment-388227454
|
|
31
31
|
const DateRangePicker = props => {
|
|
32
32
|
const _useState = (0, _react.useState)(toMoment(props.startDates.initial)),
|
package/cjs/elevation/index.js
CHANGED
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
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)."; }
|
|
9
|
-
// The values are from material-ui
|
|
10
|
-
// https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/styles/shadows.js
|
|
11
9
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
12
10
|
name: "a7m0og",
|
|
13
11
|
styles: "box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2),0px 16px 24px 2px rgba(0, 0, 0, 0.14),0px 6px 30px 5px rgba(0, 0, 0, 0.12)"
|
|
@@ -9,7 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _TextField = _interopRequireDefault(require("../text-field/TextField"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
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); }
|
|
12
|
+
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); }
|
|
13
|
+
// EmailField is a composite component used to encapsulate a complete field with label, input and error/hint
|
|
13
14
|
const EmailField = (props, ref) => {
|
|
14
15
|
return (0, _react2.jsx)(_TextField.default, _extends({}, props, {
|
|
15
16
|
ref: ref,
|
|
@@ -19,14 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
19
|
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); }
|
|
20
20
|
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; }
|
|
21
21
|
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; }
|
|
22
|
-
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)."; }
|
|
23
|
-
/*
|
|
24
|
-
<InputComposition>
|
|
25
|
-
<InputAddon />
|
|
26
|
-
<InputControl />
|
|
27
|
-
<InputIcon />
|
|
28
|
-
</InputComposition>
|
|
29
|
-
*/
|
|
22
|
+
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)."; }
|
|
30
23
|
const iconSizes = {
|
|
31
24
|
small: '24px',
|
|
32
25
|
medium: '24px'
|
|
@@ -19,7 +19,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
19
19
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
20
20
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
21
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
-
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)."; }
|
|
22
|
+
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)."; }
|
|
23
23
|
const IconWrapper = /*#__PURE__*/(0, _base.default)("span", process.env.NODE_ENV === "production" ? {
|
|
24
24
|
target: "e82rmjd0"
|
|
25
25
|
} : {
|
|
@@ -23,7 +23,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
23
23
|
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); }
|
|
24
24
|
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; }
|
|
25
25
|
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; }
|
|
26
|
-
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)."; }
|
|
26
|
+
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)."; }
|
|
27
27
|
const ReactSelectWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
28
28
|
target: "emyde7z1"
|
|
29
29
|
} : {
|
|
@@ -14,7 +14,6 @@ var _theme = require("@dfds-ui/theme");
|
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
const _excluded = ["name", "error", "selectClassName", "className", "icon", "disabled", "size", "arrow", "htmlSize", "handleInputChange", "loadOptions", "onBlur", "onFocus", "onChange", "assistiveText", "autoFocus"],
|
|
16
16
|
_excluded2 = ["ref"];
|
|
17
|
-
/* eslint-disable deprecation/deprecation */
|
|
18
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
18
|
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); }
|
|
20
19
|
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; }
|
|
@@ -14,7 +14,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
14
14
|
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); }
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
|
-
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)."; }
|
|
17
|
+
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)."; }
|
|
18
18
|
const Wrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
19
19
|
target: "em3vnrq2"
|
|
20
20
|
} : {
|
|
@@ -9,7 +9,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _TextField = _interopRequireDefault(require("../text-field/TextField"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
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); }
|
|
12
|
+
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); }
|
|
13
|
+
// TelField is a composite component used to encapsulate a complete field with label, input and error/hint
|
|
14
|
+
|
|
13
15
|
const TelField = (props, ref) => {
|
|
14
16
|
return (0, _react2.jsx)(_TextField.default, _extends({}, props, {
|
|
15
17
|
ref: ref,
|
|
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
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)."; }
|
|
21
21
|
const margins = process.env.NODE_ENV === "production" ? {
|
|
22
22
|
name: "7yx9dh",
|
|
23
23
|
styles: "margin-bottom:4px;display:block"
|
|
@@ -7,13 +7,7 @@ exports.ResetStyles = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
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)."; }
|
|
11
|
-
* Minimal/modern CSS reset.
|
|
12
|
-
*
|
|
13
|
-
* Taken from: https://www.joshwcomeau.com/css/custom-css-reset/
|
|
14
|
-
*
|
|
15
|
-
* TODO: Include this in the GlobalStyles component when adapted and tested in solutions.
|
|
16
|
-
*/
|
|
10
|
+
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)."; }
|
|
17
11
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
18
12
|
name: "6jhwm5",
|
|
19
13
|
styles: "*,*::before,*::after{box-sizing:border-box;}*{margin:0;}html,body{height:100%;}body{-webkit-font-smoothing:antialiased;}img,picture,video,canvas,svg{display:block;max-width:100%;}input,button,textarea,select{font:inherit;}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word;}"
|
|
@@ -23,6 +17,13 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
23
17
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9nbG9iYWwtc3R5bGVzL1Jlc2V0U3R5bGVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFjaUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2dsb2JhbC1zdHlsZXMvUmVzZXRTdHlsZXMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuXG5pbXBvcnQ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naHRcbiAgICAgICAgICA1LiBJbXByb3ZlIHRleHQgcmVuZGVyaW5nXG4gICAgICAgICovXG4gICAgICAgIGJvZHkge1xuICAgICAgICAgIC8qIFRPRE86IEV2YWx1YXRlIGltcGxpY2F0aW9ucyBvZiBlbmFibGluZyB0aGlzIGxpbmUtaGVpZ2h0IGNoYW5nZSAqL1xuICAgICAgICAgIC8qIGxpbmUtaGVpZ2h0OiAxLjU7ICovXG4gICAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7XG4gICAgICAgIH1cbiAgICAgICAgLypcbiAgICAgICAgICA2LiBJbXByb3ZlIG1lZGlhIGRlZmF1bHRzXG4gICAgICAgICovXG4gICAgICAgIGltZyxcbiAgICAgICAgcGljdHVyZSxcbiAgICAgICAgdmlkZW8sXG4gICAgICAgIGNhbnZhcyxcbiAgICAgICAgc3ZnIHtcbiAgICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAgICBtYXgtd2lkdGg6IDEwMCU7XG4gICAgICAgIH1cbiAgICAgICAgLypcbiAgICAgICAgICA3LiBSZW1vdmUgYnVpbHQtaW4gZm9ybSB0eXBvZ3JhcGh5IHN0eWxlc1xuICAgICAgICAqL1xuICAgICAgICBpbnB1dCxcbiAgICAgICAgYnV0dG9uLFxuICAgICAgICB0ZXh0YXJlYSxcbiAgICAgICAgc2VsZWN0IHtcbiAgICAgICAgICBmb250OiBpbmhlcml0O1xuICAgICAgICB9XG4gICAgICAgIC8qXG4gICAgICAgICAgOC4gQXZvaWQgdGV4dCBvdmVyZmxvd3NcbiAgICAgICAgKi9cbiAgICAgICAgcCxcbiAgICAgICAgaDEsXG4gICAgICAgIGgyLFxuICAgICAgICBoMyxcbiAgICAgICAgaDQsXG4gICAgICAgIGg1LFxuICAgICAgICBoNiB7XG4gICAgICAgICAgb3ZlcmZsb3ctd3JhcDogYnJlYWstd29yZDtcbiAgICAgICAgfVxuICAgICAgYH1cbiAgICAvPlxuICApXG59XG4iXX0= */",
|
|
24
18
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Minimal/modern CSS reset.
|
|
22
|
+
*
|
|
23
|
+
* Taken from: https://www.joshwcomeau.com/css/custom-css-reset/
|
|
24
|
+
*
|
|
25
|
+
* TODO: Include this in the GlobalStyles component when adapted and tested in solutions.
|
|
26
|
+
*/
|
|
26
27
|
const ResetStyles = () => {
|
|
27
28
|
return (0, _react2.jsx)(_react2.Global, {
|
|
28
29
|
styles: _ref
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.visuallyHidden = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
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)."; }
|
|
9
|
-
// https://zellwk.com/blog/hide-content-accessibly/
|
|
10
9
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
11
10
|
name: "2jmk7x",
|
|
12
11
|
styles: "border:0;clip:rect(0 0 0 0);height:auto;margin:0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap"
|
|
@@ -16,5 +15,6 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
16
15
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdHlsZXMvc3R5bGUtaGVscGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHdUMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3N0eWxlcy9zdHlsZS1oZWxwZXJzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbi8vIGh0dHBzOi8vemVsbHdrLmNvbS9ibG9nL2hpZGUtY29udGVudC1hY2Nlc3NpYmx5L1xuZXhwb3J0IGNvbnN0IHZpc3VhbGx5SGlkZGVuID0gKCkgPT4gY3NzYFxuICBib3JkZXI6IDA7XG4gIGNsaXA6IHJlY3QoMCAwIDAgMCk7XG4gIGhlaWdodDogYXV0bztcbiAgbWFyZ2luOiAwO1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBwYWRkaW5nOiAwO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiAxcHg7XG4gIHdoaXRlLXNwYWNlOiBub3dyYXA7XG5gXG4iXX0= */",
|
|
17
16
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
18
17
|
};
|
|
18
|
+
// https://zellwk.com/blog/hide-content-accessibly/
|
|
19
19
|
const visuallyHidden = () => _ref;
|
|
20
20
|
exports.visuallyHidden = visuallyHidden;
|
package/common/arrow.js
CHANGED
|
@@ -5,10 +5,6 @@ function px(size) {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
// currently limited positions
|
|
8
|
-
/**
|
|
9
|
-
* Create css for an arrow
|
|
10
|
-
* A <div> tag must surround {children} to work
|
|
11
|
-
*/
|
|
12
8
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
9
|
name: "abcix4",
|
|
14
10
|
styles: "top:0"
|
|
@@ -27,6 +23,10 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
27
23
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tb24vYXJyb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkJrQiIsImZpbGUiOiIuLi8uLi9zcmMvY29tbW9uL2Fycm93LnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmZ1bm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cm06IHJvdGF0ZSgtNDVkZWcpO1xuICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgICAgIH1cbiAgICB9XG4gIGBcbn1cbiJdfQ== */",
|
|
28
24
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
29
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Create css for an arrow
|
|
28
|
+
* A <div> tag must surround {children} to work
|
|
29
|
+
*/
|
|
30
30
|
export default function arrow(size, color) {
|
|
31
31
|
var offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 20;
|
|
32
32
|
var position = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'top-right';
|
package/common/polymorphic.js
CHANGED
|
@@ -6,8 +6,6 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// TODO: Consider changing to this pattern:
|
|
8
8
|
// https://blog.andrewbran.ch/polymorphic-react-components/
|
|
9
|
-
|
|
10
|
-
// https://github.com/kripod/react-polymorphic-box
|
|
11
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
12
10
|
/**
|
|
13
11
|
* Given a PolymorphicComponent and a desired RenderComponent this function will returns are new component where the
|
|
@@ -11,8 +11,6 @@ import Input from '../input/Input';
|
|
|
11
11
|
import AssistiveText from '../assistive-text/AssistiveText';
|
|
12
12
|
import ErrorText from '../error-text/ErrorText';
|
|
13
13
|
import { v4 as uuidv4 } from 'uuid';
|
|
14
|
-
|
|
15
|
-
// TODO: extend on JSX.IntrinsicElements['input'] will give us some of the other props
|
|
16
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
15
|
var margins = process.env.NODE_ENV === "production" ? {
|
|
18
16
|
name: "7yx9dh",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Shared react components within DFDS",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.0.23-alpha.
|
|
6
|
+
"version": "2.0.23-alpha.e8d31cdb",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"react-select": "^4.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dfds-ui/colors": "2.0.23-alpha.
|
|
22
|
-
"@dfds-ui/fonts": "2.0.23-alpha.
|
|
23
|
-
"@dfds-ui/hooks": "2.0.23-alpha.
|
|
24
|
-
"@dfds-ui/icons": "2.0.23-alpha.
|
|
25
|
-
"@dfds-ui/spacing": "2.0.23-alpha.
|
|
26
|
-
"@dfds-ui/theme": "2.0.23-alpha.
|
|
27
|
-
"@dfds-ui/typography": "2.0.23-alpha.
|
|
21
|
+
"@dfds-ui/colors": "2.0.23-alpha.e8d31cdb",
|
|
22
|
+
"@dfds-ui/fonts": "2.0.23-alpha.e8d31cdb",
|
|
23
|
+
"@dfds-ui/hooks": "2.0.23-alpha.e8d31cdb",
|
|
24
|
+
"@dfds-ui/icons": "2.0.23-alpha.e8d31cdb",
|
|
25
|
+
"@dfds-ui/spacing": "2.0.23-alpha.e8d31cdb",
|
|
26
|
+
"@dfds-ui/theme": "2.0.23-alpha.e8d31cdb",
|
|
27
|
+
"@dfds-ui/typography": "2.0.23-alpha.e8d31cdb",
|
|
28
28
|
"@kunukn/react-collapse": "^2.2.9",
|
|
29
29
|
"@mui/base": "^5.0.0-alpha.102",
|
|
30
30
|
"@mui/material": "^5.10.10",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-hook-intersection-observer": "^0.1.0",
|
|
37
37
|
"uuid": "^9.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "e8d31cdb34f58f8057c51aabd24d5eaff4bb91ba",
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
}
|