@pixpilot/shadcn-ui 0.4.2 → 0.4.4

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/Alert.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
- const require_utils = require('./packages/shadcn/src/lib/utils.cjs');
2
+ const require_utils = require('./shadcn/src/lib/utils.cjs');
3
+ require('./shadcn/src/lib/index.cjs');
3
4
  let __pixpilot_shadcn = require("@pixpilot/shadcn");
4
5
  __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
5
6
  let lucide_react = require("lucide-react");
package/dist/Alert.js CHANGED
@@ -1,4 +1,5 @@
1
- import { cn as cn$1 } from "./packages/shadcn/src/lib/utils.js";
1
+ import { cn as cn$1 } from "./shadcn/src/lib/utils.js";
2
+ import "./shadcn/src/lib/index.js";
2
3
  import { Alert, AlertDescription, AlertTitle } from "@pixpilot/shadcn";
3
4
  import { CircleAlertIcon, CircleCheckBigIcon, OctagonAlertIcon } from "lucide-react";
4
5
  import React from "react";
@@ -1,5 +1,4 @@
1
1
  import "react";
2
- import "@ebay/nice-modal-react";
3
2
 
4
3
  //#region src/confirmation-dialog/ConfirmationDialog.d.ts
5
4
  interface ConfirmationDialogProps {
@@ -1,3 +1,2 @@
1
1
  import { FileMetadata, FileUploadBaseProps, FileUploadProgressCallBacks, FileUploadProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, SingleFileUploadProps } from "./types/index.cjs";
2
- import { FileUpload } from "./FileUpload.cjs";
3
- import "./hooks/index.cjs";
2
+ import { FileUpload } from "./FileUpload.cjs";
@@ -0,0 +1 @@
1
+ const require_utils = require('./utils.cjs');
@@ -0,0 +1 @@
1
+ import { cn } from "./utils.js";
@@ -0,0 +1,13 @@
1
+ const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
+ let clsx = require("clsx");
3
+ clsx = require_rolldown_runtime.__toESM(clsx);
4
+ let tailwind_merge = require("tailwind-merge");
5
+ tailwind_merge = require_rolldown_runtime.__toESM(tailwind_merge);
6
+
7
+ //#region ../shadcn/src/lib/utils.ts
8
+ function cn(...inputs) {
9
+ return (0, tailwind_merge.twMerge)((0, clsx.clsx)(inputs));
10
+ }
11
+
12
+ //#endregion
13
+ exports.cn = cn;
@@ -0,0 +1,10 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+
4
+ //#region ../shadcn/src/lib/utils.ts
5
+ function cn(...inputs) {
6
+ return twMerge(clsx(inputs));
7
+ }
8
+
9
+ //#endregion
10
+ export { cn };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/shadcn-ui",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.4",
5
5
  "description": "Custom UI components and utilities built with shadcn/ui.",
6
6
  "author": "m.doaie <m.doaie@hotmail.com>",
7
7
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "pretty-bytes": "^7.1.0",
45
45
  "react-responsive": "^10.0.1",
46
46
  "sonner": "2.0.7",
47
- "@pixpilot/shadcn": "0.3.1"
47
+ "@pixpilot/shadcn": "0.3.2"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@storybook/react": "^8.5.3",
@@ -1,2 +0,0 @@
1
- import "./use-file-upload-progress-callbacks.cjs";
2
- import "./use-file-upload-store.cjs";
@@ -1 +0,0 @@
1
- import "../types/index.cjs";
@@ -1,2 +0,0 @@
1
- import "../types/index.cjs";
2
- import "../utils/index.cjs";
@@ -1 +0,0 @@
1
- import "../types/index.cjs";
@@ -1 +0,0 @@
1
- import "../types/index.cjs";
@@ -1,4 +0,0 @@
1
- import "./get-file-key.cjs";
2
- import "./get-file-meta.cjs";
3
- import "./is-file-equal.cjs";
4
- import "./merge-file-metadata.cjs";
@@ -1 +0,0 @@
1
- import "../types/index.cjs";
@@ -1 +0,0 @@
1
- import "../types/index.cjs";
@@ -1,18 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
3
- function r(e) {
4
- var t, f, n = "";
5
- if ("string" == typeof e || "number" == typeof e) n += e;
6
- else if ("object" == typeof e) if (Array.isArray(e)) {
7
- var o = e.length;
8
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
9
- } else for (f in e) e[f] && (n && (n += " "), n += f);
10
- return n;
11
- }
12
- function clsx() {
13
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
14
- return n;
15
- }
16
-
17
- //#endregion
18
- exports.clsx = clsx;
@@ -1,17 +0,0 @@
1
- //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
2
- function r(e) {
3
- var t, f, n = "";
4
- if ("string" == typeof e || "number" == typeof e) n += e;
5
- else if ("object" == typeof e) if (Array.isArray(e)) {
6
- var o = e.length;
7
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
8
- } else for (f in e) e[f] && (n && (n += " "), n += f);
9
- return n;
10
- }
11
- function clsx() {
12
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
13
- return n;
14
- }
15
-
16
- //#endregion
17
- export { clsx };