@dfds-ui/experiences 2.2.0-alpha.c35ceba3 → 2.2.0-alpha.c79adffa
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/dynamic-table/Body/TableBody.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableBody.js +2 -3
- package/cjs/dynamic-table/Body/TableCell.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableCell.js +4 -5
- package/cjs/dynamic-table/Body/TableCell.styles.js +9 -12
- package/cjs/dynamic-table/Body/TableCell.types.d.ts +1 -0
- package/cjs/dynamic-table/Body/TableRow.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableRow.js +4 -4
- package/cjs/dynamic-table/Body/TableRow.styles.js +7 -5
- package/cjs/dynamic-table/Body/TableRow.types.d.ts +1 -0
- package/cjs/dynamic-table/Body/TableRowGroup.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableRowGroup.js +11 -3
- package/cjs/dynamic-table/DynamicTable.js +35 -21
- package/cjs/dynamic-table/DynamicTable.styles.js +1 -2
- package/cjs/dynamic-table/Head/TableHead.d.ts +1 -1
- package/cjs/dynamic-table/Head/TableHead.js +2 -3
- package/cjs/dynamic-table/Head/TableHead.styles.js +21 -24
- package/cjs/dynamic-table/Skeleton/SkeletonTable.styles.js +2 -3
- package/cjs/dynamic-table/Skeleton/helpers/createSkeletonRows.js +2 -3
- package/cjs/dynamic-table/helpers/getHeaderRow.js +1 -2
- package/cjs/dynamic-table/stories/headerRow.js +1 -2
- package/cjs/dynamic-table/stories/headerRowSortable.js +1 -2
- package/cjs/dynamic-table/stories/tableRows.js +1 -2
- package/cjs/dynamic-table/stories/tableRowsExpandable.js +1 -2
- package/cjs/footer/Footer.js +12 -12
- package/cjs/footer/FooterColumn.js +8 -7
- package/cjs/footer/FooterColumnItem.js +14 -11
- package/cjs/footer/FooterMetaLink.js +13 -10
- package/cjs/footer/index.js +4 -4
- package/cjs/index.js +5 -5
- package/cjs/internet-explorer-modal/IEModal.d.ts +1 -1
- package/cjs/internet-explorer-modal/IEModal.js +42 -26
- package/cjs/locale-selector/LocaleOption.d.ts +2 -2
- package/cjs/locale-selector/LocaleOption.js +1 -2
- package/cjs/locale-selector/LocaleSelector.d.ts +1 -3
- package/cjs/locale-selector/LocaleSelector.js +13 -6
- package/cjs/locale-selector/index.js +1 -1
- package/cjs/swiper/Swiper.d.ts +1 -1
- package/cjs/swiper/SwiperCard.d.ts +1 -1
- package/cjs/swiper/index.js +2 -2
- package/dynamic-table/Body/TableBody.d.ts +1 -1
- package/dynamic-table/Body/TableBody.js +1 -1
- package/dynamic-table/Body/TableCell.d.ts +1 -1
- package/dynamic-table/Body/TableCell.types.d.ts +1 -0
- package/dynamic-table/Body/TableRow.d.ts +1 -1
- package/dynamic-table/Body/TableRow.types.d.ts +1 -0
- package/dynamic-table/Body/TableRowGroup.d.ts +1 -1
- package/dynamic-table/Body/TableRowGroup.js +2 -2
- package/dynamic-table/DynamicTable.js +5 -5
- package/dynamic-table/Head/TableHead.d.ts +1 -1
- package/dynamic-table/Skeleton/helpers/createSkeletonRows.js +2 -2
- package/footer/Footer.js +3 -3
- package/footer/FooterColumn.js +3 -3
- package/footer/FooterColumnItem.js +3 -3
- package/footer/FooterMetaLink.js +3 -3
- package/internet-explorer-modal/IEModal.d.ts +1 -1
- package/internet-explorer-modal/IEModal.js +5 -5
- package/locale-selector/LocaleOption.d.ts +2 -2
- package/locale-selector/LocaleSelector.d.ts +1 -3
- package/locale-selector/LocaleSelector.js +2 -2
- package/package.json +12 -12
- package/swiper/Swiper.d.ts +1 -1
- package/swiper/SwiperCard.d.ts +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _excluded = ["activeRow", "descending", "expandable", "height", "headerRow", "isLoading", "onClickRow", "onSelectRow", "onSort", "rows", "selectedRows", "sortingBy", "stickyHeader"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t)
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
5
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0)
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
8
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
10
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
11
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
12
12
|
import TableBody from './Body/TableBody';
|
|
13
13
|
import { tableStyles, tableWrapperStyles } from './DynamicTable.styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableHeadProps } from './TableHead.types';
|
|
3
|
-
declare const TableHead: React.MemoExoticComponent<({ expandable, headerRow, onSelectRow, onSort, rows, selectableRows, selectedRows, setSortDescending, setSortByKeyValue, sortDescending, sortByKeyValue, stickyHeader, }: TableHeadProps) =>
|
|
3
|
+
declare const TableHead: React.MemoExoticComponent<({ expandable, headerRow, onSelectRow, onSort, rows, selectableRows, selectedRows, setSortDescending, setSortByKeyValue, sortDescending, sortByKeyValue, stickyHeader, }: TableHeadProps) => JSX.Element>;
|
|
4
4
|
export default TableHead;
|
|
@@ -3,7 +3,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
3
3
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
4
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
5
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
7
|
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)."; }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Skeleton } from '@dfds-ui/react-components';
|
|
@@ -21,7 +21,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
21
21
|
var createSkeletonRows = function createSkeletonRows(headerRow) {
|
|
22
22
|
return _toConsumableArray(Array(7)).map(function (_, index) {
|
|
23
23
|
var row = {};
|
|
24
|
-
headerRow === null || headerRow === void 0
|
|
24
|
+
headerRow === null || headerRow === void 0 || headerRow.forEach(function (cell) {
|
|
25
25
|
row[cell.key] = ___EmotionJSX(Skeleton, {
|
|
26
26
|
css: _ref,
|
|
27
27
|
variant: "text"
|
package/footer/Footer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
2
2
|
var _excluded = ["topElement", "children", "metaLinks", "features"];
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t)
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
5
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
6
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
5
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
6
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
7
7
|
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)."; }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { theme, media, useBreakpoint } from '@dfds-ui/theme';
|
package/footer/FooterColumn.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
var _excluded = ["children", "title"];
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t)
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
5
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
6
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
5
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
6
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { FlexBox } from '@dfds-ui/react-components/flexbox';
|
|
9
9
|
import { Text } from '@dfds-ui/typography';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
var _excluded = ["children", "className"];
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t)
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
5
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
6
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
5
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
6
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { theme, media } from '@dfds-ui/theme';
|
|
9
9
|
import { css } from '@emotion/react';
|
package/footer/FooterMetaLink.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t)
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
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)."; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { theme, media } from '@dfds-ui/theme';
|
|
@@ -65,5 +65,5 @@ export declare type IEModalProps = React.PropsWithChildren<{
|
|
|
65
65
|
*/
|
|
66
66
|
onCompatibleBrowserDetected?: () => void;
|
|
67
67
|
}>;
|
|
68
|
-
export declare const IEModal: ({ heading, description, goToFrontPageText, openPageInEdgeText, headerClassName, noContentPadding, column, zIndex, sizes, canClose, closeTabIndex, onRequestClose, onCompatibleBrowserDetected, ...rest }: IEModalProps) =>
|
|
68
|
+
export declare const IEModal: ({ heading, description, goToFrontPageText, openPageInEdgeText, headerClassName, noContentPadding, column, zIndex, sizes, canClose, closeTabIndex, onRequestClose, onCompatibleBrowserDetected, ...rest }: IEModalProps) => JSX.Element | null;
|
|
69
69
|
export default IEModal;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { css as _css } from "@emotion/react";
|
|
2
2
|
var _excluded = ["heading", "description", "goToFrontPageText", "openPageInEdgeText", "headerClassName", "noContentPadding", "column", "zIndex", "sizes", "canClose", "closeTabIndex", "onRequestClose", "onCompatibleBrowserDetected"];
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t)
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
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)."; }
|
|
5
5
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
6
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
7
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
8
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
9
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0)
|
|
8
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
10
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
11
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
12
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
11
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
12
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { SmallHeadline } from '@dfds-ui/react-components';
|
|
15
15
|
import { ModalHeader, ModalDialog, ModalBody, defaultProps, ModalActionsContainer, ModalAction, ModalCloseButton } from '@dfds-ui/modal';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Locale } from '@dfds-ui/react-components';
|
|
3
3
|
export declare type LocaleOptionProps = {
|
|
4
4
|
label: string;
|
|
5
5
|
locale: Locale;
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const LocaleOption: ({ label, locale, onClick }: LocaleOptionProps) =>
|
|
8
|
+
export declare const LocaleOption: ({ label, locale, onClick }: LocaleOptionProps) => JSX.Element;
|
|
9
9
|
export default LocaleOption;
|
|
@@ -49,7 +49,5 @@ export declare const LocaleSelector: React.ForwardRefExoticComponent<{
|
|
|
49
49
|
* className to be assigned to component.
|
|
50
50
|
*/
|
|
51
51
|
className?: string | undefined;
|
|
52
|
-
} & Pick<ModalProps, "renderWhenClosed"> &
|
|
53
|
-
children?: React.ReactNode;
|
|
54
|
-
} & React.RefAttributes<unknown>>;
|
|
52
|
+
} & Pick<ModalProps, "renderWhenClosed"> & React.RefAttributes<unknown>>;
|
|
55
53
|
export default LocaleSelector;
|
|
@@ -3,8 +3,8 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
|
|
|
3
3
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
5
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0)
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
8
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
9
|
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)."; }
|
|
10
10
|
import React, { useState, forwardRef } from 'react';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React components for building experiences",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.0-alpha.
|
|
6
|
+
"version": "2.2.0-alpha.c79adffa",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@emotion/react": "11.11.4",
|
|
14
14
|
"@emotion/styled": "11.11.5",
|
|
15
|
-
"react": ">=
|
|
16
|
-
"react-dom": ">=
|
|
15
|
+
"react": ">= 17.0.2",
|
|
16
|
+
"react-dom": ">= 17.0.2"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dfds-ui/colors": "2.2.0-alpha.
|
|
20
|
-
"@dfds-ui/forms": "2.2.0-alpha.
|
|
21
|
-
"@dfds-ui/grid": "2.2.0-alpha.
|
|
22
|
-
"@dfds-ui/icons": "2.2.0-alpha.
|
|
23
|
-
"@dfds-ui/modal": "2.2.0-alpha.
|
|
24
|
-
"@dfds-ui/react-components": "2.2.0-alpha.
|
|
25
|
-
"@dfds-ui/theme": "2.2.0-alpha.
|
|
26
|
-
"@dfds-ui/typography": "2.2.0-alpha.
|
|
19
|
+
"@dfds-ui/colors": "2.2.0-alpha.c79adffa",
|
|
20
|
+
"@dfds-ui/forms": "2.2.0-alpha.c79adffa",
|
|
21
|
+
"@dfds-ui/grid": "2.2.0-alpha.c79adffa",
|
|
22
|
+
"@dfds-ui/icons": "2.2.0-alpha.c79adffa",
|
|
23
|
+
"@dfds-ui/modal": "2.2.0-alpha.c79adffa",
|
|
24
|
+
"@dfds-ui/react-components": "2.2.0-alpha.c79adffa",
|
|
25
|
+
"@dfds-ui/theme": "2.2.0-alpha.c79adffa",
|
|
26
|
+
"@dfds-ui/typography": "2.2.0-alpha.c79adffa"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "c79adffa9d3abdc5a68e179196b451f0d9aec5e9",
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
}
|
package/swiper/Swiper.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
export declare type SwiperProps = React.PropsWithChildren<{
|
|
3
3
|
className?: string;
|
|
4
4
|
}>;
|
|
5
|
-
export declare const Swiper: ({ className, children }: SwiperProps) =>
|
|
5
|
+
export declare const Swiper: ({ className, children }: SwiperProps) => JSX.Element;
|
package/swiper/SwiperCard.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
export declare type SwiperCardProps = React.PropsWithChildren<{
|
|
3
3
|
className?: string;
|
|
4
4
|
}>;
|
|
5
|
-
export declare const SwiperCard: ({ className, children }: SwiperCardProps) =>
|
|
5
|
+
export declare const SwiperCard: ({ className, children }: SwiperCardProps) => JSX.Element;
|