@ebay/ui-core-react 9.2.1 → 9.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/dropdown.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useFloating } from "@floating-ui/react";
|
|
2
|
+
import { ActiveDescendantOptions } from "makeup-active-descendant";
|
|
2
3
|
export type FloatingDropdownHookReturn = {
|
|
3
4
|
overlayStyles: ReturnType<typeof useFloating>["floatingStyles"];
|
|
4
5
|
refs: {
|
|
@@ -48,7 +49,6 @@ export type ExpanderHookReturn = {
|
|
|
48
49
|
collapse(): void;
|
|
49
50
|
};
|
|
50
51
|
export declare function useExpander<T extends HTMLElement>({ ref, expanded, options, onExpand, onCollapse }: ExpanderHookArgs<T>, deps?: React.DependencyList): ExpanderHookReturn;
|
|
51
|
-
type AutoIndexType = "none" | "current" | "interactive" | "ariaChecked" | "ariaSelected" | "ariaSelectedOrInteractive" | number;
|
|
52
52
|
export type ActiveDescendantChangeHandler = (event: ActiveDescendantChangeEvent, data: {
|
|
53
53
|
toIndex: number;
|
|
54
54
|
}) => void;
|
|
@@ -58,15 +58,7 @@ export type ActiveDescendantHookArgs = {
|
|
|
58
58
|
itemContainerRef?: React.MutableRefObject<HTMLElement>;
|
|
59
59
|
disabled?: boolean;
|
|
60
60
|
onChange?: ActiveDescendantChangeHandler;
|
|
61
|
-
options:
|
|
62
|
-
activeDescendantClassName: string;
|
|
63
|
-
autoInit?: AutoIndexType;
|
|
64
|
-
autoReset?: AutoIndexType;
|
|
65
|
-
autoScroll?: boolean;
|
|
66
|
-
axis?: "both" | "x" | "y";
|
|
67
|
-
ignoreByDelegateSelector?: string;
|
|
68
|
-
wrap?: boolean;
|
|
69
|
-
};
|
|
61
|
+
options: ActiveDescendantOptions;
|
|
70
62
|
};
|
|
71
63
|
export type ActiveDescendantHookReturn = {
|
|
72
64
|
setIndex: (index: number) => void;
|
package/common/dropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../src/common/dropdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAmC,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../src/common/dropdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAmC,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAElF,OAAO,EAAE,uBAAuB,EAAwC,MAAM,0BAA0B,CAAC;AAEzG,MAAM,MAAM,0BAA0B,GAAG;IACrC,aAAa,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAChE,IAAI,EAAE;QACF,IAAI,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC;QAC1D,OAAO,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC;QAC5D,OAAO,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAC;QAChE,UAAU,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;KACrE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;CACnC,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,wBAAwB,GAAG,0BAA0B,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AAE,KAAK,CAAC,cAAc,GAC5B,kBAAkB,CAuDpB;AAED,MAAM,MAAM,6BAA6B,GAAG,CAAC,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,CAAC;AAEpH,MAAM,MAAM,wBAAwB,GAAG;IACnC,GAAG,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzC,eAAe,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACtD,gBAAgB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,6BAA6B,CAAC;IACzC,OAAO,EAAE,uBAAuB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,2BAA4B,SAAQ,KAAK;IACtD,MAAM,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;CACL;AAED,wBAAgB,mBAAmB,CAAC,EAChC,GAAG,EACH,eAAe,EACf,gBAAgB,EAChB,QAAqB,EACrB,QAAQ,EACR,OAAO,GACV,EAAE,wBAAwB,GAAG,0BAA0B,CAuCvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/ebay-accordion/accordion.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/ebay-accordion/accordion.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,YAAY,EAAoB,MAAM,OAAO,CAAC;AAClF,OAAO,EAAe,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG;IACpD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC,gBAAgB,CAAC,GAAG,YAAY,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC5E,QAAQ,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;CAChE,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAuDzC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/ebay-accordion/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
EbayDetails that defines the sections of the accordion`);const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../tslib.es6-C4EgNkz1.js"),N=require("classnames"),o=require("react"),g=require("../ebay-details-BEt1xrPn.js"),R=require("../utils-C9NL3q0j.js"),S=s=>{var{size:b,autoCollapse:f,className:E,children:m,onToggle:a,"aria-roledescription":p="accordion"}=s,v=_.__rest(s,["size","autoCollapse","className","children","onToggle","aria-roledescription"]);const c=o.useRef(null),[h,q]=o.useState(!1),n=R.filterByType(m,g.EbayDetails);if(!n.length)throw new Error(`EbayAccordion: Please use a
|
|
2
|
+
EbayDetails that defines the sections of the accordion`);const T=n.map((e,d)=>o.cloneElement(e,{onToggle:(u,{open:i})=>{var r,y,t;if(q(!0),f&&i){const l=(r=c.current)===null||r===void 0?void 0:r.querySelectorAll("details");l?.forEach((A,D)=>{D!==d&&(A.open=!1)})}(t=(y=e.props).onToggle)===null||t===void 0||t.call(y,u,{open:i}),a?.(u,{open:i,index:d})}}));return o.createElement("ul",Object.assign({},v,{ref:c,className:N("accordion",E,{"accordion--large":b==="large","accordion--animated":h}),"aria-roledescription":p}),T.map(e=>o.createElement("li",{key:e.key},e)))};exports.EbayDetails=g.EbayDetails;exports.EbayAccordion=S;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebay/ui-core-react",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.2",
|
|
4
4
|
"description": "Skin components build off React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+
|
|
12
|
+
"url": "git+https://github.com/eBay/evo-web.git",
|
|
13
13
|
"directory": "packages/ebayui-core-react"
|
|
14
14
|
},
|
|
15
15
|
"license": "ISC",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"deploy": "NODE_OPTIONS=--max-old-space-size=8192 storybook build -o ./_site/$(git branch --show-current)",
|
|
37
37
|
"format": "eslint . --fix 'src/**/*.{ts,tsx}' && prettier . --write --log-level=warn",
|
|
38
38
|
"lint": "eslint . --ext .ts,.tsx && prettier . --check --log-level=warn",
|
|
39
|
-
"release": "npm run
|
|
39
|
+
"release": "vite build && npm run copy",
|
|
40
40
|
"smoke-test": "npm run smoke-test:react-16 && npm run smoke-test:react-18 && npm run smoke-test:react-19",
|
|
41
|
-
"smoke-test:react-16": "cd ./smoke-tests/react-16 && npm
|
|
42
|
-
"smoke-test:react-18": "cd ./smoke-tests/react-18 && npm
|
|
43
|
-
"smoke-test:react-19": "cd ./smoke-tests/react-19 && npm
|
|
41
|
+
"smoke-test:react-16": "cd ./smoke-tests/react-16 && npm ci && npm run test",
|
|
42
|
+
"smoke-test:react-18": "cd ./smoke-tests/react-18 && npm ci && npm run test",
|
|
43
|
+
"smoke-test:react-19": "cd ./smoke-tests/react-19 && npm ci && npm run test",
|
|
44
44
|
"start": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 9001 -c .storybook --no-open",
|
|
45
45
|
"storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 9001 -c .storybook --no-open",
|
|
46
|
-
"test": "vitest",
|
|
46
|
+
"test": "vitest run",
|
|
47
47
|
"type:check": "tsc --noEmit",
|
|
48
48
|
"update-icons": "node ./scripts/update-icons",
|
|
49
49
|
"version": "npm run update-icons && git add -A src"
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
"string-width": "4.2.3"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@floating-ui/react": "^0.27.
|
|
64
|
+
"@floating-ui/react": "^0.27.17",
|
|
65
65
|
"classnames": "^2.5.1",
|
|
66
|
-
"makeup-active-descendant": "^0.7.
|
|
67
|
-
"makeup-expander": "^0.11.
|
|
66
|
+
"makeup-active-descendant": "^0.7.11",
|
|
67
|
+
"makeup-expander": "^0.11.10",
|
|
68
68
|
"makeup-floating-label": "^0.4.9",
|
|
69
|
-
"makeup-focusables": "^0.4.
|
|
70
|
-
"makeup-keyboard-trap": "^0.5.
|
|
71
|
-
"makeup-prevent-scroll-keys": "^0.3.
|
|
72
|
-
"makeup-roving-tabindex": "^0.7.
|
|
73
|
-
"makeup-screenreader-trap": "^0.5.
|
|
74
|
-
"makeup-typeahead": "^0.3.
|
|
69
|
+
"makeup-focusables": "^0.4.6",
|
|
70
|
+
"makeup-keyboard-trap": "^0.5.8",
|
|
71
|
+
"makeup-prevent-scroll-keys": "^0.3.5",
|
|
72
|
+
"makeup-roving-tabindex": "^0.7.8",
|
|
73
|
+
"makeup-screenreader-trap": "^0.5.7",
|
|
74
|
+
"makeup-typeahead": "^0.3.5",
|
|
75
75
|
"react-remove-scroll": "^2.7.2"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@vitejs/plugin-react": "^5.1.
|
|
78
|
+
"@vitejs/plugin-react": "^5.1.3"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@ebay/skin": "^19",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"react-dom": "^19"
|
|
84
84
|
},
|
|
85
85
|
"optionalDependencies": {
|
|
86
|
-
"shaka-player": "^4.16.
|
|
86
|
+
"shaka-player": "^4.16.16"
|
|
87
87
|
},
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"directory": "dist"
|