@ilo-org/react 0.10.4 → 0.10.5
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/CHANGELOG.md +27 -0
- package/lib/cjs/{DailyMotion-e06c9a92.js → DailyMotion-17b56ecb.js} +1 -1
- package/lib/cjs/{Facebook-d58c4f38.js → Facebook-0c8d86ee.js} +1 -1
- package/lib/cjs/{FilePlayer-fd6ea462.js → FilePlayer-01d6dc08.js} +1 -1
- package/lib/cjs/{Kaltura-60c01a5d.js → Kaltura-40e8e581.js} +1 -1
- package/lib/cjs/{Mixcloud-124760a9.js → Mixcloud-e23f49d6.js} +1 -1
- package/lib/cjs/{Preview-81296819.js → Preview-8e490f54.js} +1 -1
- package/lib/cjs/{SoundCloud-1739c1f1.js → SoundCloud-2500b6cb.js} +1 -1
- package/lib/cjs/{Streamable-837b9cf6.js → Streamable-00723065.js} +1 -1
- package/lib/cjs/{Twitch-bf2a7602.js → Twitch-2c5c5733.js} +1 -1
- package/lib/cjs/{VideoPlayer-e2de3674.js → VideoPlayer-5f0a64c6.js} +14 -14
- package/lib/cjs/{Vidyard-1256273d.js → Vidyard-d36d6c45.js} +1 -1
- package/lib/cjs/{Vimeo-fc878336.js → Vimeo-d311e3b8.js} +1 -1
- package/lib/cjs/{Wistia-7aa618d2.js → Wistia-318b4e43.js} +1 -1
- package/lib/cjs/{YouTube-588e57ea.js → YouTube-a3796a55.js} +1 -1
- package/lib/cjs/components/List/List.js +2 -2
- package/lib/cjs/components/LocalNav/LocalNav.js +0 -6
- package/lib/cjs/components/Video/Video.js +2 -2
- package/lib/cjs/components/Video/VideoPlayer.js +1 -1
- package/lib/cjs/components/Video/index.js +1 -1
- package/lib/cjs/components/index.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/esm/{DailyMotion-2e38ef76.js → DailyMotion-989c2db3.js} +1 -1
- package/lib/esm/{Facebook-4a2334f4.js → Facebook-04e9cc59.js} +1 -1
- package/lib/esm/{FilePlayer-40e1ae01.js → FilePlayer-0789336d.js} +1 -1
- package/lib/esm/{Kaltura-c80bdfb7.js → Kaltura-a9ed37a9.js} +1 -1
- package/lib/esm/{Mixcloud-b0f9376b.js → Mixcloud-5a3b4353.js} +1 -1
- package/lib/esm/{Preview-07219fbc.js → Preview-7ca1835e.js} +1 -1
- package/lib/esm/{SoundCloud-78094ae3.js → SoundCloud-47bccd79.js} +1 -1
- package/lib/esm/{Streamable-44c36485.js → Streamable-ee762126.js} +1 -1
- package/lib/esm/{Twitch-cec3b85d.js → Twitch-3cd4b54b.js} +1 -1
- package/lib/esm/{VideoPlayer-b5d125fd.js → VideoPlayer-96c2b20c.js} +14 -14
- package/lib/esm/{Vidyard-44d40c02.js → Vidyard-258ab0ef.js} +1 -1
- package/lib/esm/{Vimeo-dd76c909.js → Vimeo-4b29b580.js} +1 -1
- package/lib/esm/{Wistia-d98e9e9e.js → Wistia-3cbce669.js} +1 -1
- package/lib/esm/{YouTube-2e7e24ca.js → YouTube-db52da1c.js} +1 -1
- package/lib/esm/components/List/List.js +3 -3
- package/lib/esm/components/LocalNav/LocalNav.js +0 -6
- package/lib/esm/components/Video/Video.js +2 -2
- package/lib/esm/components/Video/VideoPlayer.js +1 -1
- package/lib/esm/components/Video/index.js +1 -1
- package/lib/esm/components/index.js +1 -1
- package/lib/esm/index.js +1 -1
- package/package.json +4 -4
- package/src/components/List/List.tsx +7 -12
- package/src/components/Video/Video.tsx +1 -1
- package/src/components/Video/VideoPlayer.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @ilo-org/react
|
|
2
2
|
|
|
3
|
+
## 0.10.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9bf73c7bd: Fix lists containing other elements than li items to improve accessibility
|
|
8
|
+
- 056754038: Revise and refactor color names with the same values and remove duplicates and replace where it was used
|
|
9
|
+
- e1000fbbd: added legacy classname for react video component
|
|
10
|
+
- Updated dependencies [4153f99b5]
|
|
11
|
+
- Updated dependencies [c8de2b695]
|
|
12
|
+
- Updated dependencies [7472dd625]
|
|
13
|
+
- Updated dependencies [b3298a267]
|
|
14
|
+
- Updated dependencies [bf4432d7c]
|
|
15
|
+
- Updated dependencies [1ed3123ae]
|
|
16
|
+
- Updated dependencies [f76a35fdc]
|
|
17
|
+
- Updated dependencies [a3c872512]
|
|
18
|
+
- Updated dependencies [056754038]
|
|
19
|
+
- Updated dependencies [4bbac5457]
|
|
20
|
+
- Updated dependencies [e1000fbbd]
|
|
21
|
+
- Updated dependencies [ac58b53d2]
|
|
22
|
+
- Updated dependencies [51b20d4aa]
|
|
23
|
+
- Updated dependencies [5a1e32f8e]
|
|
24
|
+
- Updated dependencies [52eeae214]
|
|
25
|
+
- Updated dependencies [709675b79]
|
|
26
|
+
- @ilo-org/styles@0.13.3
|
|
27
|
+
- @ilo-org/brand-assets@0.4.0
|
|
28
|
+
- @ilo-org/themes@0.7.1
|
|
29
|
+
|
|
3
30
|
## 0.10.4
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -634,7 +634,7 @@ patterns.canPlay = canPlay;
|
|
|
634
634
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
635
635
|
return Promise.resolve().then(function () { return require(
|
|
636
636
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
637
|
-
'./YouTube-
|
|
637
|
+
'./YouTube-a3796a55.js'); }).then(function (n) { return n.YouTube; });
|
|
638
638
|
})
|
|
639
639
|
}, {
|
|
640
640
|
key: 'soundcloud',
|
|
@@ -643,7 +643,7 @@ patterns.canPlay = canPlay;
|
|
|
643
643
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
644
644
|
return Promise.resolve().then(function () { return require(
|
|
645
645
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
646
|
-
'./SoundCloud-
|
|
646
|
+
'./SoundCloud-2500b6cb.js'); }).then(function (n) { return n.SoundCloud; });
|
|
647
647
|
})
|
|
648
648
|
}, {
|
|
649
649
|
key: 'vimeo',
|
|
@@ -652,7 +652,7 @@ patterns.canPlay = canPlay;
|
|
|
652
652
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
653
653
|
return Promise.resolve().then(function () { return require(
|
|
654
654
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
655
|
-
'./Vimeo-
|
|
655
|
+
'./Vimeo-d311e3b8.js'); }).then(function (n) { return n.Vimeo; });
|
|
656
656
|
})
|
|
657
657
|
}, {
|
|
658
658
|
key: 'facebook',
|
|
@@ -661,7 +661,7 @@ patterns.canPlay = canPlay;
|
|
|
661
661
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
662
662
|
return Promise.resolve().then(function () { return require(
|
|
663
663
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
664
|
-
'./Facebook-
|
|
664
|
+
'./Facebook-0c8d86ee.js'); }).then(function (n) { return n.Facebook; });
|
|
665
665
|
})
|
|
666
666
|
}, {
|
|
667
667
|
key: 'streamable',
|
|
@@ -670,7 +670,7 @@ patterns.canPlay = canPlay;
|
|
|
670
670
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
671
671
|
return Promise.resolve().then(function () { return require(
|
|
672
672
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
673
|
-
'./Streamable-
|
|
673
|
+
'./Streamable-00723065.js'); }).then(function (n) { return n.Streamable; });
|
|
674
674
|
})
|
|
675
675
|
}, {
|
|
676
676
|
key: 'wistia',
|
|
@@ -679,7 +679,7 @@ patterns.canPlay = canPlay;
|
|
|
679
679
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
680
680
|
return Promise.resolve().then(function () { return require(
|
|
681
681
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
682
|
-
'./Wistia-
|
|
682
|
+
'./Wistia-318b4e43.js'); }).then(function (n) { return n.Wistia; });
|
|
683
683
|
})
|
|
684
684
|
}, {
|
|
685
685
|
key: 'twitch',
|
|
@@ -688,7 +688,7 @@ patterns.canPlay = canPlay;
|
|
|
688
688
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
689
689
|
return Promise.resolve().then(function () { return require(
|
|
690
690
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
691
|
-
'./Twitch-
|
|
691
|
+
'./Twitch-2c5c5733.js'); }).then(function (n) { return n.Twitch; });
|
|
692
692
|
})
|
|
693
693
|
}, {
|
|
694
694
|
key: 'dailymotion',
|
|
@@ -697,7 +697,7 @@ patterns.canPlay = canPlay;
|
|
|
697
697
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
698
698
|
return Promise.resolve().then(function () { return require(
|
|
699
699
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
700
|
-
'./DailyMotion-
|
|
700
|
+
'./DailyMotion-17b56ecb.js'); }).then(function (n) { return n.DailyMotion; });
|
|
701
701
|
})
|
|
702
702
|
}, {
|
|
703
703
|
key: 'mixcloud',
|
|
@@ -706,7 +706,7 @@ patterns.canPlay = canPlay;
|
|
|
706
706
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
707
707
|
return Promise.resolve().then(function () { return require(
|
|
708
708
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
709
|
-
'./Mixcloud-
|
|
709
|
+
'./Mixcloud-e23f49d6.js'); }).then(function (n) { return n.Mixcloud; });
|
|
710
710
|
})
|
|
711
711
|
}, {
|
|
712
712
|
key: 'vidyard',
|
|
@@ -715,7 +715,7 @@ patterns.canPlay = canPlay;
|
|
|
715
715
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
716
716
|
return Promise.resolve().then(function () { return require(
|
|
717
717
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
718
|
-
'./Vidyard-
|
|
718
|
+
'./Vidyard-d36d6c45.js'); }).then(function (n) { return n.Vidyard; });
|
|
719
719
|
})
|
|
720
720
|
}, {
|
|
721
721
|
key: 'kaltura',
|
|
@@ -724,7 +724,7 @@ patterns.canPlay = canPlay;
|
|
|
724
724
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
725
725
|
return Promise.resolve().then(function () { return require(
|
|
726
726
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
727
|
-
'./Kaltura-
|
|
727
|
+
'./Kaltura-40e8e581.js'); }).then(function (n) { return n.Kaltura; });
|
|
728
728
|
})
|
|
729
729
|
}, {
|
|
730
730
|
key: 'file',
|
|
@@ -736,7 +736,7 @@ patterns.canPlay = canPlay;
|
|
|
736
736
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
737
737
|
return Promise.resolve().then(function () { return require(
|
|
738
738
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
739
|
-
'./FilePlayer-
|
|
739
|
+
'./FilePlayer-01d6dc08.js'); }).then(function (n) { return n.FilePlayer; });
|
|
740
740
|
})
|
|
741
741
|
}];
|
|
742
742
|
exports["default"] = _default;
|
|
@@ -1661,7 +1661,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
1661
1661
|
var Preview = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
1662
1662
|
return Promise.resolve().then(function () { return require(
|
|
1663
1663
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
1664
|
-
'./Preview-
|
|
1664
|
+
'./Preview-8e490f54.js'); }).then(function (n) { return n.Preview; });
|
|
1665
1665
|
});
|
|
1666
1666
|
var IS_BROWSER = typeof window !== 'undefined' && window.document;
|
|
1667
1667
|
var IS_GLOBAL = typeof commonjsGlobal !== 'undefined' && commonjsGlobal.window && commonjsGlobal.window.document;
|
|
@@ -1917,7 +1917,7 @@ const ReactPlayer = RP;
|
|
|
1917
1917
|
const VideoPlayer = ({ controls, src, poster, youtube, tracks, }) => {
|
|
1918
1918
|
var _a;
|
|
1919
1919
|
const { prefix } = hooks_useGlobalSettings();
|
|
1920
|
-
const baseClass = `${prefix}--
|
|
1920
|
+
const baseClass = `${prefix}--legacyvideo`;
|
|
1921
1921
|
const playerClasses = classNames("", {
|
|
1922
1922
|
[`${baseClass}--player`]: true,
|
|
1923
1923
|
[`youtube`]: youtube,
|
|
@@ -17,9 +17,9 @@ const List = ({ children, className, alignment, ordered, title, }) => {
|
|
|
17
17
|
[`${baseClass}--${alignment}`]: alignment,
|
|
18
18
|
[`${baseClass}--${ordered}`]: true,
|
|
19
19
|
});
|
|
20
|
-
return (jsxRuntime.
|
|
20
|
+
return (jsxRuntime.jsx(ListCtx.ListContext.Provider, Object.assign({ value: {
|
|
21
21
|
activeItems,
|
|
22
|
-
} }, { children:
|
|
22
|
+
} }, { children: jsxRuntime.jsxs("div", Object.assign({ className: listClasses }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), ordered && ordered === "ordered" && jsxRuntime.jsx("ol", { children: children }), ordered && ordered !== "ordered" && (jsxRuntime.jsx("ul", Object.assign({ className: `${baseClass}--${alignment}` }, { children: children })))] })) })));
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
module.exports = List;
|
|
@@ -37,9 +37,6 @@ var brand = {
|
|
|
37
37
|
"ilo-dark-red": {
|
|
38
38
|
value: "rgba(200, 48, 60, 1)"
|
|
39
39
|
},
|
|
40
|
-
"ilo-lighter-blue": {
|
|
41
|
-
value: "rgba(235, 245, 253, 1)"
|
|
42
|
-
},
|
|
43
40
|
"ilo-light-blue": {
|
|
44
41
|
value: "rgba(235, 245, 253, 1)"
|
|
45
42
|
},
|
|
@@ -55,9 +52,6 @@ var brand = {
|
|
|
55
52
|
"ilo-grey-accessible": {
|
|
56
53
|
value: "rgba(109, 109, 109, 1)"
|
|
57
54
|
},
|
|
58
|
-
"ilo-grey-charcoal": {
|
|
59
|
-
value: "rgba(45, 45, 45, 1)"
|
|
60
|
-
},
|
|
61
55
|
"ilo-black": {
|
|
62
56
|
value: "rgba(45, 45, 45, 1)"
|
|
63
57
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var classNames = require('classnames');
|
|
5
5
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
6
|
-
var components_Video_VideoPlayer = require('../../VideoPlayer-
|
|
6
|
+
var components_Video_VideoPlayer = require('../../VideoPlayer-5f0a64c6.js');
|
|
7
7
|
require('tslib');
|
|
8
8
|
require('react');
|
|
9
9
|
require('../../GlobalCtx-97e4b433.js');
|
|
@@ -14,7 +14,7 @@ require('screenfull');
|
|
|
14
14
|
|
|
15
15
|
const Video = ({ className, caption, poster, video }) => {
|
|
16
16
|
const { prefix } = hooks_useGlobalSettings();
|
|
17
|
-
const baseClass = `${prefix}--
|
|
17
|
+
const baseClass = `${prefix}--legacyvideo`;
|
|
18
18
|
const videoClasses = classNames(className, {
|
|
19
19
|
[baseClass]: true,
|
|
20
20
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('react/jsx-runtime');
|
|
4
4
|
require('react');
|
|
5
|
-
var components_Video_VideoPlayer = require('../../VideoPlayer-
|
|
5
|
+
var components_Video_VideoPlayer = require('../../VideoPlayer-5f0a64c6.js');
|
|
6
6
|
require('react-dom');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('../../hooks/useGlobalSettings.js');
|
|
@@ -7,7 +7,7 @@ require('../../hooks/useGlobalSettings.js');
|
|
|
7
7
|
require('tslib');
|
|
8
8
|
require('react');
|
|
9
9
|
require('../../GlobalCtx-97e4b433.js');
|
|
10
|
-
require('../../VideoPlayer-
|
|
10
|
+
require('../../VideoPlayer-5f0a64c6.js');
|
|
11
11
|
require('../../index-0af02e81.js');
|
|
12
12
|
require('react-dom');
|
|
13
13
|
require('../../utils/hoursMinutesSeconds.js');
|
|
@@ -74,7 +74,7 @@ require('./Hero/HeroCard.js');
|
|
|
74
74
|
require('./SocialMedia/SocialMedia.js');
|
|
75
75
|
require('./Input/Input.js');
|
|
76
76
|
require('./FormElement/FormElement.js');
|
|
77
|
-
require('../VideoPlayer-
|
|
77
|
+
require('../VideoPlayer-5f0a64c6.js');
|
|
78
78
|
require('../utils/hoursMinutesSeconds.js');
|
|
79
79
|
require('screenfull');
|
|
80
80
|
require('@ilo-org/icons-react');
|
package/lib/cjs/index.js
CHANGED
|
@@ -75,7 +75,7 @@ require('./components/Hero/HeroCard.js');
|
|
|
75
75
|
require('./components/SocialMedia/SocialMedia.js');
|
|
76
76
|
require('./components/Input/Input.js');
|
|
77
77
|
require('./components/FormElement/FormElement.js');
|
|
78
|
-
require('./VideoPlayer-
|
|
78
|
+
require('./VideoPlayer-5f0a64c6.js');
|
|
79
79
|
require('./utils/hoursMinutesSeconds.js');
|
|
80
80
|
require('screenfull');
|
|
81
81
|
require('./components/Logo/Logo.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -632,7 +632,7 @@ patterns.canPlay = canPlay;
|
|
|
632
632
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
633
633
|
return import(
|
|
634
634
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
635
|
-
'./YouTube-
|
|
635
|
+
'./YouTube-db52da1c.js').then(function (n) { return n.Y; });
|
|
636
636
|
})
|
|
637
637
|
}, {
|
|
638
638
|
key: 'soundcloud',
|
|
@@ -641,7 +641,7 @@ patterns.canPlay = canPlay;
|
|
|
641
641
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
642
642
|
return import(
|
|
643
643
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
644
|
-
'./SoundCloud-
|
|
644
|
+
'./SoundCloud-47bccd79.js').then(function (n) { return n.S; });
|
|
645
645
|
})
|
|
646
646
|
}, {
|
|
647
647
|
key: 'vimeo',
|
|
@@ -650,7 +650,7 @@ patterns.canPlay = canPlay;
|
|
|
650
650
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
651
651
|
return import(
|
|
652
652
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
653
|
-
'./Vimeo-
|
|
653
|
+
'./Vimeo-4b29b580.js').then(function (n) { return n.V; });
|
|
654
654
|
})
|
|
655
655
|
}, {
|
|
656
656
|
key: 'facebook',
|
|
@@ -659,7 +659,7 @@ patterns.canPlay = canPlay;
|
|
|
659
659
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
660
660
|
return import(
|
|
661
661
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
662
|
-
'./Facebook-
|
|
662
|
+
'./Facebook-04e9cc59.js').then(function (n) { return n.F; });
|
|
663
663
|
})
|
|
664
664
|
}, {
|
|
665
665
|
key: 'streamable',
|
|
@@ -668,7 +668,7 @@ patterns.canPlay = canPlay;
|
|
|
668
668
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
669
669
|
return import(
|
|
670
670
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
671
|
-
'./Streamable-
|
|
671
|
+
'./Streamable-ee762126.js').then(function (n) { return n.S; });
|
|
672
672
|
})
|
|
673
673
|
}, {
|
|
674
674
|
key: 'wistia',
|
|
@@ -677,7 +677,7 @@ patterns.canPlay = canPlay;
|
|
|
677
677
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
678
678
|
return import(
|
|
679
679
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
680
|
-
'./Wistia-
|
|
680
|
+
'./Wistia-3cbce669.js').then(function (n) { return n.W; });
|
|
681
681
|
})
|
|
682
682
|
}, {
|
|
683
683
|
key: 'twitch',
|
|
@@ -686,7 +686,7 @@ patterns.canPlay = canPlay;
|
|
|
686
686
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
687
687
|
return import(
|
|
688
688
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
689
|
-
'./Twitch-
|
|
689
|
+
'./Twitch-3cd4b54b.js').then(function (n) { return n.T; });
|
|
690
690
|
})
|
|
691
691
|
}, {
|
|
692
692
|
key: 'dailymotion',
|
|
@@ -695,7 +695,7 @@ patterns.canPlay = canPlay;
|
|
|
695
695
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
696
696
|
return import(
|
|
697
697
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
698
|
-
'./DailyMotion-
|
|
698
|
+
'./DailyMotion-989c2db3.js').then(function (n) { return n.D; });
|
|
699
699
|
})
|
|
700
700
|
}, {
|
|
701
701
|
key: 'mixcloud',
|
|
@@ -704,7 +704,7 @@ patterns.canPlay = canPlay;
|
|
|
704
704
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
705
705
|
return import(
|
|
706
706
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
707
|
-
'./Mixcloud-
|
|
707
|
+
'./Mixcloud-5a3b4353.js').then(function (n) { return n.M; });
|
|
708
708
|
})
|
|
709
709
|
}, {
|
|
710
710
|
key: 'vidyard',
|
|
@@ -713,7 +713,7 @@ patterns.canPlay = canPlay;
|
|
|
713
713
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
714
714
|
return import(
|
|
715
715
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
716
|
-
'./Vidyard-
|
|
716
|
+
'./Vidyard-258ab0ef.js').then(function (n) { return n.V; });
|
|
717
717
|
})
|
|
718
718
|
}, {
|
|
719
719
|
key: 'kaltura',
|
|
@@ -722,7 +722,7 @@ patterns.canPlay = canPlay;
|
|
|
722
722
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
723
723
|
return import(
|
|
724
724
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
725
|
-
'./Kaltura-
|
|
725
|
+
'./Kaltura-a9ed37a9.js').then(function (n) { return n.K; });
|
|
726
726
|
})
|
|
727
727
|
}, {
|
|
728
728
|
key: 'file',
|
|
@@ -734,7 +734,7 @@ patterns.canPlay = canPlay;
|
|
|
734
734
|
lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
735
735
|
return import(
|
|
736
736
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
737
|
-
'./FilePlayer-
|
|
737
|
+
'./FilePlayer-0789336d.js').then(function (n) { return n.F; });
|
|
738
738
|
})
|
|
739
739
|
}];
|
|
740
740
|
exports["default"] = _default;
|
|
@@ -1659,7 +1659,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
1659
1659
|
var Preview = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
1660
1660
|
return import(
|
|
1661
1661
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
1662
|
-
'./Preview-
|
|
1662
|
+
'./Preview-7ca1835e.js').then(function (n) { return n.P; });
|
|
1663
1663
|
});
|
|
1664
1664
|
var IS_BROWSER = typeof window !== 'undefined' && window.document;
|
|
1665
1665
|
var IS_GLOBAL = typeof commonjsGlobal !== 'undefined' && commonjsGlobal.window && commonjsGlobal.window.document;
|
|
@@ -1915,7 +1915,7 @@ const ReactPlayer = RP;
|
|
|
1915
1915
|
const VideoPlayer = ({ controls, src, poster, youtube, tracks, }) => {
|
|
1916
1916
|
var _a;
|
|
1917
1917
|
const { prefix } = useGlobalSettings();
|
|
1918
|
-
const baseClass = `${prefix}--
|
|
1918
|
+
const baseClass = `${prefix}--legacyvideo`;
|
|
1919
1919
|
const playerClasses = classNames("", {
|
|
1920
1920
|
[`${baseClass}--player`]: true,
|
|
1921
1921
|
[`youtube`]: youtube,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-
|
|
1
|
+
import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
|
|
2
2
|
import require$$0 from 'react';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
@@ -15,9 +15,9 @@ const List = ({ children, className, alignment, ordered, title, }) => {
|
|
|
15
15
|
[`${baseClass}--${alignment}`]: alignment,
|
|
16
16
|
[`${baseClass}--${ordered}`]: true,
|
|
17
17
|
});
|
|
18
|
-
return (
|
|
18
|
+
return (jsx(ListContext.Provider, Object.assign({ value: {
|
|
19
19
|
activeItems,
|
|
20
|
-
} }, { children:
|
|
20
|
+
} }, { children: jsxs("div", Object.assign({ className: listClasses }, { children: [title && jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), ordered && ordered === "ordered" && jsx("ol", { children: children }), ordered && ordered !== "ordered" && (jsx("ul", Object.assign({ className: `${baseClass}--${alignment}` }, { children: children })))] })) })));
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export { List as default };
|
|
@@ -35,9 +35,6 @@ var brand = {
|
|
|
35
35
|
"ilo-dark-red": {
|
|
36
36
|
value: "rgba(200, 48, 60, 1)"
|
|
37
37
|
},
|
|
38
|
-
"ilo-lighter-blue": {
|
|
39
|
-
value: "rgba(235, 245, 253, 1)"
|
|
40
|
-
},
|
|
41
38
|
"ilo-light-blue": {
|
|
42
39
|
value: "rgba(235, 245, 253, 1)"
|
|
43
40
|
},
|
|
@@ -53,9 +50,6 @@ var brand = {
|
|
|
53
50
|
"ilo-grey-accessible": {
|
|
54
51
|
value: "rgba(109, 109, 109, 1)"
|
|
55
52
|
},
|
|
56
|
-
"ilo-grey-charcoal": {
|
|
57
|
-
value: "rgba(45, 45, 45, 1)"
|
|
58
|
-
},
|
|
59
53
|
"ilo-black": {
|
|
60
54
|
value: "rgba(45, 45, 45, 1)"
|
|
61
55
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
4
|
-
import { V as VideoPlayer } from '../../VideoPlayer-
|
|
4
|
+
import { V as VideoPlayer } from '../../VideoPlayer-96c2b20c.js';
|
|
5
5
|
import 'tslib';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../GlobalCtx-7fb23cfa.js';
|
|
@@ -12,7 +12,7 @@ import 'screenfull';
|
|
|
12
12
|
|
|
13
13
|
const Video = ({ className, caption, poster, video }) => {
|
|
14
14
|
const { prefix } = useGlobalSettings();
|
|
15
|
-
const baseClass = `${prefix}--
|
|
15
|
+
const baseClass = `${prefix}--legacyvideo`;
|
|
16
16
|
const videoClasses = classNames(className, {
|
|
17
17
|
[baseClass]: true,
|
|
18
18
|
});
|
|
@@ -5,7 +5,7 @@ import '../../hooks/useGlobalSettings.js';
|
|
|
5
5
|
import 'tslib';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../GlobalCtx-7fb23cfa.js';
|
|
8
|
-
import '../../VideoPlayer-
|
|
8
|
+
import '../../VideoPlayer-96c2b20c.js';
|
|
9
9
|
import '../../index-623ce3f5.js';
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import '../../utils/hoursMinutesSeconds.js';
|
|
@@ -72,7 +72,7 @@ import './Hero/HeroCard.js';
|
|
|
72
72
|
import './SocialMedia/SocialMedia.js';
|
|
73
73
|
import './Input/Input.js';
|
|
74
74
|
import './FormElement/FormElement.js';
|
|
75
|
-
import '../VideoPlayer-
|
|
75
|
+
import '../VideoPlayer-96c2b20c.js';
|
|
76
76
|
import '../utils/hoursMinutesSeconds.js';
|
|
77
77
|
import 'screenfull';
|
|
78
78
|
import '@ilo-org/icons-react';
|
package/lib/esm/index.js
CHANGED
|
@@ -73,7 +73,7 @@ import './components/Hero/HeroCard.js';
|
|
|
73
73
|
import './components/SocialMedia/SocialMedia.js';
|
|
74
74
|
import './components/Input/Input.js';
|
|
75
75
|
import './components/FormElement/FormElement.js';
|
|
76
|
-
import './VideoPlayer-
|
|
76
|
+
import './VideoPlayer-96c2b20c.js';
|
|
77
77
|
import './utils/hoursMinutesSeconds.js';
|
|
78
78
|
import 'screenfull';
|
|
79
79
|
import './components/Logo/Logo.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/react",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "React components for the ILO's Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui_patterns",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"nanoid": "^3.3.6",
|
|
75
75
|
"react-player": "2.10.1",
|
|
76
76
|
"react-transition-group": "^4.4.1",
|
|
77
|
-
"@ilo-org/brand-assets": "0.
|
|
77
|
+
"@ilo-org/brand-assets": "0.4.0",
|
|
78
78
|
"@ilo-org/fonts": "0.1.2",
|
|
79
79
|
"@ilo-org/icons-react": "0.0.21",
|
|
80
|
-
"@ilo-org/styles": "0.13.
|
|
81
|
-
"@ilo-org/themes": "0.7.
|
|
80
|
+
"@ilo-org/styles": "0.13.3",
|
|
81
|
+
"@ilo-org/themes": "0.7.1",
|
|
82
82
|
"@ilo-org/utils": "0.0.11"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
@@ -27,18 +27,13 @@ const List: FC<ListProps> = ({
|
|
|
27
27
|
activeItems,
|
|
28
28
|
}}
|
|
29
29
|
>
|
|
30
|
-
{
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<ul className={listClasses}>
|
|
38
|
-
{title && <h5 className={`${baseClass}__title`}>{title}</h5>}
|
|
39
|
-
{children}
|
|
40
|
-
</ul>
|
|
41
|
-
)}
|
|
30
|
+
<div className={listClasses}>
|
|
31
|
+
{title && <h5 className={`${baseClass}__title`}>{title}</h5>}
|
|
32
|
+
{ordered && ordered === "ordered" && <ol>{children}</ol>}
|
|
33
|
+
{ordered && ordered !== "ordered" && (
|
|
34
|
+
<ul className={`${baseClass}--${alignment}`}>{children}</ul>
|
|
35
|
+
)}
|
|
36
|
+
</div>
|
|
42
37
|
</ListContext.Provider>
|
|
43
38
|
);
|
|
44
39
|
};
|
|
@@ -6,7 +6,7 @@ import VideoPlayer from "./VideoPlayer";
|
|
|
6
6
|
|
|
7
7
|
const Video: FC<VideoProps> = ({ className, caption, poster, video }) => {
|
|
8
8
|
const { prefix } = useGlobalSettings();
|
|
9
|
-
const baseClass = `${prefix}--
|
|
9
|
+
const baseClass = `${prefix}--legacyvideo`;
|
|
10
10
|
|
|
11
11
|
const videoClasses = classNames(className, {
|
|
12
12
|
[baseClass]: true,
|
|
@@ -27,7 +27,7 @@ const VideoPlayer: FC<VideoPlayerProps> = ({
|
|
|
27
27
|
tracks,
|
|
28
28
|
}) => {
|
|
29
29
|
const { prefix } = useGlobalSettings();
|
|
30
|
-
const baseClass = `${prefix}--
|
|
30
|
+
const baseClass = `${prefix}--legacyvideo`;
|
|
31
31
|
|
|
32
32
|
const playerClasses = classNames("", {
|
|
33
33
|
[`${baseClass}--player`]: true,
|