@yr3/ui 1.0.0 → 1.0.1

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 CHANGED
@@ -96,20 +96,6 @@ __export(index_exports, {
96
96
  });
97
97
  module.exports = __toCommonJS(index_exports);
98
98
 
99
- // src/style-inject.ts
100
- var import_meta = {};
101
- var ID = "yr3@ui";
102
- function injectStyles() {
103
- if (typeof document === "undefined") return;
104
- if (document.getElementById(ID)) return;
105
- if (typeof document !== "undefined" && typeof import_meta !== "undefined") {
106
- const link = document.createElement("link");
107
- link.rel = "stylesheet";
108
- link.href = new URL("./styles/index.css", import_meta.url).toString();
109
- document.head.appendChild(link);
110
- }
111
- }
112
-
113
99
  // src/utils/bem.ts
114
100
  var bem = (block) => {
115
101
  return (element, modifiers) => {
@@ -2178,7 +2164,6 @@ function useBreakpointValue(values) {
2178
2164
  }
2179
2165
 
2180
2166
  // src/index.ts
2181
- injectStyles();
2182
2167
  initTheme();
2183
2168
  // Annotate the CommonJS export names for ESM import in node:
2184
2169
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -1,16 +1,3 @@
1
- // src/style-inject.ts
2
- var ID = "yr3@ui";
3
- function injectStyles() {
4
- if (typeof document === "undefined") return;
5
- if (document.getElementById(ID)) return;
6
- if (typeof document !== "undefined" && typeof import.meta !== "undefined") {
7
- const link = document.createElement("link");
8
- link.rel = "stylesheet";
9
- link.href = new URL("./styles/index.css", import.meta.url).toString();
10
- document.head.appendChild(link);
11
- }
12
- }
13
-
14
1
  // src/utils/bem.ts
15
2
  var bem = (block) => {
16
3
  return (element, modifiers) => {
@@ -2079,7 +2066,6 @@ function useBreakpointValue(values) {
2079
2066
  }
2080
2067
 
2081
2068
  // src/index.ts
2082
- injectStyles();
2083
2069
  initTheme();
2084
2070
  export {
2085
2071
  Avatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yr3/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",