cetec-design-system 0.0.22 → 0.0.23

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.
@@ -1026,6 +1026,10 @@ const Me = {
1026
1026
  ...o
1027
1027
  }) => {
1028
1028
  const [n, a] = k(o);
1029
+ function i(d) {
1030
+ return new URL("./sprite.svg", import.meta.url).href + `#${d}`;
1031
+ }
1032
+ const s = i(e);
1029
1033
  return /* @__PURE__ */ p(
1030
1034
  y,
1031
1035
  {
@@ -1035,7 +1039,7 @@ const Me = {
1035
1039
  xmlns: "http://www.w3.org/2000/svg",
1036
1040
  className: h(dt({ size: t, fill: r }), n),
1037
1041
  ...a,
1038
- children: /* @__PURE__ */ p("use", { xlinkHref: `/sprite.svg#${e}` })
1042
+ children: /* @__PURE__ */ p("use", { xlinkHref: s })
1039
1043
  }
1040
1044
  );
1041
1045
  }, eo = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cetec-design-system",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "scripts": {
5
5
  "cssgen": "npx panda cssgen 'src/**/*.css'",
6
6
  "prepare": "npx panda codegen",
@@ -59,20 +59,18 @@
59
59
  "vite-plugin-dts": "^4.5.4"
60
60
  },
61
61
  "eslintConfig": {
62
- "extends": ["plugin:storybook/recommended"]
62
+ "extends": [
63
+ "plugin:storybook/recommended"
64
+ ]
63
65
  },
64
66
  "description": "Cetec-ERP Design System",
65
67
  "main": "./dist/cetec-design-system.es.js",
66
- "module": "./dist/cetec-design-system.es.js",
67
68
  "exports": {
68
69
  ".": {
69
70
  "import": "./dist/cetec-design-system.es.js"
70
71
  },
71
72
  "./styled-system": {
72
73
  "import": "./dist/styled-system"
73
- },
74
- "./icons": {
75
- "import": "./dist/sprite.svg"
76
74
  }
77
75
  },
78
76
  "repository": {
@@ -0,0 +1,3 @@
1
+ export function getSvgUrl(name: string) {
2
+ return new URL(`./sprite.svg`, import.meta.url).href + `#${name}`;
3
+ }