@uncinc/uncinc-react-kitchen-sink 2.20.0 → 2.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@
5
5
  0% {
6
6
  transform: translateX(-50%) translateY(110vh);
7
7
  }
8
+
8
9
  100% {
9
10
  transform: translateX(-50%) translateY(0vh);
10
11
  }
@@ -61,6 +61,7 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
61
61
  showAcceptOnlyNeeded = _props$showAcceptOnly === void 0 ? true : _props$showAcceptOnly,
62
62
  _props$showAcceptOnly2 = props.showAcceptOnlyNeededSelections,
63
63
  showAcceptOnlyNeededSelections = _props$showAcceptOnly2 === void 0 ? false : _props$showAcceptOnly2,
64
+ fluid = props.fluid,
64
65
  _props$onAgree = props.onAgree,
65
66
  onAgree = _props$onAgree === void 0 ? function () {} : _props$onAgree,
66
67
  _props$cookieLevels = props.cookieLevels,
@@ -326,7 +327,9 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
326
327
  className: classes,
327
328
  role: "region",
328
329
  "aria-label": t('cookies.banner_label')
329
- }, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement("div", _extends({}, dialogHelpersProps, {
330
+ }, /*#__PURE__*/React.createElement(Container, {
331
+ fluid: fluid
332
+ }, /*#__PURE__*/React.createElement("div", _extends({}, dialogHelpersProps, {
330
333
  ref: wrapperElement,
331
334
  className: "GoogleConsentCookieBanner__content ".concat(manualChoiceVisible ? 'GoogleConsentCookieBanner__content--full-height' : '')
332
335
  }), /*#__PURE__*/React.createElement("div", {
@@ -18,6 +18,7 @@
18
18
  left: 50%;
19
19
  width: 100%;
20
20
  max-height: 100%;
21
+ transform: translateX(-50%) translateY(110vh);
21
22
 
22
23
  &__content {
23
24
  max-height: 80vh;
@@ -63,7 +64,7 @@
63
64
  font-size: inherit;
64
65
  background: none;
65
66
  border: 0;
66
-
67
+
67
68
  cursor: pointer;
68
69
  }
69
70
  }
@@ -102,7 +103,6 @@
102
103
 
103
104
  &--prompting,
104
105
  &--editing {
105
- transform: translateX(-50%) translateY(0);
106
106
  animation: slide 1s forwards;
107
107
  }
108
108
 
@@ -68,4 +68,5 @@ export interface CookieCompliancePopupProps {
68
68
  cookieDomain?: string;
69
69
  cookieOptions?: CookieOptions;
70
70
  version?: string;
71
+ fluid?: boolean;
71
72
  }
@@ -1,8 +1,34 @@
1
+ var _excluded = ["type"];
2
+ 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); }
3
+ 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; }
4
+ 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; }
1
5
  import React, { lazy, Suspense } from 'react';
2
- var MediaPlayerLazy = /*#__PURE__*/lazy(function () {
3
- return import('./index.lazy');
6
+ var MediaPlayerRemoteLazy = /*#__PURE__*/lazy(function () {
7
+ return import('./index.remote.lazy');
4
8
  });
5
- var MediaPlayer = function MediaPlayer(props) {
6
- return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(MediaPlayerLazy, props));
9
+ var MediaPlayerLocalLazy = /*#__PURE__*/lazy(function () {
10
+ return import('./index.local.lazy');
11
+ });
12
+ var MediaPlayer = function MediaPlayer(_ref) {
13
+ var type = _ref.type,
14
+ restProps = _objectWithoutProperties(_ref, _excluded);
15
+ switch (type) {
16
+ // Remote types.
17
+ case 'video/youtube':
18
+ case 'video/vimeo':
19
+ {
20
+ return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(MediaPlayerRemoteLazy, _extends({}, restProps, {
21
+ type: type
22
+ })));
23
+ }
24
+
25
+ // Local types.
26
+ default:
27
+ {
28
+ return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(MediaPlayerLocalLazy, _extends({}, restProps, {
29
+ type: type
30
+ })));
31
+ }
32
+ }
7
33
  };
8
34
  export default MediaPlayer;
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- import 'videojs-vimeo-tech';
3
- import 'videojs-youtube';
4
2
  import { MediaPlayerProps } from './types';
5
3
  import 'video.js/dist/video-js.css';
6
4
  import './style.scss';
@@ -8,9 +8,6 @@ import React, { useEffect, useMemo } from 'react';
8
8
  import c from 'classnames';
9
9
  import { useVideoJS } from 'react-hook-videojs';
10
10
  import { useTranslation } from 'react-i18next';
11
- // VideoJS plugins:
12
- import 'videojs-vimeo-tech';
13
- import 'videojs-youtube';
14
11
  import 'video.js/dist/video-js.css';
15
12
  import './style.scss';
16
13
  var MediaPlayer = function MediaPlayer(_ref) {
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { MediaPlayerProps } from './types';
3
+ declare const MediaPlayerLocalLazy: React.FC<MediaPlayerProps>;
4
+ export default MediaPlayerLocalLazy;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import MediaPlayerLazy from './index.lazy';
3
+ var MediaPlayerLocalLazy = function MediaPlayerLocalLazy(props) {
4
+ return /*#__PURE__*/React.createElement(MediaPlayerLazy, props);
5
+ };
6
+ export default MediaPlayerLocalLazy;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import 'videojs-vimeo-tech';
3
+ import 'videojs-youtube';
4
+ import { MediaPlayerProps } from './types';
5
+ declare const MediaPlayerRemoteLazy: React.FC<MediaPlayerProps>;
6
+ export default MediaPlayerRemoteLazy;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+
3
+ // VideoJS plugins for remote videos:
4
+ import 'videojs-vimeo-tech';
5
+ import 'videojs-youtube';
6
+ import MediaPlayerLazy from './index.lazy';
7
+ var MediaPlayerRemoteLazy = function MediaPlayerRemoteLazy(props) {
8
+ return /*#__PURE__*/React.createElement(MediaPlayerLazy, props);
9
+ };
10
+ export default MediaPlayerRemoteLazy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.20.0",
3
+ "version": "2.20.2",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",