@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,295 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _createReactCustomElementType = _interopRequireWildcard(
|
|
16
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
17
|
+
);
|
|
18
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
19
|
+
var _settings = _interopRequireDefault(
|
|
20
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
21
|
+
);
|
|
22
|
+
var _settings2 = _interopRequireDefault(
|
|
23
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
24
|
+
);
|
|
25
|
+
function _interopRequireDefault(obj) {
|
|
26
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
27
|
+
}
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
29
|
+
if (typeof WeakMap !== 'function') return null;
|
|
30
|
+
var cacheBabelInterop = new WeakMap();
|
|
31
|
+
var cacheNodeInterop = new WeakMap();
|
|
32
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
33
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
34
|
+
})(nodeInterop);
|
|
35
|
+
}
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
37
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
38
|
+
return obj;
|
|
39
|
+
}
|
|
40
|
+
if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
41
|
+
return { default: obj };
|
|
42
|
+
}
|
|
43
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
44
|
+
if (cache && cache.has(obj)) {
|
|
45
|
+
return cache.get(obj);
|
|
46
|
+
}
|
|
47
|
+
var newObj = {};
|
|
48
|
+
var hasPropertyDescriptor =
|
|
49
|
+
Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
50
|
+
for (var key in obj) {
|
|
51
|
+
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
52
|
+
var desc = hasPropertyDescriptor
|
|
53
|
+
? Object.getOwnPropertyDescriptor(obj, key)
|
|
54
|
+
: null;
|
|
55
|
+
if (desc && (desc.get || desc.set)) {
|
|
56
|
+
Object.defineProperty(newObj, key, desc);
|
|
57
|
+
} else {
|
|
58
|
+
newObj[key] = obj[key];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
newObj.default = obj;
|
|
63
|
+
if (cache) {
|
|
64
|
+
cache.set(obj, newObj);
|
|
65
|
+
}
|
|
66
|
+
return newObj;
|
|
67
|
+
}
|
|
68
|
+
var prefix = _settings.default.prefix;
|
|
69
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
70
|
+
var descriptor = {
|
|
71
|
+
hasProfile: {
|
|
72
|
+
attribute: 'has-profile',
|
|
73
|
+
},
|
|
74
|
+
hasSearch: {
|
|
75
|
+
attribute: 'has-search',
|
|
76
|
+
},
|
|
77
|
+
activateSearch: {
|
|
78
|
+
serialize: _createReactCustomElementType.booleanSerializer,
|
|
79
|
+
attribute: 'activate-search',
|
|
80
|
+
},
|
|
81
|
+
searchOpenOnload: {
|
|
82
|
+
attribute: 'search-open-on-load',
|
|
83
|
+
},
|
|
84
|
+
authenticatedProfileItems: {
|
|
85
|
+
attribute: false,
|
|
86
|
+
},
|
|
87
|
+
platform: {},
|
|
88
|
+
platformUrl: {
|
|
89
|
+
attribute: false,
|
|
90
|
+
},
|
|
91
|
+
brandName: {
|
|
92
|
+
attribute: 'brand-name',
|
|
93
|
+
},
|
|
94
|
+
currentSearchResults: {
|
|
95
|
+
attribute: false,
|
|
96
|
+
},
|
|
97
|
+
customProfileLogin: {
|
|
98
|
+
attribute: 'custom-profile-login',
|
|
99
|
+
},
|
|
100
|
+
customTypeaheadAPI: {
|
|
101
|
+
serialize: _createReactCustomElementType.booleanSerializer,
|
|
102
|
+
attribute: 'custom-typeahead-api',
|
|
103
|
+
},
|
|
104
|
+
mastheadAssistiveText: {
|
|
105
|
+
attribute: 'masthead-assistive-text',
|
|
106
|
+
},
|
|
107
|
+
megamenuSet: {},
|
|
108
|
+
menuBarAssistiveText: {
|
|
109
|
+
attribute: 'menu-bar-assistive-text',
|
|
110
|
+
},
|
|
111
|
+
skipToContentText: {
|
|
112
|
+
attribute: 'skip-to-content-text',
|
|
113
|
+
},
|
|
114
|
+
skipToContentHref: {
|
|
115
|
+
attribute: 'skip-to-content-href',
|
|
116
|
+
},
|
|
117
|
+
menuButtonAssistiveTextActive: {
|
|
118
|
+
attribute: 'menu-button-assistive-text-active',
|
|
119
|
+
},
|
|
120
|
+
menuButtonAssistiveTextInactive: {
|
|
121
|
+
attribute: 'menu-button-assistive-text-inactive',
|
|
122
|
+
},
|
|
123
|
+
scopeParameters: {},
|
|
124
|
+
selectedMenuItem: {
|
|
125
|
+
attribute: 'selected-menu-item',
|
|
126
|
+
},
|
|
127
|
+
unauthenticatedProfileItems: {
|
|
128
|
+
attribute: false,
|
|
129
|
+
},
|
|
130
|
+
dataEndpoint: {
|
|
131
|
+
attribute: 'data-endpoint',
|
|
132
|
+
},
|
|
133
|
+
inputTimeout: {
|
|
134
|
+
serialize: _createReactCustomElementType.numberSerializer,
|
|
135
|
+
attribute: 'input-timeout',
|
|
136
|
+
},
|
|
137
|
+
language: {},
|
|
138
|
+
navLinks: {
|
|
139
|
+
attribute: false,
|
|
140
|
+
},
|
|
141
|
+
logoData: {
|
|
142
|
+
attribute: false,
|
|
143
|
+
},
|
|
144
|
+
l1Data: {
|
|
145
|
+
attribute: false,
|
|
146
|
+
},
|
|
147
|
+
openSearchDropdown: {
|
|
148
|
+
serialize: _createReactCustomElementType.booleanSerializer,
|
|
149
|
+
attribute: 'open-search-dropdown',
|
|
150
|
+
},
|
|
151
|
+
searchPlaceholder: {},
|
|
152
|
+
userStatus: {
|
|
153
|
+
attribute: 'user-status',
|
|
154
|
+
},
|
|
155
|
+
onMegamenuActive: {
|
|
156
|
+
event: ''.concat(ddsPrefix, '-megamenu-top-nav-menu-toggle'),
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
exports.descriptor = descriptor;
|
|
160
|
+
var propTypes = {
|
|
161
|
+
/**
|
|
162
|
+
* `true` if there is a profile.
|
|
163
|
+
*/
|
|
164
|
+
hasProfile: _propTypes.default.string,
|
|
165
|
+
/**
|
|
166
|
+
* `true` if there is a search.
|
|
167
|
+
*/
|
|
168
|
+
hasSearch: _propTypes.default.string,
|
|
169
|
+
/**
|
|
170
|
+
* `true` to activate the search box.
|
|
171
|
+
*/
|
|
172
|
+
activateSearch: _propTypes.default.bool,
|
|
173
|
+
/**
|
|
174
|
+
* `true` sets search to active when page loads.
|
|
175
|
+
*/
|
|
176
|
+
searchOpenOnload: _propTypes.default.string,
|
|
177
|
+
/**
|
|
178
|
+
* The profile items for authenticated state.
|
|
179
|
+
*/
|
|
180
|
+
authenticatedProfileItems: _propTypes.default.string,
|
|
181
|
+
/**
|
|
182
|
+
* The platform name.
|
|
183
|
+
*/
|
|
184
|
+
platform: _propTypes.default.string,
|
|
185
|
+
/**
|
|
186
|
+
* The platform url. Accepts both a string or an object with a specific URL for each locale.
|
|
187
|
+
*/
|
|
188
|
+
platformUrl: _propTypes.default.string,
|
|
189
|
+
/**
|
|
190
|
+
* The brand name.
|
|
191
|
+
*
|
|
192
|
+
* @deprecated brandName use platform instead
|
|
193
|
+
*/
|
|
194
|
+
brandName: _propTypes.default.string,
|
|
195
|
+
/**
|
|
196
|
+
* The search results to show in the UI.
|
|
197
|
+
*/
|
|
198
|
+
currentSearchResults: _propTypes.default.string,
|
|
199
|
+
/**
|
|
200
|
+
* The custom profile login link.
|
|
201
|
+
*/
|
|
202
|
+
customProfileLogin: _propTypes.default.string,
|
|
203
|
+
/**
|
|
204
|
+
* The boolean to use a custom search API.
|
|
205
|
+
*/
|
|
206
|
+
customTypeaheadAPI: _propTypes.default.bool,
|
|
207
|
+
/**
|
|
208
|
+
* The `aria-label` attribute for the top-level container.
|
|
209
|
+
*/
|
|
210
|
+
mastheadAssistiveText: _propTypes.default.string,
|
|
211
|
+
/**
|
|
212
|
+
* The array containing all the megamenus to be loaded in.
|
|
213
|
+
*/
|
|
214
|
+
megamenuSet: _propTypes.default.string,
|
|
215
|
+
/**
|
|
216
|
+
* The `aria-label` attribute for the menu bar UI.
|
|
217
|
+
*/
|
|
218
|
+
menuBarAssistiveText: _propTypes.default.string,
|
|
219
|
+
/**
|
|
220
|
+
* The skip-to-content link text.
|
|
221
|
+
*/
|
|
222
|
+
skipToContentText: _propTypes.default.string,
|
|
223
|
+
/**
|
|
224
|
+
* The skip-to-content href.
|
|
225
|
+
*/
|
|
226
|
+
skipToContentHref: _propTypes.default.string,
|
|
227
|
+
/**
|
|
228
|
+
* The `aria-label` attribute for the header menu button in its active state.
|
|
229
|
+
*/
|
|
230
|
+
menuButtonAssistiveTextActive: _propTypes.default.string,
|
|
231
|
+
/**
|
|
232
|
+
* The `aria-label` attribute for the header menu button in its active state.
|
|
233
|
+
*/
|
|
234
|
+
menuButtonAssistiveTextInactive: _propTypes.default.string,
|
|
235
|
+
/**
|
|
236
|
+
* The parameters passed to the search-with-typeahead for search scope
|
|
237
|
+
*/
|
|
238
|
+
scopeParameters: _propTypes.default.string,
|
|
239
|
+
/**
|
|
240
|
+
* The English title of the selected nav item.
|
|
241
|
+
*/
|
|
242
|
+
selectedMenuItem: _propTypes.default.string,
|
|
243
|
+
/**
|
|
244
|
+
* The profile items for unauthenticated state.
|
|
245
|
+
*/
|
|
246
|
+
unauthenticatedProfileItems: _propTypes.default.string,
|
|
247
|
+
/**
|
|
248
|
+
* Specify translation endpoint if not using default dds endpoint.
|
|
249
|
+
*/
|
|
250
|
+
dataEndpoint: _propTypes.default.string,
|
|
251
|
+
/**
|
|
252
|
+
* The throttle timeout to run query upon user input.
|
|
253
|
+
*/
|
|
254
|
+
inputTimeout: _propTypes.default.number,
|
|
255
|
+
/**
|
|
256
|
+
* The language used for query.
|
|
257
|
+
*/
|
|
258
|
+
language: _propTypes.default.string,
|
|
259
|
+
/**
|
|
260
|
+
* The navigation links.
|
|
261
|
+
*/
|
|
262
|
+
navLinks: _propTypes.default.string,
|
|
263
|
+
/**
|
|
264
|
+
* Logo data
|
|
265
|
+
*/
|
|
266
|
+
logoData: _propTypes.default.string,
|
|
267
|
+
/**
|
|
268
|
+
* Data for l1.
|
|
269
|
+
*/
|
|
270
|
+
l1Data: _propTypes.default.string,
|
|
271
|
+
/**
|
|
272
|
+
* `true` to open the search dropdown.
|
|
273
|
+
*/
|
|
274
|
+
openSearchDropdown: _propTypes.default.bool,
|
|
275
|
+
/**
|
|
276
|
+
* Value to display when the input has an empty `value`.
|
|
277
|
+
*/
|
|
278
|
+
searchPlaceholder: _propTypes.default.string,
|
|
279
|
+
/**
|
|
280
|
+
* The user authentication status.
|
|
281
|
+
*/
|
|
282
|
+
userStatus: _propTypes.default.string,
|
|
283
|
+
/**
|
|
284
|
+
* The name of the custom event fired when a top nav menu is clicked
|
|
285
|
+
*/
|
|
286
|
+
onMegamenuActive: _propTypes.default.func,
|
|
287
|
+
};
|
|
288
|
+
exports.propTypes = propTypes;
|
|
289
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
290
|
+
''.concat(ddsPrefix, '-masthead-composite'),
|
|
291
|
+
descriptor
|
|
292
|
+
);
|
|
293
|
+
Component.propTypes = propTypes;
|
|
294
|
+
var _default = Component;
|
|
295
|
+
exports.default = _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _mastheadComposite = require('././masthead-composite.js');
|
|
16
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
17
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
18
|
+
);
|
|
19
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
20
|
+
var _settings = _interopRequireDefault(
|
|
21
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
22
|
+
);
|
|
23
|
+
var _settings2 = _interopRequireDefault(
|
|
24
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
25
|
+
);
|
|
26
|
+
function _interopRequireDefault(obj) {
|
|
27
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
28
|
+
}
|
|
29
|
+
var prefix = _settings.default.prefix;
|
|
30
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
31
|
+
var descriptor = Object.assign({}, _mastheadComposite.descriptor, {});
|
|
32
|
+
exports.descriptor = descriptor;
|
|
33
|
+
var propTypes = {};
|
|
34
|
+
exports.propTypes = propTypes;
|
|
35
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
36
|
+
''.concat(ddsPrefix, '-masthead-container'),
|
|
37
|
+
descriptor
|
|
38
|
+
);
|
|
39
|
+
Component.propTypes = propTypes;
|
|
40
|
+
var _default = Component;
|
|
41
|
+
exports.default = _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
16
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
17
|
+
);
|
|
18
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
19
|
+
var _settings = _interopRequireDefault(
|
|
20
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
21
|
+
);
|
|
22
|
+
var _settings2 = _interopRequireDefault(
|
|
23
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
24
|
+
);
|
|
25
|
+
function _interopRequireDefault(obj) {
|
|
26
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
27
|
+
}
|
|
28
|
+
var prefix = _settings.default.prefix;
|
|
29
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
30
|
+
var descriptor = {};
|
|
31
|
+
exports.descriptor = descriptor;
|
|
32
|
+
var propTypes = {};
|
|
33
|
+
exports.propTypes = propTypes;
|
|
34
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
35
|
+
''.concat(ddsPrefix, '-masthead'),
|
|
36
|
+
descriptor
|
|
37
|
+
);
|
|
38
|
+
Component.propTypes = propTypes;
|
|
39
|
+
var _default = Component;
|
|
40
|
+
exports.default = _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _linkWithIcon = require('../link-with-icon/link-with-icon.js');
|
|
16
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
17
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
18
|
+
);
|
|
19
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
20
|
+
var _settings = _interopRequireDefault(
|
|
21
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
22
|
+
);
|
|
23
|
+
var _settings2 = _interopRequireDefault(
|
|
24
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
25
|
+
);
|
|
26
|
+
function _interopRequireDefault(obj) {
|
|
27
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
28
|
+
}
|
|
29
|
+
var prefix = _settings.default.prefix;
|
|
30
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
31
|
+
var descriptor = Object.assign({}, _linkWithIcon.descriptor, {});
|
|
32
|
+
exports.descriptor = descriptor;
|
|
33
|
+
var propTypes = {};
|
|
34
|
+
exports.propTypes = propTypes;
|
|
35
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
36
|
+
''.concat(ddsPrefix, '-quote-link-with-icon'),
|
|
37
|
+
descriptor
|
|
38
|
+
);
|
|
39
|
+
Component.propTypes = propTypes;
|
|
40
|
+
var _default = Component;
|
|
41
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
16
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
17
|
+
);
|
|
18
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
19
|
+
var _settings = _interopRequireDefault(
|
|
20
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
21
|
+
);
|
|
22
|
+
var _settings2 = _interopRequireDefault(
|
|
23
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
24
|
+
);
|
|
25
|
+
function _interopRequireDefault(obj) {
|
|
26
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
27
|
+
}
|
|
28
|
+
var prefix = _settings.default.prefix;
|
|
29
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
30
|
+
var descriptor = {
|
|
31
|
+
slot: {},
|
|
32
|
+
};
|
|
33
|
+
exports.descriptor = descriptor;
|
|
34
|
+
var propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* The shadow slot this source bottom copy content should be in.
|
|
37
|
+
*/
|
|
38
|
+
slot: _propTypes.default.string,
|
|
39
|
+
};
|
|
40
|
+
exports.propTypes = propTypes;
|
|
41
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
42
|
+
''.concat(ddsPrefix, '-quote-source-bottom-copy'),
|
|
43
|
+
descriptor
|
|
44
|
+
);
|
|
45
|
+
Component.propTypes = propTypes;
|
|
46
|
+
var _default = Component;
|
|
47
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
16
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
17
|
+
);
|
|
18
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
19
|
+
var _settings = _interopRequireDefault(
|
|
20
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
21
|
+
);
|
|
22
|
+
var _settings2 = _interopRequireDefault(
|
|
23
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
24
|
+
);
|
|
25
|
+
function _interopRequireDefault(obj) {
|
|
26
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
27
|
+
}
|
|
28
|
+
var prefix = _settings.default.prefix;
|
|
29
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
30
|
+
var descriptor = {
|
|
31
|
+
slot: {},
|
|
32
|
+
};
|
|
33
|
+
exports.descriptor = descriptor;
|
|
34
|
+
var propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* The shadow slot this source copy content should be in.
|
|
37
|
+
*/
|
|
38
|
+
slot: _propTypes.default.string,
|
|
39
|
+
};
|
|
40
|
+
exports.propTypes = propTypes;
|
|
41
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
42
|
+
''.concat(ddsPrefix, '-quote-source-copy'),
|
|
43
|
+
descriptor
|
|
44
|
+
);
|
|
45
|
+
Component.propTypes = propTypes;
|
|
46
|
+
var _default = Component;
|
|
47
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
16
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
17
|
+
);
|
|
18
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
19
|
+
var _settings = _interopRequireDefault(
|
|
20
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
21
|
+
);
|
|
22
|
+
var _settings2 = _interopRequireDefault(
|
|
23
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
24
|
+
);
|
|
25
|
+
function _interopRequireDefault(obj) {
|
|
26
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
27
|
+
}
|
|
28
|
+
var prefix = _settings.default.prefix;
|
|
29
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
30
|
+
var descriptor = {
|
|
31
|
+
slot: {},
|
|
32
|
+
};
|
|
33
|
+
exports.descriptor = descriptor;
|
|
34
|
+
var propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* The shadow slot this source copy content should be in.
|
|
37
|
+
*/
|
|
38
|
+
slot: _propTypes.default.string,
|
|
39
|
+
};
|
|
40
|
+
exports.propTypes = propTypes;
|
|
41
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
42
|
+
''.concat(ddsPrefix, '-quote-source-heading'),
|
|
43
|
+
descriptor
|
|
44
|
+
);
|
|
45
|
+
Component.propTypes = propTypes;
|
|
46
|
+
var _default = Component;
|
|
47
|
+
exports.default = _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
15
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
16
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
17
|
+
);
|
|
18
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
19
|
+
var _settings = _interopRequireDefault(
|
|
20
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
21
|
+
);
|
|
22
|
+
var _settings2 = _interopRequireDefault(
|
|
23
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
24
|
+
);
|
|
25
|
+
function _interopRequireDefault(obj) {
|
|
26
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
27
|
+
}
|
|
28
|
+
var prefix = _settings.default.prefix;
|
|
29
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
30
|
+
var descriptor = {
|
|
31
|
+
size: {},
|
|
32
|
+
};
|
|
33
|
+
exports.descriptor = descriptor;
|
|
34
|
+
var propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* Property that specifies the Select to have size xl
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
size: _propTypes.default.string,
|
|
41
|
+
};
|
|
42
|
+
exports.propTypes = propTypes;
|
|
43
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
44
|
+
''.concat(ddsPrefix, '-scoped-search-dropdown-mobile'),
|
|
45
|
+
descriptor
|
|
46
|
+
);
|
|
47
|
+
Component.propTypes = propTypes;
|
|
48
|
+
var _default = Component;
|
|
49
|
+
exports.default = _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 _dropdown.DROPDOWN_COLOR_SCHEME;
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, 'DROPDOWN_SIZE', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function() {
|
|
23
|
+
return _dropdown.DROPDOWN_SIZE;
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, 'DROPDOWN_TYPE', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function() {
|
|
29
|
+
return _dropdown.DROPDOWN_TYPE;
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
exports.propTypes = exports.descriptor = exports.default = void 0;
|
|
33
|
+
var _dropdown = require('../footer/dropdown.js');
|
|
34
|
+
var _createReactCustomElementType = _interopRequireDefault(
|
|
35
|
+
require('@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js')
|
|
36
|
+
);
|
|
37
|
+
var _propTypes = _interopRequireDefault(require('prop-types'));
|
|
38
|
+
var _settings = _interopRequireDefault(
|
|
39
|
+
require('carbon-components/umd/globals/js/settings.js')
|
|
40
|
+
);
|
|
41
|
+
var _settings2 = _interopRequireDefault(
|
|
42
|
+
require('@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js')
|
|
43
|
+
);
|
|
44
|
+
function _interopRequireDefault(obj) {
|
|
45
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
46
|
+
}
|
|
47
|
+
var prefix = _settings.default.prefix;
|
|
48
|
+
var ddsPrefix = _settings2.default.stablePrefix;
|
|
49
|
+
var descriptor = Object.assign({}, _dropdown.descriptor, {
|
|
50
|
+
onSelect: {
|
|
51
|
+
event: ''.concat(prefix, '-select-selected'),
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
exports.descriptor = descriptor;
|
|
55
|
+
var propTypes = {
|
|
56
|
+
/**
|
|
57
|
+
* The name of the custom event captured to retrieve the new search scope.
|
|
58
|
+
*/
|
|
59
|
+
onSelect: _propTypes.default.func,
|
|
60
|
+
};
|
|
61
|
+
exports.propTypes = propTypes;
|
|
62
|
+
const Component = (0, _createReactCustomElementType.default)(
|
|
63
|
+
''.concat(ddsPrefix, '-scoped-search-dropdown'),
|
|
64
|
+
descriptor
|
|
65
|
+
);
|
|
66
|
+
Component.propTypes = propTypes;
|
|
67
|
+
var _default = Component;
|
|
68
|
+
exports.default = _default;
|