@ebay/ui-core-react 6.2.1 → 6.3.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/array.polyfill.flat.js +11 -13
- package/common/component-utils/forwardRef.js +4 -17
- package/common/component-utils/usePrevious.js +3 -3
- package/common/component-utils/utils.js +13 -26
- package/common/debounce.js +3 -7
- package/common/event-utils/index.js +8 -11
- package/common/event-utils/use-key-press.js +10 -12
- package/common/event-utils/use-roving-index.js +13 -24
- package/common/floating-label-utils/hooks.js +43 -53
- package/common/notice-utils/notice-content.js +5 -6
- package/common/notice-utils/notice-cta.js +5 -16
- package/common/notice-utils/notice-footer.js +5 -16
- package/common/notice-utils/notice-title.js +6 -17
- package/common/random-id.js +1 -1
- package/common/range.js +1 -4
- package/common/tooltip-utils/tooltip-close-button.js +1 -1
- package/common/tooltip-utils/tooltip-content.js +16 -28
- package/common/tooltip-utils/tooltip-footer.js +3 -6
- package/common/tooltip-utils/tooltip-host.js +5 -16
- package/common/tooltip-utils/tooltip.d.ts +1 -1
- package/common/tooltip-utils/tooltip.js +14 -26
- package/common/tooltip-utils/use-tooltip.js +8 -9
- package/ebay-alert-dialog/alert-dialog.js +11 -22
- package/ebay-badge/badge.js +6 -17
- package/ebay-breadcrumbs/breadcrumb-item.js +7 -18
- package/ebay-breadcrumbs/breadcrumbs.js +19 -30
- package/ebay-button/button-cell.js +5 -16
- package/ebay-button/button-expand.d.ts +4 -2
- package/ebay-button/button-expand.d.ts.map +1 -1
- package/ebay-button/button-expand.js +7 -10
- package/ebay-button/button-loading.js +5 -5
- package/ebay-button/button-text.js +3 -6
- package/ebay-button/button.d.ts +1 -1
- package/ebay-button/button.js +31 -43
- package/ebay-calendar/calendar.js +94 -111
- package/ebay-calendar/date-utils.js +9 -18
- package/ebay-carousel/carousel-control-button.js +9 -10
- package/ebay-carousel/carousel-item.d.ts +1 -1
- package/ebay-carousel/carousel-item.js +14 -25
- package/ebay-carousel/carousel-list.js +21 -22
- package/ebay-carousel/carousel.js +32 -44
- package/ebay-carousel/helpers.js +35 -47
- package/ebay-carousel/scroll-to-transition.js +15 -15
- package/ebay-checkbox/checkbox.js +21 -32
- package/ebay-confirm-dialog/confirm-dialog.js +11 -22
- package/ebay-cta-button/cta-button.d.ts +1 -1
- package/ebay-cta-button/cta-button.js +9 -20
- package/ebay-date-textbox/date-textbox.js +37 -53
- package/ebay-dialog-base/components/animation.d.ts +0 -1
- package/ebay-dialog-base/components/animation.d.ts.map +1 -1
- package/ebay-dialog-base/components/animation.js +25 -28
- package/ebay-dialog-base/components/dialog-actions.js +2 -5
- package/ebay-dialog-base/components/dialog-close-button.d.ts +5 -2
- package/ebay-dialog-base/components/dialog-close-button.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialog-close-button.js +2 -5
- package/ebay-dialog-base/components/dialog-footer.js +2 -5
- package/ebay-dialog-base/components/dialog-header.js +4 -15
- package/ebay-dialog-base/components/dialog-previous-button.js +6 -17
- package/ebay-dialog-base/components/dialogBase.js +40 -51
- package/ebay-dialog-base/dialog-base-with-state.js +22 -35
- package/ebay-drawer-dialog/components/drawer.js +27 -50
- package/ebay-eek/eek-rating.js +8 -10
- package/ebay-eek/eek-util.d.ts +1 -1
- package/ebay-eek/eek-util.d.ts.map +1 -1
- package/ebay-eek/eek-util.js +7 -6
- package/ebay-fake-menu/menu-item-separator.js +5 -16
- package/ebay-fake-menu/menu-item.js +15 -26
- package/ebay-fake-menu/menu.js +11 -22
- package/ebay-fake-menu-button/menu-button-item.js +2 -2
- package/ebay-fake-menu-button/menu-button-label.d.ts +4 -2
- package/ebay-fake-menu-button/menu-button-label.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button-label.js +2 -5
- package/ebay-fake-menu-button/menu-button-separator.js +5 -16
- package/ebay-fake-menu-button/menu-button.js +32 -45
- package/ebay-fake-tabs/fake-tabs.js +10 -23
- package/ebay-fake-tabs/tab.js +5 -16
- package/ebay-field/description.js +7 -19
- package/ebay-field/field.js +4 -5
- package/ebay-field/label.js +7 -18
- package/ebay-fullscreen-dialog/fullscreen-dialog.js +7 -18
- package/ebay-icon/icon.d.ts +1 -1
- package/ebay-icon/icon.js +17 -29
- package/ebay-icon-button/icon-button.d.ts +1 -1
- package/ebay-icon-button/icon-button.js +15 -27
- package/ebay-infotip/ebay-infotip-content.js +2 -5
- package/ebay-infotip/ebay-infotip-heading.js +5 -16
- package/ebay-infotip/ebay-infotip-host.d.ts +2 -2
- package/ebay-infotip/ebay-infotip-host.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip-host.js +10 -24
- package/ebay-infotip/ebay-infotip.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip.js +23 -34
- package/ebay-inline-notice/inline-notice.js +15 -27
- package/ebay-lightbox-dialog/lightbox-dialog.js +9 -21
- package/ebay-listbox-button/listbox-button-option.js +7 -18
- package/ebay-listbox-button/listbox-button.d.ts.map +1 -1
- package/ebay-listbox-button/listbox-button.js +79 -100
- package/ebay-menu/menu-item-separator.js +5 -16
- package/ebay-menu/menu-item.js +12 -23
- package/ebay-menu/menu.d.ts +1 -1
- package/ebay-menu/menu.js +37 -64
- package/ebay-menu-button/README.md +1 -1
- package/ebay-menu-button/menu-button-item.js +1 -1
- package/ebay-menu-button/menu-button-label.d.ts +4 -2
- package/ebay-menu-button/menu-button-label.d.ts.map +1 -1
- package/ebay-menu-button/menu-button-label.js +2 -5
- package/ebay-menu-button/menu-button-separator.js +5 -16
- package/ebay-menu-button/menu-button.js +46 -60
- package/ebay-notice-base/components/ebay-notice-content/notice-content.js +1 -1
- package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts +5 -2
- package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts.map +1 -1
- package/ebay-notice-base/components/ebay-notice-title/notice-title.js +2 -5
- package/ebay-page-notice/page-notice-cta.js +3 -6
- package/ebay-page-notice/page-notice-footer.js +3 -6
- package/ebay-page-notice/page-notice-title.js +5 -16
- package/ebay-page-notice/page-notice.js +16 -27
- package/ebay-pagination/helpers.js +21 -24
- package/ebay-pagination/pagination-item.d.ts +1 -1
- package/ebay-pagination/pagination-item.js +16 -27
- package/ebay-pagination/pagination.js +52 -81
- package/ebay-panel-dialog/panel-dialog.js +9 -21
- package/ebay-progress-bar/progress-bar.js +5 -16
- package/ebay-progress-spinner/progress-spinner.js +7 -18
- package/ebay-progress-stepper/ebay-progress-step.js +14 -25
- package/ebay-progress-stepper/ebay-progress-stepper.js +10 -21
- package/ebay-progress-stepper/ebay-progress-title.js +2 -5
- package/ebay-radio/radio.js +18 -29
- package/ebay-section-notice/section-notice-footer.js +3 -6
- package/ebay-section-notice/section-notice-title.js +5 -16
- package/ebay-section-notice/section-notice.js +24 -39
- package/ebay-section-title/cta.js +5 -16
- package/ebay-section-title/info.js +5 -16
- package/ebay-section-title/overflow.js +5 -16
- package/ebay-section-title/section-title.js +13 -24
- package/ebay-section-title/subtitle.js +5 -16
- package/ebay-section-title/title.js +5 -16
- package/ebay-select/ebay-select-option.js +4 -15
- package/ebay-select/ebay-select.d.ts +1 -1
- package/ebay-select/ebay-select.js +34 -45
- package/ebay-signal/signal.js +6 -17
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.js +5 -16
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.js +27 -38
- package/ebay-split-button/split-button.js +10 -21
- package/ebay-star-rating/star-rating.js +8 -19
- package/ebay-star-rating-select/star-rating-select.js +20 -31
- package/ebay-svg/svg.js +3 -3
- package/ebay-switch/ebay-switch.js +10 -21
- package/ebay-tabs/tab-panel.js +5 -16
- package/ebay-tabs/tab.js +5 -16
- package/ebay-tabs/tabs.js +26 -40
- package/ebay-textbox/postfix-icon.js +7 -18
- package/ebay-textbox/prefix-icon.js +5 -16
- package/ebay-textbox/textbox.d.ts +1 -1
- package/ebay-textbox/textbox.js +42 -53
- package/ebay-toast-dialog/components/toast.js +6 -17
- package/ebay-tooltip/ebay-tooltip-content.js +1 -1
- package/ebay-tooltip/ebay-tooltip-host.js +1 -1
- package/ebay-tooltip/ebay-tooltip.js +21 -32
- package/ebay-tourtip/ebay-tourtip-content.js +1 -1
- package/ebay-tourtip/ebay-tourtip-footer.js +4 -7
- package/ebay-tourtip/ebay-tourtip-heading.js +6 -17
- package/ebay-tourtip/ebay-tourtip-host.js +1 -1
- package/ebay-tourtip/ebay-tourtip.js +22 -33
- package/ebay-video/controls.d.ts.map +1 -1
- package/ebay-video/controls.js +23 -46
- package/ebay-video/reportButton.d.ts +7 -2
- package/ebay-video/reportButton.d.ts.map +1 -1
- package/ebay-video/reportButton.js +5 -8
- package/ebay-video/source.js +3 -14
- package/ebay-video/video.d.ts.map +1 -1
- package/ebay-video/video.js +54 -80
- package/package.json +23 -18
package/ebay-button/button.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
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
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -48,49 +37,48 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
48
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
38
|
};
|
|
50
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
primary:
|
|
62
|
-
secondary:
|
|
63
|
-
tertiary:
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
42
|
+
const component_utils_1 = require("../common/component-utils");
|
|
43
|
+
const ebay_icon_1 = require("../ebay-icon");
|
|
44
|
+
const button_loading_1 = __importDefault(require("./button-loading"));
|
|
45
|
+
const button_expand_1 = __importDefault(require("./button-expand"));
|
|
46
|
+
const EbayButton = (_a) => {
|
|
47
|
+
var { priority = 'secondary', variant = 'standard', size = 'regular', bodyState, split, transparent = false, fluid = false, disabled, partiallyDisabled, children, onKeyDown = () => { }, onEscape = () => { }, truncate = false, href, className: extraClasses, forwardedRef, borderless, fixedHeight } = _a, rest = __rest(_a, ["priority", "variant", "size", "bodyState", "split", "transparent", "fluid", "disabled", "partiallyDisabled", "children", "onKeyDown", "onEscape", "truncate", "href", "className", "forwardedRef", "borderless", "fixedHeight"]);
|
|
48
|
+
const classPrefix = href ? 'fake-btn' : 'btn';
|
|
49
|
+
const priorityStyles = {
|
|
50
|
+
primary: `${classPrefix}--primary`,
|
|
51
|
+
secondary: `${classPrefix}--secondary`,
|
|
52
|
+
tertiary: `${classPrefix}--tertiary`,
|
|
64
53
|
none: ''
|
|
65
54
|
};
|
|
66
|
-
|
|
67
|
-
large:
|
|
68
|
-
small:
|
|
55
|
+
const sizeStyles = {
|
|
56
|
+
large: `${classPrefix}--large`,
|
|
57
|
+
small: `${classPrefix}--small`,
|
|
69
58
|
regular: '',
|
|
70
59
|
default: ''
|
|
71
60
|
};
|
|
72
|
-
|
|
73
|
-
start:
|
|
74
|
-
end:
|
|
61
|
+
const splitStyles = {
|
|
62
|
+
start: `${classPrefix}--split-start`,
|
|
63
|
+
end: `${classPrefix}--split-end`
|
|
75
64
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
65
|
+
const isDestructive = variant === 'destructive';
|
|
66
|
+
const isForm = variant === 'form';
|
|
67
|
+
const isLoading = bodyState === 'loading';
|
|
68
|
+
const isExpand = bodyState === 'expand';
|
|
69
|
+
const isSlim = isForm && (isIconOnly(children) || (isExpand && !children));
|
|
70
|
+
const className = (0, classnames_1.default)(classPrefix, extraClasses, priorityStyles[isForm || borderless ? 'none' : priority], sizeStyles[size], splitStyles[split], isDestructive && `${classPrefix}--destructive`, isForm && `${classPrefix}--form`, isSlim && `${classPrefix}--slim`, transparent && `${classPrefix}--transparent`, fluid && `${classPrefix}--fluid`, truncate && `${classPrefix}--truncated`, borderless && `${classPrefix}--borderless`, fixedHeight && (sizeStyles[size] ? `${sizeStyles[size]}-${fixedHeight}` : `${classPrefix}--fixed-height`));
|
|
71
|
+
const keyDownHandler = (e) => {
|
|
83
72
|
onKeyDown(e);
|
|
84
73
|
if (e.key === 'Escape' || e.key === 'Esc') {
|
|
85
74
|
onEscape(e);
|
|
86
75
|
}
|
|
87
76
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return href ? (react_1.default.createElement("a",
|
|
77
|
+
const bodyContent = getBodyContent(children, { isLoading, isExpand });
|
|
78
|
+
const ariaLive = isLoading ? `polite` : null;
|
|
79
|
+
return href ? (react_1.default.createElement("a", Object.assign({ className: className, href: disabled ? undefined : href, ref: forwardedRef, onKeyDown: keyDownHandler, "aria-live": ariaLive }, rest), bodyContent)) : (react_1.default.createElement("button", Object.assign({ disabled: disabled, "aria-disabled": partiallyDisabled, "aria-live": ariaLive, className: className, ref: forwardedRef, onKeyDown: keyDownHandler }, rest), bodyContent));
|
|
91
80
|
};
|
|
92
|
-
function getBodyContent(children,
|
|
93
|
-
var isLoading = _a.isLoading, isExpand = _a.isExpand;
|
|
81
|
+
function getBodyContent(children, { isLoading, isExpand }) {
|
|
94
82
|
switch (true) {
|
|
95
83
|
case isLoading:
|
|
96
84
|
return react_1.default.createElement(button_loading_1.default, null);
|
|
@@ -101,7 +89,7 @@ function getBodyContent(children, _a) {
|
|
|
101
89
|
}
|
|
102
90
|
}
|
|
103
91
|
function isIconOnly(children) {
|
|
104
|
-
|
|
92
|
+
const childrenArray = react_1.Children.toArray(children);
|
|
105
93
|
return childrenArray.length === 1 && childrenArray[0].type === ebay_icon_1.EbayIcon;
|
|
106
94
|
}
|
|
107
95
|
exports.default = (0, component_utils_1.withForwardRef)(EbayButton);
|
|
@@ -22,69 +22,57 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
26
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
27
|
-
if (ar || !(i in from)) {
|
|
28
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
29
|
-
ar[i] = from[i];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
|
-
};
|
|
34
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
27
|
};
|
|
37
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
const react_1 = __importStar(require("react"));
|
|
30
|
+
const ebay_icon_button_1 = require("../ebay-icon-button");
|
|
31
|
+
const date_utils_1 = require("./date-utils");
|
|
32
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
33
|
+
const DAY_UPDATE_KEYMAP = {
|
|
43
34
|
ArrowRight: 1,
|
|
44
35
|
ArrowLeft: -1,
|
|
45
36
|
ArrowDown: 7,
|
|
46
37
|
ArrowUp: -7
|
|
47
38
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var date = new Date(Date.UTC(baseDate.getUTCFullYear(), baseDate.getUTCMonth() + monthOffset));
|
|
39
|
+
const EbayCalendar = ({ selected, numMonths = 1, navigable, interactive, range, locale, disableBefore, disableAfter, disableWeekdays, disableList, a11ySelectedText = 'selected', a11yRangeStartText = 'start of range', a11yInRangeText = 'in range', a11yRangeEndText = 'end of range', a11ySeparator = '-', a11yTodayText = 'today', a11yDisabledText = 'inactive', getA11yShowMonthText = (monthTitle) => `Show ${monthTitle}`, linkBuilder, onMonthChange = () => { }, onFocus = () => { }, onSelect = () => { } }) => {
|
|
40
|
+
const todayISO = (0, date_utils_1.toISO)(new Date());
|
|
41
|
+
const { firstDayOfWeek, weekdayLabels } = (0, date_utils_1.getWeekdayInfo)((0, date_utils_1.localeOverride)(locale));
|
|
42
|
+
const containerRef = (0, react_1.useRef)(null);
|
|
43
|
+
const [offset, setOffset] = (0, react_1.useState)(0);
|
|
44
|
+
const [focusISO, setFocusISO] = (0, react_1.useState)(null);
|
|
45
|
+
const [tabIndexISO, setTabIndexISO] = (0, react_1.useState)(todayISO);
|
|
46
|
+
const baseISO = (0, react_1.useRef)(todayISO);
|
|
47
|
+
const getMonthDate = (monthOffset) => {
|
|
48
|
+
const baseDate = (0, date_utils_1.fromISO)(baseISO.current);
|
|
49
|
+
const date = new Date(Date.UTC(baseDate.getUTCFullYear(), baseDate.getUTCMonth() + monthOffset));
|
|
60
50
|
return date;
|
|
61
51
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var getLastVisibleISO = function () {
|
|
66
|
-
var baseDate = (0, date_utils_1.fromISO)(baseISO.current);
|
|
52
|
+
const getFirstVisibleISO = () => (0, date_utils_1.toISO)(getMonthDate(offset));
|
|
53
|
+
const getLastVisibleISO = () => {
|
|
54
|
+
const baseDate = (0, date_utils_1.fromISO)(baseISO.current);
|
|
67
55
|
return (0, date_utils_1.toISO)(new Date(Date.UTC(baseDate.getUTCFullYear(), baseDate.getUTCMonth() + offset + (numMonths || 1), 0)));
|
|
68
56
|
};
|
|
69
|
-
(0, react_1.useEffect)(
|
|
57
|
+
(0, react_1.useEffect)(() => {
|
|
70
58
|
if (selected) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
59
|
+
const selectedISOs = Array.isArray(selected) ? selected : [selected];
|
|
60
|
+
const currFirstISO = getFirstVisibleISO();
|
|
61
|
+
const currLastISO = getLastVisibleISO();
|
|
62
|
+
const selectedTimeInView = selectedISOs.find((iso) => iso >= currFirstISO && iso <= currLastISO);
|
|
75
63
|
if (selectedTimeInView === undefined) {
|
|
76
64
|
baseISO.current = selectedISOs[0];
|
|
77
65
|
setOffset(0);
|
|
78
66
|
}
|
|
79
67
|
}
|
|
80
68
|
}, [selected]);
|
|
81
|
-
|
|
69
|
+
const calculateRangeDisplay = () => {
|
|
82
70
|
if (selected && range) {
|
|
83
|
-
|
|
84
|
-
|
|
71
|
+
let iso1;
|
|
72
|
+
let iso2;
|
|
85
73
|
if (Array.isArray(selected)) {
|
|
86
74
|
// Two elements are selected, we can use them as the ends of the range.
|
|
87
|
-
iso1
|
|
75
|
+
[iso1, iso2] = selected;
|
|
88
76
|
}
|
|
89
77
|
else if (focusISO) {
|
|
90
78
|
// One element is selected and the user is focused on a date,
|
|
@@ -93,7 +81,7 @@ var EbayCalendar = function (_a) {
|
|
|
93
81
|
iso2 = focusISO;
|
|
94
82
|
}
|
|
95
83
|
if (iso1 && iso2) {
|
|
96
|
-
|
|
84
|
+
const [start, end] = [iso1, iso2].sort();
|
|
97
85
|
return {
|
|
98
86
|
rangeStart: start,
|
|
99
87
|
rangeEnd: end
|
|
@@ -105,50 +93,48 @@ var EbayCalendar = function (_a) {
|
|
|
105
93
|
rangeEnd: null
|
|
106
94
|
};
|
|
107
95
|
};
|
|
108
|
-
|
|
109
|
-
|
|
96
|
+
const monthTitle = (date) => {
|
|
97
|
+
const formatter = new Intl.DateTimeFormat((0, date_utils_1.localeOverride)(locale), {
|
|
110
98
|
month: 'long',
|
|
111
99
|
year: 'numeric'
|
|
112
100
|
});
|
|
113
101
|
return formatter.format(new Date(date.getUTCFullYear(), date.getUTCMonth()));
|
|
114
102
|
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var iso = getFirstVisibleISO();
|
|
123
|
-
var lastVisible = getLastVisibleISO();
|
|
103
|
+
const isDayDisabled = (iso) => (disableBefore && iso < disableBefore) ||
|
|
104
|
+
(disableAfter && iso > disableAfter) ||
|
|
105
|
+
(disableWeekdays && disableWeekdays.includes((0, date_utils_1.fromISO)(iso).getUTCDay())) ||
|
|
106
|
+
(disableList && disableList.includes(iso));
|
|
107
|
+
const getFirstActiveISO = () => {
|
|
108
|
+
let iso = getFirstVisibleISO();
|
|
109
|
+
const lastVisible = getLastVisibleISO();
|
|
124
110
|
while (iso <= lastVisible && isDayDisabled(iso)) {
|
|
125
111
|
iso = (0, date_utils_1.offsetISO)(iso, 1);
|
|
126
112
|
}
|
|
127
113
|
return iso > lastVisible ? null : iso;
|
|
128
114
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
115
|
+
const getLastActiveISO = () => {
|
|
116
|
+
let iso = getLastVisibleISO();
|
|
117
|
+
const firstVisible = getFirstVisibleISO();
|
|
132
118
|
while (iso >= firstVisible && isDayDisabled(iso)) {
|
|
133
119
|
iso = (0, date_utils_1.offsetISO)(iso, -1);
|
|
134
120
|
}
|
|
135
121
|
return iso < firstVisible ? null : iso;
|
|
136
122
|
};
|
|
137
|
-
|
|
123
|
+
const setTabindexAndFocus = (iso) => {
|
|
138
124
|
setTabIndexISO(iso);
|
|
139
|
-
setTimeout(
|
|
125
|
+
setTimeout(() => {
|
|
140
126
|
var _a;
|
|
141
|
-
|
|
127
|
+
const elementToFocus = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(`[data-iso="${iso}"]`);
|
|
142
128
|
elementToFocus === null || elementToFocus === void 0 ? void 0 : elementToFocus.focus();
|
|
143
129
|
});
|
|
144
130
|
};
|
|
145
|
-
|
|
131
|
+
const prevMonth = (focus) => {
|
|
146
132
|
if (disableBefore && getFirstVisibleISO() <= disableBefore) {
|
|
147
133
|
return false;
|
|
148
134
|
}
|
|
149
|
-
setOffset(
|
|
150
|
-
|
|
151
|
-
|
|
135
|
+
setOffset((currentOffset) => currentOffset - 1);
|
|
136
|
+
let newTabIndexISO = tabIndexISO;
|
|
137
|
+
const lastActiveISO = getLastActiveISO();
|
|
152
138
|
if (lastActiveISO && lastActiveISO < tabIndexISO) {
|
|
153
139
|
newTabIndexISO = lastActiveISO;
|
|
154
140
|
setTabIndexISO(lastActiveISO);
|
|
@@ -161,13 +147,13 @@ var EbayCalendar = function (_a) {
|
|
|
161
147
|
});
|
|
162
148
|
return true;
|
|
163
149
|
};
|
|
164
|
-
|
|
150
|
+
const nextMonth = (focus) => {
|
|
165
151
|
if (disableAfter && getLastVisibleISO() >= disableAfter) {
|
|
166
152
|
return false;
|
|
167
153
|
}
|
|
168
|
-
setOffset(
|
|
169
|
-
|
|
170
|
-
|
|
154
|
+
setOffset((currentOffset) => currentOffset + 1);
|
|
155
|
+
let newTabIndexISO = tabIndexISO;
|
|
156
|
+
const firstActiveISO = getFirstActiveISO();
|
|
171
157
|
if (firstActiveISO && firstActiveISO > tabIndexISO) {
|
|
172
158
|
newTabIndexISO = firstActiveISO;
|
|
173
159
|
setTabIndexISO(firstActiveISO);
|
|
@@ -179,18 +165,18 @@ var EbayCalendar = function (_a) {
|
|
|
179
165
|
iso: (0, date_utils_1.toISO)(getMonthDate(offset + (numMonths || 1)))
|
|
180
166
|
});
|
|
181
167
|
};
|
|
182
|
-
|
|
183
|
-
|
|
168
|
+
const onKeyDown = (event) => {
|
|
169
|
+
const dayChange = DAY_UPDATE_KEYMAP[event.key];
|
|
184
170
|
if (dayChange) {
|
|
185
171
|
event.preventDefault();
|
|
186
|
-
|
|
187
|
-
|
|
172
|
+
let tries = 7;
|
|
173
|
+
let iso = tabIndexISO;
|
|
188
174
|
do {
|
|
189
175
|
iso = (0, date_utils_1.offsetISO)(iso, dayChange);
|
|
190
176
|
} while (tries-- > 0 && isDayDisabled(iso));
|
|
191
177
|
if (tries > 0) {
|
|
192
|
-
|
|
193
|
-
|
|
178
|
+
const firstVisible = getFirstVisibleISO();
|
|
179
|
+
const lastVisible = getLastVisibleISO();
|
|
194
180
|
if (iso < firstVisible) {
|
|
195
181
|
if (navigable) {
|
|
196
182
|
prevMonth();
|
|
@@ -228,19 +214,19 @@ var EbayCalendar = function (_a) {
|
|
|
228
214
|
}
|
|
229
215
|
}
|
|
230
216
|
};
|
|
231
|
-
|
|
232
|
-
onSelect(event, { iso
|
|
217
|
+
const onDaySelect = (event, iso) => {
|
|
218
|
+
onSelect(event, { iso });
|
|
233
219
|
};
|
|
234
|
-
|
|
220
|
+
const onDayFocus = (event, day) => {
|
|
235
221
|
setFocusISO(day);
|
|
236
222
|
setTabIndexISO(day);
|
|
237
223
|
onFocus(event, { iso: day });
|
|
238
224
|
};
|
|
239
|
-
|
|
225
|
+
const onDayBlur = () => {
|
|
240
226
|
setFocusISO(null);
|
|
241
227
|
};
|
|
242
|
-
|
|
243
|
-
|
|
228
|
+
const { rangeStart, rangeEnd } = calculateRangeDisplay();
|
|
229
|
+
const isDayInRange = (iso) => {
|
|
244
230
|
if (!rangeStart || !rangeEnd) {
|
|
245
231
|
return false;
|
|
246
232
|
}
|
|
@@ -249,28 +235,28 @@ var EbayCalendar = function (_a) {
|
|
|
249
235
|
}
|
|
250
236
|
return true;
|
|
251
237
|
};
|
|
252
|
-
|
|
238
|
+
const monthDates = [...Array(numMonths)].map((_, i) => getMonthDate(offset + i));
|
|
253
239
|
return (react_1.default.createElement("div", { className: "calendar", ref: containerRef },
|
|
254
240
|
navigable && (react_1.default.createElement("div", { className: "calendar__header" },
|
|
255
241
|
react_1.default.createElement("div", { className: "calendar__header--inner" },
|
|
256
|
-
react_1.default.createElement(ebay_icon_button_1.EbayIconButton, { transparent: true, size: "small", icon: "chevronLeft24", disabled: disableBefore && getFirstVisibleISO() <= disableBefore, "aria-label": getA11yShowMonthText(monthTitle(getMonthDate(offset - 1))), onClick:
|
|
257
|
-
monthDates.map(
|
|
258
|
-
react_1.default.createElement(ebay_icon_button_1.EbayIconButton, { transparent: true, size: "small", icon: "chevronRight24", disabled: disableAfter && getLastVisibleISO() >= disableAfter, "aria-label": getA11yShowMonthText(monthTitle(getMonthDate(offset + numMonths))), onClick:
|
|
259
|
-
react_1.default.createElement("div", { className: "calendar__body" }, monthDates.map(
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
242
|
+
react_1.default.createElement(ebay_icon_button_1.EbayIconButton, { transparent: true, size: "small", icon: "chevronLeft24", disabled: disableBefore && getFirstVisibleISO() <= disableBefore, "aria-label": getA11yShowMonthText(monthTitle(getMonthDate(offset - 1))), onClick: () => prevMonth() }),
|
|
243
|
+
monthDates.map((monthDate, i) => (react_1.default.createElement("h3", { key: i }, monthTitle(monthDate)))),
|
|
244
|
+
react_1.default.createElement(ebay_icon_button_1.EbayIconButton, { transparent: true, size: "small", icon: "chevronRight24", disabled: disableAfter && getLastVisibleISO() >= disableAfter, "aria-label": getA11yShowMonthText(monthTitle(getMonthDate(offset + numMonths))), onClick: () => nextMonth() })))),
|
|
245
|
+
react_1.default.createElement("div", { className: "calendar__body" }, monthDates.map((monthDate, i) => {
|
|
246
|
+
const numBlankDays = (monthDate.getUTCDay() - firstDayOfWeek + 7) % 7;
|
|
247
|
+
const year = monthDate.getUTCFullYear();
|
|
248
|
+
const month = monthDate.getUTCMonth();
|
|
249
|
+
const daysInMont = new Date(year, month + 1, 0).getDate();
|
|
250
|
+
const calendarRows = [...Array(Math.ceil((numBlankDays + daysInMont) / 7))];
|
|
265
251
|
return (react_1.default.createElement("div", { key: i, className: "calendar__month" },
|
|
266
252
|
react_1.default.createElement("table", { onKeyDown: onKeyDown },
|
|
267
253
|
react_1.default.createElement("caption", null, monthTitle(monthDate)),
|
|
268
254
|
react_1.default.createElement("thead", null,
|
|
269
|
-
react_1.default.createElement("tr", null, weekdayLabels.map(
|
|
270
|
-
react_1.default.createElement("tbody", null, calendarRows.map(
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
255
|
+
react_1.default.createElement("tr", null, weekdayLabels.map((dayName) => (react_1.default.createElement("th", { key: dayName, scope: "col" }, dayName))))),
|
|
256
|
+
react_1.default.createElement("tbody", null, calendarRows.map((_, row) => {
|
|
257
|
+
let startDate = row * 7 - numBlankDays + 1;
|
|
258
|
+
let endDate = startDate + 6;
|
|
259
|
+
const columns = [];
|
|
274
260
|
if (row === 0 && numBlankDays !== 0) {
|
|
275
261
|
startDate = 1;
|
|
276
262
|
columns.push(react_1.default.createElement("td", { key: "pre-column", colSpan: numBlankDays }));
|
|
@@ -278,17 +264,17 @@ var EbayCalendar = function (_a) {
|
|
|
278
264
|
else if (endDate > daysInMont) {
|
|
279
265
|
endDate = daysInMont;
|
|
280
266
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
? selected.some(
|
|
267
|
+
for (let day = startDate; day <= endDate; day++) {
|
|
268
|
+
const dayISO = (0, date_utils_1.toISO)(new Date(Date.UTC(year, month, day)));
|
|
269
|
+
const isToday = dayISO === todayISO;
|
|
270
|
+
const isSelected = Array.isArray(selected)
|
|
271
|
+
? selected.some((iso) => iso === dayISO)
|
|
286
272
|
: selected === dayISO;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
273
|
+
const isRangeStart = dayISO === rangeStart;
|
|
274
|
+
const isInRange = isDayInRange(dayISO);
|
|
275
|
+
const isRangeEnd = dayISO === rangeEnd;
|
|
276
|
+
const isDisabled = isDayDisabled(dayISO);
|
|
277
|
+
const a11yTexts = [
|
|
292
278
|
'',
|
|
293
279
|
isSelected && a11ySelectedText,
|
|
294
280
|
isRangeStart && a11yRangeStartText,
|
|
@@ -296,25 +282,22 @@ var EbayCalendar = function (_a) {
|
|
|
296
282
|
isRangeEnd && a11yRangeEndText,
|
|
297
283
|
!interactive && isToday && a11yTodayText,
|
|
298
284
|
!interactive && isDisabled && a11yDisabledText
|
|
299
|
-
].filter(
|
|
300
|
-
|
|
301
|
-
|
|
285
|
+
].filter((value) => typeof value !== 'boolean' || value !== false);
|
|
286
|
+
const link = !interactive && !isDisabled && linkBuilder && linkBuilder(dayISO);
|
|
287
|
+
const NonInteractiveTag = link ? 'a' : 'span';
|
|
302
288
|
columns.push(react_1.default.createElement("td", { key: day, className: (0, classnames_1.default)({
|
|
303
289
|
'calendar__cell--selected': isSelected,
|
|
304
290
|
'calendar__range--start': isRangeStart,
|
|
305
291
|
'calendar__range': isInRange,
|
|
306
292
|
'calendar__range--end': isRangeEnd
|
|
307
293
|
}) }, interactive ? (react_1.default.createElement("button", { disabled: isDisabled, "aria-label": a11yTexts.length > 1
|
|
308
|
-
?
|
|
309
|
-
: undefined, tabIndex: tabIndexISO !== dayISO ? -1 : undefined, "aria-current": isToday ? 'date' : undefined, "aria-pressed": isSelected ? 'true' : undefined, onClick:
|
|
294
|
+
? `${day}${a11yTexts.join(a11ySeparator)}`
|
|
295
|
+
: undefined, tabIndex: tabIndexISO !== dayISO ? -1 : undefined, "aria-current": isToday ? 'date' : undefined, "aria-pressed": isSelected ? 'true' : undefined, onClick: (event) => onDaySelect(event, dayISO), onFocus: (event) => onDayFocus(event, dayISO), onMouseOver: (event) => onDayFocus(event, dayISO), onMouseOut: (event) => onDayBlur(), onBlur: () => onDayBlur(), "data-iso": dayISO }, day)) : (react_1.default.createElement(NonInteractiveTag, { className: (0, classnames_1.default)({
|
|
310
296
|
'calendar__cell--disabled': isDisabled,
|
|
311
297
|
'calendar__cell--current': isToday
|
|
312
298
|
}), href: link },
|
|
313
299
|
day,
|
|
314
300
|
a11yTexts.length > 1 && (react_1.default.createElement("span", { className: "clipped" }, a11yTexts.join(a11ySeparator)))))));
|
|
315
|
-
};
|
|
316
|
-
for (var day = startDate; day <= endDate; day++) {
|
|
317
|
-
_loop_1(day);
|
|
318
301
|
}
|
|
319
302
|
return (react_1.default.createElement("tr", { key: row }, columns));
|
|
320
303
|
})))));
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.localeOverride = exports.offsetISO = exports.fromISO = exports.toISO = exports.dateArgToISO = exports.getWeekdayInfo = exports.findFirstDayOfWeek = void 0;
|
|
13
4
|
function findFirstDayOfWeek(localeName) {
|
|
14
5
|
// weekInfo only exists on some browsers, so we default to Sunday otherwise
|
|
15
6
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/weekInfo
|
|
16
|
-
|
|
7
|
+
const locale = new Intl.Locale(localeName);
|
|
17
8
|
if (locale.weekInfo) {
|
|
18
9
|
return locale.weekInfo.firstDay;
|
|
19
10
|
}
|
|
@@ -21,19 +12,19 @@ function findFirstDayOfWeek(localeName) {
|
|
|
21
12
|
}
|
|
22
13
|
exports.findFirstDayOfWeek = findFirstDayOfWeek;
|
|
23
14
|
function getWeekdayInfo(localeName) {
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
const firstDayOfWeek = findFirstDayOfWeek(localeName);
|
|
16
|
+
const weekdayLabelFormatter = new Intl.DateTimeFormat(localeName, {
|
|
26
17
|
weekday: 'short'
|
|
27
18
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
const weekday = new Date(2022, 9, 2 + firstDayOfWeek); // October 2, 2022 was a Sunday
|
|
20
|
+
const weekdayLabels = [...Array(7)].map(() => {
|
|
21
|
+
const dayLabel = weekdayLabelFormatter.format(weekday);
|
|
31
22
|
weekday.setDate(weekday.getDate() + 1);
|
|
32
23
|
return dayLabel;
|
|
33
24
|
});
|
|
34
25
|
return {
|
|
35
|
-
firstDayOfWeek
|
|
36
|
-
weekdayLabels
|
|
26
|
+
firstDayOfWeek,
|
|
27
|
+
weekdayLabels
|
|
37
28
|
};
|
|
38
29
|
}
|
|
39
30
|
exports.getWeekdayInfo = getWeekdayInfo;
|
|
@@ -56,7 +47,7 @@ function fromISO(iso) {
|
|
|
56
47
|
}
|
|
57
48
|
exports.fromISO = fromISO;
|
|
58
49
|
function offsetISO(iso, days) {
|
|
59
|
-
|
|
50
|
+
const date = fromISO(iso);
|
|
60
51
|
date.setUTCDate(date.getUTCDate() + days);
|
|
61
52
|
return toISO(date);
|
|
62
53
|
}
|
|
@@ -3,23 +3,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
8
|
+
const ebay_icon_1 = require("../ebay-icon");
|
|
9
|
+
const icon = {
|
|
10
10
|
prev: 'chevronLeft12',
|
|
11
11
|
next: 'chevronRight12'
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
const typeToDirection = {
|
|
14
14
|
prev: 'LEFT',
|
|
15
15
|
next: 'RIGHT'
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var handleOnClick = function (event) {
|
|
17
|
+
const CarouselControlButton = ({ type, label, hidden, disabled, onClick }) => {
|
|
18
|
+
const handleOnClick = (event) => {
|
|
20
19
|
onClick(event, { direction: typeToDirection[type] });
|
|
21
20
|
};
|
|
22
|
-
return (react_1.default.createElement("button", { className: (0, classnames_1.default)('carousel__control',
|
|
23
|
-
react_1.default.createElement(ebay_icon_1.EbayIcon, { className: (0, classnames_1.default)('icon',
|
|
21
|
+
return (react_1.default.createElement("button", { className: (0, classnames_1.default)('carousel__control', `carousel__control--${type}`), "aria-label": label, "aria-disabled": disabled, disabled: disabled, onClick: handleOnClick },
|
|
22
|
+
react_1.default.createElement(ebay_icon_1.EbayIcon, { className: (0, classnames_1.default)('icon', `icon--carousel-${type}`), focusable: false, name: icon[type], "aria-hidden": hidden })));
|
|
24
23
|
};
|
|
25
24
|
exports.default = CarouselControlButton;
|
|
@@ -7,6 +7,6 @@ type CarouselItemProps = ListProps & {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
forwardedRef?: RefObject<ListItemRef>;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<CarouselItemProps, "ref"> & React.RefAttributes<React.FC<CarouselItemProps>>>;
|
|
11
11
|
export default _default;
|
|
12
12
|
//# sourceMappingURL=carousel-item.d.ts.map
|
|
@@ -1,15 +1,4 @@
|
|
|
1
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
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -45,26 +34,26 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
45
34
|
return t;
|
|
46
35
|
};
|
|
47
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
(0, react_1.useImperativeHandle)(forwardedRef,
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const component_utils_1 = require("../common/component-utils");
|
|
39
|
+
const helpers_1 = require("./helpers");
|
|
40
|
+
const EbayCarouselItem = (_a) => {
|
|
41
|
+
var { slideWidth, offset, forwardedRef, children } = _a, rest = __rest(_a, ["slideWidth", "offset", "forwardedRef", "children"]);
|
|
42
|
+
const itemRef = (0, react_1.useRef)();
|
|
43
|
+
const [isVisible, setIsVisible] = (0, react_1.useState)(false);
|
|
44
|
+
(0, react_1.useImperativeHandle)(forwardedRef, () => {
|
|
56
45
|
if (!itemRef.current)
|
|
57
46
|
return;
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
const { left, right } = (0, helpers_1.getRelativeRects)(itemRef.current);
|
|
48
|
+
const fullyVisible = left === undefined ||
|
|
60
49
|
(left - offset >= -0.01 && right - offset <= slideWidth + 0.01);
|
|
61
50
|
setIsVisible(fullyVisible);
|
|
62
51
|
return {
|
|
63
|
-
left
|
|
64
|
-
right
|
|
65
|
-
fullyVisible
|
|
52
|
+
left,
|
|
53
|
+
right,
|
|
54
|
+
fullyVisible
|
|
66
55
|
};
|
|
67
56
|
}, [slideWidth, offset]);
|
|
68
|
-
return (react_1.default.createElement("li",
|
|
57
|
+
return (react_1.default.createElement("li", Object.assign({ ref: itemRef, "aria-hidden": !isVisible }, rest), children));
|
|
69
58
|
};
|
|
70
59
|
exports.default = (0, component_utils_1.withForwardRef)(EbayCarouselItem);
|