@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 +6 -5
- package/dist/index.mjs +1 -0
- package/dist/lib/utils.js +0 -1
- package/dist/lib/utils.mjs +0 -1
- package/dist/src/utils.js +0 -1
- package/dist/src/utils.mjs +0 -1
- package/dist/tailwind/index.js +0 -1
- package/dist/tailwind/index.mjs +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.mjs +0 -2
- package/dist/util/format-text.js +0 -1
- package/dist/util/format-text.mjs +0 -1
- package/dist/util/index.js +0 -1
- package/dist/util/index.mjs +0 -1
- package/package.json +1 -1
- package/primitives/file-uploader.tsx +1 -0
- package/primitives/index-client.ts +4 -0
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-
|
|
33
|
-
var
|
|
34
|
-
__export(
|
|
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(
|
|
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
package/dist/lib/utils.mjs
CHANGED
package/dist/src/utils.js
CHANGED
package/dist/src/utils.mjs
CHANGED
package/dist/tailwind/index.js
CHANGED
package/dist/tailwind/index.mjs
CHANGED
package/dist/types/index.js
CHANGED
package/dist/types/index.mjs
CHANGED
package/dist/util/format-text.js
CHANGED
package/dist/util/index.js
CHANGED
package/dist/util/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "4.8.
|
|
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);
|