@ilo-org/react 0.10.6 → 0.11.0
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 +14 -0
- package/lib/cjs/AccordionCtx-be704051.js +9 -0
- package/lib/cjs/{GlobalCtx-97e4b433.js → GlobalCtx-10114bdd.js} +2 -2
- package/lib/cjs/ListCtx-14aa546f.js +9 -0
- package/lib/cjs/TagCtx-690a1d54.js +7 -0
- package/lib/cjs/components/Accordion/Accordion.js +6 -6
- package/lib/cjs/components/Accordion/AccordionButton.js +5 -5
- package/lib/cjs/components/Accordion/AccordionItem.js +2 -2
- package/lib/cjs/components/Accordion/AccordionPanel.js +8 -8
- package/lib/cjs/components/Accordion/index.js +2 -2
- package/lib/cjs/components/Breadcrumb/Breadcrumb.js +5 -5
- package/lib/cjs/components/Breadcrumb/index.js +1 -1
- package/lib/cjs/components/Button/Button.js +1 -1
- package/lib/cjs/components/Button/index.js +1 -1
- package/lib/cjs/components/Callout/Callout.js +4 -4
- package/lib/cjs/components/Callout/index.js +1 -1
- package/lib/cjs/components/Card/Card.js +2 -2
- package/lib/cjs/components/Card/CardGroup.js +2 -2
- package/lib/cjs/components/Card/index.js +2 -2
- package/lib/cjs/components/Checkbox/Checkbox.js +5 -5
- package/lib/cjs/components/Checkbox/index.js +1 -1
- package/lib/cjs/components/Collapse/Collapse.js +1194 -44
- package/lib/cjs/components/Collapse/index.js +0 -1
- package/lib/cjs/components/ContextMenu/ContextMenu.js +1 -1
- package/lib/cjs/components/ContextMenu/index.js +1 -1
- package/lib/cjs/components/Credit/Credit.js +3 -3
- package/lib/cjs/components/Credit/index.js +1 -1
- package/lib/cjs/components/DatePicker/DatePicker.js +4 -4
- package/lib/cjs/components/DatePicker/index.js +1 -1
- package/lib/cjs/components/Dropdown/Dropdown.js +5 -5
- package/lib/cjs/components/Dropdown/index.js +1 -1
- package/lib/cjs/components/Empty/Empty.js +1 -1
- package/lib/cjs/components/Empty/index.js +1 -1
- package/lib/cjs/components/Fieldset/Fieldset.js +5 -5
- package/lib/cjs/components/Fieldset/index.js +1 -1
- package/lib/cjs/components/FileUpload/FileUpload.js +5 -5
- package/lib/cjs/components/FileUpload/index.js +1 -1
- package/lib/cjs/components/Footer/Footer.js +1 -1
- package/lib/cjs/components/Footer/index.js +1 -1
- package/lib/cjs/components/Form/Form.js +3 -3
- package/lib/cjs/components/Form/index.js +1 -1
- package/lib/cjs/components/FormControl/FormControl.js +7 -7
- package/lib/cjs/components/FormControl/index.js +1 -1
- package/lib/cjs/components/GlobalProvider/GlobalProvider.js +1 -1
- package/lib/cjs/components/GlobalProvider/index.js +1 -1
- package/lib/cjs/components/Heading/Heading.js +1 -1
- package/lib/cjs/components/Heading/index.js +1 -1
- package/lib/cjs/components/Hero/Hero.js +1 -1
- package/lib/cjs/components/Hero/HeroCard.js +1 -1
- package/lib/cjs/components/Hero/index.js +1 -1
- package/lib/cjs/components/Icon/Icon.js +3 -3
- package/lib/cjs/components/Icon/index.js +1 -1
- package/lib/cjs/components/Image/Image.js +1 -1
- package/lib/cjs/components/Image/index.js +1 -1
- package/lib/cjs/components/Input/Input.js +1 -1
- package/lib/cjs/components/Input/index.js +1 -1
- package/lib/cjs/components/Link/Link.js +1 -1
- package/lib/cjs/components/Link/index.js +1 -1
- package/lib/cjs/components/LinkList/LinkList.js +1 -1
- package/lib/cjs/components/LinkList/index.js +1 -1
- package/lib/cjs/components/List/List.js +4 -4
- package/lib/cjs/components/List/ListItem.js +2 -2
- package/lib/cjs/components/List/index.js +2 -2
- package/lib/cjs/components/Loading/Loading.js +1 -1
- package/lib/cjs/components/Loading/index.js +1 -1
- package/lib/cjs/components/LocalNav/LocalNav.js +4 -4
- package/lib/cjs/components/LocalNav/index.js +1 -1
- package/lib/cjs/components/Logo/Logo.js +15 -15
- package/lib/cjs/components/Logo/index.js +1 -1
- package/lib/cjs/components/LogoGrid/LogoGrid.js +1 -1
- package/lib/cjs/components/LogoGrid/index.js +1 -1
- package/lib/cjs/components/Navigation/Navigation.js +6 -6
- package/lib/cjs/components/Navigation/index.js +1 -1
- package/lib/cjs/components/Notification/Notification.js +3 -3
- package/lib/cjs/components/Notification/index.js +1 -1
- package/lib/cjs/components/NumberPicker/NumberPicker.js +4 -4
- package/lib/cjs/components/NumberPicker/index.js +1 -1
- package/lib/cjs/components/Pagination/Pagination.js +1 -1
- package/lib/cjs/components/Pagination/index.js +1 -1
- package/lib/cjs/components/Profile/Profile.js +1 -1
- package/lib/cjs/components/Profile/index.js +1 -1
- package/lib/cjs/components/Radio/Radio.js +5 -5
- package/lib/cjs/components/Radio/index.js +1 -1
- package/lib/cjs/components/ReadMore/ReadMore.js +4 -4
- package/lib/cjs/components/ReadMore/index.js +1 -1
- package/lib/cjs/components/RichText/RichText.js +1 -1
- package/lib/cjs/components/RichText/index.js +1 -1
- package/lib/cjs/components/SearchField/SearchField.js +3 -3
- package/lib/cjs/components/SearchField/index.js +1 -1
- package/lib/cjs/components/SocialMedia/SocialMedia.js +1 -1
- package/lib/cjs/components/SocialMedia/index.js +1 -1
- package/lib/cjs/components/TableOfContents/TableOfContents.js +1 -1
- package/lib/cjs/components/TableOfContents/index.js +1 -1
- package/lib/cjs/components/Tabs/Tabs.args.js +156 -0
- package/lib/cjs/components/Tabs/Tabs.js +24 -0
- package/lib/cjs/components/Tabs/index.js +15 -0
- package/lib/cjs/components/Tag/Tag.js +4 -4
- package/lib/cjs/components/Tag/TagSet.js +6 -6
- package/lib/cjs/components/Tag/index.js +2 -2
- package/lib/cjs/components/TextInput/TextInput.js +4 -4
- package/lib/cjs/components/TextInput/index.js +1 -1
- package/lib/cjs/components/Textarea/Textarea.js +4 -4
- package/lib/cjs/components/Textarea/index.js +1 -1
- package/lib/cjs/components/Toggle/Toggle.js +4 -4
- package/lib/cjs/components/Toggle/index.js +1 -1
- package/lib/cjs/components/Tooltip/Tooltip.js +5 -5
- package/lib/cjs/components/Tooltip/index.js +1 -1
- package/lib/cjs/components/Video/Video.js +11 -12
- package/lib/cjs/components/Video/VideoPlayer.js +55 -13
- package/lib/cjs/components/Video/index.js +6 -8
- package/lib/cjs/components/index.js +9 -8
- package/lib/cjs/hooks/index.js +1 -1
- package/lib/cjs/hooks/useGlobalSettings.js +3 -3
- package/lib/cjs/hooks/usePrevious.js +3 -3
- package/lib/cjs/hooks/useVideoPlayer.js +7 -7
- package/lib/cjs/index.js +9 -8
- package/lib/esm/components/Collapse/Collapse.js +1156 -6
- package/lib/esm/components/Collapse/index.js +0 -1
- package/lib/esm/components/FileUpload/FileUpload.js +3 -3
- package/lib/esm/components/NumberPicker/NumberPicker.js +3 -3
- package/lib/esm/components/Radio/Radio.js +3 -3
- package/lib/esm/components/Tabs/Tabs.args.js +154 -0
- package/lib/esm/components/Tabs/Tabs.js +22 -0
- package/lib/esm/components/Tabs/index.js +9 -0
- package/lib/esm/components/TextInput/TextInput.js +3 -3
- package/lib/esm/components/Textarea/Textarea.js +3 -3
- package/lib/esm/components/Video/Video.js +10 -11
- package/lib/esm/components/Video/VideoPlayer.js +57 -11
- package/lib/esm/components/Video/index.js +5 -7
- package/lib/esm/components/index.js +4 -4
- package/lib/esm/index.js +4 -4
- package/lib/types/react/src/components/Tabs/Tabs.args.d.ts +10 -0
- package/lib/types/react/src/components/Tabs/Tabs.d.ts +4 -0
- package/lib/types/react/src/components/Tabs/Tabs.props.d.ts +12 -0
- package/lib/types/react/src/components/Tabs/index.d.ts +1 -0
- package/lib/types/react/src/components/Video/Video.d.ts +2 -2
- package/lib/types/react/src/components/Video/Video.props.d.ts +5 -43
- package/lib/types/react/src/components/Video/VideoPlayer.d.ts +3 -3
- package/lib/types/react/src/components/Video/VideoPlayer.props.d.ts +6 -31
- package/lib/types/react/src/components/index.d.ts +1 -0
- package/package.json +9 -7
- package/src/components/Tabs/Tabs.args.tsx +201 -0
- package/src/components/Tabs/Tabs.props.ts +13 -0
- package/src/components/Tabs/Tabs.tsx +60 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Video/Video.args.ts +18 -24
- package/src/components/Video/Video.props.ts +5 -47
- package/src/components/Video/Video.tsx +24 -19
- package/src/components/Video/VideoPlayer.props.ts +7 -38
- package/src/components/Video/VideoPlayer.tsx +67 -322
- package/src/components/index.ts +1 -0
- package/src/declarations.d.ts +22 -0
- package/lib/cjs/AccordionCtx-fe08ff45.js +0 -9
- package/lib/cjs/DailyMotion-17b56ecb.js +0 -259
- package/lib/cjs/Facebook-0c8d86ee.js +0 -239
- package/lib/cjs/FilePlayer-01d6dc08.js +0 -596
- package/lib/cjs/Kaltura-40e8e581.js +0 -235
- package/lib/cjs/ListCtx-7db7fe04.js +0 -9
- package/lib/cjs/Mixcloud-e23f49d6.js +0 -222
- package/lib/cjs/Preview-8e490f54.js +0 -227
- package/lib/cjs/SoundCloud-2500b6cb.js +0 -249
- package/lib/cjs/Streamable-00723065.js +0 -234
- package/lib/cjs/TagCtx-929c7753.js +0 -7
- package/lib/cjs/Twitch-2c5c5733.js +0 -244
- package/lib/cjs/VideoPlayer-5f0a64c6.js +0 -2067
- package/lib/cjs/Vidyard-d36d6c45.js +0 -237
- package/lib/cjs/Vimeo-d311e3b8.js +0 -285
- package/lib/cjs/Wistia-318b4e43.js +0 -288
- package/lib/cjs/YouTube-a3796a55.js +0 -377
- package/lib/cjs/index-0af02e81.js +0 -1154
- package/lib/esm/DailyMotion-989c2db3.js +0 -257
- package/lib/esm/Facebook-04e9cc59.js +0 -237
- package/lib/esm/FilePlayer-0789336d.js +0 -594
- package/lib/esm/Kaltura-a9ed37a9.js +0 -233
- package/lib/esm/Mixcloud-5a3b4353.js +0 -220
- package/lib/esm/Preview-7ca1835e.js +0 -225
- package/lib/esm/SoundCloud-47bccd79.js +0 -247
- package/lib/esm/Streamable-ee762126.js +0 -232
- package/lib/esm/Twitch-3cd4b54b.js +0 -242
- package/lib/esm/VideoPlayer-96c2b20c.js +0 -2062
- package/lib/esm/Vidyard-258ab0ef.js +0 -235
- package/lib/esm/Vimeo-4b29b580.js +0 -283
- package/lib/esm/Wistia-3cbce669.js +0 -286
- package/lib/esm/YouTube-db52da1c.js +0 -375
- package/lib/esm/index-623ce3f5.js +0 -1152
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var components_RichText_RichText = require('../RichText/RichText.js');
|
|
5
|
+
var components_Image_Image = require('../Image/Image.js');
|
|
6
|
+
require('classnames');
|
|
7
|
+
require('../../hooks/useGlobalSettings.js');
|
|
8
|
+
require('tslib');
|
|
9
|
+
require('react');
|
|
10
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
11
|
+
require('../Credit/Credit.js');
|
|
12
|
+
|
|
13
|
+
const tabs = {
|
|
14
|
+
items: [
|
|
15
|
+
{
|
|
16
|
+
label: "Tab Label With A Really Really Lenghty Title Even Though We Do Not Recommend Such A Lengthy Title",
|
|
17
|
+
content: (jsxRuntime.jsx(components_Image_Image, { alt: "My alt text", caption: "Women construction workers in Nepal build roads and bridges as part of a National Rural Transport Programme co-sponsored by the ILO.", credit: "\u00A9 Marcel Crozet/ILO", url: [
|
|
18
|
+
{ breakpoint: 0, src: "/small.jpg" },
|
|
19
|
+
{ breakpoint: 800, src: "/medium.jpg" },
|
|
20
|
+
{ breakpoint: 1200, src: "/large.jpg" },
|
|
21
|
+
{ breakpoint: 1440, src: "/large.jpg" },
|
|
22
|
+
] })),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "Tab Label 2",
|
|
26
|
+
content: (jsxRuntime.jsx(components_RichText_RichText, { content: "<h2>International Labour Organization</h2> <p>The <b>International Labour Organization</b> (<b>ILO</b>) is a <a href='https://www.un.org'>United Nations</a> agency whose mandate is to advance social and economic justice by setting international labour standards. Founded in October 1919 under the League of Nations, it is the first and oldest specialised agency of the UN. The ILO has 187 member states: 186 out of 193 UN member states plus the Cook Islands.</p> <p>Whereas also the failure of any nation to adopt humane conditions of labour is an obstacle in the way of other nations which desire to improve the conditions in their own countries.</p> <figure><img alt='placeholder image' class='right' src='/ilo-headquarters.jpg'><figcaption>The ILO's headquarters in Geneva, Switzerland. \u00A9Steiner SA</figcaption></figure> <h3>ILO Constitution</h3> <p>The driving forces for the ILO's creation arose from security, humanitarian, political and economic considerations.</p> <blockquote> <p>The fundamental ideas that forged the ILO one hundred and three years ago still underpin the global pledge to leave no one behind.</p> <cite>ILO Director-General Gilbert F. Houngbo</cite> </blockquote> Reflecting these ideas, the Preamble of the ILO Constitution states:</p> <ol> <li>Whereas universal and lasting peace can be established only if it is based upon social justice;</li> <li>And whereas conditions of labour exist involving such injustice, hardship and privation to large numbers of people as to produce unrest so great that the peace and harmony of the world are imperilled; and an improvement of those conditions is urgently required;</li> <li>Whereas also the failure of any nation to adopt humane conditions of labour is an obstacle in the way of other nations which desire to improve the conditions in their own countries.</li> </ol>" })),
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
const withIcon = {
|
|
31
|
+
items: [
|
|
32
|
+
{
|
|
33
|
+
icon: {
|
|
34
|
+
hidden: false,
|
|
35
|
+
name: "info",
|
|
36
|
+
},
|
|
37
|
+
label: "Tab Label With A Really Really Lenghty Title Even Though We Do Not Recommend Such A Lengthy Title",
|
|
38
|
+
content: (jsxRuntime.jsx(components_Image_Image, { alt: "My alt text", caption: "Women construction workers in Nepal build roads and bridges as part of a National Rural Transport Programme co-sponsored by the ILO.", credit: "\u00A9 Marcel Crozet/ILO", url: [
|
|
39
|
+
{ breakpoint: 0, src: "/small.jpg" },
|
|
40
|
+
{ breakpoint: 800, src: "/medium.jpg" },
|
|
41
|
+
{ breakpoint: 1200, src: "/large.jpg" },
|
|
42
|
+
{ breakpoint: 1440, src: "/large.jpg" },
|
|
43
|
+
] })),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
icon: {
|
|
47
|
+
hidden: false,
|
|
48
|
+
name: "info",
|
|
49
|
+
},
|
|
50
|
+
label: "Tab Label 2",
|
|
51
|
+
content: (jsxRuntime.jsx(components_RichText_RichText, { content: "<h2>International Labour Organization</h2> <p>The <b>International Labour Organization</b> (<b>ILO</b>) is a <a href='https://www.un.org'>United Nations</a> agency whose mandate is to advance social and economic justice by setting international labour standards. Founded in October 1919 under the League of Nations, it is the first and oldest specialised agency of the UN. The ILO has 187 member states: 186 out of 193 UN member states plus the Cook Islands.</p> <p>Whereas also the failure of any nation to adopt humane conditions of labour is an obstacle in the way of other nations which desire to improve the conditions in their own countries.</p> <figure><img alt='placeholder image' class='right' src='/ilo-headquarters.jpg'><figcaption>The ILO's headquarters in Geneva, Switzerland. \u00A9Steiner SA</figcaption></figure> <h3>ILO Constitution</h3> <p>The driving forces for the ILO's creation arose from security, humanitarian, political and economic considerations.</p> <blockquote> <p>The fundamental ideas that forged the ILO one hundred and three years ago still underpin the global pledge to leave no one behind.</p> <cite>ILO Director-General Gilbert F. Houngbo</cite> </blockquote> Reflecting these ideas, the Preamble of the ILO Constitution states:</p> <ol> <li>Whereas universal and lasting peace can be established only if it is based upon social justice;</li> <li>And whereas conditions of labour exist involving such injustice, hardship and privation to large numbers of people as to produce unrest so great that the peace and harmony of the world are imperilled; and an improvement of those conditions is urgently required;</li> <li>Whereas also the failure of any nation to adopt humane conditions of labour is an obstacle in the way of other nations which desire to improve the conditions in their own countries.</li> </ol>" })),
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
const fiveItems = {
|
|
56
|
+
items: [
|
|
57
|
+
{
|
|
58
|
+
label: "Tab One",
|
|
59
|
+
content: (jsxRuntime.jsx(components_RichText_RichText, { content: "<h2>International Labour Organization</h2> <p>The <b>International Labour Organization</b> (<b>ILO</b>) is a <a href='https://www.un.org'>United Nations</a> agency whose mandate is to advance social and economic justice by setting international labour standards. Founded in October 1919 under the League of Nations, it is the first and oldest specialised agency of the UN. The ILO has 187 member states: 186 out of 193 UN member states plus the Cook Islands.</p> <p>Whereas also the failure of any nation to adopt humane conditions of labour is an obstacle in the way of other nations which desire to improve the conditions in their own countries.</p> <figure><img alt='placeholder image' class='right' src='/ilo-headquarters.jpg'><figcaption>The ILO's headquarters in Geneva, Switzerland. \u00A9Steiner SA</figcaption></figure> <h3>ILO Constitution</h3> <p>The driving forces for the ILO's creation arose from security, humanitarian, political and economic considerations.</p> <blockquote> <p>The fundamental ideas that forged the ILO one hundred and three years ago still underpin the global pledge to leave no one behind.</p> <cite>ILO Director-General Gilbert F. Houngbo</cite> </blockquote> Reflecting these ideas, the Preamble of the ILO Constitution states:</p> <ol> <li>Whereas universal and lasting peace can be established only if it is based upon social justice;</li> <li>And whereas conditions of labour exist involving such injustice, hardship and privation to large numbers of people as to produce unrest so great that the peace and harmony of the world are imperilled; and an improvement of those conditions is urgently required;</li> <li>Whereas also the failure of any nation to adopt humane conditions of labour is an obstacle in the way of other nations which desire to improve the conditions in their own countries.</li> </ol>" })),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: "Tab Two",
|
|
63
|
+
content: (jsxRuntime.jsx(components_Image_Image, { alt: "My alt text", caption: "Women construction workers in Nepal build roads and bridges as part of a National Rural Transport Programme co-sponsored by the ILO.", credit: "\u00A9 Marcel Crozet/ILO", url: [
|
|
64
|
+
{
|
|
65
|
+
breakpoint: 0,
|
|
66
|
+
src: "https://place-hold.it/400x300?text=Tab Two Image",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
breakpoint: 800,
|
|
70
|
+
src: "https://place-hold.it/800x600?text=Tab Two Image",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
breakpoint: 1200,
|
|
74
|
+
src: "https://place-hold.it/1200x900?text=Tab Two Image",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
breakpoint: 1440,
|
|
78
|
+
src: "https://place-hold.it/1600x1200?text=Tab Two Image",
|
|
79
|
+
},
|
|
80
|
+
] })),
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: "Tab Three",
|
|
84
|
+
content: (jsxRuntime.jsx(components_Image_Image, { alt: "My alt text", caption: "Women construction workers in Nepal build roads and bridges as part of a National Rural Transport Programme co-sponsored by the ILO.", credit: "\u00A9 Marcel Crozet/ILO", url: [
|
|
85
|
+
{
|
|
86
|
+
breakpoint: 0,
|
|
87
|
+
src: "https://place-hold.it/400x300?text=Tab Three Image",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
breakpoint: 800,
|
|
91
|
+
src: "https://place-hold.it/800x600?text=Tab Three Image",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
breakpoint: 1200,
|
|
95
|
+
src: "https://place-hold.it/1200x900?text=Tab Three Image",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
breakpoint: 1440,
|
|
99
|
+
src: "https://place-hold.it/1600x1200?text=Tab Three Image",
|
|
100
|
+
},
|
|
101
|
+
] })),
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "Tab Four Has A Really Lenghthy Title Which Might Get Truncated",
|
|
105
|
+
content: (jsxRuntime.jsx(components_Image_Image, { alt: "My alt text", caption: "Women construction workers in Nepal build roads and bridges as part of a National Rural Transport Programme co-sponsored by the ILO.", credit: "\u00A9 Marcel Crozet/ILO", url: [
|
|
106
|
+
{
|
|
107
|
+
breakpoint: 0,
|
|
108
|
+
src: "https://place-hold.it/400x300?text=Tab Four Image",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
breakpoint: 800,
|
|
112
|
+
src: "https://place-hold.it/800x600?text=Tab Four Image",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
breakpoint: 1200,
|
|
116
|
+
src: "https://place-hold.it/1200x900?text=Tab Four Image",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
breakpoint: 1440,
|
|
120
|
+
src: "https://place-hold.it/1600x1200?text=Tab Four Image",
|
|
121
|
+
},
|
|
122
|
+
] })),
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: "Tab Five",
|
|
126
|
+
content: (jsxRuntime.jsx(components_Image_Image, { alt: "My alt text", caption: "Women construction workers in Nepal build roads and bridges as part of a National Rural Transport Programme co-sponsored by the ILO.", credit: "\u00A9 Marcel Crozet/ILO", url: [
|
|
127
|
+
{
|
|
128
|
+
breakpoint: 0,
|
|
129
|
+
src: "https://place-hold.it/400x300?text=Tab Five Image",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
breakpoint: 800,
|
|
133
|
+
src: "https://place-hold.it/800x600?text=Tab Five Image",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
breakpoint: 1200,
|
|
137
|
+
src: "https://place-hold.it/1200x900?text=Tab Five Image",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
breakpoint: 1440,
|
|
141
|
+
src: "https://place-hold.it/1600x1200?text=Tab Five Image",
|
|
142
|
+
},
|
|
143
|
+
] })),
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Sample prop definitions for Button's enumerable properties (imported in stories and tests).
|
|
149
|
+
*/
|
|
150
|
+
const TabsArgs = {
|
|
151
|
+
tabs,
|
|
152
|
+
withIcon,
|
|
153
|
+
fiveItems,
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
module.exports = TabsArgs;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
6
|
+
var classNames = require('classnames');
|
|
7
|
+
var components_Icon_Icon = require('../Icon/Icon.js');
|
|
8
|
+
require('tslib');
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
|
+
require('@ilo-org/icons-react');
|
|
11
|
+
|
|
12
|
+
const Tabs = ({ items }) => {
|
|
13
|
+
const [activeTab, setActiveTab] = React.useState(0);
|
|
14
|
+
const handleTabClick = (index, e) => {
|
|
15
|
+
setActiveTab(index);
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
};
|
|
18
|
+
const { prefix } = hooks_useGlobalSettings();
|
|
19
|
+
const baseClass = `${prefix}--tabs`;
|
|
20
|
+
const tabsClasses = classNames(baseClass);
|
|
21
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: `${tabsClasses} tabs--js` }, { children: [jsxRuntime.jsx("ul", Object.assign({ className: `${baseClass}--selection`, role: "tablist" }, { children: items.map((tab, index) => (jsxRuntime.jsx("li", Object.assign({ role: "tab", className: `${baseClass}--selection--item ${activeTab === index ? "active" : ""}`, onClick: (e) => handleTabClick(index, e) }, { children: jsxRuntime.jsxs("a", Object.assign({ href: `#tab--${index}`, className: `${baseClass}--selection--button${tab.icon ? " icon" : ""}`, role: "tab", "aria-controls": `tab--${index}`, "aria-selected": index === activeTab ? true : false, title: tab.label }, { children: [jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--selection--label` }, { children: tab.label })), tab.icon && (jsxRuntime.jsx(components_Icon_Icon, { name: tab.icon.name, hidden: tab.icon.hidden }))] })) }), `#tab--${index}`))) })), jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--content` }, { children: items[activeTab].content }))] })));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
module.exports = Tabs;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var components_Tabs_Tabs = require('./Tabs.js');
|
|
4
|
+
require('react/jsx-runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('../../hooks/useGlobalSettings.js');
|
|
7
|
+
require('tslib');
|
|
8
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
9
|
+
require('classnames');
|
|
10
|
+
require('../Icon/Icon.js');
|
|
11
|
+
require('@ilo-org/icons-react');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.Tabs = components_Tabs_Tabs;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var classNames = require('classnames');
|
|
7
7
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
8
8
|
var components_Icon_Icon = require('../Icon/Icon.js');
|
|
9
9
|
var utils = require('@ilo-org/utils');
|
|
10
|
-
var TagCtx = require('../../TagCtx-
|
|
11
|
-
require('../../GlobalCtx-
|
|
10
|
+
var TagCtx = require('../../TagCtx-690a1d54.js');
|
|
11
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
12
12
|
require('@ilo-org/icons-react');
|
|
13
13
|
|
|
14
14
|
const Tag = (_a) => {
|
|
15
15
|
var { className, children, id, url, type, callback } = _a, rest = tslib.__rest(_a, ["className", "children", "id", "url", "type", "callback"]);
|
|
16
16
|
const { prefix } = hooks_useGlobalSettings();
|
|
17
|
-
const { activeItems, setActiveItems, allowMultipleActive } =
|
|
17
|
+
const { activeItems, setActiveItems, allowMultipleActive } = React.useContext(TagCtx.TagSetContext);
|
|
18
18
|
const active = activeItems.indexOf(id) > -1;
|
|
19
19
|
const baseClass = `${prefix}--tag`;
|
|
20
20
|
const itemClass = `${prefix}--tag-set__item`;
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var classNames = require('classnames');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
8
8
|
var utils_checkArrayDuplicates = require('../../utils/checkArrayDuplicates.js');
|
|
9
|
-
var TagCtx = require('../../TagCtx-
|
|
10
|
-
require('../../GlobalCtx-
|
|
9
|
+
var TagCtx = require('../../TagCtx-690a1d54.js');
|
|
10
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
11
11
|
|
|
12
12
|
const TagSet = (_a) => {
|
|
13
13
|
var { className, children, onButtonClick, defaultTagActive = [], allowMultipleActive = true } = _a, rest = tslib.__rest(_a, ["className", "children", "onButtonClick", "defaultTagActive", "allowMultipleActive"]);
|
|
14
14
|
const { prefix } = hooks_useGlobalSettings();
|
|
15
15
|
const baseClass = `${prefix}--tag-set`;
|
|
16
|
-
const [activeItems, setActiveItems] =
|
|
16
|
+
const [activeItems, setActiveItems] = React.useState([]);
|
|
17
17
|
const defaultTagActiveString = JSON.stringify(defaultTagActive);
|
|
18
|
-
|
|
18
|
+
React.useEffect(() => {
|
|
19
19
|
const tagOnLoad = allowMultipleActive
|
|
20
20
|
? defaultTagActive
|
|
21
21
|
: defaultTagActive.length > 0
|
|
@@ -25,7 +25,7 @@ const TagSet = (_a) => {
|
|
|
25
25
|
}, [defaultTagActiveString, allowMultipleActive]); //eslint-disable-line react-hooks/exhaustive-deps
|
|
26
26
|
if (children) {
|
|
27
27
|
const ids = [];
|
|
28
|
-
|
|
28
|
+
React.Children.forEach(children, (child) => {
|
|
29
29
|
ids.push(child.props.id);
|
|
30
30
|
});
|
|
31
31
|
if (utils_checkArrayDuplicates.checkArrayDuplicates(ids)) {
|
|
@@ -7,11 +7,11 @@ require('react/jsx-runtime');
|
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../../hooks/useGlobalSettings.js');
|
|
10
|
-
require('../../GlobalCtx-
|
|
10
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
11
11
|
require('../Icon/Icon.js');
|
|
12
12
|
require('@ilo-org/icons-react');
|
|
13
13
|
require('@ilo-org/utils');
|
|
14
|
-
require('../../TagCtx-
|
|
14
|
+
require('../../TagCtx-690a1d54.js');
|
|
15
15
|
require('../../utils/checkArrayDuplicates.js');
|
|
16
16
|
|
|
17
17
|
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var classNames = require('classnames');
|
|
7
7
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
8
8
|
var components_FormControl_FormControl = require('../FormControl/FormControl.js');
|
|
9
|
-
require('../../GlobalCtx-
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
10
|
require('nanoid');
|
|
11
11
|
require('../Tooltip/Tooltip.js');
|
|
12
12
|
require('@popperjs/core');
|
|
13
13
|
|
|
14
|
-
const TextInput =
|
|
14
|
+
const TextInput = React.forwardRef(({ onChange, onBlur, error, id, name, placeholder, required, pattern, disabled = false, type = "text", }, ref) => {
|
|
15
15
|
const { prefix } = hooks_useGlobalSettings();
|
|
16
16
|
const formControlCtx = components_FormControl_FormControl.useFormControl();
|
|
17
17
|
const { ariaDescribedBy } = formControlCtx;
|
|
@@ -21,7 +21,7 @@ const TextInput = require$$0.forwardRef(({ onChange, onBlur, error, id, name, pl
|
|
|
21
21
|
});
|
|
22
22
|
return (jsxRuntime.jsx("input", { ref: ref, id: id ? id : name, name: name, onChange: onChange, onBlur: onBlur, disabled: disabled, placeholder: placeholder, required: required, type: type, className: inputClass, pattern: pattern, "aria-describedby": ariaDescribedBy }));
|
|
23
23
|
});
|
|
24
|
-
const LabelledTextInput =
|
|
24
|
+
const LabelledTextInput = React.forwardRef((props, ref) => {
|
|
25
25
|
const { style, inputStyle, className } = props, rest = tslib.__rest(props, ["style", "inputStyle", "className"]);
|
|
26
26
|
const fieldId = props.id ? props.id : props.name;
|
|
27
27
|
return (jsxRuntime.jsx(components_FormControl_FormControl.default, Object.assign({ fieldId: fieldId, style: style, className: className }, rest, { children: jsxRuntime.jsx(TextInput, Object.assign({ ref: ref, style: inputStyle }, rest)) })));
|
|
@@ -6,7 +6,7 @@ require('react/jsx-runtime');
|
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('../../hooks/useGlobalSettings.js');
|
|
9
|
-
require('../../GlobalCtx-
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
10
|
require('../FormControl/FormControl.js');
|
|
11
11
|
require('nanoid');
|
|
12
12
|
require('../Tooltip/Tooltip.js');
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var classNames = require('classnames');
|
|
7
7
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
8
8
|
var components_FormControl_FormControl = require('../FormControl/FormControl.js');
|
|
9
|
-
require('../../GlobalCtx-
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
10
|
require('nanoid');
|
|
11
11
|
require('../Tooltip/Tooltip.js');
|
|
12
12
|
require('@popperjs/core');
|
|
13
13
|
|
|
14
|
-
const Textarea =
|
|
14
|
+
const Textarea = React.forwardRef((_a, ref) => {
|
|
15
15
|
var { error, className, name, id } = _a, props = tslib.__rest(_a, ["error", "className", "name", "id"]);
|
|
16
16
|
const { prefix } = hooks_useGlobalSettings();
|
|
17
17
|
const formControlCtx = components_FormControl_FormControl.useFormControl();
|
|
@@ -23,7 +23,7 @@ const Textarea = require$$0.forwardRef((_a, ref) => {
|
|
|
23
23
|
});
|
|
24
24
|
return (jsxRuntime.jsx("textarea", Object.assign({ ref: ref, className: textAreaClass, name: name, id: id ? id : name, "aria-describedby": ariaDescribedBy }, props)));
|
|
25
25
|
});
|
|
26
|
-
const LabelledTextarea =
|
|
26
|
+
const LabelledTextarea = React.forwardRef((props, ref) => {
|
|
27
27
|
const { style, inputStyle, className } = props, rest = tslib.__rest(props, ["style", "inputStyle", "className"]);
|
|
28
28
|
const fieldId = props.id ? props.id : props.name;
|
|
29
29
|
return (jsxRuntime.jsx(components_FormControl_FormControl.default, Object.assign({ fieldId: fieldId, style: style, className: className }, rest, { children: jsxRuntime.jsx(Textarea, Object.assign({ ref: ref, style: inputStyle }, rest)) })));
|
|
@@ -6,7 +6,7 @@ require('react/jsx-runtime');
|
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('../../hooks/useGlobalSettings.js');
|
|
9
|
-
require('../../GlobalCtx-
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
10
|
require('../FormControl/FormControl.js');
|
|
11
11
|
require('nanoid');
|
|
12
12
|
require('../Tooltip/Tooltip.js');
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
7
7
|
var classNames = require('classnames');
|
|
8
8
|
var components_FormControl_FormControl = require('../FormControl/FormControl.js');
|
|
9
|
-
require('../../GlobalCtx-
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
10
|
require('nanoid');
|
|
11
11
|
require('../Tooltip/Tooltip.js');
|
|
12
12
|
require('@popperjs/core');
|
|
13
13
|
|
|
14
|
-
const Toggle =
|
|
14
|
+
const Toggle = React.forwardRef(({ size = "medium", error = false, disabled = false, defaultChecked = false, required = false, id, name, onChange, onBlur, onClick, checked, className, }, ref) => {
|
|
15
15
|
const { prefix } = hooks_useGlobalSettings();
|
|
16
16
|
const formControlCtx = components_FormControl_FormControl.useFormControl();
|
|
17
17
|
const { ariaDescribedBy } = formControlCtx;
|
|
@@ -24,7 +24,7 @@ const Toggle = require$$0.forwardRef(({ size = "medium", error = false, disabled
|
|
|
24
24
|
]);
|
|
25
25
|
return (jsxRuntime.jsxs("div", Object.assign({ className: toggleClass }, { children: [jsxRuntime.jsx("input", { ref: ref, checked: checked, disabled: disabled, defaultChecked: defaultChecked, name: name, id: id ? id : name, type: "checkbox", role: "switch", required: required, onChange: onChange, onBlur: onBlur, onClick: onClick, "aria-describedby": ariaDescribedBy }), jsxRuntime.jsx("span", { className: sliderClass })] })));
|
|
26
26
|
});
|
|
27
|
-
const LabelledToggle =
|
|
27
|
+
const LabelledToggle = React.forwardRef((props, ref) => {
|
|
28
28
|
const fieldId = props.id ? props.id : props.name;
|
|
29
29
|
const { style, inputStyle, className } = props, rest = tslib.__rest(props, ["style", "inputStyle", "className"]);
|
|
30
30
|
return (jsxRuntime.jsx(components_FormControl_FormControl.default, Object.assign({ fieldId: fieldId, style: style, className: className }, rest, { children: jsxRuntime.jsx(Toggle, Object.assign({ ref: ref, style: inputStyle }, rest)) })));
|
|
@@ -5,7 +5,7 @@ require('tslib');
|
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
require('../../hooks/useGlobalSettings.js');
|
|
8
|
-
require('../../GlobalCtx-
|
|
8
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('../FormControl/FormControl.js');
|
|
11
11
|
require('nanoid');
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var classNames = require('classnames');
|
|
6
6
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
7
7
|
var core = require('@popperjs/core');
|
|
8
8
|
require('tslib');
|
|
9
|
-
require('../../GlobalCtx-
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
10
|
|
|
11
11
|
const Tooltip = ({ className, children, icon, label, iconTheme, theme, id, }) => {
|
|
12
12
|
const { prefix } = hooks_useGlobalSettings();
|
|
13
13
|
const baseClass = `${prefix}--tooltip`;
|
|
14
|
-
const [isVisible, setIsVisible] =
|
|
15
|
-
const tooltipRef =
|
|
16
|
-
const popperInstanceRef =
|
|
14
|
+
const [isVisible, setIsVisible] = React.useState(false);
|
|
15
|
+
const tooltipRef = React.useRef(null);
|
|
16
|
+
const popperInstanceRef = React.useRef(null);
|
|
17
17
|
const isLongTooltip = () => {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
const tooltipText = (((_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.textContent) ||
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var tslib = require('tslib');
|
|
3
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
4
6
|
var classNames = require('classnames');
|
|
5
7
|
var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
|
|
6
|
-
var components_Video_VideoPlayer = require('
|
|
7
|
-
require('
|
|
8
|
-
require('
|
|
9
|
-
require('
|
|
10
|
-
require('../../index-0af02e81.js');
|
|
11
|
-
require('react-dom');
|
|
12
|
-
require('../../utils/hoursMinutesSeconds.js');
|
|
13
|
-
require('screenfull');
|
|
8
|
+
var components_Video_VideoPlayer = require('./VideoPlayer.js');
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
|
+
require('videojs-youtube');
|
|
11
|
+
require('video.js');
|
|
14
12
|
|
|
15
|
-
const Video = (
|
|
13
|
+
const Video = React.forwardRef((_a, ref) => {
|
|
14
|
+
var { className, caption } = _a, video = tslib.__rest(_a, ["className", "caption"]);
|
|
16
15
|
const { prefix } = hooks_useGlobalSettings();
|
|
17
|
-
const baseClass = `${prefix}--
|
|
16
|
+
const baseClass = `${prefix}--video`;
|
|
18
17
|
const videoClasses = classNames(className, {
|
|
19
18
|
[baseClass]: true,
|
|
20
19
|
});
|
|
21
20
|
const captionClasses = classNames("", {
|
|
22
21
|
[`${baseClass}--caption`]: true,
|
|
23
22
|
});
|
|
24
|
-
return (jsxRuntime.jsxs("figure", Object.assign({ className: videoClasses }, { children: [jsxRuntime.jsx("div", Object.assign({ className: `${videoClasses}--wrapper` }, { children: video && jsxRuntime.jsx(components_Video_VideoPlayer
|
|
25
|
-
};
|
|
23
|
+
return (jsxRuntime.jsxs("figure", Object.assign({ className: videoClasses }, { children: [jsxRuntime.jsx("div", Object.assign({ className: `${videoClasses}--wrapper` }, { children: video && jsxRuntime.jsx(components_Video_VideoPlayer, Object.assign({}, video, { ref: ref })) })), caption && (jsxRuntime.jsx("figcaption", Object.assign({ className: captionClasses }, { children: caption })))] })));
|
|
24
|
+
});
|
|
26
25
|
|
|
27
26
|
module.exports = Video;
|
|
@@ -1,17 +1,59 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('react/jsx-runtime');
|
|
4
|
-
require('react');
|
|
5
|
-
|
|
6
|
-
require('
|
|
7
|
-
require('classnames');
|
|
8
|
-
require('../../hooks/useGlobalSettings.js');
|
|
9
|
-
require('../../utils/hoursMinutesSeconds.js');
|
|
10
|
-
require('screenfull');
|
|
11
|
-
require('../../index-0af02e81.js');
|
|
12
|
-
require('tslib');
|
|
13
|
-
require('../../GlobalCtx-97e4b433.js');
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
require('videojs-youtube');
|
|
6
|
+
var videojs = require('video.js');
|
|
14
7
|
|
|
8
|
+
const video = videojs;
|
|
9
|
+
const VideoPlayer = React.forwardRef(({ src, poster, youtube }, ref) => {
|
|
10
|
+
const videoNode = React.useRef(null);
|
|
11
|
+
const player = React.useRef();
|
|
12
|
+
React.useImperativeHandle(ref, () => ({
|
|
13
|
+
get player() {
|
|
14
|
+
return player.current;
|
|
15
|
+
},
|
|
16
|
+
}), [player]);
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
if (videoNode.current) {
|
|
19
|
+
player.current = video(videoNode.current, {
|
|
20
|
+
autoplay: false,
|
|
21
|
+
controls: true,
|
|
22
|
+
preload: "auto",
|
|
23
|
+
bigPlayButton: false,
|
|
24
|
+
poster: poster === null || poster === void 0 ? void 0 : poster.src,
|
|
25
|
+
controlBar: {
|
|
26
|
+
descriptionsButton: false,
|
|
27
|
+
playbackRateMenuButton: false,
|
|
28
|
+
chaptersButton: false,
|
|
29
|
+
audioTrackButton: false,
|
|
30
|
+
pictureInPictureToggle: false,
|
|
31
|
+
subsCapsButton: false,
|
|
32
|
+
seekToLive: false,
|
|
33
|
+
liveDisplay: false,
|
|
34
|
+
},
|
|
35
|
+
errorDisplay: false,
|
|
36
|
+
textTrackSettings: false,
|
|
37
|
+
resizeManager: false,
|
|
38
|
+
/**
|
|
39
|
+
* If youtube is true, it will default to the youtube video
|
|
40
|
+
*/
|
|
41
|
+
sources: [
|
|
42
|
+
{ type: youtube ? "video/youtube" : undefined, src: src },
|
|
43
|
+
],
|
|
44
|
+
dataSetup: {
|
|
45
|
+
techOrder: ["youtube"],
|
|
46
|
+
},
|
|
47
|
+
liveTracker: false,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return () => {
|
|
51
|
+
if (player.current) {
|
|
52
|
+
player.current.dispose();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}, [poster === null || poster === void 0 ? void 0 : poster.src, src, youtube]);
|
|
56
|
+
return (jsxRuntime.jsx("div", Object.assign({ className: "ilo--videoplayer" }, { children: jsxRuntime.jsx("video", { ref: videoNode, className: "ilo--video--element" }) })));
|
|
57
|
+
});
|
|
15
58
|
|
|
16
|
-
|
|
17
|
-
module.exports = components_Video_VideoPlayer.VideoPlayer;
|
|
59
|
+
module.exports = VideoPlayer;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var components_Video_Video = require('./Video.js');
|
|
4
|
+
require('tslib');
|
|
4
5
|
require('react/jsx-runtime');
|
|
6
|
+
require('react');
|
|
5
7
|
require('classnames');
|
|
6
8
|
require('../../hooks/useGlobalSettings.js');
|
|
7
|
-
require('
|
|
8
|
-
require('
|
|
9
|
-
require('
|
|
10
|
-
require('
|
|
11
|
-
require('../../index-0af02e81.js');
|
|
12
|
-
require('react-dom');
|
|
13
|
-
require('../../utils/hoursMinutesSeconds.js');
|
|
14
|
-
require('screenfull');
|
|
9
|
+
require('../../GlobalCtx-10114bdd.js');
|
|
10
|
+
require('./VideoPlayer.js');
|
|
11
|
+
require('videojs-youtube');
|
|
12
|
+
require('video.js');
|
|
15
13
|
|
|
16
14
|
|
|
17
15
|
|
|
@@ -16,8 +16,8 @@ require('react/jsx-runtime');
|
|
|
16
16
|
require('classnames');
|
|
17
17
|
require('react');
|
|
18
18
|
var components_GlobalProvider_GlobalProvider = require('./GlobalProvider/GlobalProvider.js');
|
|
19
|
-
require('../GlobalCtx-
|
|
20
|
-
require('../TagCtx-
|
|
19
|
+
require('../GlobalCtx-10114bdd.js');
|
|
20
|
+
require('../TagCtx-690a1d54.js');
|
|
21
21
|
var components_Button_Button = require('./Button/Button.js');
|
|
22
22
|
var components_ContextMenu_ContextMenu = require('./ContextMenu/ContextMenu.js');
|
|
23
23
|
var components_Fieldset_Fieldset = require('./Fieldset/Fieldset.js');
|
|
@@ -46,7 +46,7 @@ var components_Video_Video = require('./Video/Video.js');
|
|
|
46
46
|
var components_Dropdown_Dropdown = require('./Dropdown/Dropdown.js');
|
|
47
47
|
var components_Icon_Icon = require('./Icon/Icon.js');
|
|
48
48
|
var components_List_List = require('./List/List.js');
|
|
49
|
-
require('../ListCtx-
|
|
49
|
+
require('../ListCtx-14aa546f.js');
|
|
50
50
|
var components_Profile_Profile = require('./Profile/Profile.js');
|
|
51
51
|
var components_TableOfContents_TableOfContents = require('./TableOfContents/TableOfContents.js');
|
|
52
52
|
var components_Footer_Footer = require('./Footer/Footer.js');
|
|
@@ -55,11 +55,11 @@ var components_Navigation_Navigation = require('./Navigation/Navigation.js');
|
|
|
55
55
|
var components_Card_Card = require('./Card/Card.js');
|
|
56
56
|
var components_Card_CardGroup = require('./Card/CardGroup.js');
|
|
57
57
|
var components_Breadcrumb_Breadcrumb = require('./Breadcrumb/Breadcrumb.js');
|
|
58
|
+
var components_Tabs_Tabs = require('./Tabs/Tabs.js');
|
|
58
59
|
require('../hooks/useGlobalSettings.js');
|
|
59
|
-
require('../AccordionCtx-
|
|
60
|
+
require('../AccordionCtx-be704051.js');
|
|
60
61
|
require('@ilo-org/utils');
|
|
61
62
|
require('../utils/checkArrayDuplicates.js');
|
|
62
|
-
require('../index-0af02e81.js');
|
|
63
63
|
require('react-dom');
|
|
64
64
|
require('../utils/createChainedFunction.js');
|
|
65
65
|
require('../utils/getDefaultDimensionValue.js');
|
|
@@ -74,9 +74,9 @@ require('./Hero/HeroCard.js');
|
|
|
74
74
|
require('./SocialMedia/SocialMedia.js');
|
|
75
75
|
require('./Input/Input.js');
|
|
76
76
|
require('./FormElement/FormElement.js');
|
|
77
|
-
require('
|
|
78
|
-
require('
|
|
79
|
-
require('
|
|
77
|
+
require('./Video/VideoPlayer.js');
|
|
78
|
+
require('videojs-youtube');
|
|
79
|
+
require('video.js');
|
|
80
80
|
require('@ilo-org/icons-react');
|
|
81
81
|
require('./Logo/Logo.js');
|
|
82
82
|
require('./List/ListItem.js');
|
|
@@ -127,3 +127,4 @@ exports.Navigation = components_Navigation_Navigation;
|
|
|
127
127
|
exports.Card = components_Card_Card;
|
|
128
128
|
exports.CardGroup = components_Card_CardGroup;
|
|
129
129
|
exports.Breadcrumb = components_Breadcrumb_Breadcrumb;
|
|
130
|
+
exports.Tabs = components_Tabs_Tabs;
|