@oliasoft-open-source/react-ui-library 3.6.4 → 3.7.0
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/index.js +2 -2
- package/package.json +13 -10
package/dist/index.js
CHANGED
|
@@ -9020,7 +9020,7 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
|
|
|
9020
9020
|
},
|
|
9021
9021
|
onClick: (evt) => onClick && !disabledContext ? onClick(evt) : {},
|
|
9022
9022
|
"data-testid": testId,
|
|
9023
|
-
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && icon2.includes(".svg") ? /* @__PURE__ */ jsx(ReactSVG, {
|
|
9023
|
+
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsx(ReactSVG, {
|
|
9024
9024
|
className: styles$N.customSvg,
|
|
9025
9025
|
beforeInjection: (svg) => {
|
|
9026
9026
|
if (size2) {
|
|
@@ -9029,7 +9029,7 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
|
|
|
9029
9029
|
}
|
|
9030
9030
|
},
|
|
9031
9031
|
src: icon2
|
|
9032
|
-
}) : typeof icon2 === "string" && icon2.includes(".png") ? /* @__PURE__ */ jsx("img", {
|
|
9032
|
+
}) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", {
|
|
9033
9033
|
alt: "icon",
|
|
9034
9034
|
className: styles$N.customPng,
|
|
9035
9035
|
src: icon2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/react-ui-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Reusable UI components for React projects",
|
|
5
5
|
"homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
|
|
6
6
|
"bugs": {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"build:css": "lessc src/style/external.less dist/gui-library.css",
|
|
24
24
|
"build:docs": "vite build --config vite.config.docs.mjs",
|
|
25
25
|
"build:package": "vite build --config vite.config.mjs",
|
|
26
|
-
"build:storybook": "NODE_OPTIONS=--openssl-legacy-provider
|
|
26
|
+
"build:storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook build --quiet --output-dir ./public/storybook",
|
|
27
27
|
"dev:docs": "vite --config vite.config.docs.mjs",
|
|
28
|
-
"dev:storybook": "NODE_OPTIONS=--openssl-legacy-provider
|
|
28
|
+
"dev:storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 6006",
|
|
29
29
|
"lint:check": "eslint \"**/*.{js,jsx}\"",
|
|
30
30
|
"lint:fix": "eslint --fix \"**/*.{js,jsx}\"",
|
|
31
31
|
"prepare": "husky install",
|
|
@@ -72,12 +72,13 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@oliasoft-open-source/units": "^2.6.1",
|
|
75
|
-
"@storybook/addon-actions": "^
|
|
76
|
-
"@storybook/addon-essentials": "^
|
|
77
|
-
"@storybook/addon-links": "^
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@storybook/react": "^
|
|
75
|
+
"@storybook/addon-actions": "^7.0.18",
|
|
76
|
+
"@storybook/addon-essentials": "^7.0.18",
|
|
77
|
+
"@storybook/addon-links": "^7.0.18",
|
|
78
|
+
"@storybook/addon-mdx-gfm": "^7.0.18",
|
|
79
|
+
"@storybook/addons": "^7.0.18",
|
|
80
|
+
"@storybook/react": "^7.0.18",
|
|
81
|
+
"@storybook/react-vite": "^7.0.18",
|
|
81
82
|
"@types/lodash": "^4.14.172",
|
|
82
83
|
"@types/react": "^17.0.21",
|
|
83
84
|
"@types/react-redux": "^7.1.18",
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
93
94
|
"eslint-plugin-react": "^7.25.1",
|
|
94
95
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
96
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
95
97
|
"eslint-plugin-vitest": "^0.2.5",
|
|
96
98
|
"eslint-plugin-vitest-globals": "^1.3.1",
|
|
97
99
|
"http-server": "^14.1.1",
|
|
@@ -106,7 +108,8 @@
|
|
|
106
108
|
"react-dom": "^17.0",
|
|
107
109
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
108
110
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
109
|
-
"storybook
|
|
111
|
+
"storybook": "^7.0.18",
|
|
112
|
+
"storybook-dark-mode": "^3.0.0",
|
|
110
113
|
"vite": "^3.1.8",
|
|
111
114
|
"vite-plugin-html": "^3.2.0",
|
|
112
115
|
"vite-preset-react": "^2.3.0",
|