@ebay/ui-core-react 1.2.2 → 1.4.1
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/range.d.ts +2 -0
- package/common/range.d.ts.map +1 -0
- package/common/range.js +7 -0
- package/ebay-dialog-base/dialog-base-with-state.d.ts.map +1 -1
- package/ebay-dialog-base/dialog-base-with-state.js +1 -6
- package/ebay-icon/README.md +1 -0
- package/ebay-icon/icon.d.ts +1 -0
- package/ebay-icon/icon.d.ts.map +1 -1
- package/ebay-icon/icon.js +12 -4
- package/ebay-infotip/ebay-infotip-host.d.ts +1 -1
- package/ebay-star-rating/README.md +36 -0
- package/ebay-star-rating/index.d.ts +3 -0
- package/ebay-star-rating/index.d.ts.map +1 -0
- package/ebay-star-rating/index.js +15 -0
- package/ebay-star-rating/star-rating.d.ts +8 -0
- package/ebay-star-rating/star-rating.d.ts.map +1 -0
- package/ebay-star-rating/star-rating.js +37 -0
- package/ebay-star-rating-select/README.md +37 -0
- package/ebay-star-rating-select/index.d.ts +3 -0
- package/ebay-star-rating-select/index.d.ts.map +1 -0
- package/ebay-star-rating-select/index.js +15 -0
- package/ebay-star-rating-select/star-rating-select.d.ts +14 -0
- package/ebay-star-rating-select/star-rating-select.d.ts.map +1 -0
- package/ebay-star-rating-select/star-rating-select.js +89 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +4 -0
- package/package.json +1 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/common/range.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,MAAM,QAAO,MAAM,oBAAY,MAAM,EACwB,CAAA"}
|
package/common/range.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.range = void 0;
|
|
4
|
+
exports.range = function (start, stop, step) {
|
|
5
|
+
if (step === void 0) { step = 1; }
|
|
6
|
+
return Array(Math.ceil(((stop + 1) - start) / step)).fill(start).map(function (x, y) { return x + y * step; });
|
|
7
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-base-with-state.d.ts","sourceRoot":"","sources":["../../src/ebay-dialog-base/dialog-base-with-state.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAY,YAAY,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"dialog-base-with-state.d.ts","sourceRoot":"","sources":["../../src/ebay-dialog-base/dialog-base-with-state.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAY,YAAY,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,EAAc,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAGrE,eAAO,MAAM,mBAAmB,mDAM7B,eAAe,CAAC,WAAW,CAAC,KAAG,YA+BjC,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -40,13 +40,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
40
40
|
}
|
|
41
41
|
return t;
|
|
42
42
|
};
|
|
43
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
-
};
|
|
46
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
44
|
exports.DialogBaseWithState = void 0;
|
|
48
45
|
var react_1 = __importStar(require("react"));
|
|
49
|
-
var react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
50
46
|
var react_remove_scroll_1 = require("react-remove-scroll");
|
|
51
47
|
var dialogBase_1 = require("./components/dialogBase");
|
|
52
48
|
var index_1 = require("./index");
|
|
@@ -61,8 +57,7 @@ exports.DialogBaseWithState = function (_a) {
|
|
|
61
57
|
return ![index_1.EbayDialogHeader, index_1.EbayDialogFooter, index_1.EbayDialogCloseButton].some(function (c) { return c === child.type; });
|
|
62
58
|
});
|
|
63
59
|
var dialogBase = (react_1.default.createElement(dialogBase_1.DialogBase, __assign({}, rest, { open: open, isModal: shouldRenderModal, header: header, footer: footer, closeButton: closeButton, animated: animated }), content));
|
|
64
|
-
var renderOverLay = function () { return shouldRenderModal ? (react_1.default.createElement(
|
|
65
|
-
react_1.default.createElement(react_remove_scroll_1.RemoveScroll, { enabled: open }, dialogBase))) : dialogBase; };
|
|
60
|
+
var renderOverLay = function () { return shouldRenderModal ? (react_1.default.createElement(react_remove_scroll_1.RemoveScroll, { enabled: open }, dialogBase)) : dialogBase; };
|
|
66
61
|
return animated || open ? renderOverLay() : null;
|
|
67
62
|
};
|
|
68
63
|
exports.default = exports.DialogBaseWithState;
|
package/ebay-icon/README.md
CHANGED
|
@@ -19,3 +19,4 @@ Name | Type | Stateful | Required | Description
|
|
|
19
19
|
`name` | String | No | Yes | name of the icon from [Skin](./icon.tsx), transparent versions of colored icons has `-transparent` suffix
|
|
20
20
|
`noSkinClasses` | Boolean | No | No | Used for special cases where `icon` classes from Skin should not be applied
|
|
21
21
|
`a11yText` | String | No | Yes | text for non-decorative inline icon; icon is assumed to be decorative if this is not passed
|
|
22
|
+
`type` | String | No | no | 'icon' or 'program-badge' default 'icon'
|
package/ebay-icon/icon.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Icon } from './types';
|
|
|
3
3
|
export declare type A11yVariant = 'label';
|
|
4
4
|
export declare type EbayIconProps = SVGProps<SVGSVGElement> & {
|
|
5
5
|
className?: string;
|
|
6
|
+
type?: 'icon' | 'program-badge' | string;
|
|
6
7
|
name: Icon;
|
|
7
8
|
noSkinClasses?: boolean;
|
|
8
9
|
a11yText?: string;
|
package/ebay-icon/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/ebay-icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,GAAG,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAM9B,oBAAY,WAAW,GAAG,OAAO,CAAC;AAElC,oBAAY,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CACrC,CAAC;;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/ebay-icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,GAAG,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAM9B,oBAAY,WAAW,GAAG,OAAO,CAAC;AAElC,oBAAY,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAE,eAAe,GAAG,MAAM,CAAA;IACvC,IAAI,EAAE,IAAI,CAAC;IACX,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CACrC,CAAC;;AAqEF,wBAAuC"}
|
package/ebay-icon/icon.js
CHANGED
|
@@ -53,8 +53,8 @@ var LARGE_ICON_SIZE = 64;
|
|
|
53
53
|
var DEFAULT_ICON_SIZE = 24;
|
|
54
54
|
var EbayIcon = function (_a) {
|
|
55
55
|
var _b;
|
|
56
|
-
var name = _a.name, extraClass = _a.className,
|
|
57
|
-
var
|
|
56
|
+
var name = _a.name, _c = _a.type, type = _c === void 0 ? 'icon' : _c, extraClass = _a.className, _d = _a.noSkinClasses, noSkinClasses = _d === void 0 ? false : _d, a11yText = _a.a11yText, a11yVariant = _a.a11yVariant, forwardedRef = _a.forwardedRef, rest = __rest(_a, ["name", "type", "className", "noSkinClasses", "a11yText", "a11yVariant", "forwardedRef"]);
|
|
57
|
+
var _e = react_1.useState(''), rId = _e[0], setRandomId = _e[1];
|
|
58
58
|
react_1.useEffect(function () {
|
|
59
59
|
setRandomId(random_id_1.randomId());
|
|
60
60
|
}, []);
|
|
@@ -68,11 +68,12 @@ var EbayIcon = function (_a) {
|
|
|
68
68
|
'aria-hidden': true
|
|
69
69
|
};
|
|
70
70
|
var iconSize = getIconSize(name) + "px";
|
|
71
|
+
var prefixSvg = type === 'icon' ? 'icon-' : '';
|
|
71
72
|
var kebabName = kebabCased(name);
|
|
72
|
-
var className = classnames_1.default(extraClass,
|
|
73
|
+
var className = classnames_1.default(extraClass, (_b = {}, _b[getIconClass(type, kebabName)] = !noSkinClasses, _b));
|
|
73
74
|
return (react_1.default.createElement("svg", __assign({ height: iconSize, width: iconSize }, rest, { className: className, xmlns: "http://www.w3.org/2000/svg", focusable: false, ref: forwardedRef }, a11yProps),
|
|
74
75
|
a11yText && !noTitle && react_1.default.createElement("title", { id: a11yTextId }, a11yText),
|
|
75
|
-
react_1.default.createElement("use", { xlinkHref: "#
|
|
76
|
+
react_1.default.createElement("use", { xlinkHref: "#" + prefixSvg + kebabName })));
|
|
76
77
|
};
|
|
77
78
|
function getIconSize(iconName) {
|
|
78
79
|
var sizeCandidate = iconName.split('-').slice(-1)[0];
|
|
@@ -84,4 +85,11 @@ function getIconSize(iconName) {
|
|
|
84
85
|
function kebabCased(str) {
|
|
85
86
|
return str.replace(/([A-Z])/g, function (s, c) { return "-" + c.toLowerCase(); });
|
|
86
87
|
}
|
|
88
|
+
function getIconClass(type, name) {
|
|
89
|
+
if (type === 'icon') {
|
|
90
|
+
return "icon icon--" + name;
|
|
91
|
+
}
|
|
92
|
+
var dashedName = name.replace(type, type + "-");
|
|
93
|
+
return type + " " + dashedName;
|
|
94
|
+
}
|
|
87
95
|
exports.default = component_utils_1.withForwardRef(EbayIcon);
|
|
@@ -9,6 +9,6 @@ declare type InfotipHostProps = ComponentProps<'button'> & {
|
|
|
9
9
|
icon: any;
|
|
10
10
|
}) => ReactNode | ReactNode;
|
|
11
11
|
};
|
|
12
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<InfotipHostProps, "form" | "slot" | "style" | "title" | "type" | "key" | "name" | "className" | "forwardedRef" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "variant" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value"
|
|
12
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<InfotipHostProps, "form" | "slot" | "style" | "title" | "type" | "icon" | "key" | "name" | "className" | "forwardedRef" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "variant" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value"> & React.RefAttributes<React.FC<InfotipHostProps>>>;
|
|
13
13
|
export default _default;
|
|
14
14
|
//# sourceMappingURL=ebay-infotip-host.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# ebay-star-rating
|
|
2
|
+
For full stars use (rating from 0-5): ebay-star-rating-{rating} For half stars use: ebay-star-rating-{rating}-5 DS v1.0.0
|
|
3
|
+
## Demo
|
|
4
|
+
[Storybook](https://opensource.ebay.com/ebayui-core-react/main/?path=/story/ebay-star-rating--dynamic-stars)
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
```
|
|
8
|
+
yarn add @ebay/ui-core-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Import JS
|
|
12
|
+
```jsx harmony
|
|
13
|
+
import { EbayStarRating } from '@ebay/ui-core-react/ebay-star-rating'
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Import following styles from Skin
|
|
17
|
+
```jsx harmony
|
|
18
|
+
import '@ebay/skin/star-rating'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## ...or using SCSS/CSS
|
|
22
|
+
```jsx harmony
|
|
23
|
+
import '@ebay/skin/star-rating.css'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```jsx harmony
|
|
27
|
+
<EbayStarRating aria-label="Star Rating" value="1"/>
|
|
28
|
+
<EbayStarRating aria-label="Star Rating" value="0-5"/>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Attributes
|
|
32
|
+
|
|
33
|
+
Name | Type | Stateful | Description
|
|
34
|
+
--- | --- | --- | ---
|
|
35
|
+
| `a11yText` | String | No | Yes | text for non-decorative inline icon; icon is assumed to be decorative if this is not passed |
|
|
36
|
+
| `value` | String | No | Yes | The amount of stars to be filled. Can be "2-5" for 2 and a half stars. |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-star-rating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AACzD,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
var star_rating_1 = require("./star-rating");
|
|
14
|
+
Object.defineProperty(exports, "EbayStarRating", { enumerable: true, get: function () { return star_rating_1.default; } });
|
|
15
|
+
__exportStar(require("./star-rating"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"star-rating.d.ts","sourceRoot":"","sources":["../../src/ebay-star-rating/star-rating.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAKjD,aAAK,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAe7B,CAAA;AAGD,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
30
|
+
var ebay_icon_1 = require("../ebay-icon");
|
|
31
|
+
var range_1 = require("../common/range");
|
|
32
|
+
var stars = range_1.range(1, 5);
|
|
33
|
+
var EbayStarRating = function (_a) {
|
|
34
|
+
var value = _a.value, a11yText = _a.a11yText, className = _a.className, rest = __rest(_a, ["value", "a11yText", "className"]);
|
|
35
|
+
return (react_1.default.createElement("div", __assign({ role: "img", "aria-label": a11yText, className: classnames_1.default('star-rating', className), "data-stars": value }, rest), stars.map(function (i) { return (react_1.default.createElement(ebay_icon_1.EbayIcon, { key: i, className: "star-rating__icon", name: "starDynamic" })); })));
|
|
36
|
+
};
|
|
37
|
+
exports.default = EbayStarRating;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ebay-star-rating-select
|
|
2
|
+
use (rating from 0-5)
|
|
3
|
+
## Demo
|
|
4
|
+
[Storybook](https://opensource.ebay.com/ebayui-core-react/main/?path=/story/ebay-star-rating-select--isolated)
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
```
|
|
8
|
+
yarn add @ebay/ui-core-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Import JS
|
|
12
|
+
```jsx harmony
|
|
13
|
+
import { EbayStarRatingSelect } from '@ebay/ui-core-react/ebay-star-rating-select'
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Import following styles from Skin
|
|
17
|
+
```jsx harmony
|
|
18
|
+
import '@ebay/skin/star-rating-select'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## ...or using SCSS/CSS
|
|
22
|
+
```jsx harmony
|
|
23
|
+
import '@ebay/skin/star-rating.css'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```jsx harmony
|
|
27
|
+
<EbayStarRatingSelect value={1}>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Attributes
|
|
31
|
+
|
|
32
|
+
Name | Type | Stateful | Description
|
|
33
|
+
--- | --- | --- | ---
|
|
34
|
+
| `a11yStarText` | array | No | Yes | array of strings for star inputs |
|
|
35
|
+
| `a11yText` | String | No | Yes | container aria-label |
|
|
36
|
+
| `value` | String | No | Yes | The amount of stars to be filled. Can be "2-5" for 2 and a half stars.|
|
|
37
|
+
| `disabled` | Boolean | No | Rating stars are disabled or not
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-star-rating-select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
var star_rating_select_1 = require("./star-rating-select");
|
|
14
|
+
Object.defineProperty(exports, "EbayStarRatingSelect", { enumerable: true, get: function () { return star_rating_select_1.default; } });
|
|
15
|
+
__exportStar(require("./star-rating-select"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeEvent, ComponentProps, FC, MouseEvent } from 'react';
|
|
2
|
+
declare type Props = ComponentProps<'div'> & {
|
|
3
|
+
a11yText?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
a11yStarText?: string[];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
onKeyDown?: (e: MouseEvent, value: number) => void;
|
|
9
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, value: string | number) => void;
|
|
10
|
+
onFocus?: (event: ChangeEvent<HTMLInputElement>, value: string | number) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const EbayStarRatingSelect: FC<Props>;
|
|
13
|
+
export default EbayStarRatingSelect;
|
|
14
|
+
//# sourceMappingURL=star-rating-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"star-rating-select.d.ts","sourceRoot":"","sources":["../../src/ebay-star-rating-select/star-rating-select.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,WAAW,EAAE,cAAc,EAAE,EAAE,EAAE,UAAU,EAAuB,MAAM,OAAO,CAAA;AAM/F,aAAK,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAClF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CACpF,CAAA;AASD,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CAgEnC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
var react_1 = __importStar(require("react"));
|
|
48
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
49
|
+
var ebay_icon_1 = require("../ebay-icon");
|
|
50
|
+
var range_1 = require("../common/range");
|
|
51
|
+
var random_id_1 = require("../common/random-id");
|
|
52
|
+
var stars = range_1.range(1, 5);
|
|
53
|
+
var getValue = function (val) {
|
|
54
|
+
var value = parseInt(val, 0) || 0;
|
|
55
|
+
if (value > 5) {
|
|
56
|
+
value = 0;
|
|
57
|
+
}
|
|
58
|
+
return value;
|
|
59
|
+
};
|
|
60
|
+
var EbayStarRatingSelect = function (_a) {
|
|
61
|
+
var _b = _a.value, value = _b === void 0 ? 0 : _b, a11yText = _a.a11yText, className = _a.className, _c = _a.a11yStarText, a11yStarText = _c === void 0 ? [] : _c, disabled = _a.disabled, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, _d = _a.name, name = _d === void 0 ? "star-rating-" + random_id_1.randomId() : _d, rest = __rest(_a, ["value", "a11yText", "className", "a11yStarText", "disabled", "onChange", "onFocus", "onKeyDown", "name"]);
|
|
62
|
+
var _e = react_1.useState(getValue(value)), checkedValue = _e[0], setChecked = _e[1];
|
|
63
|
+
react_1.useEffect(function () {
|
|
64
|
+
setChecked(getValue(value));
|
|
65
|
+
}, [value]);
|
|
66
|
+
var handleKeyDown = function (i) { return function (e) {
|
|
67
|
+
if (!disabled && onKeyDown) {
|
|
68
|
+
setChecked(getValue(i));
|
|
69
|
+
onKeyDown(e, i);
|
|
70
|
+
}
|
|
71
|
+
}; };
|
|
72
|
+
var handleClick = function (i) { return function (e) {
|
|
73
|
+
if (!disabled && onChange) {
|
|
74
|
+
setChecked(getValue(i));
|
|
75
|
+
onChange(e, i);
|
|
76
|
+
}
|
|
77
|
+
}; };
|
|
78
|
+
var handleFocus = function (i) { return function (e) {
|
|
79
|
+
if (!disabled && onFocus) {
|
|
80
|
+
setChecked(getValue(i));
|
|
81
|
+
onFocus(e, i);
|
|
82
|
+
}
|
|
83
|
+
}; };
|
|
84
|
+
return (react_1.default.createElement("div", __assign({ role: a11yText && 'radiogroup', "aria-label": a11yText, className: classnames_1.default('star-rating-select', className) }, rest), stars.map(function (i) { return (react_1.default.createElement("span", { className: "star-rating-select__radio", key: i },
|
|
85
|
+
react_1.default.createElement("input", { "aria-label": a11yStarText === null || a11yStarText === void 0 ? void 0 : a11yStarText[i - 1], className: classnames_1.default('star-rating-select__control', { 'star-rating-select__control--filled': i <= checkedValue }), type: "radio", name: name, value: i, disabled: disabled, defaultChecked: checkedValue === i, onClick: handleClick(i), onFocus: handleFocus(i), onKeyDown: handleKeyDown(i) }),
|
|
86
|
+
react_1.default.createElement("span", { className: "star-rating-select__radio-icon" },
|
|
87
|
+
react_1.default.createElement(ebay_icon_1.EbayIcon, { className: "star-rating__icon", name: "starDynamic" })))); })));
|
|
88
|
+
};
|
|
89
|
+
exports.default = EbayStarRatingSelect;
|
package/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export { EbayProgressBar, EbayProgressBarProps } from './ebay-progress-bar';
|
|
|
14
14
|
export { EbayRadio } from './ebay-radio';
|
|
15
15
|
export { EbayBadge } from './ebay-badge';
|
|
16
16
|
export { EbaySignal, SignalStatus } from './ebay-signal';
|
|
17
|
+
export { EbayStarRating } from './ebay-star-rating';
|
|
18
|
+
export { EbayStarRatingSelect } from './ebay-star-rating-select';
|
|
17
19
|
export { EbaySwitch } from './ebay-switch';
|
|
18
20
|
export { EbayCheckbox } from './ebay-checkbox';
|
|
19
21
|
export { EbayBreadcrumbs, EbayBreadcrumbItem } from './ebay-breadcrumbs';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,OAAO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E,gBAAgB,EAAE,OAAO,EAC3E,aAAa,EAAE,aAAa,EAC/B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACxH,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,EACH,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAC1C,eAAe,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,aAAa,EAC9E,eAAe,EAAE,oBAAoB,EAAE,wBAAwB,EAClE,MAAM,cAAc,CAAA;AACrB,OAAO,EACH,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAClG,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA"}
|
package/index.js
CHANGED
|
@@ -44,6 +44,10 @@ var ebay_badge_1 = require("./ebay-badge");
|
|
|
44
44
|
Object.defineProperty(exports, "EbayBadge", { enumerable: true, get: function () { return ebay_badge_1.EbayBadge; } });
|
|
45
45
|
var ebay_signal_1 = require("./ebay-signal");
|
|
46
46
|
Object.defineProperty(exports, "EbaySignal", { enumerable: true, get: function () { return ebay_signal_1.EbaySignal; } });
|
|
47
|
+
var ebay_star_rating_1 = require("./ebay-star-rating");
|
|
48
|
+
Object.defineProperty(exports, "EbayStarRating", { enumerable: true, get: function () { return ebay_star_rating_1.EbayStarRating; } });
|
|
49
|
+
var ebay_star_rating_select_1 = require("./ebay-star-rating-select");
|
|
50
|
+
Object.defineProperty(exports, "EbayStarRatingSelect", { enumerable: true, get: function () { return ebay_star_rating_select_1.EbayStarRatingSelect; } });
|
|
47
51
|
var ebay_switch_1 = require("./ebay-switch");
|
|
48
52
|
Object.defineProperty(exports, "EbaySwitch", { enumerable: true, get: function () { return ebay_switch_1.EbaySwitch; } });
|
|
49
53
|
var ebay_checkbox_1 = require("./ebay-checkbox");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebay/ui-core-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Skin components build off React",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"classnames": "^2.2.6",
|
|
50
50
|
"makeup-keyboard-trap": "^0.4.1",
|
|
51
51
|
"makeup-screenreader-trap": "^0.4.1",
|
|
52
|
-
"react-focus-lock": "^2.9.1",
|
|
53
52
|
"react-remove-scroll": "^2.2.0"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|