@ebay/ui-core-react 9.2.2 → 9.2.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eek-rating.d.ts","sourceRoot":"","sources":["../../src/ebay-eek/eek-rating.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,MAAM,YAAY,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"eek-rating.d.ts","sourceRoot":"","sources":["../../src/ebay-eek/eek-rating.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,MAAM,YAAY,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAiB7B,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/ebay-eek/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),i=require("classnames"),u=require("../icons/ebay-icon-eek-range-arrow/index.js"),E=require("../icons/ebay-icon-eek-arrow/index.js"),g={"A+++":["D","E","G"],"A++":["E","G"],"A+":["F","G"],A:["G"]},m=r=>{const{max:a,min:t,rating:s}=r,c=g[a];if(!(c&&c.indexOf(t)>-1))return null;let e=a,l=1;for(;e!==s;){if(l++,t===e)return null;e.length>1?e=e.slice(0,e.length-1):e=String.fromCharCode(e.charCodeAt(0)+1)}return l>7?7:l},k=({min:r="",max:a="",rating:t,a11yText:s,className:c})=>{const e=m({rating:t,min:r,max:a}),l=i(c,"eek",{[`eek--rating-${e}`]:!!e}),o=`Energy Rating: ${t}. Range: ${a} - ${r}.`;return n.createElement("div",{className:l,role:"figure","aria-label":s||o},n.createElement("div",{className:"eek__container","aria-hidden":!0},n.createElement("span",{className:"eek__rating-range"},n.createElement("span",null,a),n.createElement(u.EbayIconEekRangeArrow,null),n.createElement("span",null,r)),n.createElement("span",{className:"eek__rating"},t)),n.createElement(E.EbayIconEekArrow,null))};exports.EbayEek=k;
|
package/ebay-fake-link/README.md
CHANGED
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.3",
|
|
4
4
|
"description": "Skin components build off React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "npm run clean && npm run type:check &&
|
|
29
|
+
"build": "npm run clean && npm run type:check && vitest run && vite build && npm run copy && npm run smoke-test",
|
|
30
30
|
"build:storybook": "storybook build",
|
|
31
31
|
"clean": "node scripts/clean",
|
|
32
32
|
"generate-locale-info": "node scripts/generate-locale-info.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
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
39
|
"release": "vite build && npm run copy",
|
|
40
|
-
"smoke-test": "npm run smoke-test:react-16
|
|
40
|
+
"smoke-test": "concurrently --kill-others-on-fail \"npm run smoke-test:react-16\" \"npm run smoke-test:react-18\" \"npm run smoke-test:react-19\"",
|
|
41
41
|
"smoke-test:react-16": "cd ./smoke-tests/react-16 && npm ci && npm run test",
|
|
42
42
|
"smoke-test:react-18": "cd ./smoke-tests/react-18 && npm ci && npm run test",
|
|
43
43
|
"smoke-test:react-19": "cd ./smoke-tests/react-19 && npm ci && npm run test",
|