@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
@@ -1,24 +0,0 @@
1
- import l from "react";
2
- import o from "classnames";
3
- import { f as i } from "./utils-BipBqkOS.mjs";
4
- const b = ({ ctaText: t, href: e, className: s, ...n }) => t ? l.createElement("a", { ...n, className: o("section-title__cta", s), href: e }, t) : null, y = ({ href: t, ctaText: e, className: s, children: n, ...c }) => {
5
- const m = o(s, "section-title"), r = i(n, a), E = i(n, u), f = i(n, v), _ = i(n, N);
6
- return l.createElement(
7
- "div",
8
- { ...c, className: m },
9
- l.createElement(
10
- "div",
11
- { className: "section-title__title-container" },
12
- r || l.createElement(a, null, n),
13
- E
14
- ),
15
- t && l.createElement(b, { href: t, ctaText: e }) || f || _
16
- );
17
- }, a = ({ children: t, className: e, ...s }) => l.createElement("h2", { ...s, className: o(e, "section-title__title") }, t), u = ({ children: t, className: e, ...s }) => l.createElement("span", { ...s, className: o(e, "section-title__subtitle") }, t), v = ({ className: t, children: e, ...s }) => l.createElement("div", { ...s, className: o(t, "section-title__info") }, e), N = ({ children: t, className: e, ...s }) => l.createElement("div", { ...s, className: o(e, "section-title__overflow") }, t);
18
- export {
19
- y as EbaySectionTitle,
20
- v as EbaySectionTitleInfo,
21
- N as EbaySectionTitleOverflow,
22
- u as EbaySectionTitleSubtitle,
23
- a as EbaySectionTitleTitle
24
- };
package/ebay-select.mjs DELETED
@@ -1,69 +0,0 @@
1
- import l, { useState as R, cloneElement as j } from "react";
2
- import D from "classnames";
3
- import { w as P, E as T } from "./icon-B_a65KUD.mjs";
4
- import { b as $ } from "./utils-BipBqkOS.mjs";
5
- import { u as q } from "./hooks-r29zhPsY.mjs";
6
- const b = ({ children: e, ...t }) => l.createElement("option", { ...t }, e), v = (e) => typeof e < "u", A = ({ value: e, defaultValue: t, className: a, borderless: o, name: u, disabled: s, onChange: r = () => {
7
- }, onBlur: f = () => {
8
- }, onFocus: m = () => {
9
- }, floatingLabel: h, forwardedRef: d, children: E, inputSize: n, invalid: y, ...i }) => {
10
- const c = y || i["aria-invalid"] === "true", [F, w] = R(t), { label: C, Container: G, onBlur: N, onFocus: B, ref: O } = q({
11
- ref: d,
12
- inputId: i.id,
13
- className: a,
14
- disabled: s,
15
- label: h,
16
- inputValue: e,
17
- inputSize: n,
18
- invalid: c
19
- }), S = (p) => {
20
- const { value: g, selectedIndex: L } = p.target;
21
- v(e) || w(g), r(p, { index: L, selected: [g] });
22
- }, I = (p) => {
23
- f(p), N();
24
- }, k = (p) => {
25
- m(p), B();
26
- }, x = D("select", a, {
27
- "select--borderless": o,
28
- "select--large": n === "large"
29
- });
30
- return l.createElement(
31
- G,
32
- null,
33
- C,
34
- l.createElement(
35
- "span",
36
- { className: x },
37
- l.createElement("select", { ...i, name: u, value: v(e) ? e : F, disabled: s, onChange: S, onBlur: I, onFocus: k, ref: O }, J(E)),
38
- l.createElement(T, { name: "chevronDown12", height: "8", width: "8" })
39
- )
40
- );
41
- }, W = P(A);
42
- function H(e) {
43
- const t = {};
44
- return e.forEach((a) => {
45
- const o = a.props;
46
- o.optgroup && (Object.prototype.hasOwnProperty.call(t, o.optgroup) || (t[o.optgroup] = []), t[o.optgroup].push(o));
47
- }), t;
48
- }
49
- function J(e) {
50
- const t = [], a = [];
51
- let o = {}, u = !1;
52
- const s = $(e, b).map((r) => j(r, {}));
53
- if (s) {
54
- o = H(s);
55
- let r;
56
- return s.forEach((f, m) => {
57
- const { value: h, optionClassName: d, children: E, optgroup: n } = f.props;
58
- if (u = n && t.indexOf(n) === -1, u) {
59
- r = n;
60
- const i = o[r].map((c) => l.createElement(b, { key: `opt-${c.value}`, value: c.value, className: c.optionClassName }, c.children));
61
- a.push(l.createElement("optgroup", { key: m, label: n }, i)), t.push(n);
62
- } else n || a.push(l.createElement(b, { key: m, value: h, className: d }, E));
63
- }), a;
64
- }
65
- }
66
- export {
67
- W as EbaySelect,
68
- b as EbaySelectOption
69
- };
package/ebay-signal.mjs DELETED
@@ -1,9 +0,0 @@
1
- import n from "react";
2
- import t from "classnames";
3
- const r = ({ status: s = "neutral", ...a }) => {
4
- const e = t(`signal signal--${s}`, a.className);
5
- return n.createElement("span", { ...a, className: e });
6
- };
7
- export {
8
- r as EbaySignal
9
- };
@@ -1,46 +0,0 @@
1
- import D from "classnames";
2
- import s, { useRef as g, useState as B, useEffect as h } from "react";
3
- import { D as F, c as O } from "./dialog-previous-button-gmkm4c8J.mjs";
4
- import "./icon-button-Dy8rjzH7.mjs";
5
- const k = ({ className: r, children: c, ...l }) => s.createElement("button", { className: D(r, "fake-link"), ...l }, c), q = 6e3, U = ({ className: r, onOpen: c = () => {
6
- }, onClose: l = () => {
7
- }, layout: y, open: i, children: C, onAction: u, ...T }) => {
8
- const t = g(/* @__PURE__ */ new Set()), f = g(), [M, E] = B(i), b = s.Children.toArray(C), n = b.find((e) => e.type === k), S = b.filter((e) => e.type !== k), o = () => {
9
- clearTimeout(f.current);
10
- }, d = () => {
11
- E(!1), l();
12
- }, m = () => {
13
- t.current.size === 0 && (o(), f.current = setTimeout(() => {
14
- d();
15
- }, q));
16
- }, w = () => {
17
- E(!0), c(), m();
18
- }, L = () => {
19
- o(), t.current.add("focus");
20
- }, N = () => {
21
- t.current.delete("focus"), m();
22
- }, R = () => {
23
- o(), t.current.add("mouseEnter");
24
- }, _ = () => {
25
- t.current.delete("mouseEnter"), m();
26
- }, x = (e) => {
27
- var a, p;
28
- o(), u == null || u(e), (p = (a = n == null ? void 0 : n.props) == null ? void 0 : a.onClick) == null || p.call(a, e), d();
29
- };
30
- return h(() => () => {
31
- o();
32
- }, []), h(() => {
33
- i ? w() : d();
34
- }, [i]), s.createElement(
35
- F,
36
- { ...T, open: M, isModal: !1, baseEl: "aside", classPrefix: "snackbar-dialog", transitionElement: "root", a11yCloseText: "", buttonPosition: "hidden", className: D(r, "snackbar-dialog--transition"), windowClass: y === "column" && "snackbar-dialog__window--column", onFocus: L, onBlur: N, onMouseEnter: R, onMouseLeave: _ },
37
- S,
38
- n ? s.createElement(O, null, s.cloneElement(n, {
39
- onClick: x
40
- })) : null
41
- );
42
- };
43
- export {
44
- U as EbaySnackbarDialog,
45
- k as EbaySnackbarDialogAction
46
- };
@@ -1,20 +0,0 @@
1
- import a from "react";
2
- import { a as E, b as d } from "./utils-BipBqkOS.mjs";
3
- import { E as f } from "./button-B06HeRsZ.mjs";
4
- import { EbayMenuButton as B, EbayMenuButtonSeparator as v } from "./ebay-menu-button.mjs";
5
- import { a as x } from "./menu-CR1Dxl2m.mjs";
6
- import "classnames";
7
- const N = ({ a11yMenuText: o, children: r, type: i, bodyState: e, a11yButtonLoadingText: m, onCollapse: p, onExpand: s, onSelect: l = () => {
8
- }, onChange: u = () => {
9
- }, ref: I, ...t }) => {
10
- const n = [x, v], b = E(r, (c) => !n.includes(c.type)), y = d(r, n);
11
- return a.createElement(
12
- "span",
13
- { className: "split-button" },
14
- a.createElement(f, { "aria-label": e === "loading" ? m : void 0, ...t, split: "start", bodyState: e === "expand" ? void 0 : e }, b),
15
- a.createElement(B, { priority: t.priority, disabled: t.disabled, transparent: t.transparent, size: t.size, type: i, split: "end", reverse: !0, a11yText: o, onCollapse: p, onExpand: s, onSelect: l, onChange: u }, y)
16
- );
17
- };
18
- export {
19
- N as EbaySplitButton
20
- };
@@ -1,36 +0,0 @@
1
- import n, { useState as N, useEffect as v } from "react";
2
- import i from "classnames";
3
- import { E as C, r as D } from "./icon-B_a65KUD.mjs";
4
- import { r as I } from "./range-DC7seOVT.mjs";
5
- const w = I(1, 5), s = (t) => {
6
- let a = parseInt(t, 0) || 0;
7
- return a > 5 && (a = 0), a;
8
- }, V = ({ value: t = 0, a11yText: a, className: u, a11yStarText: l = [], disabled: c, onChange: f = () => {
9
- }, onFocus: p = () => {
10
- }, onKeyDown: g = () => {
11
- }, name: _ = `star-rating-${D()}`, ...d }) => {
12
- const [m, o] = N(s(t));
13
- v(() => {
14
- o(s(t));
15
- }, [t]);
16
- const E = (e) => (r) => {
17
- c || (o(s(e)), g(r, { value: e }));
18
- }, h = (e) => (r) => {
19
- c || (o(s(e)), f(r, { value: e }));
20
- }, k = (e) => (r) => {
21
- c || (o(s(e)), p(r, { value: e }));
22
- };
23
- return n.createElement("div", { role: a && "radiogroup", "aria-label": a, className: i("star-rating-select", u), ...d }, w.map((e) => n.createElement(
24
- "span",
25
- { className: "star-rating-select__radio", key: e },
26
- n.createElement("input", { "aria-label": l == null ? void 0 : l[e - 1], className: i("star-rating-select__control", { "star-rating-select__control--filled": e <= m }), type: "radio", name: _, value: e, disabled: c, defaultChecked: m === e, onClick: h(e), onFocus: k(e), onKeyDown: E(e) }),
27
- n.createElement(
28
- "span",
29
- { className: "star-rating-select__radio-icon" },
30
- n.createElement(C, { className: "star-rating__icon", name: "starDynamic" })
31
- )
32
- )));
33
- };
34
- export {
35
- V as EbayStarRatingSelect
36
- };
@@ -1,8 +0,0 @@
1
- import a from "react";
2
- import o from "classnames";
3
- import { E as i } from "./icon-B_a65KUD.mjs";
4
- import { r as n } from "./range-DC7seOVT.mjs";
5
- const c = n(1, 5), f = ({ value: r, a11yText: t, className: e, ...s }) => a.createElement("div", { role: "img", "aria-label": t, className: o("star-rating", e), "data-stars": r, ...s }, c.map((m) => a.createElement(i, { key: m, className: "star-rating__icon", name: "starDynamic" })));
6
- export {
7
- f as EbayStarRating
8
- };