@ebay/ui-core-react 7.1.0-alpha.2 → 7.1.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.
Files changed (143) hide show
  1. package/common/tooltip-utils/index.d.ts +2 -2
  2. package/common/tooltip-utils/index.d.ts.map +1 -1
  3. package/ebay-button/README.md +4 -0
  4. package/ebay-button/index.d.ts +2 -2
  5. package/ebay-button/index.d.ts.map +1 -1
  6. package/ebay-carousel/index.d.ts +1 -1
  7. package/ebay-carousel/index.d.ts.map +1 -1
  8. package/ebay-date-textbox/index.d.ts +1 -1
  9. package/ebay-date-textbox/index.d.ts.map +1 -1
  10. package/ebay-dialog-base/index.d.ts +1 -1
  11. package/ebay-dialog-base/index.d.ts.map +1 -1
  12. package/ebay-eek/index.d.ts +1 -1
  13. package/ebay-eek/index.d.ts.map +1 -1
  14. package/ebay-fake-menu/index.d.ts +1 -1
  15. package/ebay-fake-menu/index.d.ts.map +1 -1
  16. package/ebay-fake-menu-button/index.d.ts +1 -1
  17. package/ebay-fake-menu-button/index.d.ts.map +1 -1
  18. package/ebay-field/index.d.ts +2 -2
  19. package/ebay-field/index.d.ts.map +1 -1
  20. package/ebay-icon/index.d.ts +2 -2
  21. package/ebay-icon/index.d.ts.map +1 -1
  22. package/ebay-icon/types.d.ts +1 -1
  23. package/ebay-icon/types.d.ts.map +1 -1
  24. package/ebay-icon-button/index.d.ts +1 -1
  25. package/ebay-icon-button/index.d.ts.map +1 -1
  26. package/ebay-infotip/index.d.ts +1 -1
  27. package/ebay-infotip/index.d.ts.map +1 -1
  28. package/ebay-inline-notice/index.d.ts +1 -1
  29. package/ebay-inline-notice/index.d.ts.map +1 -1
  30. package/ebay-menu/index.d.ts +2 -2
  31. package/ebay-menu/index.d.ts.map +1 -1
  32. package/ebay-menu-button/index.d.ts +1 -1
  33. package/ebay-menu-button/index.d.ts.map +1 -1
  34. package/ebay-page-notice/index.d.ts +1 -1
  35. package/ebay-page-notice/index.d.ts.map +1 -1
  36. package/ebay-pagination/index.d.ts +1 -1
  37. package/ebay-pagination/index.d.ts.map +1 -1
  38. package/ebay-progress-bar/index.d.ts +1 -1
  39. package/ebay-progress-bar/index.d.ts.map +1 -1
  40. package/ebay-progress-stepper/index.d.ts +1 -1
  41. package/ebay-progress-stepper/index.d.ts.map +1 -1
  42. package/ebay-section-notice/index.d.ts +1 -1
  43. package/ebay-section-notice/index.d.ts.map +1 -1
  44. package/ebay-section-notice/section-notice.d.ts.map +1 -1
  45. package/ebay-section-notice.js +1 -1
  46. package/ebay-select/index.d.ts +1 -1
  47. package/ebay-select/index.d.ts.map +1 -1
  48. package/ebay-signal/index.d.ts +1 -1
  49. package/ebay-signal/index.d.ts.map +1 -1
  50. package/ebay-snackbar-dialog/index.d.ts +1 -1
  51. package/ebay-snackbar-dialog/index.d.ts.map +1 -1
  52. package/ebay-split-button/index.d.ts +1 -1
  53. package/ebay-split-button/index.d.ts.map +1 -1
  54. package/ebay-star-rating/index.d.ts +1 -2
  55. package/ebay-star-rating/index.d.ts.map +1 -1
  56. package/ebay-star-rating/star-rating.d.ts +1 -1
  57. package/ebay-star-rating/star-rating.d.ts.map +1 -1
  58. package/ebay-star-rating-select/index.d.ts +1 -2
  59. package/ebay-star-rating-select/index.d.ts.map +1 -1
  60. package/ebay-svg/svg.d.ts.map +1 -1
  61. package/ebay-svg.js +1 -1
  62. package/ebay-textbox/index.d.ts +2 -2
  63. package/ebay-textbox/index.d.ts.map +1 -1
  64. package/ebay-tooltip/index.d.ts +1 -1
  65. package/ebay-tooltip/index.d.ts.map +1 -1
  66. package/ebay-tourtip/index.d.ts +1 -1
  67. package/ebay-tourtip/index.d.ts.map +1 -1
  68. package/ebay-video/index.d.ts +2 -2
  69. package/ebay-video/index.d.ts.map +1 -1
  70. package/package.json +2 -3
  71. package/array.polyfill.flat-Bj5UhY_-.mjs +0 -10
  72. package/badge-BX5HuO-3.mjs +0 -9
  73. package/button-B06HeRsZ.mjs +0 -63
  74. package/calendar-Dq0eM9VC.mjs +0 -216
  75. package/debounce-u81vJ6wg.mjs +0 -9
  76. package/dialog-previous-button-gmkm4c8J.mjs +0 -146
  77. package/drawer-Dcg135Bb.mjs +0 -40
  78. package/ebay-alert-dialog.mjs +0 -22
  79. package/ebay-badge.mjs +0 -4
  80. package/ebay-breadcrumbs.mjs +0 -39
  81. package/ebay-button.mjs +0 -5
  82. package/ebay-calendar.mjs +0 -4
  83. package/ebay-carousel.mjs +0 -229
  84. package/ebay-checkbox.mjs +0 -43
  85. package/ebay-confirm-dialog.mjs +0 -24
  86. package/ebay-cta-button.mjs +0 -20
  87. package/ebay-date-textbox.mjs +0 -74
  88. package/ebay-dialog-base.mjs +0 -9
  89. package/ebay-drawer-dialog.mjs +0 -4
  90. package/ebay-eek.mjs +0 -42
  91. package/ebay-fake-menu-button.mjs +0 -7
  92. package/ebay-fake-menu.mjs +0 -9
  93. package/ebay-fake-tabs.mjs +0 -27
  94. package/ebay-field.mjs +0 -19
  95. package/ebay-fullscreen-dialog.mjs +0 -9
  96. package/ebay-icon-button.mjs +0 -4
  97. package/ebay-icon.mjs +0 -4
  98. package/ebay-infotip.mjs +0 -59
  99. package/ebay-inline-notice.mjs +0 -31
  100. package/ebay-lightbox-dialog.mjs +0 -11
  101. package/ebay-listbox-button.mjs +0 -170
  102. package/ebay-menu-button.mjs +0 -82
  103. package/ebay-menu.mjs +0 -9
  104. package/ebay-notice-base.mjs +0 -7
  105. package/ebay-page-notice.mjs +0 -42
  106. package/ebay-pagination.mjs +0 -159
  107. package/ebay-panel-dialog.mjs +0 -11
  108. package/ebay-progress-bar.mjs +0 -6
  109. package/ebay-progress-spinner.mjs +0 -4
  110. package/ebay-progress-stepper.mjs +0 -63
  111. package/ebay-radio.mjs +0 -42
  112. package/ebay-section-notice.mjs +0 -46
  113. package/ebay-section-title.mjs +0 -24
  114. package/ebay-select.mjs +0 -69
  115. package/ebay-signal.mjs +0 -9
  116. package/ebay-snackbar-dialog.mjs +0 -46
  117. package/ebay-split-button.mjs +0 -20
  118. package/ebay-star-rating-select.mjs +0 -36
  119. package/ebay-star-rating.mjs +0 -8
  120. package/ebay-svg.mjs +0 -4753
  121. package/ebay-switch.mjs +0 -25
  122. package/ebay-tabs.mjs +0 -66
  123. package/ebay-textbox.mjs +0 -8
  124. package/ebay-toast-dialog.mjs +0 -9
  125. package/ebay-tooltip.mjs +0 -39
  126. package/ebay-tourtip.mjs +0 -43
  127. package/ebay-video.mjs +0 -173
  128. package/hooks-r29zhPsY.mjs +0 -63
  129. package/icon-B_a65KUD.mjs +0 -42
  130. package/icon-button-Dy8rjzH7.mjs +0 -24
  131. package/index-B5oC9Rl1.mjs +0 -22
  132. package/label-DgOo6Mql.mjs +0 -19
  133. package/menu-CR1Dxl2m.mjs +0 -154
  134. package/menu-button-label-vVnRKJRU.mjs +0 -68
  135. package/menu-item-jlKZ3uT4.mjs +0 -67
  136. package/notice-content-BVZMfcMH.mjs +0 -4
  137. package/notice-content-CdXVjKzD.mjs +0 -9
  138. package/notice-footer-BFa2IeY9.mjs +0 -10
  139. package/progress-spinner-BugUcF5c.mjs +0 -19
  140. package/range-DC7seOVT.mjs +0 -4
  141. package/textbox-BxYjEAZK.mjs +0 -100
  142. package/use-tooltip-Bibsm2rU.mjs +0 -158
  143. package/utils-BipBqkOS.mjs +0 -21
package/ebay-switch.mjs DELETED
@@ -1,25 +0,0 @@
1
- import a, { useState as C, useEffect as w } from "react";
2
- import E from "classnames";
3
- const l = (t) => typeof t < "u", b = ({ id: t, value: r, name: i, className: h, checked: e, defaultChecked: m = !1, onChange: u = () => {
4
- }, ...p }) => {
5
- const [s, c] = C(m);
6
- w(() => {
7
- c(!!e);
8
- }, [e]);
9
- const f = (n) => {
10
- const { value: d = "", checked: o = !1 } = n.target || {};
11
- u(n, {
12
- value: d,
13
- checked: o
14
- }), c(o);
15
- };
16
- return a.createElement(
17
- "span",
18
- { className: "switch" },
19
- a.createElement("input", { ...p, className: E("switch__control", h), id: t, role: "switch", type: "checkbox", value: r, "aria-checked": l(e) ? e : s, checked: l(e) ? e : s, name: i, onChange: f }),
20
- a.createElement("span", { className: "switch__button" })
21
- );
22
- };
23
- export {
24
- b as EbaySwitch
25
- };
package/ebay-tabs.mjs DELETED
@@ -1,66 +0,0 @@
1
- import c, { useState as x, useEffect as L, cloneElement as g } from "react";
2
- import f from "classnames";
3
- import { h as P, a as k } from "./index-B5oC9Rl1.mjs";
4
- import { b as _ } from "./utils-BipBqkOS.mjs";
5
- const N = ({ children: n, index: l, parentId: t, selected: r, focused: o, className: d, refCallback: u, ...m }) => c.createElement(
6
- "div",
7
- { ...m, ref: u, "aria-controls": `${t || "default"}-tabpanel-${l}`, "aria-selected": r, className: f(d, "tabs__item"), id: `${t || "default"}-tab-${l}`, role: "tab", tabIndex: o ? 0 : -1 },
8
- c.createElement("span", null, n)
9
- ), A = ({ children: n, index: l, parentId: t, selected: r, className: o, ...d }) => c.createElement(
10
- "div",
11
- { ...d, "aria-labelledby": `default-tab-${l}`, className: f(o, "tabs__panel"), id: `${t || "default"}-tabpanel-${l}`, role: "tabpanel", hidden: !r },
12
- c.createElement("div", { className: "tabs__cell" }, n)
13
- ), H = ({ id: n, className: l, index: t = 0, size: r = "medium", activation: o = "auto", onSelect: d = () => {
14
- }, onTabSelect: u = () => {
15
- }, children: m }) => {
16
- const y = [], [p, T] = x(t), [i, I] = x(t), b = (e) => {
17
- d({ selectedIndex: e }), u(e), T(e);
18
- }, $ = (e, a) => {
19
- P(e, () => {
20
- e.preventDefault(), o === "manual" && b(a);
21
- }), k(e, () => {
22
- var h;
23
- e.preventDefault();
24
- const s = _(m, N).length, K = ["Left", "ArrowLeft"].includes(e.key) ? -1 : 1, E = ((i === void 0 ? p : i) + s + K) % s;
25
- I(E), (h = y[E]) == null || h.focus(), o !== "manual" && b(E);
26
- });
27
- };
28
- L(() => {
29
- b(t);
30
- }, [t]);
31
- const w = r === "large", v = _(m, N).map((e, a) => g(e, {
32
- ...e.props,
33
- refCallback: (s) => {
34
- y[a] = s;
35
- },
36
- index: a,
37
- parentId: n,
38
- selected: p === a,
39
- focused: i === a,
40
- onClick: () => {
41
- b(a), I(a);
42
- },
43
- onKeyDown: (s) => {
44
- $(s, a);
45
- }
46
- })), D = _(m, A).map((e, a) => {
47
- const s = {
48
- index: a,
49
- parentId: n,
50
- selected: p === a,
51
- children: e.props.children
52
- };
53
- return g(e, s);
54
- });
55
- return c.createElement(
56
- "div",
57
- { id: n, className: f(l, "tabs") },
58
- c.createElement("div", { className: f("tabs__items", { "tabs__items--large": w }), role: "tablist" }, v),
59
- c.createElement("div", { className: "tabs__content" }, D)
60
- );
61
- };
62
- export {
63
- N as EbayTab,
64
- A as EbayTabPanel,
65
- H as EbayTabs
66
- };
package/ebay-textbox.mjs DELETED
@@ -1,8 +0,0 @@
1
- import { E as b, c as o, d as e, a as t, b as s } from "./textbox-BxYjEAZK.mjs";
2
- export {
3
- b as EbayTextbox,
4
- o as EbayTextboxPostfixIcon,
5
- e as EbayTextboxPostfixText,
6
- t as EbayTextboxPrefixIcon,
7
- s as EbayTextboxPrefixText
8
- };
@@ -1,9 +0,0 @@
1
- import s from "react";
2
- import i from "classnames";
3
- import { D as e } from "./dialog-previous-button-gmkm4c8J.mjs";
4
- import "./icon-button-Dy8rjzH7.mjs";
5
- const c = ({ className: t, onClose: o = () => {
6
- }, ...a }) => s.createElement(e, { ...a, isModal: !1, baseEl: "aside", classPrefix: "toast-dialog", buttonPosition: "right", transitionElement: "root", className: i(t, "toast-dialog--transition"), onCloseBtnClick: o });
7
- export {
8
- c as EbayToast
9
- };
package/ebay-tooltip.mjs DELETED
@@ -1,39 +0,0 @@
1
- import e, { useRef as R } from "react";
2
- import { f as p } from "./utils-BipBqkOS.mjs";
3
- import { u as B, T as F, a as H, b as L } from "./use-tooltip-Bibsm2rU.mjs";
4
- import "classnames";
5
- import "./icon-B_a65KUD.mjs";
6
- import "./array.polyfill.flat-Bj5UhY_-.mjs";
7
- const P = () => null, v = () => null, D = ({ className: c, pointer: u, overlayStyle: m, noHover: n, onFocus: T = () => {
8
- }, onBlur: f = () => {
9
- }, onMouseEnter: E = () => {
10
- }, onMouseLeave: h = () => {
11
- }, onExpand: y, onCollapse: d, children: s, ...b }) => {
12
- const { isExpanded: w, expandTooltip: l, collapseTooltip: r } = B({ onCollapse: d, onExpand: y }), t = R(), C = (o) => {
13
- E(o), n || (clearTimeout(t.current), l());
14
- }, M = (o) => {
15
- h(o), n || (clearTimeout(t.current), t.current = setTimeout(() => {
16
- r();
17
- }, 300));
18
- }, O = (o) => {
19
- T(o), l();
20
- }, x = (o) => {
21
- f(o), r();
22
- }, a = p(s, P), i = p(s, v);
23
- if (!i)
24
- throw new Error("EbayTooltip: Please use a EbayTooltipHost that defines the host of the tooltip");
25
- if (!a)
26
- throw new Error("EbayTooltip: Please use a EbayTooltipContent that defines the content of the tooltip");
27
- return e.createElement(
28
- F,
29
- { ...b, className: c, type: "tooltip", isExpanded: w, onFocus: O, onBlur: x, onMouseEnter: C, onMouseLeave: M },
30
- e.createElement(H, { ...i.props }),
31
- e.createElement(L, { ...a.props, type: "tooltip", style: m, pointer: u })
32
- );
33
- };
34
- export {
35
- D as EbayTooltip,
36
- P as EbayTooltipContent,
37
- v as EbayTooltipHost,
38
- F as Tooltip
39
- };
package/ebay-tourtip.mjs DELETED
@@ -1,43 +0,0 @@
1
- import t, { useRef as m } from "react";
2
- import { f as n } from "./utils-BipBqkOS.mjs";
3
- import { u as w, T as H, a as R, b as x, c as _ } from "./use-tooltip-Bibsm2rU.mjs";
4
- import F from "classnames";
5
- import "./icon-B_a65KUD.mjs";
6
- import "./array.polyfill.flat-Bj5UhY_-.mjs";
7
- const N = () => null, P = () => null, v = ({ index: o, children: r }) => t.createElement(
8
- t.Fragment,
9
- null,
10
- o !== void 0 && t.createElement("span", { className: "tourtip__index" }, o),
11
- r
12
- ), B = ({ as: o, children: r, className: a, ...e }) => {
13
- const s = o || "h2";
14
- return t.createElement(s, { ...e, className: F("tourtip__heading", a) }, r);
15
- }, G = ({ a11yCloseText: o, "aria-label": r, className: a, children: e, onCollapse: s, onExpand: E, overlayStyle: f, pointer: T, ...d }) => {
16
- const i = m(), { isExpanded: p, collapseTooltip: h } = w({ onExpand: E, onCollapse: s, initialExpanded: !0, hostRef: i }), y = m(), l = n(e, N);
17
- if (!l)
18
- throw new Error("EbayTourtip: Please use a EbayTourtipContent that defines the content of the tourtip");
19
- const { children: b, contentProps: C } = l.props, c = n(e, P);
20
- if (!c)
21
- throw new Error("EbayTourtip: Please use a EbayTourtipHost that defines the host of the tourtip");
22
- const g = n(e, B), u = n(e, v);
23
- return t.createElement(
24
- H,
25
- { ...d, className: a, type: "tourtip", isExpanded: p, ref: y },
26
- t.createElement(R, { ...c.props, forwardedRef: i, "aria-label": r, "aria-expanded": p }),
27
- t.createElement(
28
- x,
29
- { ...C, a11yCloseText: o, onClose: h, pointer: T, showCloseButton: !0, style: f, type: "tourtip" },
30
- g,
31
- b,
32
- u && t.createElement(_, { type: "tourtip" }, u)
33
- )
34
- );
35
- };
36
- export {
37
- G as EbayTourtip,
38
- N as EbayTourtipContent,
39
- v as EbayTourtipFooter,
40
- B as EbayTourtipHeading,
41
- P as EbayTourtipHost,
42
- H as Tooltip
43
- };
package/ebay-video.mjs DELETED
@@ -1,173 +0,0 @@
1
- var Z = Object.defineProperty;
2
- var ee = (t, r, n) => r in t ? Z(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
- var A = (t, r, n) => ee(t, typeof r != "symbol" ? r + "" : r, n);
4
- import o, { useState as f, useRef as y, useEffect as V } from "react";
5
- import R from "classnames";
6
- import E, { ui as te } from "shaka-player/dist/shaka-player.ui";
7
- import { b as re } from "./utils-BipBqkOS.mjs";
8
- import { E as P } from "./icon-B_a65KUD.mjs";
9
- import { E as ne } from "./progress-spinner-BugUcF5c.mjs";
10
- import { createRoot as oe } from "react-dom/client";
11
- const ae = ({ ...t }) => o.createElement("source", { ...t }), le = 7e3, se = 11, L = {
12
- addBigPlayButton: !1,
13
- addSeekBar: !0,
14
- controlPanelElements: [
15
- "play_pause",
16
- "time_and_duration",
17
- "spacer",
18
- "mute",
19
- "report",
20
- "captions",
21
- // 'quality', // uncomment this to show a gear icon for video quality control
22
- "fullscreen"
23
- ]
24
- }, ce = ({ callback: t, children: r }) => o.createElement(
25
- "button",
26
- { className: "video-player__report-button", ref: t },
27
- o.createElement(P, { name: "flag24" }),
28
- r
29
- );
30
- function ie(t = () => {
31
- }) {
32
- const r = class extends te.Element {
33
- constructor(n, i, v) {
34
- super(n, i);
35
- const u = document.createElement("div"), h = () => {
36
- const d = u.firstChild;
37
- n.appendChild(d), u.remove(), this.eventManager.listen(d, "click", t);
38
- };
39
- oe(u).render(o.createElement(ce, { callback: h }, v));
40
- }
41
- };
42
- return r.Factory = class {
43
- constructor(n) {
44
- A(this, "reportText");
45
- this.reportText = n;
46
- }
47
- create(n, i) {
48
- return new r(n, i, this.reportText);
49
- }
50
- }, { Report: r };
51
- }
52
- const be = ({ width: t, height: r, thumbnail: n, action: i, muted: v, playView: u = "inline", a11yLoadText: h, a11yPlayText: d, reportText: k, volumeSlider: F, volume: I = 1, hideReportButton: q, errorText: z, onVolumeChange: M = () => {
53
- }, onLoadError: $ = () => {
54
- }, onPlay: D = () => {
55
- }, onReport: H = () => {
56
- }, children: W, ...Y }) => {
57
- const [C, g] = f(), [N, j] = f(), [B, G] = f(), [b, S] = f(), O = y(null), l = y(null), s = y(null), m = y(null), p = re(W, ae).map(({ props: e }) => e), w = (e) => {
58
- g(!0), S(!0), $(e);
59
- }, _ = (e = 0) => {
60
- var a;
61
- !p.length || !s.current || (g(!1), s.current.load((a = p[e]) == null ? void 0 : a.src).then(() => {
62
- S(!1);
63
- }).catch((c) => {
64
- switch (console.error(c), c.code) {
65
- case le:
66
- return;
67
- case se:
68
- setTimeout(() => _(e), 0);
69
- break;
70
- default: {
71
- const x = p.length > e + 1 && e + 1;
72
- x ? setTimeout(() => _(x), 0) : w(c);
73
- }
74
- }
75
- }).finally(() => {
76
- g(!0);
77
- }));
78
- };
79
- V(() => {
80
- const e = l.current, a = O.current;
81
- if (!(!e || !a) && (e.volume = I, E.polyfill.installAll(), s.current = new E.Player(e), !!s.current)) {
82
- if (s.current.addEventListener("error", w), s.current.addEventListener("buffering", (c) => {
83
- j(c.buffering);
84
- }), m.current = new E.ui.Overlay(s.current, a, e, k), m.current.configure({
85
- addBigPlayButton: !0,
86
- controlPanelElements: [],
87
- addSeekBar: !1
88
- }), !q) {
89
- const { Report: c } = ie(H);
90
- E.ui.Controls.registerElement("report", new c.Factory(k));
91
- }
92
- _(), de(a);
93
- }
94
- }, []), V(() => {
95
- switch (i) {
96
- case "play":
97
- l.current.play();
98
- break;
99
- case "pause":
100
- l.current.pause();
101
- break;
102
- }
103
- }, [i]);
104
- const J = () => {
105
- if (!m.current)
106
- return;
107
- const e = F ? {
108
- controlPanelElements: ue(L.controlPanelElements)
109
- } : {};
110
- m.current.configure({
111
- ...L,
112
- ...e
113
- }), l.current.controls = !1;
114
- }, K = (e) => {
115
- e.stopPropagation(), J(), u === "fullscreen" && l.current.requestFullscreen(), G(!0), D(e, { player: s.current });
116
- }, Q = () => {
117
- l.current.play();
118
- }, U = (e) => {
119
- const a = e.currentTarget;
120
- M(e, {
121
- volume: Math.round((a.volume + Number.EPSILON) * 100) / 100,
122
- muted: a.muted
123
- });
124
- }, X = () => {
125
- l.current.controls = !1;
126
- }, T = {
127
- width: t ? `${t}px` : void 0,
128
- height: r ? `${r}px` : void 0
129
- };
130
- return o.createElement(
131
- "div",
132
- { style: T, className: R("video-player", { "video-player--poster": !B }) },
133
- !B && C && !b && !N && o.createElement(
134
- "div",
135
- { className: "shaka-play-button-container" },
136
- o.createElement(
137
- "button",
138
- { onClick: Q, className: "shaka-play-button", style: { opacity: 1, zIndex: 999 }, "aria-label": d },
139
- o.createElement(P, { name: "playFilled64Colored" })
140
- )
141
- ),
142
- o.createElement(
143
- "div",
144
- { className: "video-player__container", ref: O },
145
- o.createElement("video", { ref: l, style: T, poster: n, muted: v || !1, onPlaying: K, onPause: X, onVolumeChange: U, ...Y }, p.map((e, a) => o.createElement("source", { key: a, ...e })))
146
- ),
147
- o.createElement(
148
- "div",
149
- { className: R("video-player__overlay", { "video-player__overlay--hidden": !b }) },
150
- o.createElement(P, { name: "attention64" }),
151
- o.createElement("div", { className: "video-player__overlay-text" }, z)
152
- ),
153
- o.createElement(
154
- "div",
155
- { className: R("video-player__overlay", {
156
- "video-player__overlay--hidden": C && (b || !N)
157
- }) },
158
- o.createElement(ne, { size: "large", "aria-label": h })
159
- )
160
- );
161
- };
162
- function ue(t) {
163
- const r = t.length - 2 > 0 ? t.length - 2 : t.length, n = [...t];
164
- return n.splice(r, 0, "volume"), n;
165
- }
166
- function de(t) {
167
- const r = t.querySelectorAll(".shaka-spinner")[0];
168
- r && r.setAttribute("hidden", "");
169
- }
170
- export {
171
- be as EbayVideo,
172
- ae as EbayVideoSource
173
- };
@@ -1,63 +0,0 @@
1
- import c, { useRef as N, useState as f, useEffect as S, useCallback as y } from "react";
2
- import $ from "classnames";
3
- const n = "floating-label__label", O = [
4
- "rgb(245, 245, 245)",
5
- "rgb(247, 247, 247)"
6
- // From skin version 12.6.0
7
- ], j = (t) => t && !O.includes(getComputedStyle(t).backgroundColor), g = (t) => {
8
- var r;
9
- return ((r = t == null ? void 0 : t.value) == null ? void 0 : r.length) > 0;
10
- }, B = (t) => (t == null ? void 0 : t.tagName) === "SELECT", d = (t, r) => {
11
- if (B(t) && !g(t.querySelector("option"))) {
12
- t.style["min-width"] = "";
13
- const l = t.offsetWidth;
14
- t.querySelector("option").text = r, !r && l > t.offsetWidth && (t.style["min-width"] = `${l}px`);
15
- }
16
- }, z = (t) => B(t) ? t.querySelector("option").text : t == null ? void 0 : t.placeholder;
17
- function K({ ref: t, inputId: r, className: l, disabled: R, label: s, inputSize: q, inputValue: b, placeholder: h, invalid: L, opaqueLabel: k, type: A, onMount: P = () => {
18
- } }) {
19
- const W = N(null), o = () => t || W, [F, i] = f(!!b), [_, C] = f(!1), [u, m] = f(!1), p = N(""), w = () => {
20
- var e;
21
- C(!0), i(g((e = o()) == null ? void 0 : e.current)), m(!1), d(o().current, "");
22
- }, T = () => {
23
- var e;
24
- C(!0), i(!0), m(!0), d((e = o()) == null ? void 0 : e.current, p.current);
25
- };
26
- S(() => {
27
- var e, a;
28
- s && (p.current = z((e = o()) == null ? void 0 : e.current), d((a = o()) == null ? void 0 : a.current, ""), P());
29
- }, []), S(() => {
30
- var e, a, x;
31
- s && i(u || g((e = o()) == null ? void 0 : e.current) || j((x = (a = o()) == null ? void 0 : a.current) == null ? void 0 : x.parentNode));
32
- }, [u, b]);
33
- const v = $(l, n, {
34
- [`${n}--disabled`]: R,
35
- [`${n}--animate`]: _,
36
- [`${n}--inline`]: !F && A !== "date",
37
- [`${n}--focus`]: u,
38
- [`${n}--invalid`]: L
39
- }), E = $("floating-label", {
40
- "floating-label--large": q === "large",
41
- "floating-label--opaque": k
42
- }), G = y(({ children: e }) => c.createElement(c.Fragment, null, e), []), I = y(({ children: e }) => c.createElement("span", { className: E }, e), [E]);
43
- return s ? {
44
- label: c.createElement("label", { htmlFor: r, className: v }, s),
45
- Container: I,
46
- onBlur: w,
47
- onFocus: T,
48
- ref: o(),
49
- placeholder: F ? h : null
50
- } : {
51
- label: null,
52
- Container: G,
53
- onBlur: () => {
54
- },
55
- onFocus: () => {
56
- },
57
- ref: o(),
58
- placeholder: h
59
- };
60
- }
61
- export {
62
- K as u
63
- };
package/icon-B_a65KUD.mjs DELETED
@@ -1,42 +0,0 @@
1
- import o, { forwardRef as g, useState as p, useEffect as w } from "react";
2
- import I from "classnames";
3
- import "./array.polyfill.flat-Bj5UhY_-.mjs";
4
- const E = (n) => n.displayName || n.name || "Component", h = (n) => {
5
- const e = g((t, a) => o.createElement(n, { ...t, forwardedRef: a }));
6
- return e.displayName = E(n), e;
7
- }, $ = () => Math.random().toString(16).slice(-4), y = ({ name: n, className: e, noSkinClasses: t = !1, a11yText: a, a11yVariant: c, forwardedRef: l, ...d }) => {
8
- const [m, f] = p("");
9
- w(() => {
10
- f($());
11
- }, []);
12
- const s = c === "label", i = a && `icon-title-${m}`, u = a ? {
13
- "aria-labelledby": s ? void 0 : i,
14
- "aria-label": s ? a : void 0,
15
- role: "img"
16
- } : {
17
- "aria-hidden": !0
18
- }, r = v(n), N = ["icon", `icon--${R(r) || r}`, k(r)].filter(Boolean).join(" "), b = I(e, { [N]: !t });
19
- return o.createElement(
20
- "svg",
21
- { ...d, className: b, xmlns: "http://www.w3.org/2000/svg", focusable: !1, ref: l, ...u },
22
- a && !s && o.createElement("title", { id: i }, a),
23
- o.createElement("use", { xlinkHref: `#icon-${r}` })
24
- );
25
- };
26
- function R(n) {
27
- const e = n.split("-"), t = e[e.length - 1];
28
- return t === "colored" ? e[e.length - 2] : isNaN(Number(t)) ? "" : t;
29
- }
30
- function k(n) {
31
- const e = n.split("-"), t = e.indexOf("filled");
32
- return t === -1 ? "" : `icon--${e.slice(0, t + 1).join("-")}`;
33
- }
34
- function v(n) {
35
- return n.replace(/([0-9]+)/g, (e, t) => `-${t}`).replace(/([A-Z])/g, (e, t) => `-${t.toLowerCase()}`);
36
- }
37
- const j = h(y);
38
- export {
39
- j as E,
40
- $ as r,
41
- h as w
42
- };
@@ -1,24 +0,0 @@
1
- import t from "react";
2
- import w from "classnames";
3
- import { w as $, E as k } from "./icon-B_a65KUD.mjs";
4
- import { E as B } from "./badge-BX5HuO-3.mjs";
5
- import "./array.polyfill.flat-Bj5UhY_-.mjs";
6
- const D = ({ href: a, icon: i, badgeNumber: o, badgeAriaLabel: y, transparent: p, className: b, forwardedRef: c, size: r, onEscape: f = () => {
7
- }, onKeyDown: u = () => {
8
- }, ...s }) => {
9
- const n = a ? "icon-link" : "icon-btn", m = w(b, n, r && `${n}--${r}`, {
10
- [`${n}--badged`]: o,
11
- [`${n}--transparent`]: p
12
- }), l = t.createElement(
13
- t.Fragment,
14
- null,
15
- t.createElement(k, { name: i }),
16
- o && t.createElement(B, { type: "icon", number: o, "aria-label": y })
17
- ), E = (e) => {
18
- (e.key === "Escape" || e.key === "Esc") && f(e), u(e);
19
- };
20
- return a ? t.createElement("a", { ref: c, className: m, href: a, onKeyDown: E, ...s }, l) : t.createElement("button", { ref: c, type: "button", className: m, onKeyDown: E, ...s }, l);
21
- }, g = $(D);
22
- export {
23
- g as E
24
- };
@@ -1,22 +0,0 @@
1
- function i(n, e, t = () => {
2
- }) {
3
- n.includes(e.key) && t();
4
- }
5
- function c(n, e) {
6
- o(n.key) && e();
7
- }
8
- function o(n) {
9
- return [" ", "Enter"].includes(n);
10
- }
11
- function a(n, e) {
12
- i(["Esc", "Escape"], n, e);
13
- }
14
- function s(n, e) {
15
- i(["Left", "ArrowLeft", "Right", "ArrowRight"], n, e);
16
- }
17
- export {
18
- s as a,
19
- a as b,
20
- c as h,
21
- o as i
22
- };
@@ -1,19 +0,0 @@
1
- import e from "react";
2
- import o from "classnames";
3
- const i = ({ className: l, children: a, stacked: t = !1, required: r = !1, position: s = "start", ...n }) => {
4
- const m = o("field__label", l, { "field__label--stacked": t }, { "field__label--end": s === "end" }), c = r ? e.createElement(
5
- e.Fragment,
6
- null,
7
- " ",
8
- e.createElement("sup", null, "*")
9
- ) : null;
10
- return e.createElement(
11
- "label",
12
- { className: m, ...n },
13
- a,
14
- c
15
- );
16
- };
17
- export {
18
- i as L
19
- };