@ebay/ui-core-react 7.4.0-alpha.9 → 8.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.
Files changed (215) hide show
  1. package/README.md +2 -5
  2. package/array.polyfill.flat-5BAolFdk.js +1 -0
  3. package/badge-CoHKfiPt.js +1 -0
  4. package/button-6S4U-4HH.js +1 -0
  5. package/calendar-hBaLhOjI.js +1 -0
  6. package/common/dropdown.d.ts +20 -0
  7. package/common/dropdown.d.ts.map +1 -0
  8. package/common/floating-label-utils/hooks.d.ts.map +1 -1
  9. package/debounce-BQsYxxOL.js +1 -0
  10. package/dialog-previous-button-B-fysL3O.js +1 -0
  11. package/dropdown-pp-aluo7.js +1 -0
  12. package/ebay-accordion/README.md +61 -0
  13. package/ebay-accordion/accordion.d.ts +16 -0
  14. package/ebay-accordion/accordion.d.ts.map +1 -0
  15. package/ebay-accordion/index.d.ts +3 -0
  16. package/ebay-accordion/index.d.ts.map +1 -0
  17. package/ebay-accordion/index.js +2 -0
  18. package/ebay-alert-dialog/index.js +1 -26
  19. package/ebay-badge/index.js +1 -4
  20. package/ebay-breadcrumbs/index.js +1 -47
  21. package/ebay-button/README.md +1 -1
  22. package/ebay-button/button.d.ts.map +1 -1
  23. package/ebay-button/index.js +1 -5
  24. package/ebay-button/types.d.ts +1 -1
  25. package/ebay-button/types.d.ts.map +1 -1
  26. package/ebay-calendar/index.js +1 -4
  27. package/ebay-carousel/index.js +1 -345
  28. package/ebay-checkbox/index.js +1 -52
  29. package/ebay-confirm-dialog/index.js +1 -28
  30. package/ebay-cta-button/index.js +1 -22
  31. package/ebay-date-textbox/date-textbox.d.ts.map +1 -1
  32. package/ebay-date-textbox/index.js +1 -140
  33. package/ebay-details/README.md +51 -0
  34. package/ebay-details/ebay-details.d.ts +17 -0
  35. package/ebay-details/ebay-details.d.ts.map +1 -0
  36. package/ebay-details/index.d.ts +2 -0
  37. package/ebay-details/index.d.ts.map +1 -0
  38. package/ebay-details/index.js +1 -0
  39. package/ebay-details-q_d7qlcN.js +1 -0
  40. package/ebay-dialog-base/index.js +1 -13
  41. package/{ebay-drawer-dialog → ebay-drawer-dialog-deprecated}/README.md +9 -8
  42. package/{ebay-drawer-dialog → ebay-drawer-dialog-deprecated}/components/drawer.d.ts +2 -6
  43. package/ebay-drawer-dialog-deprecated/components/drawer.d.ts.map +1 -0
  44. package/ebay-drawer-dialog-deprecated/index.d.ts +2 -0
  45. package/ebay-drawer-dialog-deprecated/index.d.ts.map +1 -0
  46. package/ebay-drawer-dialog-deprecated/index.js +1 -0
  47. package/ebay-eek/index.js +1 -54
  48. package/ebay-fake-menu/index.js +1 -10
  49. package/ebay-fake-menu/menu.d.ts +4 -3
  50. package/ebay-fake-menu/menu.d.ts.map +1 -1
  51. package/ebay-fake-menu-button/README.md +1 -1
  52. package/ebay-fake-menu-button/index.js +1 -7
  53. package/ebay-fake-menu-button/menu-button.d.ts.map +1 -1
  54. package/ebay-fake-tabs/index.js +1 -30
  55. package/ebay-field/index.js +1 -21
  56. package/{ebay-fullscreen-dialog → ebay-fullscreen-dialog-deprecated}/README.md +6 -4
  57. package/{ebay-fullscreen-dialog → ebay-fullscreen-dialog-deprecated}/fullscreen-dialog.d.ts +2 -2
  58. package/ebay-fullscreen-dialog-deprecated/fullscreen-dialog.d.ts.map +1 -0
  59. package/ebay-fullscreen-dialog-deprecated/index.d.ts +2 -0
  60. package/ebay-fullscreen-dialog-deprecated/index.d.ts.map +1 -0
  61. package/ebay-fullscreen-dialog-deprecated/index.js +1 -0
  62. package/ebay-icon/README.md +1 -1
  63. package/ebay-icon/index.js +1 -4
  64. package/ebay-icon/types.d.ts +1 -1
  65. package/ebay-icon/types.d.ts.map +1 -1
  66. package/ebay-icon-button/index.js +1 -4
  67. package/ebay-infotip/README.md +0 -2
  68. package/ebay-infotip/ebay-infotip.d.ts +0 -2
  69. package/ebay-infotip/ebay-infotip.d.ts.map +1 -1
  70. package/ebay-infotip/index.js +1 -76
  71. package/ebay-inline-notice/index.js +1 -36
  72. package/ebay-lightbox-dialog/README.md +2 -0
  73. package/ebay-lightbox-dialog/index.js +1 -12
  74. package/ebay-lightbox-dialog/lightbox-dialog.d.ts +3 -1
  75. package/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +1 -1
  76. package/ebay-listbox/README.md +1 -1
  77. package/ebay-listbox/index.js +1 -6
  78. package/ebay-listbox/listbox.d.ts +0 -1
  79. package/ebay-listbox/listbox.d.ts.map +1 -1
  80. package/ebay-listbox-button/index.d.ts +2 -1
  81. package/ebay-listbox-button/index.d.ts.map +1 -1
  82. package/ebay-listbox-button/index.js +2 -151
  83. package/ebay-listbox-button/listbox-button-option.d.ts +10 -0
  84. package/ebay-listbox-button/listbox-button-option.d.ts.map +1 -0
  85. package/ebay-listbox-button/listbox-button.d.ts +5 -15
  86. package/ebay-listbox-button/listbox-button.d.ts.map +1 -1
  87. package/ebay-menu/index.js +1 -9
  88. package/ebay-menu/menu.d.ts.map +1 -1
  89. package/ebay-menu/types.d.ts +2 -1
  90. package/ebay-menu/types.d.ts.map +1 -1
  91. package/ebay-menu-button/README.md +1 -1
  92. package/ebay-menu-button/index.js +1 -113
  93. package/ebay-menu-button/menu-button.d.ts.map +1 -1
  94. package/ebay-notice-base/index.js +1 -7
  95. package/ebay-page-notice/index.js +1 -50
  96. package/ebay-pagination/index.js +1 -244
  97. package/ebay-panel-dialog/index.js +1 -12
  98. package/ebay-progress-bar/index.js +1 -6
  99. package/ebay-progress-spinner/index.js +1 -4
  100. package/ebay-progress-stepper/index.js +1 -72
  101. package/ebay-radio/index.js +1 -4
  102. package/ebay-section-notice/index.js +1 -69
  103. package/ebay-section-title/index.js +1 -38
  104. package/ebay-segmented-buttons/index.js +1 -46
  105. package/ebay-select/index.js +1 -98
  106. package/ebay-signal/index.js +1 -9
  107. package/ebay-snackbar-dialog/index.js +1 -81
  108. package/ebay-split-button/README.md +1 -1
  109. package/ebay-split-button/index.js +1 -22
  110. package/ebay-star-rating/index.js +1 -9
  111. package/ebay-star-rating-select/index.js +1 -55
  112. package/ebay-svg/index.js +1 -5189
  113. package/ebay-svg/symbols.d.ts.map +1 -1
  114. package/ebay-switch/index.js +1 -27
  115. package/ebay-tabs/README.md +1 -3
  116. package/ebay-tabs/index.js +1 -88
  117. package/ebay-tabs/tabs.d.ts.map +1 -1
  118. package/ebay-tabs/types.d.ts +2 -6
  119. package/ebay-tabs/types.d.ts.map +1 -1
  120. package/ebay-textbox/index.js +1 -10
  121. package/ebay-toast-dialog/README.md +3 -3
  122. package/ebay-toast-dialog/index.js +1 -9
  123. package/ebay-toggle-button/README.md +39 -0
  124. package/ebay-toggle-button/index.d.ts +3 -0
  125. package/ebay-toggle-button/index.d.ts.map +1 -0
  126. package/ebay-toggle-button/index.js +1 -0
  127. package/ebay-toggle-button/toggle-button.d.ts +5 -0
  128. package/ebay-toggle-button/toggle-button.d.ts.map +1 -0
  129. package/ebay-toggle-button/types.d.ts +23 -0
  130. package/ebay-toggle-button/types.d.ts.map +1 -0
  131. package/ebay-toggle-button-group/README.md +56 -0
  132. package/ebay-toggle-button-group/index.d.ts +3 -0
  133. package/ebay-toggle-button-group/index.d.ts.map +1 -0
  134. package/ebay-toggle-button-group/index.js +1 -0
  135. package/ebay-toggle-button-group/toggle-button-group.d.ts +5 -0
  136. package/ebay-toggle-button-group/toggle-button-group.d.ts.map +1 -0
  137. package/ebay-toggle-button-group/types.d.ts +20 -0
  138. package/ebay-toggle-button-group/types.d.ts.map +1 -0
  139. package/ebay-tooltip/index.js +1 -64
  140. package/ebay-tourtip/index.js +1 -54
  141. package/ebay-video/index.js +1 -229
  142. package/events/index.js +1 -18
  143. package/forwardRef-fPwzYd82.js +1 -0
  144. package/hooks-5qES90Sx.js +1 -0
  145. package/icon-D4RDqpD4.js +1 -0
  146. package/icon-button-Bjjvld0a.js +1 -0
  147. package/index-Bsb1LHpi.js +1 -0
  148. package/label-CnrpYJ-g.js +1 -0
  149. package/lightbox-dialog-Il3dBNcR.js +1 -0
  150. package/menu-DAOhKkcI.js +1 -0
  151. package/menu-button-label-DJq794te.js +1 -0
  152. package/menu-button-label-D_04ZC3p.js +1 -0
  153. package/menu-item-Cf-tQ72X.js +1 -0
  154. package/notice-content-9iF4T8uB.js +1 -0
  155. package/notice-content-C0ZStfuX.js +1 -0
  156. package/notice-cta-FAd6zCdx.js +1 -0
  157. package/package.json +19 -84
  158. package/progress-spinner-CF3qoWE3.js +1 -0
  159. package/range-DOsPN0h5.js +1 -0
  160. package/scroll-OgAngNzq.js +1 -0
  161. package/textbox-DZRVQetR.js +1 -0
  162. package/toggle-button-CFPnYlex.js +1 -0
  163. package/use-roving-index-DoAVBgsp.js +1 -0
  164. package/use-tooltip-BEiQpMDa.js +1 -0
  165. package/utils/index.d.ts +1 -0
  166. package/utils/index.d.ts.map +1 -1
  167. package/utils/index.js +1 -13
  168. package/utils-C9NL3q0j.js +1 -0
  169. package/array.polyfill.flat-DyxysTxZ.js +0 -21
  170. package/badge-CR5t7-2L.js +0 -8
  171. package/button-B4bZIgwB.js +0 -83
  172. package/calendar-D-DWjrMU.js +0 -333
  173. package/common/component-utils/forwardRef/index.js +0 -10
  174. package/common/component-utils/index.js +0 -9
  175. package/common/component-utils/utils/index.js +0 -25
  176. package/common/event-utils/index.js +0 -113
  177. package/common/floating-label-utils/hooks/index.js +0 -106
  178. package/common/notice-utils/notice-cta/index.js +0 -5
  179. package/common/random-id/index.js +0 -13
  180. package/common/tooltip-utils/constants/index.js +0 -97
  181. package/common/tooltip-utils/index.js +0 -11
  182. package/debounce-v8bWAUnY.js +0 -9
  183. package/dialog-previous-button-EC_Y6KaT.js +0 -370
  184. package/drawer-DBDktEBZ.js +0 -69
  185. package/ebay-dialog-base/components/animation/index.js +0 -92
  186. package/ebay-dialog-base/components/dialog-footer/index.js +0 -4
  187. package/ebay-dialog-base/components/dialog-header/index.js +0 -4
  188. package/ebay-drawer-dialog/components/drawer.d.ts.map +0 -1
  189. package/ebay-drawer-dialog/index.d.ts +0 -2
  190. package/ebay-drawer-dialog/index.d.ts.map +0 -1
  191. package/ebay-drawer-dialog/index.js +0 -4
  192. package/ebay-fake-menu/menu-item/index.js +0 -49
  193. package/ebay-fake-menu-button/menu-button/index.js +0 -12
  194. package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts.map +0 -1
  195. package/ebay-fullscreen-dialog/index.d.ts +0 -2
  196. package/ebay-fullscreen-dialog/index.d.ts.map +0 -1
  197. package/ebay-fullscreen-dialog/index.js +0 -10
  198. package/ebay-radio/radio/index.js +0 -48
  199. package/icon-B17Di3YL.js +0 -56
  200. package/icon-button-BQWoMgX1.js +0 -31
  201. package/index-BXizW4ue.js +0 -89
  202. package/index-DcH7Tjjd.js +0 -272
  203. package/label-C0AS4fnO.js +0 -19
  204. package/listbox-DfOw_fJc.js +0 -662
  205. package/menu-Bsy48CE1.js +0 -163
  206. package/menu-button-CKGsgg6G.js +0 -89
  207. package/menu-fCOy6wBS.js +0 -29
  208. package/notice-content-BTXVxttv.js +0 -8
  209. package/notice-content-BhUeK1pd.js +0 -3
  210. package/notice-footer-CIQ8SM6N.js +0 -10
  211. package/progress-spinner-DOFKRtuu.js +0 -20
  212. package/range-C5qzyhg4.js +0 -3
  213. package/textbox-J291yCpJ.js +0 -136
  214. package/use-roving-index-CEM_UsCH.js +0 -58
  215. package/use-tooltip-7JxcZHJn.js +0 -92
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const iconButton = require("../icon-button-BQWoMgX1.js");
4
- exports.EbayIconButton = iconButton.EbayIconButton;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../icon-button-Bjjvld0a.js");exports.EbayIconButton=t.EbayIconButton;
@@ -61,8 +61,6 @@ yarn add @ebay/ui-core-react
61
61
  | `overlayStyle` | Object | No | No | Style object to customize default values for the overlay. It can be used all CSS properties like `top`, `left`, `bottom`, `right`. |
62
62
  | `initialExpanded` | Boolean | No | No | Open the tooltip on the initial render |
63
63
  | `a11yCloseText` | String | No | Yes | A11y text for close button and mask. |
64
- | `a11yMaximizeText` | String | No | No |A11y text for draggable handle when drawer is minimized and clicking handle will maximize the drawer. Required only when draggable handle exists. Required only when variant is modal |
65
- | `a11yMinimizeText` | String | No | No |A11y text for draggable handle when drawer is maximized and clicking handle will minimize the drawer. Required only when variant is modal |
66
64
  | `aria-label` | String | No | Yes | A descriptive label of what the infotip button represents (e.g. "Important information")
67
65
  | `onExpand` | Function | No | No | overlay has been expanded |
68
66
  | `onCollapse` | Function | No | No | overlay has been collapsed |
@@ -15,8 +15,6 @@ type InfotipProps = {
15
15
  'aria-label'?: string;
16
16
  className?: string;
17
17
  children?: ReactNode;
18
- a11yMaximizeText?: string;
19
- a11yMinimizeText?: string;
20
18
  };
21
19
  declare const EbayInfotip: FC<InfotipProps>;
22
20
  export default EbayInfotip;
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-infotip.d.ts","sourceRoot":"","sources":["../../src/ebay-infotip/ebay-infotip.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA+B,aAAa,EAAE,EAAE,EAAU,SAAS,EAAE,MAAM,OAAO,CAAA;AAGhG,OAAO,EAAwC,gBAAgB,EAAc,MAAM,yBAAyB,CAAA;AAI5G,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGjC,KAAK,YAAY,GAAG;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,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.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const classNames$1 = require("classnames");
5
- const common_componentUtils_utils = require("../common/component-utils/utils/index.js");
6
- const useTooltip = require("../use-tooltip-7JxcZHJn.js");
7
- const drawer = require("../drawer-DBDktEBZ.js");
8
- const ebayDialogBase_components_dialogHeader = require("../ebay-dialog-base/components/dialog-header/index.js");
9
- require("react-remove-scroll");
10
- const icon = require("../icon-B17Di3YL.js");
11
- require("../icon-button-BQWoMgX1.js");
12
- const classNames = require("classnames/dedupe");
13
- const common_componentUtils_forwardRef = require("../common/component-utils/forwardRef/index.js");
14
- const EbayInfotipHost = ({ icon: icon$1, className, children, forwardedRef, variant, ...rest }) => {
15
- const classPrefix = variant === "modal" ? "dialog--mini" : "infotip";
16
- const buttonIcon = React.createElement(icon.EbayIcon, { name: icon$1 });
17
- const buttonContent = children instanceof Function ? children({ icon: buttonIcon }) : children;
18
- return React.createElement("button", { ...rest, className: classNames("icon-btn icon-btn--transparent", className, `${classPrefix}__host`), type: "button", ref: forwardedRef }, buttonContent || buttonIcon);
19
- };
20
- const EbayInfotipHost$1 = common_componentUtils_forwardRef.withForwardRef(EbayInfotipHost);
21
- const EbayInfotip = ({ variant = "default", pointer, overlayStyle, disabled, onExpand, onCollapse, children, initialExpanded, icon: icon2 = "information16", a11yCloseText, "aria-label": ariaLabel, className, a11yMaximizeText, a11yMinimizeText }) => {
22
- const buttonRef = React.useRef();
23
- const { isExpanded, expandTooltip, collapseTooltip } = useTooltip.useTooltip({ onCollapse, onExpand, initialExpanded, hostRef: buttonRef });
24
- const isModal = variant === "modal";
25
- const containerRef = React.useRef();
26
- const heading = common_componentUtils_utils.findComponent(children, EbayTooltipHeading);
27
- const content = common_componentUtils_utils.findComponent(children, EbayInfotipContent);
28
- const button = common_componentUtils_utils.findComponent(children, EbayInfotipHost$1) || React.createElement(EbayInfotipHost$1);
29
- const toggleTooltip = () => {
30
- if (isExpanded) {
31
- collapseTooltip();
32
- } else {
33
- expandTooltip();
34
- }
35
- };
36
- if (!content) {
37
- throw new Error(`EbayInfotip: Please use a EbayInfotipContent that defines the content of the infotip`);
38
- }
39
- const { children: contentChildren, ...contentProps } = content.props;
40
- return React.createElement(
41
- React.Fragment,
42
- null,
43
- React.createElement(
44
- useTooltip.Tooltip,
45
- { type: "infotip", isExpanded, className: classNames$1(className, { "dialog--mini": isModal }), ref: containerRef },
46
- React.createElement(useTooltip.TooltipHost, null, React.cloneElement(button, {
47
- ref: buttonRef,
48
- onClick: toggleTooltip,
49
- disabled,
50
- variant,
51
- "aria-label": ariaLabel,
52
- "aria-expanded": isExpanded,
53
- icon: icon2,
54
- ...button.props
55
- })),
56
- !isModal && React.createElement(
57
- useTooltip.TooltipContent,
58
- { ...contentProps, type: "infotip", style: overlayStyle, pointer, showCloseButton: true, a11yCloseText, onClose: collapseTooltip },
59
- heading,
60
- contentChildren
61
- )
62
- ),
63
- isModal && React.createElement(
64
- drawer.EbayDrawerDialog,
65
- { ...contentProps, open: isExpanded, onClose: collapseTooltip, a11yCloseText, className: "dialog--mini__overlay", a11yMaximizeText, a11yMinimizeText },
66
- React.createElement(ebayDialogBase_components_dialogHeader, null, heading),
67
- contentChildren
68
- )
69
- );
70
- };
71
- const EbayTooltipHeading = ({ className, ...props }) => React.createElement("span", { ...props, className: classNames$1("infotip__heading", className) });
72
- const EbayInfotipContent = ({ children }) => React.createElement(React.Fragment, null, children);
73
- exports.EbayInfotip = EbayInfotip;
74
- exports.EbayInfotipContent = EbayInfotipContent;
75
- exports.EbayInfotipHeading = EbayTooltipHeading;
76
- exports.EbayInfotipHost = EbayInfotipHost$1;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),T=require("classnames"),b=require("../utils-C9NL3q0j.js"),r=require("../use-tooltip-BEiQpMDa.js"),F=require("../dialog-previous-button-B-fysL3O.js");require("react-remove-scroll");require("makeup-screenreader-trap");require("makeup-keyboard-trap");const D=require("../icon-D4RDqpD4.js");require("../icon-button-Bjjvld0a.js");const $=require("classnames/dedupe"),v=require("../forwardRef-fPwzYd82.js"),B=require("../lightbox-dialog-Il3dBNcR.js"),M=({icon:t,className:o,children:n,forwardedRef:l,variant:c,...p})=>{const i=c==="modal"?"dialog--mini":"infotip",a=e.createElement(D.EbayIcon,{name:t}),u=n instanceof Function?n({icon:a}):n;return e.createElement("button",{...p,className:$("icon-btn icon-btn--transparent",o,`${i}__host`),type:"button",ref:l},u||a)},E=v.withForwardRef(M),S=({variant:t="default",pointer:o,overlayStyle:n,disabled:l,onExpand:c,onCollapse:p,children:i,initialExpanded:a,icon:u="information16",a11yCloseText:d,"aria-label":w,className:N})=>{const y=e.useRef(),{isExpanded:s,expandTooltip:_,collapseTooltip:f}=r.useTooltip({onCollapse:p,onExpand:c,initialExpanded:a,hostRef:y}),m=t==="modal",x=e.useRef(),g=b.findComponent(i,R),q=b.findComponent(i,H),C=b.findComponent(i,E)||e.createElement(E),P=()=>{s?f():_()};if(!q)throw new Error("EbayInfotip: Please use a EbayInfotipContent that defines the content of the infotip");const{children:I,...h}=q.props;return e.createElement(e.Fragment,null,e.createElement(r.Tooltip,{type:"infotip",isExpanded:s,className:T(N,{"dialog--mini":m}),ref:x},e.createElement(r.TooltipHost,null,e.cloneElement(C,{ref:y,onClick:P,disabled:l,variant:t,"aria-label":w,"aria-expanded":s,icon:u,...C.props})),!m&&e.createElement(r.TooltipContent,{...h,type:"infotip",style:n,pointer:o,showCloseButton:!0,a11yCloseText:d,onClose:f},g,I)),m&&e.createElement(B.EbayLightboxDialog,{...h,open:s,onClose:f,a11yCloseText:d,className:"dialog--mini__overlay"},e.createElement(F.EbayDialogHeader,null,g),I))},R=({className:t,...o})=>e.createElement("span",{...o,className:T("infotip__heading",t)}),H=({children:t})=>e.createElement(e.Fragment,null,t);exports.EbayInfotip=S;exports.EbayInfotipContent=H;exports.EbayInfotipHeading=R;exports.EbayInfotipHost=E;
@@ -1,36 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const classNames = require("classnames");
5
- const noticeContent = require("../notice-content-BhUeK1pd.js");
6
- const noticeContent$1 = require("../notice-content-BTXVxttv.js");
7
- const common_componentUtils_utils = require("../common/component-utils/utils/index.js");
8
- const icon = require("../icon-B17Di3YL.js");
9
- const EbayInlineNotice = ({ className, status = "general", children, hidden = false, "aria-label": ariaLabel, onNoticeShow = () => {
10
- }, ...rest }) => {
11
- React.useEffect(() => {
12
- if (!hidden) {
13
- onNoticeShow();
14
- }
15
- }, [hidden]);
16
- if (hidden) {
17
- return null;
18
- }
19
- const content = common_componentUtils_utils.findComponent(children, noticeContent.EbayNoticeContent);
20
- if (!content) {
21
- throw new Error(`EbayInlineNotice: Please use a EbayNoticeContent that defines the content of the notice`);
22
- }
23
- const isGeneral = status === `general`;
24
- return React.createElement(
25
- "div",
26
- { ...rest, className: classNames(className, "inline-notice", { [`inline-notice--${status}`]: !isGeneral }) },
27
- !isGeneral ? React.createElement(
28
- "span",
29
- { className: "inline-notice__header" },
30
- React.createElement(icon.EbayIcon, { name: `${status}Filled16`, a11yText: ariaLabel, a11yVariant: "label" })
31
- ) : null,
32
- React.createElement(noticeContent$1.NoticeContent, { ...content.props, type: "inline" })
33
- );
34
- };
35
- exports.EbayNoticeContent = noticeContent.EbayNoticeContent;
36
- exports.EbayInlineNotice = EbayInlineNotice;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),E=require("classnames"),c=require("../notice-content-C0ZStfuX.js"),y=require("../notice-content-9iF4T8uB.js"),b=require("../utils-C9NL3q0j.js"),N=require("../icon-D4RDqpD4.js"),f=({className:a,status:n="general",children:r,hidden:t=!1,"aria-label":l,onNoticeShow:s=()=>{},...u})=>{if(e.useEffect(()=>{t||s()},[t]),t)return null;const i=b.findComponent(r,c.EbayNoticeContent);if(!i)throw new Error("EbayInlineNotice: Please use a EbayNoticeContent that defines the content of the notice");const o=n==="general";return e.createElement("div",{...u,className:E(a,"inline-notice",{[`inline-notice--${n}`]:!o})},o?null:e.createElement("span",{className:"inline-notice__header"},e.createElement(N.EbayIcon,{name:`${n}Filled16`,a11yText:l,a11yVariant:"label"})),e.createElement(y.NoticeContent,{...i.props,type:"inline"}))};exports.EbayNoticeContent=c.EbayNoticeContent;exports.EbayInlineNotice=f;
@@ -22,6 +22,8 @@ Name | Type | Stateful | Required | Description
22
22
  `focus` | String | No | No | An id for an element which will receive focus when the drawer opens (defaults to close button).
23
23
  `a11yCloseText` | String | No | Yes | A11y text for close button and mask.
24
24
  `animated` | Boolean | Yes | No | Renders the dialog with an animation. Note that the dialog will always be present in the DOM
25
+ `bannerImgSrc` | String | No | No | Image source for the expressive variant
26
+ `bannerImgPosition` | String | No | No | Position of the image within the given bounds using the CSS `background-position` property. Options include [keywords, lengths, and edge distances](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
25
27
 
26
28
  ## Events
27
29
 
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const classNames = require("classnames");
5
- const dialogPreviousButton = require("../dialog-previous-button-EC_Y6KaT.js");
6
- require("../icon-button-BQWoMgX1.js");
7
- const classPrefix = "lightbox-dialog";
8
- const EbayLightboxDialog = ({ open, mode, size, onClose = () => {
9
- }, ...rest }) => React.createElement(dialogPreviousButton.DialogBaseWithState, { buttonPosition: "right", ...rest, classPrefix, onCloseBtnClick: onClose, onBackgroundClick: onClose, className: classNames(rest.className, `${classPrefix}--mask-fade`, size && `${classPrefix}--${size}`), windowClass: classNames("lightbox-dialog__window--fade", {
10
- [`${classPrefix}__window--mini`]: mode === "mini"
11
- }), open });
12
- exports.EbayLightboxDialog = EbayLightboxDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../lightbox-dialog-Il3dBNcR.js");exports.EbayLightboxDialog=o.EbayLightboxDialog;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { CSSProperties, FC } from 'react';
2
2
  import { DialogBaseProps } from '../ebay-dialog-base';
3
3
  type Mode = 'default' | 'mini';
4
4
  type Size = 'wide' | 'narrow' | 'fullscreen' | 'large';
@@ -6,6 +6,8 @@ export type Props<T = any> = Omit<DialogBaseProps<T>, 'size'> & {
6
6
  open?: boolean;
7
7
  mode?: Mode;
8
8
  size?: Size;
9
+ bannerImgSrc?: string;
10
+ bannerImgPosition?: CSSProperties['backgroundPosition'];
9
11
  onClose?: () => void;
10
12
  };
11
13
  declare const EbayLightboxDialog: FC<Props>;
@@ -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,KAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAA;AAC9B,KAAK,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAA;AAEtD,MAAM,MAAM,KAAK,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IAC9D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAA;AAED,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,KAAK,CAmBjC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
1
+ {"version":3,"file":"lightbox-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-lightbox-dialog/lightbox-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAE1E,KAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAA;AAC9B,KAAK,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAA;AAEtD,MAAM,MAAM,KAAK,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IAC9D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACxD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAA;AAED,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,KAAK,CAwCjC,CAAA;AACD,eAAe,kBAAkB,CAAA"}
@@ -97,4 +97,4 @@ import "@ebay/skin/listbox.css";
97
97
  </EbayListboxOptionDescription>
98
98
  </EbayListboxOption>
99
99
  </EbayListbox>
100
- ```
100
+ ```
@@ -1,6 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const listbox = require("../listbox-DfOw_fJc.js");
4
- exports.EbayListbox = listbox.EbayListbox;
5
- exports.EbayListboxOption = listbox.EbayListboxOption;
6
- exports.EbayListboxOptionDescription = listbox.EbayListboxOptionDescription;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),A=require("makeup-active-descendant"),M=require("makeup-typeahead"),v=require("classnames"),k=require("../utils-C9NL3q0j.js"),H=require("../scroll-OgAngNzq.js"),B=require("../icon-D4RDqpD4.js"),I=({children:d,className:p,...l})=>e.createElement("div",{className:v("listbox__description",p),...l},d),R=({className:d,icon:p,text:l,children:E,disabled:b,tabIndex:c,selected:x,...h})=>{const r=k.filterByType(E,I),f=l||(r!=null&&r.length?"":E);return e.createElement("div",{...h,tabIndex:b?-1:c,className:v("listbox__option",d),"aria-disabled":b,"aria-selected":x,role:"option"},p?e.createElement("span",{className:"listbox__value"},p,f?e.createElement("span",null,f):null,r!=null&&r.length?r:null):e.createElement(e.Fragment,null,e.createElement("span",{className:"listbox__value"},f),r!=null&&r.length?r:null),e.createElement(B.EbayIcon,{name:"tick16"}))},F=1300,K=({name:d,className:p,disabled:l,children:E,tabIndex:b=0,listSelection:c,maxHeight:x,typeaheadTimeoutLength:h,selectClassName:r,onChange:f=()=>{},onEscape:T=()=>{},...q})=>{var C;const a=k.filterByType(E,R),_=a.findIndex(t=>t.props.selected),[u,D]=e.useState(a.findIndex(t=>t.props.selected));e.useEffect(()=>{_!==u&&D(_)},[_]);const o=e.useRef(),i=e.useRef(),m=e.useRef(),y=e.useRef(!1);function g(t,n,s){n===u||a[n].props.disabled||(D(n),f(t,{index:n,selected:[a[n].props.value],wasClicked:s}))}function N(t){switch(t.code){case"Esc":case"Escape":T();break;case"Space":case"Enter":g(t,i.current.index,!1);break}const n=m.current.getIndex(o.current.children,t.key,h||F);if(n!==-1){i.current.index=n;const s=o.current.querySelectorAll("[role=option]")[n];o.current.scrollTop=s.offsetTop-o.current.offsetHeight/2}}function O(){y.current=!0}return e.useEffect(()=>{const t=n=>{const s=parseInt(n.detail.toIndex,10),L=o.current?o.current.querySelectorAll("[role=option]")[u]:null,w=y.current;H.scroll(L),y.current&&(y.current=!1),g(n,s,w)};if(a.length&&!l){const n=o.current,s=o.current;i.current=A.createLinear(n,s,s,".listbox__option[role=option]",{activeDescendantClassName:"listbox__option--active",autoInit:u,autoReset:null,autoScroll:c!=="auto"}),m.current=M()}return c==="auto"&&o.current.addEventListener("activeDescendantChange",t),()=>{i.current&&(i.current.reset(),i.current.destroy(),i.current=void 0),m.current&&(m.current.destroy(),m.current=void 0),o.current&&o.current.removeEventListener("activeDescendantChange",t)}},[u,l,c]),e.createElement(e.Fragment,null,e.createElement("div",{...q,tabIndex:b,ref:o,role:"listbox",onKeyDown:c!=="auto"?N:void 0,className:v("listbox__options",p),style:{maxHeight:x}},a.map((t,n)=>e.cloneElement(t,{key:t.props.value||n,...t.props,onMouseDown:c==="auto"?O:void 0,onClick:s=>{c!=="auto"&&g(s,n,!0)},selected:n===u}))),e.createElement("select",{hidden:!0,className:v("listbox__native",r),name:d,disabled:l,value:(C=a[u])==null?void 0:C.props.value,onChange:()=>{}},a.map((t,n)=>e.createElement("option",{key:t.props.value||n,value:t.props.value,disabled:t.props.disabled}))))};exports.EbayListbox=K;exports.EbayListboxOption=R;exports.EbayListboxOptionDescription=I;
@@ -14,7 +14,6 @@ export type EbayListboxProps = Omit<ComponentProps<'div'>, 'onChange'> & {
14
14
  typeaheadTimeoutLength?: number;
15
15
  maxHeight?: string | number;
16
16
  selectClassName?: string;
17
- activeClassName?: string;
18
17
  onChange?: EbayChangeEventHandler<HTMLSpanElement, ChangeEventProps>;
19
18
  onEscape?: () => void;
20
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"listbox.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox/listbox.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA6B,EAAE,EAA4B,MAAM,OAAO,CAAA;AAItF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAA;AAInE,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAIlD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ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gBAAgB,CAAC,CAAC;IACrE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA2L5C,CAAA"}
@@ -1,2 +1,3 @@
1
- export * from './listbox-button';
1
+ export { default as EbayListboxButton } from './listbox-button';
2
+ export { default as EbayListboxButtonOption } from './listbox-button-option';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox-button/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,151 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const index = require("../index-DcH7Tjjd.js");
5
- const classNames = require("classnames");
6
- const listbox = require("../listbox-DfOw_fJc.js");
7
- const common_componentUtils_utils = require("../common/component-utils/utils/index.js");
8
- const icon = require("../icon-B17Di3YL.js");
9
- function onKeyDown(e) {
10
- if (e.keyCode >= 32 && e.keyCode <= 40) {
11
- e.preventDefault();
12
- }
13
- }
14
- function add(el) {
15
- el.addEventListener("keydown", onKeyDown);
16
- }
17
- function remove(el) {
18
- el.removeEventListener("keydown", onKeyDown);
19
- }
20
- const RenderText = ({ alwaysDisplay, icon: icon2, labelId, text, unselectedText, postfixLabel }) => {
21
- if (icon2) {
22
- return React.createElement("span", { id: labelId, className: "btn__text" }, icon2);
23
- }
24
- if (text || alwaysDisplay) {
25
- const displayText = text || unselectedText;
26
- return React.createElement(
27
- "span",
28
- { id: labelId, className: "btn__text" },
29
- displayText,
30
- postfixLabel && React.createElement("span", { className: "btn__postfix-label" }, postfixLabel)
31
- );
32
- }
33
- };
34
- function getSelectedValueIndex({ selected, value, options }) {
35
- if (selected !== void 0) {
36
- return selected;
37
- }
38
- if (value !== void 0) {
39
- return options.findIndex((option) => option.props.value === value);
40
- }
41
- return options.findIndex((option) => option.props.selected);
42
- }
43
- const EbayListboxButtonOption = listbox.EbayListboxOption;
44
- const EbayListboxButton = ({ "aria-invalid": invalid, a11yIconPrefixText, borderless, children, className, collapseOnSelect, disabled, floatingLabel, fluid, hasError, listSelection, maxHeight, name, postfixLabel, prefixId, prefixLabel, selected, split, truncate, unselectedText = "-", value, variant, onChange = () => {
45
- }, onExpand = () => {
46
- }, onCollapse = () => {
47
- }, ...rest }) => {
48
- const containerRef = React.useRef();
49
- const buttonRef = React.useRef();
50
- const expanderRef = React.useRef();
51
- const options = common_componentUtils_utils.filterByType(children, listbox.EbayListboxOption);
52
- const [selectedIndex, setSelectedIndex] = React.useState(getSelectedValueIndex({ selected, value, options }));
53
- const selectedOption = options[selectedIndex];
54
- const selectedText = selectedOption && (selectedOption.props.text || selectedOption.props.children);
55
- const selectedIcon = selectedOption && selectedOption.props.icon;
56
- const a11ySelectedIconText = selectedIcon && selectedText;
57
- const labelId = prefixId && "expand-btn-text";
58
- React.useEffect(() => {
59
- setSelectedIndex(getSelectedValueIndex({ selected, value, options }));
60
- }, [value, selected]);
61
- React.useEffect(() => {
62
- function handleExpand() {
63
- var _a, _b;
64
- (_b = (_a = containerRef.current) == null ? void 0 : _a.querySelector(".listbox-button__listbox")) == null ? void 0 : _b.scroll();
65
- onExpand();
66
- }
67
- function handleCollapse() {
68
- requestAnimationFrame(() => {
69
- var _a;
70
- (_a = buttonRef.current) == null ? void 0 : _a.focus();
71
- });
72
- onCollapse();
73
- }
74
- if (options.length && !disabled) {
75
- expanderRef.current = new index.src_default(containerRef.current, {
76
- alwaysDoFocusManagement: true,
77
- autoCollapse: true,
78
- expandOnClick: true,
79
- simulateSpacebarClick: true,
80
- contentSelector: ".listbox-button__listbox",
81
- hostSelector: ".listbox-button__control",
82
- expandedClass: "listbox-button--expanded",
83
- focusManagement: "content"
84
- });
85
- containerRef.current.addEventListener("expander-expand", handleExpand);
86
- containerRef.current.addEventListener("expander-collapse", handleCollapse);
87
- }
88
- add(buttonRef.current);
89
- return () => {
90
- if (expanderRef.current) {
91
- expanderRef.current.destroy();
92
- expanderRef.current = void 0;
93
- }
94
- if (containerRef.current) {
95
- containerRef.current.removeEventListener("expander-expand", handleExpand);
96
- containerRef.current.removeEventListener("expander-collapse", handleCollapse);
97
- }
98
- if (buttonRef.current) {
99
- remove(buttonRef.current);
100
- }
101
- };
102
- }, [disabled]);
103
- function handleListboxChange(event, data) {
104
- if (collapseOnSelect !== false) {
105
- expanderRef.current.expanded = false;
106
- }
107
- setSelectedIndex(data.index);
108
- onChange(event, data);
109
- }
110
- function handleListboxEscape() {
111
- expanderRef.current.expanded = false;
112
- }
113
- const Container = truncate && !fluid ? "div" : "span";
114
- return React.createElement(
115
- Container,
116
- { ref: containerRef, className: classNames("listbox-button", className, {
117
- "listbox-button--fluid": fluid,
118
- "listbox-button--form": variant === "form",
119
- "listbox-button--error": invalid || hasError
120
- }) },
121
- React.createElement(
122
- "button",
123
- { ...rest, disabled, ref: buttonRef, className: classNames("listbox-button__control", "btn", {
124
- [`btn--split-${split}`]: split,
125
- "btn--borderless": borderless,
126
- "btn--form": !borderless,
127
- "btn--truncated": truncate,
128
- "btn--floating-label": floatingLabel
129
- }), "aria-label": a11ySelectedIconText && `${a11yIconPrefixText}: ${a11ySelectedIconText}`, value: selectedText, type: "button", "aria-haspopup": "listbox", "aria-labelledby": labelId && `${prefixId} ${labelId}`, "aria-invalid": invalid || hasError },
130
- React.createElement(
131
- "span",
132
- { className: "btn__cell" },
133
- floatingLabel ? React.createElement(
134
- React.Fragment,
135
- null,
136
- React.createElement("span", { className: classNames("btn__floating-label", "btn__floating-label--animate", !selectedText && "btn__floating-label--inline") }, floatingLabel),
137
- React.createElement(RenderText, { icon: selectedIcon, labelId, text: selectedText, unselectedText, postfixLabel })
138
- ) : React.createElement(
139
- React.Fragment,
140
- null,
141
- prefixLabel ? React.createElement("span", { className: "btn__label" }, prefixLabel) : null,
142
- React.createElement(RenderText, { alwaysDisplay: true, icon: selectedIcon, labelId, text: selectedText, unselectedText, postfixLabel })
143
- ),
144
- React.createElement(icon.EbayIcon, { name: "chevronDown12" })
145
- )
146
- ),
147
- React.createElement(listbox.EbayListbox, { className: "listbox-button__listbox listbox-button__options", selectClassName: "listbox-button__native", activeClassName: "listbox-button__option--active", tabIndex: -1, listSelection, name, maxHeight, onChange: handleListboxChange, onEscape: handleListboxEscape }, options.map((option, index2) => React.createElement(listbox.EbayListboxOption, { ...option.props, key: option.props.value || index2, selected: index2 === selectedIndex, className: classNames("listbox-button__option", option.props.className) })))
148
- );
149
- };
150
- exports.EbayListboxButton = EbayListboxButton;
151
- exports.EbayListboxButtonOption = EbayListboxButtonOption;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),S=require("classnames"),U=require("../icon-D4RDqpD4.js"),de=require("../utils-C9NL3q0j.js"),fe=require("../dropdown-pp-aluo7.js"),$=({value:d,children:_,selected:r,onClick:f,index:v,innerRef:g,className:k,...h})=>{const p=S("listbox-button__option",k,{"listbox-button__option--active":r});return o.createElement("div",{...h,className:p,role:"option","aria-selected":r,ref:g,onClick:x=>{f(x,d,v)}},o.createElement("span",{className:"listbox-button__value"},_),o.createElement(U.EbayIcon,{name:"tick16"}))},ve=({children:d,name:_,value:r,selected:f,borderless:v,fluid:g,className:k,maxHeight:h,prefixId:p,prefixLabel:x,floatingLabel:E,unselectedText:V="-",onChange:N=()=>{},onCollapse:j=()=>{},onExpand:W=()=>{},...z})=>{var K;const i=o.useRef(null),w=o.useRef(new Map),c=de.filterByType(d,$);if(!c.length)throw new Error(`EbayListboxButton: Please use a
2
+ EbayListboxButtonOption that defines the options of the listbox`);const G=()=>{const e=f!==void 0?f:c.findIndex(({props:s})=>r!==void 0&&s.value===r),t=e>-1||E?e:void 0;return{option:c[t],index:t}},{option:T,index:C}=G(),[a,b]=o.useState(T),[n,D]=o.useState(C),[m,I]=o.useState(),[J,Q]=o.useState(!1),[L,A]=o.useState(),{overlayStyles:X,refs:y}=fe.useFloatingDropdown({open:m}),B=y.host,Y=y.overlay;o.useEffect(()=>{b(T)},[r]);const l=o.Children.toArray(d),H=e=>l[e].props.value,Z=o.useCallback(e=>l.findIndex(({props:t})=>t.value===e),[l]),ee=e=>w.current.get(e),u=()=>{I(!1),j()},te=()=>{I(!0),W()},oe=()=>{m?u():te()},R=(e,t)=>{b(l[t]),D(t),u(),B.current.focus(),N(e,{index:t,selected:[H(t)],wasClicked:L}),A(!1)},ne=()=>{u(),b(l[C])},se=e=>{const t=i.current.children[e];t.setAttribute("aria-selected","true"),t.classList.add("listbox-button__option--active")},ae=e=>{const t=i.current.children[e];t.setAttribute("aria-selected","false"),t.classList.remove("listbox-button__option--active")},ce=e=>{const t=Y.current,s=ee(e);if(t.scrollHeight>t.clientHeight){const me=t.clientHeight+t.scrollTop,M=s.offsetTop+s.offsetHeight;M>me?t.scrollTop=M-t.clientHeight:s.offsetTop<t.scrollTop&&(t.scrollTop=s.offsetTop)}},q=e=>{se(n===void 0||e===-1?0:e),ae(n===void 0||n===-1?0:n),ce(e),D(e),b(l[e])},P=e=>setTimeout(()=>{var t;return(t=i==null?void 0:i.current)==null?void 0:t.focus(e)},0),le=()=>{oe(),P({preventScroll:!0})},re=e=>{switch(e.key){case"Escape":u();break;case"Enter":P();break}},ie=e=>{switch(e.key){case" ":case"PageUp":case"PageDown":case"Home":case"End":e.preventDefault();break;case"Down":case"ArrowDown":e.preventDefault(),n!==c.length-1&&q(n<c.length-1?n+1:0);break;case"Up":case"ArrowUp":e.preventDefault(),n!==0&&q(n>0?n-1:c.length-1);break;case"Enter":u(),setTimeout(()=>b(l[n])),setTimeout(()=>B.current.focus(),0),N(e,{index:n,selected:[H(n)],wasClicked:L});break;case"Esc":case"Escape":ne();break}},O=c.map((e,t)=>o.cloneElement(e,{index:t,key:t,selected:a&&e.props.value===a.props.value,id:e.props.id||`listbox_btn_${e.props.value}_${t}`,onClick:s=>R(s,t),innerRef:s=>s?w.current.set(t,s):w.current.delete(t)})),ue=S("listbox-button",k,{"listbox-button--fluid":g}),pe=S("btn",{"btn--form":!v,"btn--borderless":v,"btn--floating-label":E&&a}),F=p&&"expand-btn-text",be=o.createElement(o.Fragment,null,E&&o.createElement("span",{className:"btn__floating-label"},E),x&&o.createElement("span",{className:"btn__label"},x),o.createElement("span",{className:"btn__text",id:F},(a==null?void 0:a.props.children)||V));return o.createElement("span",{className:ue},o.createElement("button",{...z,onFocus:()=>Q(!0),type:"button",className:pe,"aria-expanded":!!m,"aria-haspopup":"listbox","aria-labelledby":p&&`${p} ${F}`,onClick:le,onMouseDown:e=>e.preventDefault(),onKeyUp:re,ref:y.setHost},o.createElement("span",{className:"btn__cell"},be,o.createElement(U.EbayIcon,{name:"chevronDown12"}))),(m||J)&&o.createElement("div",{className:"listbox-button__listbox",ref:y.setOverlay,style:{...X,maxHeight:h}},o.createElement("div",{className:"listbox-button__options",role:"listbox",tabIndex:m?0:-1,ref:i,"aria-activedescendant":(K=O[n])==null?void 0:K.props.id,onKeyDown:e=>ie(e),onMouseDown:e=>{e.preventDefault(),A(!0)},onBlur:()=>{u(),setTimeout(()=>B.current.focus(),0)}},O)),o.createElement("select",{hidden:!0,className:"listbox-button__native",name:_,onChange:e=>R(e,Z(e.target.value)),value:a?a==null?void 0:a.props.value:""},O.map((e,t)=>o.createElement("option",{value:e.props.value,key:t}))))};exports.EbayListboxButton=ve;exports.EbayListboxButtonOption=$;
@@ -0,0 +1,10 @@
1
+ import { ComponentProps, FC, MouseEvent, RefObject } from 'react';
2
+ type EbayListboxButtonOptionProps = ComponentProps<'input'> & {
3
+ selected?: boolean;
4
+ index?: number;
5
+ onClick?: (event: MouseEvent<HTMLDivElement>, value: any, index: number) => void;
6
+ innerRef?: RefObject<HTMLDivElement>;
7
+ };
8
+ declare const ListboxOption: FC<EbayListboxButtonOptionProps>;
9
+ export default ListboxOption;
10
+ //# sourceMappingURL=listbox-button-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listbox-button-option.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox-button/listbox-button-option.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIxE,KAAK,4BAA4B,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjF,QAAQ,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACxC,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,4BAA4B,CAwBnD,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,7 +1,5 @@
1
- import React, { ComponentProps, FC } from 'react';
2
- import { EbayListboxProps } from '../ebay-listbox/';
3
- import { EbayChangeEventHandler } from '../events';
4
- import { EbayButtonProps } from '../ebay-button';
1
+ import { ComponentProps, FC } from 'react';
2
+ import { EbayChangeEventHandler } from '../common/event-utils/types';
5
3
  export type ChangeEventProps = {
6
4
  index: number;
7
5
  selected: string[];
@@ -16,18 +14,10 @@ export type EbayListboxButtonProps = Omit<ComponentProps<'button'>, 'onChange'>
16
14
  prefixLabel?: string;
17
15
  floatingLabel?: string;
18
16
  unselectedText?: string;
19
- a11yIconPrefixText?: string;
20
- collapseOnSelect?: boolean;
21
- hasError?: boolean;
22
- listSelection?: EbayListboxProps['listSelection'];
23
- postfixLabel?: string;
24
- split?: EbayButtonProps['split'];
25
- truncate?: EbayButtonProps['truncate'];
26
- variant?: 'form';
27
- onChange?: EbayChangeEventHandler<HTMLSpanElement, ChangeEventProps>;
17
+ onChange?: EbayChangeEventHandler<HTMLButtonElement, ChangeEventProps>;
28
18
  onCollapse?: () => void;
29
19
  onExpand?: () => void;
30
20
  };
31
- export declare const EbayListboxButtonOption: React.FC<import("../ebay-listbox/listbox-option").EbayListboxOptionProps>;
32
- export declare const EbayListboxButton: FC<EbayListboxButtonProps>;
21
+ declare const ListboxButton: FC<EbayListboxButtonProps>;
22
+ export default ListboxButton;
33
23
  //# sourceMappingURL=listbox-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listbox-button.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox-button/listbox-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEV,cAAc,EACd,EAAE,EAKL,MAAM,OAAO,CAAA;AAOd,OAAO,EAAe,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAiDhD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IAC9E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,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AAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,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,CAgS7C,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,9 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const menu = require("../menu-Bsy48CE1.js");
4
- const React = require("react");
5
- const classNames = require("classnames");
6
- const EbayMenuItemSeparator = ({ className, ...rest }) => React.createElement("hr", { ...rest, className: classNames(className, "menu__separator"), role: "separator" });
7
- exports.EbayMenu = menu.EbayMenu;
8
- exports.EbayMenuItem = menu.EbayMenuItem;
9
- exports.EbayMenuSeparator = EbayMenuItemSeparator;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../menu-DAOhKkcI.js"),t=require("react"),n=require("classnames"),u=({className:a,...r})=>t.createElement("hr",{...r,className:n(a,"menu__separator"),role:"separator"});exports.EbayMenu=e.EbayMenu;exports.EbayMenuItem=e.EbayMenuItem;exports.EbayMenuSeparator=u;
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAA;AAOd,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;AA6J5C,wBAAuC"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAA;AAOd,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;AA8J5C,wBAAuC"}
@@ -24,7 +24,8 @@ export type EbayMenuProps = ContainerDivProps & ContainerSpanProps & {
24
24
  onKeyDown?: EbayMenuKeyDownEventHandler;
25
25
  onChange?: EbayMenuChangeEventHandler;
26
26
  onSelect?: EbayMenuSelectEventHandler;
27
- forwardedRef?: Ref<HTMLDivElement>;
27
+ forwardedRef?: Ref<HTMLDivElement | HTMLSpanElement>;
28
+ menuRef?: Ref<HTMLDivElement>;
28
29
  };
29
30
  export {};
30
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAExF,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,UAAU,CAAA;AAC/C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAA;AAE/D,KAAK,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAA;AAC3F,KAAK,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAA;AAC7F,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB,CAAA;AACD,KAAK,WAAW,GAAG,WAAW,GAAG;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAA;AACD,MA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C7F,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB,CAAA;AACD,KAAK,WAAW,GAAG,WAAW,GAAG;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAA;AACD,MAAM,MAAM,2BAA2B,GAAG,wBAAwB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAAC,CAAA;AAC1G,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAA;AACnF,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAA;AACnF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,kBAAkB,GAAG;IACjE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,2BAA2B,CAAC;IACxC,QAAQ,CAAC,EAAE,0BAA0B,CAAC;IACtC,QAAQ,CAAC,EAAE,0BAA0B,CAAC;IACtC,YAAY,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,eAAe,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC,CAAA"}
@@ -44,7 +44,7 @@ Name | Type | Required | Description
44
44
  `reverse` | Boolean | No | expand menu flyout to the left
45
45
  `fixWidth` | Boolean | No | Constrain items container width to button width
46
46
  `borderless` | Boolean | No | Whether button has borders
47
- `size` | String | No | button size: `large` or `regular` (default)
47
+ `size` | String | No | button size: `small` or `large`
48
48
  `priority` | String | No | button size: `primary`, `secondary` (default), `tertiary`, `none`
49
49
  `checked` | Number | No | will set the corresponding index item to checked state and use the `aria-checked` attribute in markup
50
50
  `disabled` | Boolean | No | will disable the entire dropdown (disables the ebay-button label) if set to true