wj-elements 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.
Files changed (2) hide show
  1. package/dist/wj-icon.js +2 -0
  2. package/package.json +2 -2
package/dist/wj-icon.js CHANGED
@@ -110,6 +110,8 @@ const getName = (iconName) => {
110
110
  return iconName;
111
111
  };
112
112
  const getNamedUrl = (iconName) => {
113
+ const url = new URL(`/assets/img/icons/svg/${iconName}.svg`, "");
114
+ console.log(url);
113
115
  return `/assets/img/icons/svg/${iconName}.svg`;
114
116
  };
115
117
  const styles = "/*!\n* direction.scss\n*/\n/* Skeleton Variables */\n/*\n[ Icon ]\n*/\n:host(.wj-color-primary) {\n --wj-color-base: #eae0fb !important;\n --wj-color-contrast: #845ae0 !important;\n}\n:host(.wj-color-complete) {\n --wj-color-base: #d3eeff !important;\n --wj-color-contrast: #0f8ff9 !important;\n}\n:host(.wj-color-success) {\n --wj-color-base: #d6f7f0 !important;\n --wj-color-contrast: #26bf93 !important;\n}\n:host(.wj-color-warning) {\n --wj-color-base: #fffde1 !important;\n --wj-color-contrast: #ffe858 !important;\n}\n:host(.wj-color-danger) {\n --wj-color-base: #fde2da !important;\n --wj-color-contrast: #e6533c !important;\n}\n:host(.wj-color-info) {\n --wj-color-base: #dbe6e8 !important;\n --wj-color-contrast: #475b6b !important;\n}\n:host(.wj-color-menu) {\n --wj-color-base: #f4f4f4 !important;\n --wj-color-contrast: #21252d !important;\n}\n:host {\n --wj-icon-width: 100%;\n --wj-icon-height: 100%;\n display: inline-block;\n width: 1em;\n height: 1em;\n contain: strict;\n fill: currentColor;\n box-sizing: content-box !important;\n}\n.icon-inner, svg {\n display: block;\n height: var(--wj-icon-height);\n width: var(--wj-icon-width);\n}\n:host(.wj-size-small) {\n --wj-icon-size: 18px;\n}\n:host(.wj-size-large) {\n --wj-icon-size: 32px;\n}\n:host(.wj-size) {\n font-size: var(--wj-icon-size) !important;\n}\n:host(.wj-color) {\n color: var(--wj-color-contrast);\n}";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "wj-elements",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "./dist"
8
8
  ],
9
- "module": "./dist2/my-lib.js",
9
+ "module": "./dist/wj-master.js",
10
10
  "scripts": {
11
11
  "dev": "vite",
12
12
  "build": "vite build",