@ebay/ui-core-react 4.2.5 → 5.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/README.md +8 -6
- package/common/event-utils/index.d.ts +10 -7
- package/common/event-utils/index.d.ts.map +1 -1
- package/common/event-utils/index.js +11 -3
- package/common/event-utils/types.d.ts +7 -0
- package/common/event-utils/types.d.ts.map +1 -1
- package/common/event-utils/types.js +12 -0
- package/common/floating-label-utils/hooks.d.ts +2 -1
- package/common/floating-label-utils/hooks.d.ts.map +1 -1
- package/common/floating-label-utils/hooks.js +5 -4
- package/ebay-alert-dialog/README.md +3 -2
- package/ebay-alert-dialog/alert-dialog.d.ts +0 -1
- package/ebay-alert-dialog/alert-dialog.d.ts.map +1 -1
- package/ebay-alert-dialog/alert-dialog.js +1 -1
- package/ebay-breadcrumbs/README.md +1 -1
- package/ebay-breadcrumbs/breadcrumbs.d.ts +3 -2
- package/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/ebay-breadcrumbs/breadcrumbs.js +1 -1
- package/ebay-button/README.md +4 -4
- package/ebay-carousel/carousel.js +1 -1
- package/ebay-checkbox/README.md +11 -10
- package/ebay-checkbox/checkbox.d.ts +15 -3
- package/ebay-checkbox/checkbox.d.ts.map +1 -1
- package/ebay-checkbox/checkbox.js +9 -4
- package/ebay-confirm-dialog/README.md +6 -6
- package/ebay-confirm-dialog/confirm-dialog.d.ts +0 -1
- package/ebay-confirm-dialog/confirm-dialog.d.ts.map +1 -1
- package/ebay-confirm-dialog/confirm-dialog.js +1 -1
- package/ebay-dialog-base/components/dialogBase.d.ts +3 -2
- package/ebay-dialog-base/components/dialogBase.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialogBase.js +6 -3
- package/ebay-drawer-dialog/README.md +7 -6
- package/ebay-drawer-dialog/components/drawer.d.ts +3 -0
- package/ebay-drawer-dialog/components/drawer.d.ts.map +1 -1
- package/ebay-fake-menu/README.md +5 -5
- package/ebay-fake-menu/menu-item.d.ts +1 -1
- package/ebay-fake-menu/menu-item.d.ts.map +1 -1
- package/ebay-fake-menu/menu.d.ts +9 -5
- package/ebay-fake-menu/menu.d.ts.map +1 -1
- package/ebay-fake-menu/menu.js +2 -2
- package/ebay-fake-menu-button/README.md +9 -4
- package/ebay-fake-menu-button/menu-button.d.ts +9 -2
- package/ebay-fake-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button.js +7 -5
- package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts +0 -1
- package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts.map +1 -1
- package/ebay-fullscreen-dialog/fullscreen-dialog.js +1 -1
- package/ebay-icon-button/README.md +9 -0
- package/ebay-icon-button/icon-button.d.ts +3 -1
- package/ebay-icon-button/icon-button.d.ts.map +1 -1
- package/ebay-icon-button/icon-button.js +8 -2
- package/ebay-lightbox-dialog/lightbox-dialog.d.ts +0 -1
- package/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +1 -1
- package/ebay-lightbox-dialog/lightbox-dialog.js +1 -1
- package/ebay-listbox-button/README.md +8 -1
- package/ebay-listbox-button/listbox-button.d.ts +11 -3
- package/ebay-listbox-button/listbox-button.d.ts.map +1 -1
- package/ebay-listbox-button/listbox-button.js +41 -16
- package/ebay-menu/README.md +5 -4
- package/ebay-menu/menu-item.d.ts +1 -1
- package/ebay-menu/menu-item.d.ts.map +1 -1
- package/ebay-menu/menu.d.ts +4 -4
- package/ebay-menu/menu.d.ts.map +1 -1
- package/ebay-menu/menu.js +85 -42
- package/ebay-menu/types.d.ts +21 -12
- package/ebay-menu/types.d.ts.map +1 -1
- package/ebay-menu-button/README.md +2 -2
- package/ebay-menu-button/menu-button.d.ts +3 -3
- package/ebay-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-menu-button/menu-button.js +18 -4
- package/ebay-page-notice/README.md +5 -1
- package/ebay-page-notice/index.d.ts +1 -1
- package/ebay-page-notice/index.d.ts.map +1 -1
- package/ebay-page-notice/page-notice.d.ts +5 -4
- package/ebay-page-notice/page-notice.d.ts.map +1 -1
- package/ebay-page-notice/page-notice.js +7 -8
- package/ebay-pagination/README.md +5 -5
- package/ebay-pagination/pagination-item.d.ts +8 -4
- package/ebay-pagination/pagination-item.d.ts.map +1 -1
- package/ebay-pagination/pagination-item.js +2 -1
- package/ebay-pagination/pagination.d.ts +8 -5
- package/ebay-pagination/pagination.d.ts.map +1 -1
- package/ebay-pagination/pagination.js +1 -1
- package/ebay-panel-dialog/panel-dialog.d.ts +0 -1
- package/ebay-panel-dialog/panel-dialog.d.ts.map +1 -1
- package/ebay-panel-dialog/panel-dialog.js +1 -1
- package/ebay-radio/README.md +7 -2
- package/ebay-radio/radio.d.ts +12 -3
- package/ebay-radio/radio.d.ts.map +1 -1
- package/ebay-radio/radio.js +7 -5
- package/ebay-section-notice/README.md +5 -0
- package/ebay-section-notice/index.d.ts +1 -1
- package/ebay-section-notice/index.d.ts.map +1 -1
- package/ebay-section-notice/section-notice.d.ts +6 -3
- package/ebay-section-notice/section-notice.d.ts.map +1 -1
- package/ebay-section-notice/section-notice.js +32 -4
- package/ebay-select/README.md +3 -1
- package/ebay-select/ebay-select.d.ts +7 -2
- package/ebay-select/ebay-select.d.ts.map +1 -1
- package/ebay-select/ebay-select.js +1 -1
- package/ebay-select/index.d.ts +1 -1
- package/ebay-select/index.d.ts.map +1 -1
- package/ebay-split-button/README.md +2 -2
- package/ebay-split-button/split-button.js +1 -1
- package/ebay-split-button/types.d.ts +2 -3
- package/ebay-split-button/types.d.ts.map +1 -1
- package/ebay-star-rating-select/README.md +8 -0
- package/ebay-star-rating-select/star-rating-select.d.ts +8 -4
- package/ebay-star-rating-select/star-rating-select.d.ts.map +1 -1
- package/ebay-star-rating-select/star-rating-select.js +8 -8
- package/ebay-switch/README.md +5 -1
- package/ebay-switch/ebay-switch.d.ts +7 -3
- package/ebay-switch/ebay-switch.d.ts.map +1 -1
- package/ebay-switch/ebay-switch.js +6 -3
- package/ebay-tabs/README.md +6 -10
- package/ebay-tabs/tab-panel.d.ts +0 -1
- package/ebay-tabs/tab-panel.d.ts.map +1 -1
- package/ebay-tabs/tab-panel.js +2 -2
- package/ebay-tabs/tab.d.ts +1 -7
- package/ebay-tabs/tab.d.ts.map +1 -1
- package/ebay-tabs/tab.js +2 -7
- package/ebay-tabs/tabs.d.ts +7 -1
- package/ebay-tabs/tabs.d.ts.map +1 -1
- package/ebay-tabs/tabs.js +12 -19
- package/ebay-textbox/README.md +16 -9
- package/ebay-textbox/postfix-icon.d.ts.map +1 -1
- package/ebay-textbox/postfix-icon.js +25 -3
- package/ebay-textbox/prefix-icon.d.ts.map +1 -1
- package/ebay-textbox/prefix-icon.js +24 -2
- package/ebay-textbox/textbox.d.ts +17 -7
- package/ebay-textbox/textbox.d.ts.map +1 -1
- package/ebay-textbox/textbox.js +47 -14
- package/ebay-textbox/types.d.ts +2 -2
- package/ebay-textbox/types.d.ts.map +1 -1
- package/ebay-video/README.md +7 -5
- package/ebay-video/controls.d.ts.map +1 -1
- package/ebay-video/controls.js +10 -4
- package/ebay-video/reportButton.d.ts +1 -5
- package/ebay-video/reportButton.d.ts.map +1 -1
- package/ebay-video/reportButton.js +3 -3
- package/ebay-video/video.d.ts +13 -10
- package/ebay-video/video.d.ts.map +1 -1
- package/ebay-video/video.js +4 -1
- package/package.json +1 -1
package/ebay-fake-menu/menu.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { ComponentProps, FC
|
|
2
|
-
|
|
3
|
-
declare type
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
|
+
import { EbayKeyboardEventHandler, EbayMouseEventHandler } from '../common/event-utils/types';
|
|
3
|
+
declare type SpanProps = Omit<ComponentProps<'div'>, 'onKeyDown' | 'onSelect'>;
|
|
4
4
|
declare type Props = SpanProps & {
|
|
5
5
|
itemMatchesUrl?: boolean;
|
|
6
|
-
onKeyDown?:
|
|
7
|
-
|
|
6
|
+
onKeyDown?: EbayKeyboardEventHandler<HTMLElement, {
|
|
7
|
+
index: number;
|
|
8
|
+
}>;
|
|
9
|
+
onSelect?: EbayMouseEventHandler<HTMLAnchorElement, {
|
|
10
|
+
index: number;
|
|
11
|
+
}>;
|
|
8
12
|
};
|
|
9
13
|
declare const EbayFakeMenu: FC<Props>;
|
|
10
14
|
export default EbayFakeMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/ebay-fake-menu/menu.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEV,cAAc,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/ebay-fake-menu/menu.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEV,cAAc,EAAE,EAAE,EACrB,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAE7F,aAAK,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,CAAA;AACtE,aAAK,KAAK,GAAG,SAAS,GAAG;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,wBAAwB,CAAC,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrE,QAAQ,CAAC,EAAE,qBAAqB,CAAC,iBAAiB,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAwC3B,CAAA;AAED,eAAe,YAAY,CAAA"}
|
package/ebay-fake-menu/menu.js
CHANGED
|
@@ -54,10 +54,10 @@ var EbayFakeMenu = function (_a) {
|
|
|
54
54
|
react_1.default.createElement("ul", { className: "fake-menu__items", tabIndex: -1 }, childrenArray.map(function (child, i) {
|
|
55
55
|
var _a = child.props, current = _a.current, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, itemRest = __rest(_a, ["current", "onClick"]);
|
|
56
56
|
return (react_1.default.createElement("li", { key: i }, react_1.cloneElement(child, __assign(__assign({}, itemRest), { 'aria-current': current ? defaultAriaCurrent : undefined, onClick: function (e) {
|
|
57
|
-
onSelect(e, i);
|
|
57
|
+
onSelect(e, { index: i });
|
|
58
58
|
onClick(e);
|
|
59
59
|
}, onKeyDown: function (e) {
|
|
60
|
-
onKeyDown(e, i);
|
|
60
|
+
onKeyDown(e, { index: i });
|
|
61
61
|
} }))));
|
|
62
62
|
}))));
|
|
63
63
|
};
|
|
@@ -50,10 +50,6 @@ Name | Type | Required | Description
|
|
|
50
50
|
`fixWidth` | Boolean | No | Constrain items container width to button width
|
|
51
51
|
`borderless` | Boolean | No | Whether button has borders
|
|
52
52
|
`size` | String | No | button size: `large` or `regular` (default)
|
|
53
|
-
`onExpand` | Function | No | Triggered on menu expand
|
|
54
|
-
`onCollapse` | Function | No | Triggered on menu collapse
|
|
55
|
-
`onChange` | Function | No | Not yet implemented
|
|
56
|
-
`onSelect` | Function | No | Not yet implemented
|
|
57
53
|
|
|
58
54
|
## EbayFakeMenuButtonItem Attributes
|
|
59
55
|
|
|
@@ -67,3 +63,12 @@ Name | Type | Required | Description
|
|
|
67
63
|
`badge-number` | Number | No | Not yet implemented
|
|
68
64
|
`badge-aria-label` | String | Yes (if `badge-number` provided) | Not yet implemented
|
|
69
65
|
`onClick` | Function | No | For a non-link menu item, with param `{ originalEvent }`
|
|
66
|
+
|
|
67
|
+
## Callbacks
|
|
68
|
+
| Name | Required | Description | Arguments |
|
|
69
|
+
|---------------|----------------------|--------------------------------------|------------------------------------|
|
|
70
|
+
`onKeyDown` | No | Triggered on key down | `(KeyboardEvent)` |
|
|
71
|
+
`onMouseDown` | No | Triggered on mouse down on menu item | `(MouseEvent, { index: number })` |
|
|
72
|
+
`onCollapse` | No | Triggered on menu collapse | `()` |
|
|
73
|
+
`onExpand` | No | Triggered on menu expand | `()` |
|
|
74
|
+
`onSelect` | No | Not yet implemented | `(ChangeEvent, { index: number })` |
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, FC } from 'react';
|
|
2
|
+
import { EbayKeyboardEventHandler, EbayMouseEventHandler } from '../common/event-utils/types';
|
|
2
3
|
import { EbayButtonProps } from '../ebay-button';
|
|
3
4
|
export declare type EbayFakeMenuButtonVariant = 'overflow' | 'form' | 'button';
|
|
4
5
|
export declare type EbayFakeMenuButtonProps = {
|
|
@@ -12,9 +13,15 @@ export declare type EbayFakeMenuButtonProps = {
|
|
|
12
13
|
onCollapse?: () => void;
|
|
13
14
|
onExpand?: () => void;
|
|
14
15
|
text?: string;
|
|
15
|
-
|
|
16
|
+
onSelect?: EbayMouseEventHandler<HTMLAnchorElement, {
|
|
17
|
+
index: number;
|
|
18
|
+
}>;
|
|
19
|
+
onKeyDown?: EbayKeyboardEventHandler<HTMLElement>;
|
|
20
|
+
onMouseDown?: EbayMouseEventHandler<HTMLAnchorElement, {
|
|
21
|
+
index: number;
|
|
22
|
+
}>;
|
|
16
23
|
};
|
|
17
|
-
declare type ButtonProps = Omit<EbayButtonProps, 'variant'> & Omit<ComponentProps<'button'>, '
|
|
24
|
+
declare type ButtonProps = Omit<EbayButtonProps, 'variant' | 'onKeyDown' | 'onMouseDown'> & Omit<ComponentProps<'button'>, 'onKeyDown' | 'onMouseDown' | 'onSelect'> & Omit<ComponentProps<'a'>, 'onKeyDown' | 'onMouseDown' | 'onSelect'>;
|
|
18
25
|
declare type Props = ButtonProps & EbayFakeMenuButtonProps;
|
|
19
26
|
declare const EbayMenuButton: FC<Props>;
|
|
20
27
|
export default EbayMenuButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-button.d.ts","sourceRoot":"","sources":["../../src/ebay-fake-menu-button/menu-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,cAAc,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"menu-button.d.ts","sourceRoot":"","sources":["../../src/ebay-fake-menu-button/menu-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,cAAc,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAA;AAK5F,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAE7F,OAAO,EAAc,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAM5D,oBAAY,yBAAyB,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEtE,oBAAY,uBAAuB,GAAG;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,qBAAqB,CAAC,iBAAiB,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvE,SAAS,CAAC,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAClD,WAAW,CAAC,EAAE,qBAAqB,CAAC,iBAAiB,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC7E,CAAA;AAED,aAAK,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC,GAC7E,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC,GACxE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC,CAAA;AACvE,aAAK,KAAK,GAAG,WAAW,GAAG,uBAAuB,CAAA;AAElD,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CA4G7B,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -55,9 +55,9 @@ var ebay_icon_button_1 = require("../ebay-icon-button");
|
|
|
55
55
|
var ebay_fake_menu_1 = require("../ebay-fake-menu");
|
|
56
56
|
var _1 = require(".");
|
|
57
57
|
var EbayMenuButton = function (_a) {
|
|
58
|
-
var a11yText = _a.a11yText, noToggleIcon = _a.noToggleIcon, fixWidth = _a.fixWidth, reverse = _a.reverse, variant = _a.variant, _b = _a.expanded, defaultExpanded = _b === void 0 ? false : _b, className = _a.className, _c = _a.onCollapse, onCollapse = _c === void 0 ? function () { } : _c, _d = _a.onExpand, onExpand = _d === void 0 ? function () { } : _d, _e = _a.text, text =
|
|
59
|
-
var
|
|
60
|
-
var
|
|
58
|
+
var a11yText = _a.a11yText, noToggleIcon = _a.noToggleIcon, fixWidth = _a.fixWidth, reverse = _a.reverse, variant = _a.variant, _b = _a.expanded, defaultExpanded = _b === void 0 ? false : _b, className = _a.className, _c = _a.onCollapse, onCollapse = _c === void 0 ? function () { } : _c, _d = _a.onExpand, onExpand = _d === void 0 ? function () { } : _d, _e = _a.onMouseDown, onMouseDown = _e === void 0 ? function () { } : _e, _f = _a.onSelect, onSelect = _f === void 0 ? function () { } : _f, _g = _a.text, text = _g === void 0 ? '' : _g, children = _a.children, rest = __rest(_a, ["a11yText", "noToggleIcon", "fixWidth", "reverse", "variant", "expanded", "className", "onCollapse", "onExpand", "onMouseDown", "onSelect", "text", "children"]);
|
|
59
|
+
var _h = react_1.useState(defaultExpanded), expanded = _h[0], setExpanded = _h[1];
|
|
60
|
+
var _j = react_1.useState(), menuId = _j[0], setMenuId = _j[1];
|
|
61
61
|
var ref = react_1.useRef();
|
|
62
62
|
var icon = component_utils_1.findComponent(children, ebay_icon_1.EbayIcon);
|
|
63
63
|
var label = component_utils_1.findComponent(children, _1.EbayFakeMenuButtonLabel) || (icon ? react_1.default.createElement("span", null, text) : text);
|
|
@@ -105,8 +105,10 @@ var EbayMenuButton = function (_a) {
|
|
|
105
105
|
icon,
|
|
106
106
|
label),
|
|
107
107
|
expanded &&
|
|
108
|
-
react_1.default.createElement(ebay_fake_menu_1.EbayFakeMenu, { className: menuClasses, id: menuId, tabIndex: -1, onKeyDown: handleMenuKeydown }, menuItems.map(function (item, i) {
|
|
109
|
-
return react_1.cloneElement(item, __assign(__assign({}, item.props), {
|
|
108
|
+
react_1.default.createElement(ebay_fake_menu_1.EbayFakeMenu, { className: menuClasses, id: menuId, tabIndex: -1, onKeyDown: handleMenuKeydown, onSelect: onSelect }, menuItems.map(function (item, i) {
|
|
109
|
+
return react_1.cloneElement(item, __assign(__assign({}, item.props), { onMouseDown: function (e) {
|
|
110
|
+
onMouseDown(e, { index: i });
|
|
111
|
+
}, className: classnames_1.default(item.props.className, 'fake-menu-button__item'), key: i, autoFocus: i === 0 }));
|
|
110
112
|
}))));
|
|
111
113
|
};
|
|
112
114
|
exports.default = EbayMenuButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fullscreen-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-fullscreen-dialog/fullscreen-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAI1E,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"fullscreen-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-fullscreen-dialog/fullscreen-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAI1E,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CAkBnC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -30,7 +30,7 @@ var classnames_1 = __importDefault(require("classnames"));
|
|
|
30
30
|
var ebay_dialog_base_1 = require("../ebay-dialog-base");
|
|
31
31
|
var classPrefix = 'fullscreen-dialog';
|
|
32
32
|
var EbayFullscreenDialog = function (_a) {
|
|
33
|
-
var open = _a.open, _b = _a.onClose, onClose = _b === void 0 ? function () { } : _b,
|
|
33
|
+
var open = _a.open, _b = _a.onClose, onClose = _b === void 0 ? function () { } : _b, className = _a.className, animated = _a.animated, rest = __rest(_a, ["open", "onClose", "className", "animated"]);
|
|
34
34
|
return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({}, rest, { classPrefix: classPrefix, buttonPosition: "left", onCloseBtnClick: onClose, transitionElement: "window", animated: animated, className: classnames_1.default(className, classPrefix + "--mask-fade-slow"), windowClass: classnames_1.default(classPrefix + "__window", classPrefix + "__window--slide"), open: open })));
|
|
35
35
|
};
|
|
36
36
|
exports.default = EbayFullscreenDialog;
|
|
@@ -39,3 +39,12 @@ Name | Type | Stateful | Required | Description | Data
|
|
|
39
39
|
`bageNumber` | Number | No | No | number on the badge
|
|
40
40
|
`bageAriaLabel` | String | No | No | aria label of the badge
|
|
41
41
|
`transparent` | Boolean | No | No | for transparent background
|
|
42
|
+
|
|
43
|
+
## Callbacks
|
|
44
|
+
|
|
45
|
+
| Name | Type | Required | Description | Data |
|
|
46
|
+
|------------|----------|----------|-----------------------------|-------------------|
|
|
47
|
+
| `onClick` | Function | No | triggered on click | `(MouseEvent)` |
|
|
48
|
+
| `onEscape` | Function | No | triggered on Esc key press | `(KeyboardEvent)` |
|
|
49
|
+
| `onFocus` | Function | No | triggered on keyboard focus | `(FocusEvent)` |
|
|
50
|
+
| `onBlur` | Function | No | triggered on focus lost | `(FocusEvent)` |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ComponentProps, RefObject } from 'react';
|
|
2
2
|
import { Icon } from '../ebay-icon';
|
|
3
|
+
import { EbayKeyboardEventHandler } from '../common/event-utils/types';
|
|
3
4
|
export declare type EbayIconButtonProps = {
|
|
4
5
|
href?: string;
|
|
5
6
|
icon: Icon;
|
|
@@ -7,10 +8,11 @@ export declare type EbayIconButtonProps = {
|
|
|
7
8
|
badgeAriaLabel?: string;
|
|
8
9
|
transparent?: boolean;
|
|
9
10
|
forwardedRef?: RefObject<HTMLAnchorElement & HTMLButtonElement>;
|
|
11
|
+
onEscape?: EbayKeyboardEventHandler;
|
|
10
12
|
};
|
|
11
13
|
declare type HTMLButtonProps = ComponentProps<'button'>;
|
|
12
14
|
declare type HTMLAnchorProps = ComponentProps<'a'>;
|
|
13
15
|
declare type Props = EbayIconButtonProps & HTMLButtonProps & HTMLAnchorProps;
|
|
14
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "form" | "slot" | "style" | "title" | "type" | "key" | "value" | "className" | "disabled" | "placeholder" | "children" | "dir" | "autoFocus" | "download" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "hrefLang" | "media" | "name" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "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" | "forwardedRef" | "transparent" | "ping" | "referrerPolicy" | "icon" | "badgeNumber" | "badgeAriaLabel"> & React.RefAttributes<React.FC<Props>>>;
|
|
16
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "form" | "slot" | "style" | "title" | "type" | "key" | "value" | "className" | "disabled" | "placeholder" | "children" | "dir" | "autoFocus" | "download" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "hrefLang" | "media" | "name" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "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" | "forwardedRef" | "transparent" | "onEscape" | "ping" | "referrerPolicy" | "icon" | "badgeNumber" | "badgeAriaLabel"> & React.RefAttributes<React.FC<Props>>>;
|
|
15
17
|
export default _default;
|
|
16
18
|
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/ebay-icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/ebay-icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3E,OAAO,EAAY,IAAI,EAAE,MAAM,cAAc,CAAA;AAG7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAEtE,oBAAY,mBAAmB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,wBAAwB,CAAC;CACvC,CAAA;AAED,aAAK,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAChD,aAAK,eAAe,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAC3C,aAAK,KAAK,GAAG,mBAAmB,GAAG,eAAe,GAAG,eAAe,CAAC;;AA4DrE,wBAA6C"}
|
|
@@ -32,7 +32,7 @@ var ebay_badge_1 = require("../ebay-badge");
|
|
|
32
32
|
var component_utils_1 = require("../common/component-utils");
|
|
33
33
|
var EbayIconButton = function (_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var href = _a.href, icon = _a.icon, badgeNumber = _a.badgeNumber, badgeAriaLabel = _a.badgeAriaLabel, transparent = _a.transparent, extraClasses = _a.className, forwardedRef = _a.forwardedRef, rest = __rest(_a, ["href", "icon", "badgeNumber", "badgeAriaLabel", "transparent", "className", "forwardedRef"]);
|
|
35
|
+
var href = _a.href, icon = _a.icon, badgeNumber = _a.badgeNumber, badgeAriaLabel = _a.badgeAriaLabel, transparent = _a.transparent, extraClasses = _a.className, forwardedRef = _a.forwardedRef, _c = _a.onEscape, onEscape = _c === void 0 ? function () { } : _c, _d = _a.onKeyDown, onKeyDown = _d === void 0 ? function () { } : _d, rest = __rest(_a, ["href", "icon", "badgeNumber", "badgeAriaLabel", "transparent", "className", "forwardedRef", "onEscape", "onKeyDown"]);
|
|
36
36
|
var classPrefix = href ? 'icon-link' : 'icon-btn';
|
|
37
37
|
var className = classnames_1.default(extraClasses, classPrefix, (_b = {},
|
|
38
38
|
_b[classPrefix + "--badged"] = badgeNumber,
|
|
@@ -41,6 +41,12 @@ var EbayIconButton = function (_a) {
|
|
|
41
41
|
var children = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
42
42
|
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: icon }),
|
|
43
43
|
badgeNumber && react_1.default.createElement(ebay_badge_1.EbayBadge, { type: "icon", number: badgeNumber, "aria-label": badgeAriaLabel })));
|
|
44
|
-
|
|
44
|
+
var keyDownHandler = function (e) {
|
|
45
|
+
if (e.key === 'Escape' || e.key === 'Esc') {
|
|
46
|
+
onEscape(e);
|
|
47
|
+
}
|
|
48
|
+
onKeyDown(e);
|
|
49
|
+
};
|
|
50
|
+
return href ? (react_1.default.createElement("a", __assign({ ref: forwardedRef, className: className, href: href, onKeyDown: keyDownHandler }, rest), children)) : (react_1.default.createElement("button", __assign({ ref: forwardedRef, type: "button", className: className, onKeyDown: keyDownHandler }, rest), children));
|
|
45
51
|
};
|
|
46
52
|
exports.default = component_utils_1.withForwardRef(EbayIconButton);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lightbox-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-lightbox-dialog/lightbox-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAI1E,aAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAA;AAE9B,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"lightbox-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-lightbox-dialog/lightbox-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAI1E,aAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAA;AAE9B,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,KAAK,CAkBjC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -31,7 +31,7 @@ var ebay_dialog_base_1 = require("../ebay-dialog-base");
|
|
|
31
31
|
var classPrefix = 'lightbox-dialog';
|
|
32
32
|
var EbayLightboxDialog = function (_a) {
|
|
33
33
|
var _b;
|
|
34
|
-
var open = _a.open, mode = _a.mode, _c = _a.onClose, onClose = _c === void 0 ? function () { } : _c,
|
|
34
|
+
var open = _a.open, mode = _a.mode, _c = _a.onClose, onClose = _c === void 0 ? function () { } : _c, rest = __rest(_a, ["open", "mode", "onClose"]);
|
|
35
35
|
return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({ buttonPosition: "right" }, rest, { classPrefix: classPrefix, onCloseBtnClick: onClose, onBackgroundClick: onClose, className: classnames_1.default(rest.className, classPrefix + "--mask-fade"), windowClass: classnames_1.default('lightbox-dialog__window--fade', (_b = {},
|
|
36
36
|
_b[classPrefix + "__window--mini"] = mode === 'mini',
|
|
37
37
|
_b)), open: open })));
|
|
@@ -28,7 +28,6 @@ yarn add @ebay/ui-core-react
|
|
|
28
28
|
Name | Type | Stateful | Description
|
|
29
29
|
--- | --- | --- | ---
|
|
30
30
|
`value` | String | No |
|
|
31
|
-
`onSelect` | `{ originalEvent, value, index }` | selected value and the index
|
|
32
31
|
`aria-disabled` | boolean | No | Set to true if the field is disabled
|
|
33
32
|
`aria-invalid` | boolean | No | Set to true if the field is invalid
|
|
34
33
|
`fluid` | boolean | No | To make the listbox fluid
|
|
@@ -36,3 +35,11 @@ Name | Type | Stateful | Description
|
|
|
36
35
|
`maxHeight` | string | No | example: 100px, 200px, 10rem
|
|
37
36
|
`prefixId` | string | No | The id of an external element to use as the a11y prefix label for the listbox button.
|
|
38
37
|
`floatingLabel` | string | No | Indicates that the listbox is a floating label type and renders it with a label
|
|
38
|
+
|
|
39
|
+
## Callbacks
|
|
40
|
+
|
|
41
|
+
| Name | Type | Required | Description | Data |
|
|
42
|
+
|------------|----------|----------|-----------------------|------------------------------------------------------------------------------|
|
|
43
|
+
| `onChange` | Function | No | triggered on change | `(ChangeEvent, { index: number, selected: string[] , wasClicked: boolean })` |
|
|
44
|
+
| `onCollapse` | Function | No | triggered on collapse | `()` |
|
|
45
|
+
| `onExpand` | Function | No | triggered on expand | `()` |
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { ComponentProps, FC
|
|
2
|
-
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
|
+
import { EbayChangeEventHandler } from '../common/event-utils/types';
|
|
3
|
+
export declare type ChangeEventProps = {
|
|
4
|
+
index: number;
|
|
5
|
+
selected: string[];
|
|
6
|
+
wasClicked: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare type EbayListboxButtonProps = Omit<ComponentProps<'input'>, 'onChange'> & {
|
|
3
9
|
borderless?: boolean;
|
|
4
10
|
fluid?: boolean;
|
|
5
11
|
maxHeight?: string;
|
|
6
12
|
prefixId?: string;
|
|
7
13
|
floatingLabel?: string;
|
|
8
|
-
|
|
14
|
+
onChange?: EbayChangeEventHandler<HTMLButtonElement, ChangeEventProps>;
|
|
15
|
+
onCollapse?: () => void;
|
|
16
|
+
onExpand?: () => void;
|
|
9
17
|
};
|
|
10
18
|
declare const ListboxButton: FC<EbayListboxButtonProps>;
|
|
11
19
|
export default ListboxButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listbox-button.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox-button/listbox-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEV,cAAc,EAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"listbox-button.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox-button/listbox-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEV,cAAc,EAAE,EAAE,EACrB,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,sBAAsB,EAAO,MAAM,6BAA6B,CAAA;AAIzE,oBAAY,gBAAgB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,oBAAY,sBAAsB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GAAG;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;IACvE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAA;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,sBAAsB,CA6Q7C,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -50,7 +50,7 @@ var ebay_icon_1 = require("../ebay-icon");
|
|
|
50
50
|
var component_utils_1 = require("../common/component-utils");
|
|
51
51
|
var listbox_button_option_1 = __importDefault(require("./listbox-button-option"));
|
|
52
52
|
var ListboxButton = function (_a) {
|
|
53
|
-
var children = _a.children, name = _a.name, _b = _a.
|
|
53
|
+
var children = _a.children, name = _a.name, value = _a.value, borderless = _a.borderless, fluid = _a.fluid, className = _a.className, maxHeight = _a.maxHeight, prefixId = _a.prefixId, floatingLabel = _a.floatingLabel, _b = _a.onChange, onChange = _b === void 0 ? function () { } : _b, _c = _a.onCollapse, onCollapse = _c === void 0 ? function () { } : _c, _d = _a.onExpand, onExpand = _d === void 0 ? function () { } : _d, rest = __rest(_a, ["children", "name", "value", "borderless", "fluid", "className", "maxHeight", "prefixId", "floatingLabel", "onChange", "onCollapse", "onExpand"]);
|
|
54
54
|
var optionsContainerRef = react_1.useRef(null);
|
|
55
55
|
var optionsParentContainerRef = react_1.useRef();
|
|
56
56
|
var optionsByIndexRef = react_1.useRef(new Map());
|
|
@@ -71,14 +71,15 @@ var ListboxButton = function (_a) {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
// Get the default Selected value and set it in the state
|
|
74
|
-
var
|
|
74
|
+
var _e = getInitialSelectedOption(), selectedOptionFromValue = _e.option, initialSelectedOptionIndex = _e.index;
|
|
75
75
|
// Update the selected option to the state
|
|
76
|
-
var
|
|
77
|
-
var
|
|
76
|
+
var _f = react_1.useState(selectedOptionFromValue), selectedOption = _f[0], setSelectedOption = _f[1];
|
|
77
|
+
var _g = react_1.useState(initialSelectedOptionIndex), selectedIndex = _g[0], setSelectedIndex = _g[1];
|
|
78
78
|
// Update the expanded status to the state
|
|
79
|
-
var
|
|
79
|
+
var _h = react_1.useState(), expanded = _h[0], setExpanded = _h[1];
|
|
80
80
|
// Additional flag to avoid multiple re-render when users tries to open and close
|
|
81
|
-
var
|
|
81
|
+
var _j = react_1.useState(false), optionsOpened = _j[0], setOptionsOpened = _j[1];
|
|
82
|
+
var _k = react_1.useState(), wasClicked = _k[0], setWasClicked = _k[1];
|
|
82
83
|
react_1.useEffect(function () {
|
|
83
84
|
setSelectedOption(selectedOptionFromValue);
|
|
84
85
|
}, [value]);
|
|
@@ -89,17 +90,34 @@ var ListboxButton = function (_a) {
|
|
|
89
90
|
var optionsContainerEle = optionsContainerRef.current;
|
|
90
91
|
optionsContainerEle.setAttribute("aria-activedescendant", getSelectedOption(index).id);
|
|
91
92
|
};
|
|
93
|
+
var collapseListbox = function () {
|
|
94
|
+
setExpanded(false);
|
|
95
|
+
onCollapse();
|
|
96
|
+
};
|
|
97
|
+
var expandListbox = function () {
|
|
98
|
+
setExpanded(true);
|
|
99
|
+
onExpand();
|
|
100
|
+
};
|
|
101
|
+
var toggleListbox = function () {
|
|
102
|
+
if (expanded) {
|
|
103
|
+
collapseListbox();
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
expandListbox();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
92
109
|
var onOptionsSelect = function (e, optionValue, index) {
|
|
93
110
|
// OnSelect set the selectedValue to the state and expanded to false to close the list box
|
|
94
111
|
setSelectedOption(childrenArray[index]);
|
|
95
112
|
setSelectedIndex(index);
|
|
96
|
-
|
|
113
|
+
collapseListbox();
|
|
97
114
|
setActiveDescendant(index);
|
|
98
115
|
buttonRef.current.focus();
|
|
99
|
-
|
|
116
|
+
onChange(e, { index: index, selected: [getSelectedValueByIndex(selectedIndex)], wasClicked: wasClicked });
|
|
117
|
+
setWasClicked(false);
|
|
100
118
|
};
|
|
101
119
|
var reset = function () {
|
|
102
|
-
|
|
120
|
+
collapseListbox();
|
|
103
121
|
setSelectedOption(childrenArray[initialSelectedOptionIndex]);
|
|
104
122
|
};
|
|
105
123
|
var makeOptionActive = function (index) {
|
|
@@ -140,14 +158,14 @@ var ListboxButton = function (_a) {
|
|
|
140
158
|
return setTimeout(function () { var _a; return (_a = optionsContainerRef === null || optionsContainerRef === void 0 ? void 0 : optionsContainerRef.current) === null || _a === void 0 ? void 0 : _a.focus(focusOptions); }, 0);
|
|
141
159
|
};
|
|
142
160
|
var onButtonClick = function () {
|
|
143
|
-
|
|
161
|
+
toggleListbox();
|
|
144
162
|
setOptionsOpened(true);
|
|
145
163
|
focusOptionsContainer({ preventScroll: true });
|
|
146
164
|
};
|
|
147
165
|
var onButtonKeyup = function (e) {
|
|
148
166
|
switch (e.key) {
|
|
149
167
|
case 'Escape':
|
|
150
|
-
|
|
168
|
+
collapseListbox();
|
|
151
169
|
break;
|
|
152
170
|
case 'Enter':
|
|
153
171
|
focusOptionsContainer();
|
|
@@ -180,10 +198,14 @@ var ListboxButton = function (_a) {
|
|
|
180
198
|
}
|
|
181
199
|
break;
|
|
182
200
|
case 'Enter':
|
|
183
|
-
|
|
201
|
+
collapseListbox();
|
|
184
202
|
setTimeout(function () { return setSelectedOption(childrenArray[selectedIndex]); });
|
|
185
203
|
setTimeout(function () { return buttonRef.current.focus(); }, 0);
|
|
186
|
-
|
|
204
|
+
onChange(e, {
|
|
205
|
+
index: selectedIndex,
|
|
206
|
+
selected: [getSelectedValueByIndex(selectedIndex)],
|
|
207
|
+
wasClicked: wasClicked
|
|
208
|
+
});
|
|
187
209
|
break;
|
|
188
210
|
case 'Esc':
|
|
189
211
|
case 'Escape':
|
|
@@ -212,7 +234,7 @@ var ListboxButton = function (_a) {
|
|
|
212
234
|
});
|
|
213
235
|
var expandBtnTextId = prefixId && 'expand-btn-text';
|
|
214
236
|
return (react_1.default.createElement("span", { className: wrapperClassName },
|
|
215
|
-
react_1.default.createElement("button", __assign({}, rest, { type: "button", className: buttonClassName, "aria-expanded": expanded, "aria-haspopup": "listbox", "aria-labelledby": prefixId && prefixId + " " + expandBtnTextId, onClick: onButtonClick,
|
|
237
|
+
react_1.default.createElement("button", __assign({}, rest, { type: "button", className: buttonClassName, "aria-expanded": !!expanded, "aria-haspopup": "listbox", "aria-labelledby": prefixId && prefixId + " " + expandBtnTextId, onClick: onButtonClick,
|
|
216
238
|
// https://stackoverflow.com/questions/17769005/onclick-and-onblur-ordering-issue
|
|
217
239
|
onMouseDown: function (e) { return e.preventDefault(); }, onKeyUp: onButtonKeyup, ref: buttonRef }),
|
|
218
240
|
react_1.default.createElement("span", { className: "btn__cell" },
|
|
@@ -224,8 +246,11 @@ var ListboxButton = function (_a) {
|
|
|
224
246
|
react_1.default.createElement("div", { className: "listbox-button__options", role: "listbox", tabIndex: expanded ? 0 : -1, ref: optionsContainerRef, onKeyDown: function (e) { return onOptionContainerKeydown(e); },
|
|
225
247
|
// adding onMouseDown preventDefault b/c on IE the onClick event is not being fired on each
|
|
226
248
|
// option https://stackoverflow.com/questions/17769005/onclick-and-onblur-ordering-issue
|
|
227
|
-
onMouseDown: function (e) {
|
|
228
|
-
|
|
249
|
+
onMouseDown: function (e) {
|
|
250
|
+
e.preventDefault();
|
|
251
|
+
setWasClicked(true);
|
|
252
|
+
}, onBlur: function () {
|
|
253
|
+
collapseListbox();
|
|
229
254
|
setTimeout(function () { return buttonRef.current.focus(); }, 0);
|
|
230
255
|
} }, updatelistBoxButtonOptions)),
|
|
231
256
|
react_1.default.createElement("select", { hidden: true, className: "listbox-button__native", name: name, value: selectedOption.props.value }, updatelistBoxButtonOptions.map(function (option, i) {
|
package/ebay-menu/README.md
CHANGED
|
@@ -26,15 +26,16 @@ Name | Type | Required | Description
|
|
|
26
26
|
--- | --- | --- | ---
|
|
27
27
|
`type` | String | No | Can be `radio`/`checkbox`
|
|
28
28
|
`checked` | Number | No | when used with `radio` type will check the item with the corresponding index
|
|
29
|
-
`
|
|
30
|
-
`
|
|
31
|
-
`onSelect` | Function | No |
|
|
29
|
+
`baseEl` | String | No | Container can be `span` (default) or `div`
|
|
30
|
+
`onKeydown` | Function | No | props: (e: event, { index: number, checked: number[], checkedValues?: string[] })
|
|
31
|
+
`onSelect` | Function | No | props: (e: event, { index: number }), triggered on item clicked (not for type `radio`/`checkbox`)
|
|
32
|
+
`onChange` | Function | No | props: (e: event, { index: number, checked: number[], checkedValues: string[]), triggered on item `checked` change, (for type `radio`/`checkbox` only)
|
|
32
33
|
|
|
33
34
|
## EbayMenuItem Props
|
|
34
35
|
|
|
35
36
|
Name | Type | Required | Description
|
|
36
37
|
--- | --- | --- | ---
|
|
37
|
-
`value` | String | No | for type `radio`, `checkbox`: the value to use with callbacks for `
|
|
38
|
+
`value` | String | No | for type `radio`, `checkbox`: the value to use with callbacks for `checkedValues[]`
|
|
38
39
|
`checked` | Boolean | No | for type `radio`, `checkbox`: whether or not the item is checked
|
|
39
40
|
`disabled` | Boolean | No | makes the menu item disabled
|
|
40
41
|
`badgeNumber` | Number | No | used as the number to be placed in the badge
|
package/ebay-menu/menu-item.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import { EbayMenuType } from './types';
|
|
3
|
-
export declare type MenuItemProps =
|
|
3
|
+
export declare type MenuItemProps = ComponentProps<'div'> & {
|
|
4
4
|
type?: EbayMenuType;
|
|
5
5
|
focused?: boolean;
|
|
6
6
|
tabIndex?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAA;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,oBAAY,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAA;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,oBAAY,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAChD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,aAAa,CAyCnC,CAAA;AAUD,eAAe,YAAY,CAAA"}
|
package/ebay-menu/menu.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EbayMenuProps } from './index';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<EbayMenuProps, "slot" | "style" | "title" | "type" | "key" | "className" | "placeholder" | "children" | "dir" | "checked" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "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" | "forwardedRef" | "baseEl" | "priority" | "autofocus"> & React.RefAttributes<React.FC<EbayMenuProps>>>;
|
|
4
|
+
export default _default;
|
|
5
5
|
//# sourceMappingURL=menu.d.ts.map
|
package/ebay-menu/menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAA;AAKd,OAAO,EAA+B,aAAa,EAAE,MAAM,SAAS,CAAA;;AA8JpE,wBAAuC"}
|