@20minutes/hela 0.0.2 → 0.0.4
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/dist/css/articlePage-desktop.css +1 -1
- package/dist/css/articlePage-mobile.css +1 -1
- package/dist/css/global.css +1 -1
- package/dist/fonts/Oswald-Bold.woff +0 -0
- package/dist/fonts/Oswald-Bold.woff2 +0 -0
- package/dist/fonts/SourceSerifPro-Bold.woff +0 -0
- package/dist/fonts/SourceSerifPro-Bold.woff2 +0 -0
- package/dist/fonts/SourceSerifPro-It.woff +0 -0
- package/dist/fonts/SourceSerifPro-It.woff2 +0 -0
- package/dist/fonts/SourceSerifPro-Regular.woff +0 -0
- package/dist/fonts/SourceSerifPro-Regular.woff2 +0 -0
- package/dist/index.d.ts +66 -17
- package/dist/index.es.js +8708 -8637
- package/dist/index.umd.js +91 -91
- package/dist/js/datalayer.min.js +1 -0
- package/dist/js/main.min.js +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(t){"use strict";const n=global;var u=Object.defineProperty,l=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,i=(e,r,a)=>r in e?u(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,o=(e,r)=>{for(var a in r||(r={}))y.call(r,a)&&i(e,a,r[a]);if(l)for(var a of l(r))c.call(r,a)&&i(e,a,r[a]);return e};const d=()=>({page_uri:"/"}),b=()=>({darkmode:0}),s=()=>{var e,r;return{signature:((e=n.datalayer)==null?void 0:e.signature)||void 0,nbParagraphs:((r=n.datalayer)==null?void 0:r.nbParagraphs)||void 0}},v=()=>{const e=d(),r=b(),a=s();n.datalayer=o(o(o({},e),r),a)};return t.initDatalayer=v,Object.defineProperty(t,"__esModule",{value:!0}),t})({});
|
package/dist/js/main.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";const c=(t,e)=>{const
|
|
1
|
+
(function(){"use strict";const c=(t,e)=>{const r=t==="dark";e.setAttribute("aria-checked",String(r));const a=e.querySelector("span[aria-hidden]");a&&(a.setAttribute("aria-hidden",String(r)),a.innerHTML=r?"on":"off")},h=(t=document.querySelector(".js-switch-dark-mode"))=>{const e=localStorage.getItem("theme")||"light";e&&t&&(document.documentElement.dataset.theme=e,c(e,t))},y=(t=document.querySelector(".js-switch-dark-mode"))=>{t&&t.addEventListener("click",()=>{const e=document.documentElement.dataset.theme,r=!e||e==="light"?"dark":"light";document.documentElement.dataset.theme=r,localStorage.setItem("theme",r),c(r,t)})},l=global;var g=Object.defineProperty,d=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,s=(t,e,r)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))f.call(e,r)&&s(t,r,e[r]);if(d)for(var r of d(e))v.call(e,r)&&s(t,r,e[r]);return t};const p=()=>({page_uri:"/"}),S=()=>({darkmode:0}),A=()=>{var t,e;return{signature:((t=l.datalayer)==null?void 0:t.signature)||void 0,nbParagraphs:((e=l.datalayer)==null?void 0:e.nbParagraphs)||void 0}},E=()=>{const t=p(),e=S(),r=A();l.datalayer=i(i(i({},t),e),r)},k=(t,e)=>{e.preventDefault();const r=e.target,a=t.querySelectorAll('[role="tab"]'),o=t.querySelectorAll('[role="tabpanel"]'),O=r.getAttribute("aria-controls"),m=Object.values(o).find(n=>n.id===O);a.forEach(n=>{n.setAttribute("aria-selected","false")}),o.forEach(n=>{n.setAttribute("aria-hidden","true")}),r.setAttribute("aria-selected","true"),m&&m.removeAttribute("aria-hidden")},u=t=>t.code==="ArrowLeft"||t.keyCode===39,b=t=>t.code==="ArrowRight"||t.keyCode===37,w=(t=document.querySelector(".js-tabs"))=>{if(t){const e=t.querySelectorAll('[role="tab"]');e.forEach(a=>{a.addEventListener("click",k.bind(!1,t))});const r=t.querySelector('[role="tablist"]');if(r&&e.length>0){let a=0;r.addEventListener("keydown",o=>{o instanceof KeyboardEvent&&(u(o)||b(o))&&(e[a].setAttribute("tabindex","-1"),u(o)?(a+=1,a>=e.length&&(a=0)):b(o)&&(a-=1,a<0&&(a=e.length-1)),e[a].setAttribute("tabindex","0"),e[a].focus())})}}};h(),y(),w(),E()})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/hela",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@20minutes/eslint-config": "^1.2.3",
|
|
29
|
-
"@babel/core": "^7.18.
|
|
29
|
+
"@babel/core": "^7.18.13",
|
|
30
30
|
"@babel/eslint-parser": "^7.18.9",
|
|
31
31
|
"@babel/plugin-transform-typescript": "^7.18.0",
|
|
32
32
|
"@storybook/addon-essentials": "^6.5.10",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@types/draft-js": "^0.11.9",
|
|
39
39
|
"@types/gulp": "^4.0.9",
|
|
40
40
|
"@types/gulp-sass": "^5.0.0",
|
|
41
|
-
"@types/node": "^18.7.
|
|
41
|
+
"@types/node": "^18.7.11",
|
|
42
42
|
"@types/react": "^18.0.17",
|
|
43
43
|
"@types/react-dom": "^18.0.6",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
45
|
-
"@typescript-eslint/parser": "^5.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.34.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.34.0",
|
|
46
46
|
"@vitejs/plugin-react": "^2.0.1",
|
|
47
47
|
"babel-loader": "^8.2.5",
|
|
48
48
|
"babel-preset-env": "^1.7.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"eslint": "^8.22.0",
|
|
51
51
|
"eslint-config-airbnb": "^19.0.4",
|
|
52
52
|
"eslint-config-prettier": "^8.5.0",
|
|
53
|
-
"eslint-import-resolver-typescript": "^3.
|
|
53
|
+
"eslint-import-resolver-typescript": "^3.5.0",
|
|
54
54
|
"eslint-plugin-babel": "^5.3.1",
|
|
55
55
|
"eslint-plugin-import": "^2.25.3",
|
|
56
56
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"rollup-plugin-dts": "^4.2.2",
|
|
72
72
|
"rollup-plugin-esbuild": "^4.9.1",
|
|
73
73
|
"rollup-plugin-scss": "^3.0.0",
|
|
74
|
-
"sass": "^1.54.
|
|
74
|
+
"sass": "^1.54.5",
|
|
75
75
|
"size-limit": "^8.0.1",
|
|
76
|
-
"stylelint": "^14.
|
|
76
|
+
"stylelint": "^14.11.0",
|
|
77
77
|
"stylelint-config-standard-scss": "^5.0.0",
|
|
78
78
|
"svg-sprite": "next",
|
|
79
79
|
"typescript": "^4.7.4",
|
|
80
|
-
"vite": "^3.0.
|
|
80
|
+
"vite": "^3.0.9"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=16"
|