@hanzo/ui 4.8.3 → 4.8.5

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
@@ -1,5 +1,5 @@
1
- "use client";
2
1
  "use strict";
2
+ "use client";
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -29,9 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  ));
30
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
31
 
32
- // primitives/index-next.ts
33
- var index_next_exports = {};
34
- __export(index_next_exports, {
32
+ // primitives/index-client.ts
33
+ var index_client_exports = {};
34
+ __export(index_client_exports, {
35
35
  AIAgentIcon: () => AIAgentIcon,
36
36
  AISearchContentIcon: () => AISearchContentIcon,
37
37
  Accordion: () => Accordion,
@@ -351,7 +351,7 @@ __export(index_next_exports, {
351
351
  toggleVariants: () => toggleVariants,
352
352
  useFormField: () => useFormField
353
353
  });
354
- module.exports = __toCommonJS(index_next_exports);
354
+ module.exports = __toCommonJS(index_client_exports);
355
355
 
356
356
  // primitives/accordion.tsx
357
357
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
@@ -8158,6 +8158,7 @@ var import_jsx_runtime61 = require("react/jsx-runtime");
8158
8158
  var useTranslation2 = /* @__PURE__ */ __name(() => ({ t: /* @__PURE__ */ __name((key) => key, "t") }), "useTranslation");
8159
8159
  var partial = /* @__PURE__ */ __name(() => (bytes) => `${(bytes / 1024 / 1024).toFixed(2)} MB`, "partial");
8160
8160
  var openFile = /* @__PURE__ */ __name((file) => {
8161
+ if (typeof window === "undefined") return;
8161
8162
  const fileURL = window.URL.createObjectURL(file);
8162
8163
  window.open(fileURL, "_blank");
8163
8164
  URL.revokeObjectURL(fileURL);
package/dist/index.mjs CHANGED
@@ -7815,6 +7815,7 @@ import { jsx as jsx61, jsxs as jsxs30 } from "react/jsx-runtime";
7815
7815
  var useTranslation2 = /* @__PURE__ */ __name(() => ({ t: /* @__PURE__ */ __name((key) => key, "t") }), "useTranslation");
7816
7816
  var partial = /* @__PURE__ */ __name(() => (bytes) => `${(bytes / 1024 / 1024).toFixed(2)} MB`, "partial");
7817
7817
  var openFile = /* @__PURE__ */ __name((file) => {
7818
+ if (typeof window === "undefined") return;
7818
7819
  const fileURL = window.URL.createObjectURL(file);
7819
7820
  window.open(fileURL, "_blank");
7820
7821
  URL.revokeObjectURL(fileURL);
package/dist/lib/utils.js CHANGED
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  "use strict";
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
 
package/dist/src/utils.js CHANGED
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  "use strict";
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
 
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  "use strict";
3
2
  var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
 
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  "use strict";
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  // tailwind/screens.tailwind.js
4
2
  var screens_tailwind_default = {
5
3
  xs: "0px",
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  "use strict";
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
 
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  "use strict";
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
3
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "4.8.3",
3
+ "version": "4.8.5",
4
4
  "description": "Multi-framework UI library with React, Vue, Svelte, and React Native support. Based on shadcn/ui with comprehensive framework coverage.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -13,6 +13,7 @@ import { Button } from './button';
13
13
  import { ScrollArea } from './scroll-area';
14
14
 
15
15
  const openFile = (file: File): void => {
16
+ if (typeof window === 'undefined') return;
16
17
  const fileURL = window.URL.createObjectURL(file);
17
18
  window.open(fileURL, '_blank');
18
19
  URL.revokeObjectURL(fileURL);
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ // Re-export everything from the main index
4
+ export * from './index-next';