@carbon/ibmdotcom-web-components 1.32.0-rc.0 → 1.32.0-rc.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.
- package/custom-elements.json +18 -18
- package/dist/{20-2c34f739.js → 20-4d0d088b.js} +1 -1
- package/dist/{20-002a62f9.js → 20-c7872d45.js} +1 -1
- package/dist/{20-e53335d3.js → 20-d0071628.js} +1 -1
- package/dist/{20-4f726b86.js → 20-f07ed7a1.js} +1 -1
- package/dist/cloud-masthead.js +2 -2
- package/dist/cloud-masthead.min.js +1 -1
- package/dist/cloud-masthead.rtl.js +2 -2
- package/dist/cloud-masthead.rtl.min.js +1 -1
- package/dist/dotcom-shell.js +2 -2
- package/dist/dotcom-shell.min.js +1 -1
- package/dist/dotcom-shell.rtl.js +2 -2
- package/dist/dotcom-shell.rtl.min.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.js +9 -7
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.js +9 -7
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.min.js +2 -2
- package/dist/{left-nav-menu-72142ae5.js → left-nav-menu-0454e7fe.js} +1 -1
- package/dist/{left-nav-menu-136466dc.js → left-nav-menu-4bb5d738.js} +1 -1
- package/dist/{left-nav-menu-d0e0c8a1.js → left-nav-menu-a9193172.js} +1 -1
- package/dist/{left-nav-menu-3436909a.js → left-nav-menu-aa14d1fd.js} +1 -1
- package/dist/{left-nav-menu-category-heading-71bd687e.js → left-nav-menu-category-heading-308b7583.js} +1 -1
- package/dist/{left-nav-menu-category-heading-b2b5a65f.js → left-nav-menu-category-heading-c9962ac5.js} +1 -1
- package/dist/{left-nav-menu-category-heading-2a3e1e8f.js → left-nav-menu-category-heading-daf5ebfa.js} +1 -1
- package/dist/{left-nav-menu-category-heading-17849a08.js → left-nav-menu-category-heading-fc02a361.js} +1 -1
- package/dist/{left-nav-menu-item-19e02851.js → left-nav-menu-item-0275a3b9.js} +1 -1
- package/dist/{left-nav-menu-item-8caa4256.js → left-nav-menu-item-354f4261.js} +1 -1
- package/dist/{left-nav-menu-item-ee78e342.js → left-nav-menu-item-7814505a.js} +1 -1
- package/dist/{left-nav-menu-item-327fee2b.js → left-nav-menu-item-fa33cbd9.js} +1 -1
- package/dist/{left-nav-menu-section-5f999435.js → left-nav-menu-section-5c2e24f8.js} +2 -2
- package/dist/{left-nav-menu-section-518e5d37.js → left-nav-menu-section-94e4e49c.js} +1 -1
- package/dist/{left-nav-menu-section-e0a8964a.js → left-nav-menu-section-b5303d97.js} +2 -2
- package/dist/{left-nav-menu-section-6150369f.js → left-nav-menu-section-fcd88473.js} +1 -1
- package/dist/{left-nav-overlay-5731f7e5.js → left-nav-overlay-1e1910e9.js} +1 -1
- package/dist/{left-nav-overlay-6882d48d.js → left-nav-overlay-320c1270.js} +1 -1
- package/dist/{left-nav-overlay-a4cc3b3e.js → left-nav-overlay-81eb5e93.js} +1 -1
- package/dist/{left-nav-overlay-de7eb950.js → left-nav-overlay-ce49183f.js} +1 -1
- package/dist/{masthead-composite-c8dbcd61.js → masthead-composite-10b5102f.js} +3 -3
- package/dist/{masthead-composite-306adeb9.js → masthead-composite-1ed7f190.js} +3 -3
- package/dist/{masthead-composite-fb2bb203.js → masthead-composite-4096f117.js} +18 -14
- package/dist/{masthead-composite-73d938e4.js → masthead-composite-e578b925.js} +18 -14
- package/dist/{megamenu-category-group-43899a46.js → megamenu-category-group-0042c754.js} +1 -1
- package/dist/{megamenu-category-group-3bf5d73c.js → megamenu-category-group-b777facf.js} +1 -1
- package/dist/{megamenu-category-group-copy-2b87813d.js → megamenu-category-group-copy-69e90843.js} +1 -1
- package/dist/{megamenu-category-group-copy-283a25a3.js → megamenu-category-group-copy-6cc797f8.js} +1 -1
- package/dist/{megamenu-category-group-copy-93aa0a96.js → megamenu-category-group-copy-83e643e1.js} +1 -1
- package/dist/{megamenu-category-group-copy-775aaa80.js → megamenu-category-group-copy-e60dfb61.js} +1 -1
- package/dist/{megamenu-category-group-79513624.js → megamenu-category-group-d474b15d.js} +1 -1
- package/dist/{megamenu-category-group-999cba46.js → megamenu-category-group-f7dba932.js} +1 -1
- package/dist/{megamenu-category-link-71bd2020.js → megamenu-category-link-0df4440e.js} +1 -1
- package/dist/{megamenu-category-link-dbc8b4a4.js → megamenu-category-link-54e1011f.js} +1 -1
- package/dist/{megamenu-category-link-fb99f944.js → megamenu-category-link-68b5ea65.js} +1 -1
- package/dist/{megamenu-category-link-e3280b1e.js → megamenu-category-link-84732d66.js} +1 -1
- package/dist/{megamenu-left-navigation-3b9086ee.js → megamenu-left-navigation-7c8616c7.js} +1 -1
- package/dist/{megamenu-left-navigation-1f60ff1b.js → megamenu-left-navigation-862becf2.js} +1 -1
- package/dist/{megamenu-left-navigation-dd0372b5.js → megamenu-left-navigation-98f428cf.js} +1 -1
- package/dist/{megamenu-left-navigation-35bcade1.js → megamenu-left-navigation-c5ed7f0e.js} +1 -1
- package/dist/{megamenu-overlay-50af9c22.js → megamenu-overlay-213de889.js} +1 -1
- package/dist/{megamenu-overlay-2b2fe43c.js → megamenu-overlay-3ad6b0b2.js} +1 -1
- package/dist/{megamenu-overlay-5ff8fbf2.js → megamenu-overlay-ab9a9cff.js} +1 -1
- package/dist/{megamenu-overlay-ddd5122f.js → megamenu-overlay-d948063a.js} +1 -1
- package/es/components/image/image.d.ts +0 -3
- package/es/components/image/image.d.ts.map +1 -1
- package/es/components/image/image.js +1 -1
- package/es/components/image/image.js.map +1 -1
- package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
- package/es/components/locale-modal/locale-modal.js +7 -5
- package/es/components/locale-modal/locale-modal.js.map +1 -1
- package/es/components/masthead/masthead-composite.d.ts +1 -1
- package/es/components/masthead/masthead-composite.d.ts.map +1 -1
- package/es/components/masthead/masthead-composite.js +4 -3
- package/es/components/masthead/masthead-composite.js.map +1 -1
- package/es/components/notice-choice/notice-choice.d.ts.map +1 -1
- package/es/components/notice-choice/notice-choice.js +0 -1
- package/es/components/notice-choice/notice-choice.js.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead.d.ts.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead.js +4 -1
- package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents.d.ts +12 -7
- package/es/components/table-of-contents/table-of-contents.d.ts.map +1 -1
- package/es/components/table-of-contents/table-of-contents.js +13 -2
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/components/video-player/video-player.d.ts +1 -9
- package/es/components/video-player/video-player.d.ts.map +1 -1
- package/es/components/video-player/video-player.js +7 -2
- package/es/components/video-player/video-player.js.map +1 -1
- package/es/components-react/footer/dropdown.js +39 -0
- package/es/components-react/masthead/masthead-composite.d.ts +1 -1
- package/es/components-react/masthead/masthead-composite.js +241 -0
- package/es/components-react/masthead/masthead-container.js +25 -0
- package/es/components-react/masthead/masthead.js +23 -0
- package/es/components-react/quote/quote-link-with-icon.js +25 -0
- package/es/components-react/quote/quote-source-bottom-copy.js +30 -0
- package/es/components-react/quote/quote-source-copy.js +30 -0
- package/es/components-react/quote/quote-source-heading.js +30 -0
- package/es/components-react/search-with-typeahead/scoped-search-dropdown-mobile.js +32 -0
- package/es/components-react/search-with-typeahead/scoped-search-dropdown.js +39 -0
- package/es/components-react/search-with-typeahead/search-with-typeahead-item.js +47 -0
- package/es/components-react/search-with-typeahead/search-with-typeahead.js +175 -0
- package/es/components-react/structured-list/structured-list-body.js +23 -0
- package/es/components-react/structured-list/structured-list-cell.js +41 -0
- package/es/components-react/structured-list/structured-list-group.js +29 -0
- package/es/components-react/structured-list/structured-list-head.js +23 -0
- package/es/components-react/structured-list/structured-list-header-cell.js +23 -0
- package/es/components-react/structured-list/structured-list-header-row.js +23 -0
- package/es/components-react/structured-list/structured-list-row.js +23 -0
- package/es/components-react/structured-list/structured-list.js +23 -0
- package/es/components-react/table-of-contents/table-of-contents.js +49 -0
- package/es/components-react/tabs-extended/tab.js +53 -0
- package/es/components-react/tabs-extended/tabs-extended.js +36 -0
- package/es/components-react/tabs-extended-media/tabs-extended-media.js +34 -0
- package/es/components-react/tag-group/tag-group.js +23 -0
- package/es/components-react/tag-link/tag-link.js +57 -0
- package/es/components-react/universal-banner/universal-banner-copy.js +29 -0
- package/es/components-react/universal-banner/universal-banner-heading.js +30 -0
- package/es/components-react/universal-banner/universal-banner-image.js +25 -0
- package/es/components-react/universal-banner/universal-banner.js +57 -0
- package/es/components-react/video-player/video-player.js +134 -0
- package/lib/components-react-node/footer/dropdown.js +80 -0
- package/lib/components-react-node/masthead/masthead-composite.js +295 -0
- package/lib/components-react-node/masthead/masthead-container.js +41 -0
- package/lib/components-react-node/masthead/masthead.js +40 -0
- package/lib/components-react-node/quote/quote-link-with-icon.js +41 -0
- package/lib/components-react-node/quote/quote-source-bottom-copy.js +47 -0
- package/lib/components-react-node/quote/quote-source-copy.js +47 -0
- package/lib/components-react-node/quote/quote-source-heading.js +47 -0
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +49 -0
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +68 -0
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +102 -0
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +230 -0
- package/lib/components-react-node/structured-list/structured-list-body.js +40 -0
- package/lib/components-react-node/structured-list/structured-list-cell.js +58 -0
- package/lib/components-react-node/structured-list/structured-list-group.js +46 -0
- package/lib/components-react-node/structured-list/structured-list-head.js +40 -0
- package/lib/components-react-node/structured-list/structured-list-header-cell.js +40 -0
- package/lib/components-react-node/structured-list/structured-list-header-row.js +40 -0
- package/lib/components-react-node/structured-list/structured-list-row.js +40 -0
- package/lib/components-react-node/structured-list/structured-list.js +40 -0
- package/lib/components-react-node/table-of-contents/table-of-contents.js +104 -0
- package/lib/components-react-node/tabs-extended/tab.js +108 -0
- package/lib/components-react-node/tabs-extended/tabs-extended.js +53 -0
- package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +50 -0
- package/lib/components-react-node/tag-group/tag-group.js +40 -0
- package/lib/components-react-node/tag-link/tag-link.js +74 -0
- package/lib/components-react-node/universal-banner/universal-banner-copy.js +45 -0
- package/lib/components-react-node/universal-banner/universal-banner-heading.js +47 -0
- package/lib/components-react-node/universal-banner/universal-banner-image.js +41 -0
- package/lib/components-react-node/universal-banner/universal-banner.js +112 -0
- package/lib/components-react-node/video-player/video-player.js +197 -0
- package/package.json +7 -7
- package/scss/components/image/image.scss +1 -1
- package/es/components-react/notice-choice/notice-choice.d.ts +0 -48
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { descriptor as parentDescriptor } from '../tabs-extended/tabs-extended.js';
|
|
10
|
+
import { propTypes as parentPropTypes } from '../tabs-extended/tabs-extended.js';
|
|
11
|
+
export { default as CustomElement } from '../../components/tabs-extended-media/tabs-extended-media.js';
|
|
12
|
+
import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
14
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
15
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
16
|
+
var prefix = settings.prefix;
|
|
17
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
18
|
+
export var descriptor = Object.assign({}, parentDescriptor, {
|
|
19
|
+
sectionHeading: {
|
|
20
|
+
attribute: 'section-heading',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export var propTypes = {
|
|
24
|
+
/**
|
|
25
|
+
* `true` if section heading should be shown.
|
|
26
|
+
*/
|
|
27
|
+
sectionHeading: PropTypes.string,
|
|
28
|
+
};
|
|
29
|
+
const Component = createReactCustomElementType(
|
|
30
|
+
''.concat(ddsPrefix, '-tabs-extended-media'),
|
|
31
|
+
descriptor
|
|
32
|
+
);
|
|
33
|
+
Component.propTypes = propTypes;
|
|
34
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export { default as CustomElement } from '../../components/tag-group/tag-group.js';
|
|
10
|
+
import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
13
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
14
|
+
var prefix = settings.prefix;
|
|
15
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
16
|
+
export var descriptor = {};
|
|
17
|
+
export var propTypes = {};
|
|
18
|
+
const Component = createReactCustomElementType(
|
|
19
|
+
''.concat(ddsPrefix, '-tag-group'),
|
|
20
|
+
descriptor
|
|
21
|
+
);
|
|
22
|
+
Component.propTypes = propTypes;
|
|
23
|
+
export default Component;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export { default as CustomElement } from '../../components/tag-link/tag-link.js';
|
|
10
|
+
import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
13
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
14
|
+
var prefix = settings.prefix;
|
|
15
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
16
|
+
export var descriptor = {
|
|
17
|
+
href: {},
|
|
18
|
+
hreflang: {},
|
|
19
|
+
linkRole: {
|
|
20
|
+
attribute: 'link-role',
|
|
21
|
+
},
|
|
22
|
+
ping: {},
|
|
23
|
+
rel: {},
|
|
24
|
+
target: {},
|
|
25
|
+
};
|
|
26
|
+
export var propTypes = {
|
|
27
|
+
/**
|
|
28
|
+
* Link `href`.
|
|
29
|
+
*/
|
|
30
|
+
href: PropTypes.string,
|
|
31
|
+
/**
|
|
32
|
+
* The language of what `href` points to.
|
|
33
|
+
*/
|
|
34
|
+
hreflang: PropTypes.string,
|
|
35
|
+
/**
|
|
36
|
+
* The a11y role for `<a>`.
|
|
37
|
+
*/
|
|
38
|
+
linkRole: PropTypes.string,
|
|
39
|
+
/**
|
|
40
|
+
* URLs to ping.
|
|
41
|
+
*/
|
|
42
|
+
ping: PropTypes.string,
|
|
43
|
+
/**
|
|
44
|
+
* The link type.
|
|
45
|
+
*/
|
|
46
|
+
rel: PropTypes.string,
|
|
47
|
+
/**
|
|
48
|
+
* The link target.
|
|
49
|
+
*/
|
|
50
|
+
target: PropTypes.string,
|
|
51
|
+
};
|
|
52
|
+
const Component = createReactCustomElementType(
|
|
53
|
+
''.concat(ddsPrefix, '-tag-link'),
|
|
54
|
+
descriptor
|
|
55
|
+
);
|
|
56
|
+
Component.propTypes = propTypes;
|
|
57
|
+
export default Component;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { descriptor as parentDescriptor } from '../markdown/markdown.js';
|
|
10
|
+
import { propTypes as parentPropTypes } from '../markdown/markdown.js';
|
|
11
|
+
export { default as CustomElement } from '../../components/universal-banner/universal-banner-copy.js';
|
|
12
|
+
import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
14
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
15
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
16
|
+
var prefix = settings.prefix;
|
|
17
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
18
|
+
export var descriptor = Object.assign({}, parentDescriptor, {
|
|
19
|
+
slot: {},
|
|
20
|
+
});
|
|
21
|
+
export var propTypes = {
|
|
22
|
+
slot: PropTypes.string,
|
|
23
|
+
};
|
|
24
|
+
const Component = createReactCustomElementType(
|
|
25
|
+
''.concat(ddsPrefix, '-universal-banner-copy'),
|
|
26
|
+
descriptor
|
|
27
|
+
);
|
|
28
|
+
Component.propTypes = propTypes;
|
|
29
|
+
export default Component;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export { default as CustomElement } from '../../components/universal-banner/universal-banner-heading.js';
|
|
10
|
+
import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
13
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
14
|
+
var prefix = settings.prefix;
|
|
15
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
16
|
+
export var descriptor = {
|
|
17
|
+
slot: {},
|
|
18
|
+
};
|
|
19
|
+
export var propTypes = {
|
|
20
|
+
/**
|
|
21
|
+
* The shadow slot this logo UI should be in.
|
|
22
|
+
*/
|
|
23
|
+
slot: PropTypes.string,
|
|
24
|
+
};
|
|
25
|
+
const Component = createReactCustomElementType(
|
|
26
|
+
''.concat(ddsPrefix, '-universal-banner-heading'),
|
|
27
|
+
descriptor
|
|
28
|
+
);
|
|
29
|
+
Component.propTypes = propTypes;
|
|
30
|
+
export default Component;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { descriptor as parentDescriptor } from '../image/image.js';
|
|
10
|
+
import { propTypes as parentPropTypes } from '../image/image.js';
|
|
11
|
+
export { default as CustomElement } from '../../components/universal-banner/universal-banner-image.js';
|
|
12
|
+
import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
14
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
15
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
16
|
+
var prefix = settings.prefix;
|
|
17
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
18
|
+
export var descriptor = Object.assign({}, parentDescriptor, {});
|
|
19
|
+
export var propTypes = {};
|
|
20
|
+
const Component = createReactCustomElementType(
|
|
21
|
+
''.concat(ddsPrefix, '-universal-banner-image'),
|
|
22
|
+
descriptor
|
|
23
|
+
);
|
|
24
|
+
Component.propTypes = propTypes;
|
|
25
|
+
export default Component;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export { default as CustomElement } from '../../components/universal-banner/universal-banner.js';
|
|
10
|
+
import createReactCustomElementType, {
|
|
11
|
+
booleanSerializer,
|
|
12
|
+
} from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
14
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
15
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
16
|
+
var prefix = settings.prefix;
|
|
17
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
18
|
+
export var descriptor = {
|
|
19
|
+
buttonHref: {},
|
|
20
|
+
ctaType: {},
|
|
21
|
+
hasImage: {
|
|
22
|
+
serialize: booleanSerializer,
|
|
23
|
+
attribute: 'has-image',
|
|
24
|
+
},
|
|
25
|
+
imageWidth: {
|
|
26
|
+
attribute: 'image-width',
|
|
27
|
+
},
|
|
28
|
+
_shouldRenderAsLink: {
|
|
29
|
+
serialize: booleanSerializer,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
export var propTypes = {
|
|
33
|
+
/**
|
|
34
|
+
* Saves the button CTA's href to use in link-with-icon for the small breakpoint
|
|
35
|
+
*/
|
|
36
|
+
buttonHref: PropTypes.string,
|
|
37
|
+
/**
|
|
38
|
+
* Saves the button CTA's type to properly set the icon at `sm` and `md` breakpoints.
|
|
39
|
+
*/
|
|
40
|
+
ctaType: PropTypes.string,
|
|
41
|
+
/**
|
|
42
|
+
* `true` if there is an image.
|
|
43
|
+
*/
|
|
44
|
+
hasImage: PropTypes.bool,
|
|
45
|
+
/**
|
|
46
|
+
* Grid media options to display image.
|
|
47
|
+
* Available options are either '4-col' or '8-col'.
|
|
48
|
+
*/
|
|
49
|
+
imageWidth: PropTypes.string,
|
|
50
|
+
_shouldRenderAsLink: PropTypes.bool,
|
|
51
|
+
};
|
|
52
|
+
const Component = createReactCustomElementType(
|
|
53
|
+
''.concat(ddsPrefix, '-universal-banner'),
|
|
54
|
+
descriptor
|
|
55
|
+
);
|
|
56
|
+
Component.propTypes = propTypes;
|
|
57
|
+
export default Component;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export {
|
|
10
|
+
VIDEO_PLAYER_CONTENT_STATE,
|
|
11
|
+
VIDEO_PLAYER_PLAYING_MODE,
|
|
12
|
+
} from '././defs.js';
|
|
13
|
+
export { default as CustomElement } from '../../components/video-player/video-player.js';
|
|
14
|
+
import createReactCustomElementType, {
|
|
15
|
+
numberSerializer,
|
|
16
|
+
booleanSerializer,
|
|
17
|
+
} from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
19
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
20
|
+
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
|
|
21
|
+
var prefix = settings.prefix;
|
|
22
|
+
var ddsPrefix = ddsSettings.stablePrefix;
|
|
23
|
+
export var descriptor = {
|
|
24
|
+
playingMode: {
|
|
25
|
+
attribute: 'playing-mode',
|
|
26
|
+
},
|
|
27
|
+
contentState: {
|
|
28
|
+
attribute: 'content-state',
|
|
29
|
+
},
|
|
30
|
+
duration: {
|
|
31
|
+
serialize: numberSerializer,
|
|
32
|
+
},
|
|
33
|
+
formatCaption: {
|
|
34
|
+
attribute: false,
|
|
35
|
+
},
|
|
36
|
+
formatDuration: {
|
|
37
|
+
attribute: false,
|
|
38
|
+
},
|
|
39
|
+
hideCaption: {
|
|
40
|
+
serialize: booleanSerializer,
|
|
41
|
+
attribute: 'hide-caption',
|
|
42
|
+
},
|
|
43
|
+
name: {},
|
|
44
|
+
backgroundMode: {
|
|
45
|
+
attribute: 'background-mode',
|
|
46
|
+
},
|
|
47
|
+
customVideoDescription: {
|
|
48
|
+
attribute: 'video-description',
|
|
49
|
+
},
|
|
50
|
+
thumbnailUrl: {
|
|
51
|
+
attribute: 'thumbnail-url',
|
|
52
|
+
},
|
|
53
|
+
videoId: {
|
|
54
|
+
attribute: 'video-id',
|
|
55
|
+
},
|
|
56
|
+
aspectRatio: {
|
|
57
|
+
attribute: 'aspect-ratio',
|
|
58
|
+
},
|
|
59
|
+
onContentStateChange: {
|
|
60
|
+
event: ''.concat(ddsPrefix, '-video-player-content-state-changed'),
|
|
61
|
+
},
|
|
62
|
+
onPlaybackStateChange: {
|
|
63
|
+
event: ''.concat(ddsPrefix, '-video-player-playback-state-changed'),
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
export var propTypes = {
|
|
67
|
+
/**
|
|
68
|
+
* The video player's mode showing Inline or Lightbox.
|
|
69
|
+
*/
|
|
70
|
+
playingMode: PropTypes.string,
|
|
71
|
+
/**
|
|
72
|
+
* The video player's content state.
|
|
73
|
+
*/
|
|
74
|
+
contentState: PropTypes.string,
|
|
75
|
+
/**
|
|
76
|
+
* The video duration.
|
|
77
|
+
*/
|
|
78
|
+
duration: PropTypes.number,
|
|
79
|
+
/**
|
|
80
|
+
* The formatter for the video caption, composed with the video name and the video duration.
|
|
81
|
+
* Should be changed upon the locale the UI is rendered with.
|
|
82
|
+
*/
|
|
83
|
+
formatCaption: PropTypes.string,
|
|
84
|
+
/**
|
|
85
|
+
* The formatter for the video duration.
|
|
86
|
+
* Should be changed upon the locale the UI is rendered with.
|
|
87
|
+
*/
|
|
88
|
+
formatDuration: PropTypes.string,
|
|
89
|
+
/**
|
|
90
|
+
* `true` to hide the caption.
|
|
91
|
+
*/
|
|
92
|
+
hideCaption: PropTypes.bool,
|
|
93
|
+
/**
|
|
94
|
+
* The video name.
|
|
95
|
+
*/
|
|
96
|
+
name: PropTypes.string,
|
|
97
|
+
/**
|
|
98
|
+
* `true` to autoplay, mute video, and hide UI
|
|
99
|
+
*/
|
|
100
|
+
backgroundMode: PropTypes.string,
|
|
101
|
+
/**
|
|
102
|
+
* Custom video description. This property should only be set when using `playing-mode="lightbox"`
|
|
103
|
+
*/
|
|
104
|
+
customVideoDescription: PropTypes.string,
|
|
105
|
+
/**
|
|
106
|
+
* The thumbnail URL.
|
|
107
|
+
*/
|
|
108
|
+
thumbnailUrl: PropTypes.string,
|
|
109
|
+
/**
|
|
110
|
+
* The video ID.
|
|
111
|
+
*/
|
|
112
|
+
videoId: PropTypes.string,
|
|
113
|
+
/**
|
|
114
|
+
* Override default aspect ratio of `16x9`.
|
|
115
|
+
* Available aspect ratios:
|
|
116
|
+
*
|
|
117
|
+
* `16x9`, `9x16`, `2x1`, `1x2`, `4x3`, `3x4`, `1x1`
|
|
118
|
+
*/
|
|
119
|
+
aspectRatio: PropTypes.string,
|
|
120
|
+
/**
|
|
121
|
+
* The name of the custom event fired after video content state is changed upon a user gesture.
|
|
122
|
+
*/
|
|
123
|
+
onContentStateChange: PropTypes.func,
|
|
124
|
+
/**
|
|
125
|
+
* The name of the custom event fired requesting playback state change.
|
|
126
|
+
*/
|
|
127
|
+
onPlaybackStateChange: PropTypes.func,
|
|
128
|
+
};
|
|
129
|
+
const Component = createReactCustomElementType(
|
|
130
|
+
''.concat(ddsPrefix, '-video-player'),
|
|
131
|
+
descriptor
|
|
132
|
+
);
|
|
133
|
+
Component.propTypes = propTypes;
|
|
134
|
+
export default Component;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, '__esModule', {
|
|
12
|
+
value: true,
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, 'DROPDOWN_COLOR_SCHEME', {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return _defs.DROPDOWN_COLOR_SCHEME;
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, 'DROPDOWN_KEYBOARD_ACTION', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function() {
|
|
23
|
+
return _defs.DROPDOWN_KEYBOARD_ACTION;
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, 'DROPDOWN_SIZE', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function() {
|
|
29
|
+
return _defs.DROPDOWN_SIZE;
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, 'DROPDOWN_TYPE', {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return _defs.DROPDOWN_TYPE;
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, 'NAVIGATION_DIRECTION', {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function() {
|
|
41
|
+
return _defs.NAVIGATION_DIRECTION;
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
45
|
+
var _defs = require('././defs.js');
|
|
46
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
47
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
48
|
+
);
|
|
49
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
50
|
+
var _settings = _interopRequireDefault(
|
|
51
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
52
|
+
);
|
|
53
|
+
var _settings2 = _interopRequireDefault(
|
|
54
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
55
|
+
);
|
|
56
|
+
function _interopRequireDefault(obj) {
|
|
57
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
58
|
+
}
|
|
59
|
+
var prefix = _settings.default.prefix;
|
|
60
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
61
|
+
var descriptor = {
|
|
62
|
+
formatSelectedItemStatusText: {
|
|
63
|
+
attribute: false,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
exports.descriptor = descriptor;
|
|
67
|
+
var propTypes = {
|
|
68
|
+
/**
|
|
69
|
+
* The formatter, used for announcing selected item and current item. Should be changed upon the locale the UI is rendered with.
|
|
70
|
+
*/
|
|
71
|
+
formatSelectedItemStatusText: _propTypes.default.string,
|
|
72
|
+
};
|
|
73
|
+
exports.propTypes = propTypes;
|
|
74
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
75
|
+
''.concat(ddsPrefix, '-dropdown'),
|
|
76
|
+
descriptor
|
|
77
|
+
);
|
|
78
|
+
Component.propTypes = propTypes;
|
|
79
|
+
var _default = Component;
|
|
80
|
+
exports.default = _default;
|