@pixpilot/shadcn-ui 0.8.0 → 0.9.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.
@@ -1,4 +1,6 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
+ let __pixpilot_shadcn = require("@pixpilot/shadcn");
3
+ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
2
4
  let react = require("react");
3
5
  react = require_rolldown_runtime.__toESM(react);
4
6
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -11,11 +13,11 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
11
13
  * This element is positioned absolutely over the button to capture events.
12
14
  */
13
15
  function AbsoluteFill(props) {
14
- const { ref,...rest } = props;
16
+ const { ref, className,...rest } = props;
15
17
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
16
18
  ref,
17
- className: "absolute top-0 right-0 bottom-0 left-0",
18
- ...rest
19
+ ...rest,
20
+ className: (0, __pixpilot_shadcn.cn)("absolute top-0 right-0 bottom-0 left-0", className)
19
21
  });
20
22
  }
21
23
  AbsoluteFill.displayName = "StretchedElement";
@@ -1,3 +1,4 @@
1
+ import { cn } from "@pixpilot/shadcn";
1
2
  import React from "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
 
@@ -8,11 +9,11 @@ import { jsx } from "react/jsx-runtime";
8
9
  * This element is positioned absolutely over the button to capture events.
9
10
  */
10
11
  function AbsoluteFill(props) {
11
- const { ref,...rest } = props;
12
+ const { ref, className,...rest } = props;
12
13
  return /* @__PURE__ */ jsx("div", {
13
14
  ref,
14
- className: "absolute top-0 right-0 bottom-0 left-0",
15
- ...rest
15
+ ...rest,
16
+ className: cn("absolute top-0 right-0 bottom-0 left-0", className)
16
17
  });
17
18
  }
18
19
  AbsoluteFill.displayName = "StretchedElement";
@@ -20,7 +20,8 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
20
20
  * FileUploadInline - An inline file upload component using FileUpload primitives
21
21
  */
22
22
  function FileUploadInline(props) {
23
- const { value, onChange, className, disabled = require_defaults.defaultOptions.disabled, multiple = require_defaults.defaultOptions.multiple, buttonText, showIcon = require_defaults.defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
23
+ const { value, onChange, className, disabled = require_defaults.defaultOptions.disabled, multiple = require_defaults.defaultOptions.multiple, buttonText: buttonTextProp, showIcon = require_defaults.defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
24
+ const buttonText = buttonTextProp ?? (multiple ? "Click to upload files" : "Click to upload a file");
24
25
  const { handleAccept, displayFiles, deleteFile, getFile, orgValue } = require_use_file_upload_store.useFileUploadStore({
25
26
  value,
26
27
  onChange,
@@ -15,7 +15,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  * FileUploadInline - An inline file upload component using FileUpload primitives
16
16
  */
17
17
  function FileUploadInline(props) {
18
- const { value, onChange, className, disabled = defaultOptions.disabled, multiple = defaultOptions.multiple, buttonText, showIcon = defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
18
+ const { value, onChange, className, disabled = defaultOptions.disabled, multiple = defaultOptions.multiple, buttonText: buttonTextProp, showIcon = defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
19
+ const buttonText = buttonTextProp ?? (multiple ? "Click to upload files" : "Click to upload a file");
19
20
  const { handleAccept, displayFiles, deleteFile, getFile, orgValue } = useFileUploadStore({
20
21
  value,
21
22
  onChange,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/shadcn-ui",
3
3
  "type": "module",
4
- "version": "0.8.0",
4
+ "version": "0.9.1",
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",
@@ -57,9 +57,9 @@
57
57
  "react-dom": "19.2.0",
58
58
  "tsdown": "^0.15.12",
59
59
  "typescript": "^5.9.3",
60
- "@internal/eslint-config": "0.3.0",
61
60
  "@internal/prettier-config": "0.0.1",
62
61
  "@internal/tsconfig": "0.1.0",
62
+ "@internal/eslint-config": "0.3.0",
63
63
  "@internal/tsdown-config": "0.1.0",
64
64
  "@internal/vitest-config": "0.1.0"
65
65
  },