@ebay/ui-core-react 5.13.0 → 6.0.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/common/component-utils/utils.d.ts +5 -8
- package/common/component-utils/utils.d.ts.map +1 -1
- package/common/component-utils/utils.js +29 -47
- package/common/event-utils/index.d.ts +2 -2
- package/common/event-utils/index.d.ts.map +1 -1
- package/common/event-utils/use-roving-index.d.ts.map +1 -1
- package/common/event-utils/use-roving-index.js +1 -1
- package/common/tooltip-utils/tooltip-content.js +1 -1
- package/common/tooltip-utils/tooltip.d.ts +1 -1
- package/common/tooltip-utils/tooltip.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip.js +2 -2
- package/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/ebay-breadcrumbs/breadcrumbs.js +3 -4
- package/ebay-button/button-expand.js +1 -1
- package/ebay-button/button.d.ts +3 -4
- package/ebay-button/button.d.ts.map +1 -1
- package/ebay-carousel/helpers.d.ts.map +1 -1
- package/ebay-carousel/helpers.js +3 -4
- package/ebay-checkbox/checkbox.d.ts.map +1 -1
- package/ebay-checkbox/checkbox.js +1 -1
- package/ebay-fake-menu/menu.d.ts.map +1 -1
- package/ebay-fake-menu/menu.js +2 -3
- package/ebay-fake-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button.js +1 -1
- package/ebay-fake-tabs/fake-tabs.d.ts.map +1 -1
- package/ebay-fake-tabs/fake-tabs.js +1 -1
- package/ebay-icon/icon.d.ts +1 -1
- package/ebay-icon/types.d.ts +1 -1
- package/ebay-icon/types.d.ts.map +1 -1
- package/ebay-icon-button/icon-button.d.ts +2 -2
- package/ebay-icon-button/icon-button.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip-host.d.ts +1 -1
- package/ebay-infotip/ebay-infotip-host.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip-host.js +6 -3
- package/ebay-infotip/ebay-infotip.d.ts +21 -3
- package/ebay-infotip/ebay-infotip.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip.js +4 -16
- package/ebay-infotip/index.d.ts +1 -1
- package/ebay-infotip/index.d.ts.map +1 -1
- package/ebay-infotip/types.d.ts +0 -19
- package/ebay-infotip/types.d.ts.map +1 -1
- package/ebay-inline-notice/inline-notice.js +1 -1
- package/ebay-listbox-button/listbox-button-option.d.ts +1 -1
- package/ebay-listbox-button/listbox-button-option.d.ts.map +1 -1
- package/ebay-listbox-button/listbox-button.js +5 -4
- package/ebay-menu/menu.d.ts +1 -1
- package/ebay-menu-button/menu-button-separator.d.ts +2 -2
- package/ebay-menu-button/menu-button-separator.d.ts.map +1 -1
- package/ebay-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-menu-button/menu-button.js +2 -2
- package/ebay-menu-button/types.d.ts +3 -3
- package/ebay-menu-button/types.d.ts.map +1 -1
- package/ebay-page-notice/page-notice.d.ts.map +1 -1
- package/ebay-page-notice/page-notice.js +3 -3
- package/ebay-pagination/index.d.ts +3 -3
- package/ebay-pagination/index.d.ts.map +1 -1
- package/ebay-pagination/pagination-item.d.ts +1 -1
- package/ebay-pagination/pagination.d.ts +1 -1
- package/ebay-pagination/pagination.d.ts.map +1 -1
- package/ebay-pagination/pagination.js +11 -9
- package/ebay-select/ebay-select.d.ts.map +1 -1
- package/ebay-select/ebay-select.js +1 -1
- package/ebay-split-button/split-button.js +1 -1
- package/ebay-svg/svg.d.ts.map +1 -1
- package/ebay-svg/svg.js +128 -203
- package/ebay-tabs/tabs.d.ts.map +1 -1
- package/ebay-tabs/tabs.js +3 -3
- package/ebay-textbox/textbox.d.ts +1 -1
- package/ebay-textbox/textbox.js +1 -1
- package/ebay-tooltip/ebay-tooltip.js +2 -2
- package/ebay-tourtip/ebay-tourtip.js +2 -2
- package/ebay-video/video.js +5 -2
- package/package.json +3 -3
package/ebay-tabs/tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/ebay-tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/ebay-tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,EAAE,EAAsC,MAAM,OAAO,CAAA;AAOnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CA4FvB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/ebay-tabs/tabs.js
CHANGED
|
@@ -83,7 +83,7 @@ var Tabs = function (_a) {
|
|
|
83
83
|
}, [index]);
|
|
84
84
|
var isLarge = size === 'large';
|
|
85
85
|
var tabHeadings = (0, component_utils_1.filterByType)(children, tab_1.default).map(function (item, i) {
|
|
86
|
-
return (0, react_1.
|
|
86
|
+
return (0, react_1.cloneElement)(item, __assign(__assign({}, item.props), { refCallback: function (ref) { headings[i] = ref; }, index: i, parentId: id, selected: selectedIndex === i, focused: focusedIndex === i, onClick: function () {
|
|
87
87
|
handleSelect(i);
|
|
88
88
|
setFocusedIndex(i);
|
|
89
89
|
}, onKeyDown: function (e) { onKeyDown(e, i); } }));
|
|
@@ -93,9 +93,9 @@ var Tabs = function (_a) {
|
|
|
93
93
|
index: i,
|
|
94
94
|
parentId: id,
|
|
95
95
|
selected: selectedIndex === i,
|
|
96
|
-
children:
|
|
96
|
+
children: item.props.children
|
|
97
97
|
};
|
|
98
|
-
return (0, react_1.
|
|
98
|
+
return (0, react_1.cloneElement)(item, itemProps);
|
|
99
99
|
});
|
|
100
100
|
return (react_1.default.createElement("div", { id: id, className: (0, classnames_1.default)(className, 'tabs') },
|
|
101
101
|
react_1.default.createElement("div", { className: (0, classnames_1.default)('tabs__items', { 'tabs__items--large': isLarge }), role: "tablist" }, tabHeadings),
|
|
@@ -25,6 +25,6 @@ export type EbayTextboxProps = {
|
|
|
25
25
|
forwardedRef?: Ref<HTMLTextAreaElement | HTMLInputElement>;
|
|
26
26
|
opaqueLabel?: boolean;
|
|
27
27
|
} & Omit<TextInputProps, 'onFocus' | 'onBlur' | 'onChange' | 'onKeyPress' | 'onKeyUp' | 'onKeyDown' | 'onInvalid'>;
|
|
28
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<EbayTextboxProps, "form" | "slot" | "style" | "title" | "pattern" | "forwardedRef" | "invalid" | "key" | "value" | "className" | "disabled" | "inputSize" | "placeholder" | "opaqueLabel" | "
|
|
28
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<EbayTextboxProps, "form" | "slot" | "style" | "title" | "pattern" | "forwardedRef" | "type" | "invalid" | "key" | "value" | "className" | "disabled" | "inputSize" | "placeholder" | "opaqueLabel" | "children" | "multiple" | "name" | "required" | "size" | "list" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "cols" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "rows" | "src" | "step" | "width" | "wrap" | "fluid" | "dirName" | "floatingLabel" | "multiline" | "onInputChange" | "onFloatingLabelInit" | "onButtonClick"> & React.RefAttributes<React.FC<EbayTextboxProps>>>;
|
|
29
29
|
export default _default;
|
|
30
30
|
//# sourceMappingURL=textbox.d.ts.map
|
package/ebay-textbox/textbox.js
CHANGED
|
@@ -135,7 +135,7 @@ var EbayTextbox = function (_a) {
|
|
|
135
135
|
react_1.default.createElement(Wrapper, { className: wrapperClassName },
|
|
136
136
|
prefixIcon,
|
|
137
137
|
react_1.default.createElement(Input, __assign({}, rest, { className: inputClassName, type: type, "aria-invalid": invalid, value: isControlled(controlledValue) ? controlledValue : inputValue, onChange: handleInputChange, onBlur: handleBlur, onFocus: handleFocus, onKeyPress: handleKeyPress, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown, onInvalid: handleInvalid, autoFocus: autoFocus, ref: ref, placeholder: floatingLabelPlaceholder })),
|
|
138
|
-
|
|
138
|
+
postfixIcon && (0, react_1.cloneElement)(postfixIcon, __assign(__assign({}, postfixIcon.props), { onClick: function (e) {
|
|
139
139
|
var _a = postfixIcon.props.onClick, iconClick = _a === void 0 ? function () { } : _a;
|
|
140
140
|
iconClick(e);
|
|
141
141
|
handleButtonClick(e);
|
|
@@ -90,7 +90,7 @@ var EbayTooltip = function (_a) {
|
|
|
90
90
|
throw new Error("EbayTooltip: Please use a EbayTooltipContent that defines the content of the tooltip");
|
|
91
91
|
}
|
|
92
92
|
return (react_1.default.createElement(tooltip_utils_1.Tooltip, __assign({}, rest, { className: className, type: "tooltip", isExpanded: isExpanded, onFocus: handleOnFocus, onBlur: handleOnBlur, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave }),
|
|
93
|
-
react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({},
|
|
94
|
-
react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({},
|
|
93
|
+
react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({}, host.props)),
|
|
94
|
+
react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({}, content.props, { type: "tooltip", style: overlayStyle, pointer: pointer }))));
|
|
95
95
|
};
|
|
96
96
|
exports.default = EbayTooltip;
|
|
@@ -64,7 +64,7 @@ var EbayTourtip = function (_a) {
|
|
|
64
64
|
if (!content) {
|
|
65
65
|
throw new Error("EbayTourtip: Please use a EbayTourtipContent that defines the content of the tourtip");
|
|
66
66
|
}
|
|
67
|
-
var _c =
|
|
67
|
+
var _c = content.props, contentChildren = _c.children, contentProps = _c.contentProps;
|
|
68
68
|
var host = (0, component_utils_1.findComponent)(children, ebay_tourtip_host_1.default);
|
|
69
69
|
if (!host) {
|
|
70
70
|
throw new Error("EbayTourtip: Please use a EbayTourtipHost that defines the host of the tourtip");
|
|
@@ -72,7 +72,7 @@ var EbayTourtip = function (_a) {
|
|
|
72
72
|
var heading = (0, component_utils_1.findComponent)(children, ebay_tourtip_heading_1.default);
|
|
73
73
|
var footer = (0, component_utils_1.findComponent)(children, ebay_tourtip_footer_1.default);
|
|
74
74
|
return (react_1.default.createElement(tooltip_utils_1.Tooltip, __assign({}, rest, { className: className, type: "tourtip", isExpanded: isExpanded, ref: containerRef }),
|
|
75
|
-
react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({},
|
|
75
|
+
react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({}, host.props, { forwardedRef: hostRef, "aria-label": ariaLabel, "aria-expanded": isExpanded })),
|
|
76
76
|
react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({}, contentProps, { a11yCloseText: a11yCloseText, onClose: collapseTooltip, pointer: pointer, showCloseButton: true, style: overlayStyle, type: "tourtip" }),
|
|
77
77
|
heading,
|
|
78
78
|
contentChildren,
|
package/ebay-video/video.js
CHANGED
|
@@ -82,7 +82,10 @@ var EbayVideo = function (_a) {
|
|
|
82
82
|
var videoRef = (0, react_1.useRef)(null);
|
|
83
83
|
var playerRef = (0, react_1.useRef)(null);
|
|
84
84
|
var uiRef = (0, react_1.useRef)(null);
|
|
85
|
-
var sources = (0, component_utils_1.filterByType)(children, source_1.default).map(
|
|
85
|
+
var sources = (0, component_utils_1.filterByType)(children, source_1.default).map(function (_a) {
|
|
86
|
+
var props = _a.props;
|
|
87
|
+
return props;
|
|
88
|
+
});
|
|
86
89
|
var handleError = function (err) {
|
|
87
90
|
setLoaded(true);
|
|
88
91
|
setFailed(true);
|
|
@@ -205,7 +208,7 @@ var EbayVideo = function (_a) {
|
|
|
205
208
|
!playing && loaded && !failed && !buffering &&
|
|
206
209
|
react_1.default.createElement("div", { className: "shaka-play-button-container" },
|
|
207
210
|
react_1.default.createElement("button", { onClick: handleOnPlayClick, className: "shaka-play-button", style: { opacity: 1, zIndex: 999 }, "aria-label": a11yPlayText },
|
|
208
|
-
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "
|
|
211
|
+
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "playFilled64Colored" }))),
|
|
209
212
|
react_1.default.createElement("div", { className: "video-player__container", ref: containerRef },
|
|
210
213
|
react_1.default.createElement("video", __assign({ ref: videoRef, style: style, poster: thumbnail, muted: muted || false, onPlaying: handlePlaying, onPause: handleOnPause, onVolumeChange: handleVolumeChange }, rest), sources.map(function (source, i) {
|
|
211
214
|
react_1.default.createElement("source", __assign({ key: i }, source));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebay/ui-core-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Skin components build off React",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"author": "tmanyanov@ebay.com",
|
|
43
43
|
"license": "ISC",
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@ebay/skin": "^
|
|
45
|
+
"@ebay/skin": "^17.0.0",
|
|
46
46
|
"react": "^16.0.0",
|
|
47
47
|
"react-dom": "^16.0.0",
|
|
48
48
|
"shaka-player": "^4.3.2"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/register": "^7.0.0",
|
|
58
|
-
"@ebay/skin": "^
|
|
58
|
+
"@ebay/skin": "^17.0.0",
|
|
59
59
|
"@microsoft/eslint-formatter-sarif": "^3.0.0",
|
|
60
60
|
"@storybook/addon-a11y": "^6.5.6",
|
|
61
61
|
"@storybook/addon-essentials": "^6.5.6",
|