@uncinc/uncinc-react-kitchen-sink 2.6.3 → 2.6.4
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/dist/Context/ViewportContext.d.ts +23 -0
- package/dist/components/AbbreviationAnnotation/index.d.ts +24 -0
- package/dist/components/Accordion/AccordionItem/index.d.ts +17 -0
- package/dist/components/Accordion/AccordionItem/index.js +8 -8
- package/dist/components/Accordion/AccordionItemVariant/index.d.ts +23 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion/index.js +3 -3
- package/dist/components/ApiAutocomplete/index.d.ts +19 -0
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Cookie/Checkbox/index.d.ts +12 -0
- package/dist/components/Cookie/index.d.ts +72 -0
- package/dist/components/Dialog/DialogHelpersStory/index.d.ts +3 -0
- package/dist/components/Dialog/DialogHookStory/index.d.ts +3 -0
- package/dist/components/Dialog/DialogOverrideStory/index.d.ts +3 -0
- package/dist/components/Dialog/index.d.ts +5 -5
- package/dist/components/Download/index.js +1 -1
- package/dist/components/FontSizeSwitcher/index.d.ts +11 -0
- package/dist/components/Form/Checkbox/index.d.ts +9 -0
- package/dist/components/Form/Checkboxes/index.d.ts +3 -0
- package/dist/components/Form/Date/index.d.ts +3 -0
- package/dist/components/Form/DatePicker/index.d.ts +3 -0
- package/dist/components/Form/DateSelect/index.d.ts +17 -0
- package/dist/components/Form/Email/index.d.ts +3 -0
- package/dist/components/Form/FormikWrapper/index.d.ts +3 -0
- package/dist/components/Form/GenericFormElement/index.d.ts +3 -0
- package/dist/components/Form/Number/index.d.ts +3 -0
- package/dist/components/Form/RadioButtons/index.d.ts +3 -0
- package/dist/components/Form/SearchField/index.d.ts +3 -0
- package/dist/components/Form/Select/Input/index.d.ts +3 -0
- package/dist/components/Form/Select/index.d.ts +3 -0
- package/dist/components/Form/TextField/index.d.ts +4 -0
- package/dist/components/Form/Textarea/index.d.ts +3 -0
- package/dist/components/Form/commonTests.d.ts +6 -0
- package/dist/components/Form/{TextField/index.test.js → commonTests.js} +65 -94
- package/dist/components/Hamburger/index.d.ts +14 -0
- package/dist/components/Header/index.d.ts +10 -0
- package/dist/components/Image/Background/index.d.ts +8 -0
- package/dist/components/Image/Picture/index.d.ts +2 -2
- package/dist/components/InlineMenu/index.d.ts +44 -0
- package/dist/components/InlineMenu/index.js +156 -40
- package/dist/components/Layout/Container/index.d.ts +22 -0
- package/dist/components/Layout/Container/index.js +14 -12
- package/dist/components/Layout/QuickLayout/Auto/index.d.ts +14 -0
- package/dist/components/Layout/QuickLayout/Center/index.d.ts +6 -0
- package/dist/components/Layout/QuickLayout/Clamp/index.d.ts +16 -0
- package/dist/components/Layout/QuickLayout/Sidebar/index.d.ts +14 -0
- package/dist/components/Layout/QuickLayout/SpaceBetween/index.d.ts +14 -0
- package/dist/components/Layout/QuickLayout/Stack/index.d.ts +7 -0
- package/dist/components/Layout/QuickLayout/Wrap/index.d.ts +14 -0
- package/dist/components/Layout/QuickLayout/index.d.ts +12 -0
- package/dist/components/Lottie/LottieAnimation/index.d.ts +3 -0
- package/dist/components/Lottie/LottieAnimationWithMousePosition.d.ts +6 -0
- package/dist/components/Lottie/index.d.ts +3 -0
- package/dist/components/MagicLine/index.d.ts +6 -0
- package/dist/components/MediaPlayer/index.js +6 -5
- package/dist/components/NavigationScroll/index.d.ts +10 -0
- package/dist/components/Pagination/index.d.ts +57 -0
- package/dist/components/SearchKit/Facets/ChipFacet/index.d.ts +8 -0
- package/dist/components/SearchKit/Facets/ListFacet/index.d.ts +8 -0
- package/dist/components/SearchKit/Facets/SelectFacet/index.d.ts +8 -0
- package/dist/components/SearchKit/Query/index.d.ts +7 -0
- package/dist/components/SearchKit/SearchFacets/index.d.ts +14 -0
- package/dist/components/SearchKit/SearchField/index.d.ts +16 -0
- package/dist/components/SearchKit/SearchLoadMore/index.d.ts +7 -0
- package/dist/components/SearchKit/SearchPage/index.d.ts +14 -0
- package/dist/components/SearchKit/SearchPagination/index.d.ts +5 -0
- package/dist/components/SearchKit/SearchReset/index.d.ts +7 -0
- package/dist/components/SearchKit/SearchResults/index.d.ts +33 -0
- package/dist/components/SearchKit/SearchSelectedFilters/Filters/CustomValue/index.d.ts +5 -0
- package/dist/components/SearchKit/SearchSelectedFilters/Filters/DateRange/index.d.ts +6 -0
- package/dist/components/SearchKit/SearchSelectedFilters/Filters/NumericRange/index.d.ts +6 -0
- package/dist/components/SearchKit/SearchSelectedFilters/Filters/Value/index.d.ts +6 -0
- package/dist/components/SearchKit/SearchSelectedFilters/index.d.ts +6 -0
- package/dist/components/SearchKit/SearchSorting/index.d.ts +6 -0
- package/dist/components/SearchKit/index.d.ts +37 -0
- package/dist/components/Share/index.d.ts +18 -0
- package/dist/components/Sliders/SliderRelated/index.d.ts +21 -0
- package/dist/components/TableRender/index.d.ts +10 -0
- package/dist/components/TableRender/index.js +66 -0
- package/dist/components/TableRender/style.scss +106 -0
- package/dist/components/TitleWithText/index.d.ts +3 -1
- package/dist/components/TitleWithText/index.js +8 -5
- package/dist/components/WysiwygField/index.d.ts +1 -1
- package/dist/components/WysiwygField/index.js +2 -1
- package/dist/components/index.d.ts +16 -0
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/i18next/index.d.ts +2 -0
- package/dist/helpers/date.d.ts +3 -0
- package/dist/helpers/gtm.d.ts +1 -1
- package/dist/helpers/index.d.ts +14 -0
- package/dist/helpers/index.js +31 -0
- package/dist/helpers/useValueForCurrentViewPort.d.ts +1 -0
- package/dist/hooks/useDialog.d.ts +1 -4
- package/dist/hooks/useDialogHelpers.d.ts +1 -1
- package/dist/hooks/usePrevious.d.ts +1 -1
- package/dist/index.d.ts +73 -0
- package/dist/index.js +7 -0
- package/dist/organisms/Downloads/index.js +4 -2
- package/dist/organisms/Text/index.d.ts +2 -0
- package/dist/organisms/Text/index.js +5 -1
- package/dist/setupTests.d.ts +1 -0
- package/package.json +10 -8
- package/dist/components/AbbreviationAnnotation/stories.js +0 -36
- package/dist/components/AbbreviationAnnotation/stories.scss +0 -39
- package/dist/components/Accordion/stories.js +0 -48
- package/dist/components/ApiAutocomplete/stories.js +0 -38
- package/dist/components/Button/stories.js +0 -43
- package/dist/components/Button/stories.scss +0 -45
- package/dist/components/CallToAction/stories.d.ts +0 -15
- package/dist/components/CallToAction/stories.js +0 -44
- package/dist/components/Cookie/stories.js +0 -107
- package/dist/components/Cookie/stories.scss +0 -70
- package/dist/components/Dialog/stories.js +0 -22
- package/dist/components/Download/stories.d.ts +0 -15
- package/dist/components/Download/stories.js +0 -35
- package/dist/components/Download/stories.scss +0 -67
- package/dist/components/FontSizeSwitcher/stories.js +0 -34
- package/dist/components/Form/Checkbox/stories.js +0 -48
- package/dist/components/Form/Checkboxes/index.test.js +0 -155
- package/dist/components/Form/Checkboxes/stories.js +0 -57
- package/dist/components/Form/Date/stories.js +0 -43
- package/dist/components/Form/DatePicker/stories.js +0 -43
- package/dist/components/Form/DateSelect/stories.js +0 -66
- package/dist/components/Form/Email/stories.js +0 -43
- package/dist/components/Form/Number/stories.js +0 -46
- package/dist/components/Form/RadioButtons/index.test.js +0 -146
- package/dist/components/Form/RadioButtons/stories.js +0 -65
- package/dist/components/Form/Select/stories.js +0 -82
- package/dist/components/Form/TextField/stories.js +0 -51
- package/dist/components/Form/Textarea/stories.js +0 -43
- package/dist/components/Hamburger/stories.js +0 -58
- package/dist/components/Header/stories.js +0 -59
- package/dist/components/Header/stories.scss +0 -11
- package/dist/components/Image/stories.js +0 -93
- package/dist/components/Image/stories.scss +0 -20
- package/dist/components/InlineMenu/stories.js +0 -81
- package/dist/components/InlineMenu/stories.scss +0 -10
- package/dist/components/Layout/Container/stories.js +0 -102
- package/dist/components/Layout/Container/stories.scss +0 -21
- package/dist/components/Layout/QuickLayout/stories.js +0 -112
- package/dist/components/Lottie/stories.js +0 -73
- package/dist/components/MagicLine/stories.js +0 -71
- package/dist/components/MagicLine/stories.scss +0 -38
- package/dist/components/MediaPlayer/stories.d.ts +0 -19
- package/dist/components/MediaPlayer/stories.js +0 -153
- package/dist/components/NavigationScroll/stories.js +0 -29
- package/dist/components/NavigationScroll/stories.scss +0 -17
- package/dist/components/Pagination/stories.js +0 -110
- package/dist/components/Pagination/stories.scss +0 -31
- package/dist/components/SearchKit/stories.js +0 -205
- package/dist/components/Share/stories.js +0 -26
- package/dist/components/Share/stories.scss +0 -63
- package/dist/components/Sliders/SliderRelated/stories.js +0 -99
- package/dist/components/TitleWithText/stories.d.ts +0 -15
- package/dist/components/TitleWithText/stories.js +0 -31
- package/dist/components/TitleWithText/stories.scss +0 -0
- package/dist/components/WysiwygField/stories.js +0 -51
- package/dist/organisms/Downloads/stories.d.ts +0 -15
- package/dist/organisms/Downloads/stories.js +0 -50
- package/dist/organisms/Downloads/stories.scss +0 -67
- package/dist/organisms/ImageGrid/stories.d.ts +0 -18
- package/dist/organisms/ImageGrid/stories.js +0 -95
- package/dist/organisms/Quote/stories.d.ts +0 -15
- package/dist/organisms/Quote/stories.js +0 -47
- package/dist/organisms/Quote/stories.scss +0 -48
- package/dist/organisms/Text/stories.d.ts +0 -15
- package/dist/organisms/Text/stories.js +0 -37
- package/dist/organisms/Text/stories.scss +0 -29
|
@@ -8,19 +8,19 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
require("./style.scss");
|
|
11
|
-
var _excluded = ["className", "fluid", "small", "medium", "large"];
|
|
11
|
+
var _excluded = ["children", "className", "fluid", "small", "medium", "large"];
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
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); }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
-
var Container = function Container(
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
var Container = function Container(props) {
|
|
17
|
+
var children = props.children,
|
|
18
|
+
className = props.className,
|
|
19
|
+
fluid = props.fluid,
|
|
20
|
+
small = props.small,
|
|
21
|
+
medium = props.medium,
|
|
22
|
+
large = props.large,
|
|
23
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
24
24
|
var classes = (0, _classnames.default)('Container', className, {
|
|
25
25
|
container: !fluid,
|
|
26
26
|
'container--small': small,
|
|
@@ -30,17 +30,19 @@ var Container = function Container(_ref) {
|
|
|
30
30
|
});
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
32
32
|
className: classes
|
|
33
|
-
},
|
|
33
|
+
}, restProps), children);
|
|
34
34
|
};
|
|
35
35
|
Container.defaultProps = {
|
|
36
36
|
small: false,
|
|
37
37
|
large: false,
|
|
38
|
-
fluid: false
|
|
38
|
+
fluid: false,
|
|
39
|
+
children: null
|
|
39
40
|
};
|
|
40
41
|
Container.propTypes = {
|
|
41
42
|
small: _propTypes.default.bool,
|
|
42
43
|
large: _propTypes.default.bool,
|
|
43
|
-
fluid: _propTypes.default.bool
|
|
44
|
+
fluid: _propTypes.default.bool,
|
|
45
|
+
children: _propTypes.default.node
|
|
44
46
|
};
|
|
45
47
|
var _default = Container;
|
|
46
48
|
exports.default = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default QuickLayoutAuto;
|
|
2
|
+
declare function QuickLayoutAuto({ children, min, gap, className }: {
|
|
3
|
+
children: any;
|
|
4
|
+
min: any;
|
|
5
|
+
gap: any;
|
|
6
|
+
className: any;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare namespace QuickLayoutAuto {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
let min: string;
|
|
11
|
+
let gap: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default QuickLayoutClamp;
|
|
2
|
+
declare function QuickLayoutClamp({ children, min, value, max, className }: {
|
|
3
|
+
children: any;
|
|
4
|
+
min: any;
|
|
5
|
+
value: any;
|
|
6
|
+
max: any;
|
|
7
|
+
className: any;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare namespace QuickLayoutClamp {
|
|
10
|
+
namespace defaultProps {
|
|
11
|
+
let min: string;
|
|
12
|
+
let value: string;
|
|
13
|
+
let max: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default QuickLayoutSidebar;
|
|
2
|
+
declare function QuickLayoutSidebar({ children, min, max, className }: {
|
|
3
|
+
children: any;
|
|
4
|
+
min: any;
|
|
5
|
+
max: any;
|
|
6
|
+
className: any;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare namespace QuickLayoutSidebar {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
let min: string;
|
|
11
|
+
let max: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default QuickLayoutSpaceBetween;
|
|
2
|
+
declare function QuickLayoutSpaceBetween({ children, gap, items, className }: {
|
|
3
|
+
children: any;
|
|
4
|
+
gap: any;
|
|
5
|
+
items: any;
|
|
6
|
+
className: any;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare namespace QuickLayoutSpaceBetween {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
let gap: string;
|
|
11
|
+
let items: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default QuickLayoutWrap;
|
|
2
|
+
declare function QuickLayoutWrap({ children, min, stretched, className }: {
|
|
3
|
+
children: any;
|
|
4
|
+
min: any;
|
|
5
|
+
stretched: any;
|
|
6
|
+
className: any;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare namespace QuickLayoutWrap {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
let min: string;
|
|
11
|
+
let stretched: boolean;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default QuickLayout;
|
|
2
|
+
declare function QuickLayout({ type, children, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
type: any;
|
|
5
|
+
children: any;
|
|
6
|
+
}): React.JSX.Element | "No type selected.";
|
|
7
|
+
declare namespace QuickLayout {
|
|
8
|
+
namespace defaultProps {
|
|
9
|
+
let type: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
@@ -69,8 +69,9 @@ var MediaPlayer = function MediaPlayer(_ref) {
|
|
|
69
69
|
children: controls.map(controlMapped)
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
+
var controlKeys = Object.keys(videoJSControls);
|
|
72
73
|
return {
|
|
73
|
-
children:
|
|
74
|
+
children: controlKeys.map(controlMapped)
|
|
74
75
|
};
|
|
75
76
|
}, [controls]);
|
|
76
77
|
|
|
@@ -91,10 +92,10 @@ var MediaPlayer = function MediaPlayer(_ref) {
|
|
|
91
92
|
};
|
|
92
93
|
var options = _objectSpread(_objectSpread({}, defaultOptions), customOptions);
|
|
93
94
|
var videoJS = (0, _reactHookVideojs.useVideoJS)(options);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
player =
|
|
97
|
-
ready =
|
|
95
|
+
var _ref2 = videoJS,
|
|
96
|
+
Video = _ref2.Video,
|
|
97
|
+
player = _ref2.player,
|
|
98
|
+
ready = _ref2.ready;
|
|
98
99
|
|
|
99
100
|
// Passing down the VideoJS events.
|
|
100
101
|
(0, _react.useEffect)(function () {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default NavigationScroll;
|
|
2
|
+
declare function NavigationScroll(props: any): React.JSX.Element;
|
|
3
|
+
declare namespace NavigationScroll {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let children: PropTypes.Validator<PropTypes.ReactElementLike>;
|
|
6
|
+
}
|
|
7
|
+
let defaultProps: {};
|
|
8
|
+
}
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export function Pagination({ currentPage, totalPages, pageRangeDisplayed, marginPagesDisplayed, setCurrentPage, previousLabel, nextLabel, containerClassName, disabledClassName, activeClassName, breakClassName, showWhenOnePage, controlled, }: {
|
|
2
|
+
currentPage: any;
|
|
3
|
+
totalPages: any;
|
|
4
|
+
pageRangeDisplayed: any;
|
|
5
|
+
marginPagesDisplayed: any;
|
|
6
|
+
setCurrentPage: any;
|
|
7
|
+
previousLabel: any;
|
|
8
|
+
nextLabel: any;
|
|
9
|
+
containerClassName: any;
|
|
10
|
+
disabledClassName: any;
|
|
11
|
+
activeClassName: any;
|
|
12
|
+
breakClassName: any;
|
|
13
|
+
showWhenOnePage: any;
|
|
14
|
+
controlled: any;
|
|
15
|
+
}): React.JSX.Element | null;
|
|
16
|
+
export namespace Pagination {
|
|
17
|
+
namespace propTypes {
|
|
18
|
+
let currentPage: PropTypes.Validator<number>;
|
|
19
|
+
let totalPages: PropTypes.Validator<number>;
|
|
20
|
+
let pageRangeDisplayed: PropTypes.Requireable<number>;
|
|
21
|
+
let marginPagesDisplayed: PropTypes.Requireable<number>;
|
|
22
|
+
let setCurrentPage: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
let previousLabel: PropTypes.Requireable<string>;
|
|
24
|
+
let nextLabel: PropTypes.Requireable<string>;
|
|
25
|
+
let containerClassName: PropTypes.Requireable<string>;
|
|
26
|
+
let disabledClassName: PropTypes.Requireable<string>;
|
|
27
|
+
let activeClassName: PropTypes.Requireable<string>;
|
|
28
|
+
let showWhenOnePage: PropTypes.Requireable<boolean>;
|
|
29
|
+
let controlled: PropTypes.Requireable<boolean>;
|
|
30
|
+
}
|
|
31
|
+
namespace defaultProps {
|
|
32
|
+
let setCurrentPage_1: null;
|
|
33
|
+
export { setCurrentPage_1 as setCurrentPage };
|
|
34
|
+
let previousLabel_1: null;
|
|
35
|
+
export { previousLabel_1 as previousLabel };
|
|
36
|
+
let nextLabel_1: null;
|
|
37
|
+
export { nextLabel_1 as nextLabel };
|
|
38
|
+
let containerClassName_1: null;
|
|
39
|
+
export { containerClassName_1 as containerClassName };
|
|
40
|
+
let disabledClassName_1: null;
|
|
41
|
+
export { disabledClassName_1 as disabledClassName };
|
|
42
|
+
let activeClassName_1: null;
|
|
43
|
+
export { activeClassName_1 as activeClassName };
|
|
44
|
+
let pageRangeDisplayed_1: number;
|
|
45
|
+
export { pageRangeDisplayed_1 as pageRangeDisplayed };
|
|
46
|
+
let marginPagesDisplayed_1: number;
|
|
47
|
+
export { marginPagesDisplayed_1 as marginPagesDisplayed };
|
|
48
|
+
let showWhenOnePage_1: boolean;
|
|
49
|
+
export { showWhenOnePage_1 as showWhenOnePage };
|
|
50
|
+
let controlled_1: boolean;
|
|
51
|
+
export { controlled_1 as controlled };
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
55
|
+
export default _default;
|
|
56
|
+
import React from 'react';
|
|
57
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default SearchFacets;
|
|
2
|
+
declare function SearchFacets({ data, loading, facets }: {
|
|
3
|
+
data: any;
|
|
4
|
+
loading: any;
|
|
5
|
+
facets: any;
|
|
6
|
+
}): React.JSX.Element | null;
|
|
7
|
+
declare namespace SearchFacets {
|
|
8
|
+
namespace defaultProps {
|
|
9
|
+
let data: null;
|
|
10
|
+
let loading: boolean;
|
|
11
|
+
let facets: never[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default SearchField;
|
|
2
|
+
declare function SearchField({ timeout, autoSearch, buttonText, placeholder, }: {
|
|
3
|
+
timeout: any;
|
|
4
|
+
autoSearch?: boolean | undefined;
|
|
5
|
+
buttonText: any;
|
|
6
|
+
placeholder: any;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare namespace SearchField {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
let timeout: number;
|
|
11
|
+
let autoSearch: boolean;
|
|
12
|
+
let buttonText: string;
|
|
13
|
+
let placeholder: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function routeToStateFn(routeState: any): {
|
|
2
|
+
query: any;
|
|
3
|
+
sortBy: any;
|
|
4
|
+
filters: any;
|
|
5
|
+
page: {
|
|
6
|
+
size: number;
|
|
7
|
+
from: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare const _default: {
|
|
11
|
+
(props: any): JSX.Element;
|
|
12
|
+
getInitialProps(pageCtx: any): Promise<any>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default SearchResults;
|
|
2
|
+
declare function SearchResults({ data, renderItem, renderHeader, appendResults, scrollView }: {
|
|
3
|
+
data: any;
|
|
4
|
+
renderItem: any;
|
|
5
|
+
renderHeader: any;
|
|
6
|
+
appendResults?: boolean | undefined;
|
|
7
|
+
scrollView?: null | undefined;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare namespace SearchResults {
|
|
10
|
+
namespace defaultProps {
|
|
11
|
+
export { SearchResultItemDefault as renderItem };
|
|
12
|
+
export { SearchResultHeaderDefault as renderHeader };
|
|
13
|
+
export let appendResults: boolean;
|
|
14
|
+
export let scrollView: null;
|
|
15
|
+
}
|
|
16
|
+
namespace propTypes {
|
|
17
|
+
export let data: PropTypes.Validator<object>;
|
|
18
|
+
export let renderItem: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
19
|
+
export let renderHeader: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
20
|
+
let appendResults_1: PropTypes.Requireable<boolean>;
|
|
21
|
+
export { appendResults_1 as appendResults };
|
|
22
|
+
let scrollView_1: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
23
|
+
export { scrollView_1 as scrollView };
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
import React from 'react';
|
|
27
|
+
declare function SearchResultItemDefault({ item }: {
|
|
28
|
+
item: any;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
declare function SearchResultHeaderDefault({ data }: {
|
|
31
|
+
data: any;
|
|
32
|
+
}): React.JSX.Element;
|
|
33
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default SearchKit;
|
|
2
|
+
declare function SearchKit({ query, uri, pageSize, useRouting, defaultFilters, defaultQuery, children, defaultSorting }: {
|
|
3
|
+
query: any;
|
|
4
|
+
uri: any;
|
|
5
|
+
pageSize?: number | undefined;
|
|
6
|
+
useRouting?: boolean | undefined;
|
|
7
|
+
defaultFilters?: any[] | undefined;
|
|
8
|
+
defaultQuery?: string | undefined;
|
|
9
|
+
children: any;
|
|
10
|
+
defaultSorting?: string | undefined;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare namespace SearchKit {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let uri: PropTypes.Requireable<string>;
|
|
15
|
+
let pageSize: PropTypes.Requireable<number>;
|
|
16
|
+
let useRouting: PropTypes.Requireable<boolean>;
|
|
17
|
+
let defaultFilters: PropTypes.Requireable<object>;
|
|
18
|
+
let defaultQuery: PropTypes.Requireable<string>;
|
|
19
|
+
let defaultSorting: PropTypes.Requireable<string>;
|
|
20
|
+
}
|
|
21
|
+
namespace defaultProps {
|
|
22
|
+
let uri_1: null;
|
|
23
|
+
export { uri_1 as uri };
|
|
24
|
+
let pageSize_1: number;
|
|
25
|
+
export { pageSize_1 as pageSize };
|
|
26
|
+
let useRouting_1: boolean;
|
|
27
|
+
export { useRouting_1 as useRouting };
|
|
28
|
+
let defaultFilters_1: never[];
|
|
29
|
+
export { defaultFilters_1 as defaultFilters };
|
|
30
|
+
let defaultQuery_1: string;
|
|
31
|
+
export { defaultQuery_1 as defaultQuery };
|
|
32
|
+
let defaultSorting_1: string;
|
|
33
|
+
export { defaultSorting_1 as defaultSorting };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
import React from 'react';
|
|
37
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default Share;
|
|
2
|
+
declare function Share({ title, pageTitle, url, items, onClick }: {
|
|
3
|
+
title: any;
|
|
4
|
+
pageTitle: any;
|
|
5
|
+
url: any;
|
|
6
|
+
items: any;
|
|
7
|
+
onClick: any;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare namespace Share {
|
|
10
|
+
namespace defaultProps {
|
|
11
|
+
let title: string;
|
|
12
|
+
let pageTitle: string;
|
|
13
|
+
let url: null;
|
|
14
|
+
let items: string[];
|
|
15
|
+
function onClick(): void;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
import React from 'react';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default SliderRelated;
|
|
2
|
+
declare function SliderRelated(props: any): React.JSX.Element;
|
|
3
|
+
declare namespace SliderRelated {
|
|
4
|
+
namespace defaultProps {
|
|
5
|
+
let title: null;
|
|
6
|
+
let slidesToShow: number;
|
|
7
|
+
let infinite: boolean;
|
|
8
|
+
let centerMode: boolean;
|
|
9
|
+
let centerPadding: number;
|
|
10
|
+
let speed: number;
|
|
11
|
+
let autoplay: boolean;
|
|
12
|
+
let autoplaySpeed: number;
|
|
13
|
+
let pauseOnFocus: boolean;
|
|
14
|
+
let accessibility: boolean;
|
|
15
|
+
let touchMove: boolean;
|
|
16
|
+
let nextArrow: React.JSX.Element;
|
|
17
|
+
let prevArrow: React.JSX.Element;
|
|
18
|
+
let sliderRef: null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
import React from 'react';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
export interface TableRenderProps {
|
|
4
|
+
html: string;
|
|
5
|
+
mobileCards?: boolean;
|
|
6
|
+
mobileCardsBreakpoint?: number;
|
|
7
|
+
transposeOnMobile?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const TableRender: React.FC<TableRenderProps>;
|
|
10
|
+
export default TableRender;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactHtmlParser = _interopRequireDefault(require("react-html-parser"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _useWindowDimensions2 = _interopRequireDefault(require("../../hooks/useWindowDimensions"));
|
|
12
|
+
var _constants = require("../../config/constants");
|
|
13
|
+
require("./style.scss");
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
var TableRender = function TableRender(_ref) {
|
|
18
|
+
var html = _ref.html,
|
|
19
|
+
_ref$mobileCards = _ref.mobileCards,
|
|
20
|
+
mobileCards = _ref$mobileCards === void 0 ? false : _ref$mobileCards,
|
|
21
|
+
_ref$mobileCardsBreak = _ref.mobileCardsBreakpoint,
|
|
22
|
+
mobileCardsBreakpoint = _ref$mobileCardsBreak === void 0 ? _constants.SCREEN_TABLET : _ref$mobileCardsBreak,
|
|
23
|
+
_ref$transposeOnMobil = _ref.transposeOnMobile,
|
|
24
|
+
transposeOnMobile = _ref$transposeOnMobil === void 0 ? false : _ref$transposeOnMobil;
|
|
25
|
+
var _useWindowDimensions = (0, _useWindowDimensions2.default)(),
|
|
26
|
+
width = _useWindowDimensions.width;
|
|
27
|
+
var isMobile = width < mobileCardsBreakpoint;
|
|
28
|
+
var tableRef = (0, _react.useRef)(null);
|
|
29
|
+
var table = (0, _reactHtmlParser.default)(html);
|
|
30
|
+
(0, _react.useEffect)(function () {
|
|
31
|
+
if (isMobile && mobileCards && tableRef.current) {
|
|
32
|
+
var headerArr = [];
|
|
33
|
+
tableRef.current.querySelectorAll('thead th').forEach(function (th) {
|
|
34
|
+
headerArr.push(th.innerHTML);
|
|
35
|
+
});
|
|
36
|
+
tableRef.current.querySelectorAll('tbody tr').forEach(function (tr) {
|
|
37
|
+
var count = 0;
|
|
38
|
+
tr.querySelectorAll('td').forEach(function (td) {
|
|
39
|
+
if (td.querySelector('p')) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
var p = document.createElement('p');
|
|
43
|
+
p.classList.add('faux-th');
|
|
44
|
+
p.innerText = headerArr[count];
|
|
45
|
+
td.prepend(p);
|
|
46
|
+
count += 1;
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
} else {
|
|
50
|
+
var _tableRef$current;
|
|
51
|
+
(_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.classList.add('hide-faux-th');
|
|
52
|
+
}
|
|
53
|
+
}, [width, isMobile, mobileCards, transposeOnMobile]);
|
|
54
|
+
var displayMobileCards = isMobile && mobileCards;
|
|
55
|
+
var tableClassNames = (0, _classnames.default)({
|
|
56
|
+
TableRender: !displayMobileCards,
|
|
57
|
+
'TableRender--cards-mobile': displayMobileCards,
|
|
58
|
+
'TableRender--transposedOnMobile': transposeOnMobile && !displayMobileCards
|
|
59
|
+
});
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
61
|
+
ref: tableRef,
|
|
62
|
+
className: tableClassNames
|
|
63
|
+
}, table);
|
|
64
|
+
};
|
|
65
|
+
var _default = TableRender;
|
|
66
|
+
exports.default = _default;
|