@20minutes/hela 0.0.1 → 0.0.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/dist/css/articlePage-desktop.css +1 -1
- package/dist/css/articlePage-mobile.css +1 -1
- package/dist/css/global.css +1 -1
- package/dist/index.d.ts +37 -2
- package/dist/index.es.js +38557 -24562
- package/dist/index.umd.js +285 -43
- package/dist/js/main.min.js +1 -0
- package/package.json +13 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";const c=(t,e)=>{const n=t==="dark";e.setAttribute("aria-checked",String(n));const o=e.querySelector("span[aria-hidden]");o&&(o.setAttribute("aria-hidden",String(n)),o.innerHTML=n?"on":"off")},r=(t=document.querySelector(".js-switch-dark-mode"))=>{const e=localStorage.getItem("theme")||"light";e&&t&&(document.documentElement.dataset.theme=e,c(e,t))},a=(t=document.querySelector(".js-switch-dark-mode"))=>{t&&t.addEventListener("click",()=>{const e=document.documentElement.dataset.theme,n=!e||e==="light"?"dark":"light";document.documentElement.dataset.theme=n,localStorage.setItem("theme",n),c(n,t)})};r(),a()})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/hela",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -30,30 +30,27 @@
|
|
|
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.5",
|
|
45
42
|
"@types/react": "^18.0.17",
|
|
46
43
|
"@types/react-dom": "^18.0.6",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^5.33.
|
|
48
|
-
"@typescript-eslint/parser": "^5.33.
|
|
49
|
-
"@vitejs/plugin-react": "^
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
|
45
|
+
"@typescript-eslint/parser": "^5.33.1",
|
|
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.4.
|
|
53
|
+
"eslint-import-resolver-typescript": "^3.4.1",
|
|
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.4",
|
|
75
|
+
"size-limit": "^8.0.1",
|
|
76
|
+
"stylelint": "^14.10.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.7"
|
|
83
81
|
},
|
|
84
82
|
"engines": {
|
|
85
83
|
"node": ">=16"
|