@20minutes/hela 0.0.1 → 0.0.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.
- 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 +72 -17
- package/dist/index.es.js +38162 -24141
- package/dist/index.umd.js +285 -43
- package/dist/js/main.min.js +1 -0
- package/package.json +14 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";const c=(e,t)=>{const n=e==="dark";t.setAttribute("aria-checked",String(n));const r=t.querySelector("span[aria-hidden]");r&&(r.setAttribute("aria-hidden",String(n)),r.innerHTML=n?"on":"off")},s=(e=document.querySelector(".js-switch-dark-mode"))=>{const t=localStorage.getItem("theme")||"light";t&&e&&(document.documentElement.dataset.theme=t,c(t,e))},u=(e=document.querySelector(".js-switch-dark-mode"))=>{e&&e.addEventListener("click",()=>{const t=document.documentElement.dataset.theme,n=!t||t==="light"?"dark":"light";document.documentElement.dataset.theme=n,localStorage.setItem("theme",n),c(n,e)})},m=(e,t)=>{t.preventDefault();const n=t.target,r=e.querySelectorAll('[role="tab"]'),o=e.querySelectorAll('[role="tabpanel"]'),b=n.getAttribute("aria-controls"),d=Object.values(o).find(a=>a.id===b);r.forEach(a=>{a.setAttribute("aria-selected","false")}),o.forEach(a=>{a.setAttribute("aria-hidden","true")}),n.setAttribute("aria-selected","true"),d&&d.removeAttribute("aria-hidden")},i=e=>e.code==="ArrowLeft"||e.keyCode===39,l=e=>e.code==="ArrowRight"||e.keyCode===37,h=(e=document.querySelector(".js-tabs"))=>{if(e){const t=e.querySelectorAll('[role="tab"]');t.forEach(r=>{r.addEventListener("click",m.bind(!1,e))});const n=e.querySelector('[role="tablist"]');if(n&&t.length>0){let r=0;n.addEventListener("keydown",o=>{o instanceof KeyboardEvent&&(i(o)||l(o))&&(t[r].setAttribute("tabindex","-1"),i(o)?(r+=1,r>=t.length&&(r=0)):l(o)&&(r-=1,r<0&&(r=t.length-1)),t[r].setAttribute("tabindex","0"),t[r].focus())})}}};s(),u(),h()})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/hela",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -26,34 +26,31 @@
|
|
|
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",
|
|
33
|
-
"@storybook/addon-info": "^5.3.21",
|
|
34
33
|
"@storybook/addon-links": "^6.5.10",
|
|
35
|
-
"@storybook/
|
|
36
|
-
"@storybook/addons": "^6.4.22",
|
|
37
|
-
"@storybook/builder-vite": "^0.1.39",
|
|
34
|
+
"@storybook/builder-vite": "^0.2.2",
|
|
38
35
|
"@storybook/react": "^6.5.10",
|
|
39
36
|
"@svgr/cli": "^6.3.1",
|
|
40
37
|
"@types/draft-convert": "^2.1.4",
|
|
41
38
|
"@types/draft-js": "^0.11.9",
|
|
42
39
|
"@types/gulp": "^4.0.9",
|
|
43
40
|
"@types/gulp-sass": "^5.0.0",
|
|
44
|
-
"@types/node": "^18.
|
|
41
|
+
"@types/node": "^18.7.11",
|
|
45
42
|
"@types/react": "^18.0.17",
|
|
46
43
|
"@types/react-dom": "^18.0.6",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
48
|
-
"@typescript-eslint/parser": "^5.
|
|
49
|
-
"@vitejs/plugin-react": "^
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.34.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.34.0",
|
|
46
|
+
"@vitejs/plugin-react": "^2.0.1",
|
|
50
47
|
"babel-loader": "^8.2.5",
|
|
51
48
|
"babel-preset-env": "^1.7.0",
|
|
52
49
|
"babel-preset-react": "^6.24.1",
|
|
53
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.22.0",
|
|
54
51
|
"eslint-config-airbnb": "^19.0.4",
|
|
55
52
|
"eslint-config-prettier": "^8.5.0",
|
|
56
|
-
"eslint-import-resolver-typescript": "^3.
|
|
53
|
+
"eslint-import-resolver-typescript": "^3.5.0",
|
|
57
54
|
"eslint-plugin-babel": "^5.3.1",
|
|
58
55
|
"eslint-plugin-import": "^2.25.3",
|
|
59
56
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
@@ -72,14 +69,15 @@
|
|
|
72
69
|
"postcss": "^8.4.16",
|
|
73
70
|
"prettier": "^2.7.1",
|
|
74
71
|
"rollup-plugin-dts": "^4.2.2",
|
|
72
|
+
"rollup-plugin-esbuild": "^4.9.1",
|
|
75
73
|
"rollup-plugin-scss": "^3.0.0",
|
|
76
|
-
"sass": "^1.
|
|
77
|
-
"size-limit": "^8.0.
|
|
78
|
-
"stylelint": "^14.
|
|
74
|
+
"sass": "^1.54.5",
|
|
75
|
+
"size-limit": "^8.0.1",
|
|
76
|
+
"stylelint": "^14.11.0",
|
|
79
77
|
"stylelint-config-standard-scss": "^5.0.0",
|
|
80
78
|
"svg-sprite": "next",
|
|
81
79
|
"typescript": "^4.7.4",
|
|
82
|
-
"vite": "^
|
|
80
|
+
"vite": "^3.0.9"
|
|
83
81
|
},
|
|
84
82
|
"engines": {
|
|
85
83
|
"node": ">=16"
|