@pixpilot/shadcn-ui 1.9.0 → 1.10.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.
@@ -36,41 +36,40 @@ const AvatarUpload = (props) => {
36
36
  const { className, messages, value, onAccept, onFileSuccess, onFileError, onChange, size = "md", clearable = true,...rest } = props;
37
37
  const { upload = "Upload", change = "Change" } = messages || {};
38
38
  const currentSize = sizeClasses[size];
39
- const [files, setFiles] = react.default.useState([]);
39
+ const [selectedFile, setSelectedFile] = react.default.useState(null);
40
+ const [error, setError] = react.default.useState(null);
40
41
  const imageUrl = value?.url;
41
42
  const handleAccept = react.default.useCallback((acceptedFiles) => {
42
- const nextFiles = acceptedFiles.slice(0, 1);
43
- setFiles(nextFiles.map((file) => {
44
- return {
45
- file,
46
- id: `${file.name}-${file.lastModified.toString()}`
47
- };
48
- }));
49
- onAccept?.(nextFiles);
43
+ const nextFile = acceptedFiles[0];
44
+ setSelectedFile(nextFile == null ? null : {
45
+ file: nextFile,
46
+ id: `${nextFile.name}-${nextFile.lastModified.toString()}`
47
+ });
48
+ onAccept?.(nextFile == null ? [] : [nextFile]);
50
49
  }, [onAccept]);
51
50
  const handleClear = react.default.useCallback(() => {
52
- setFiles([]);
51
+ setSelectedFile(null);
53
52
  onChange?.(null);
54
53
  }, [onChange]);
55
54
  const hasImageUrl = imageUrl != null;
56
- const showClearButton = clearable && (files.length > 0 || hasImageUrl);
55
+ const showClearButton = clearable && (selectedFile != null || hasImageUrl);
57
56
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.FileUpload, {
58
57
  ...rest,
59
58
  multiple: false,
60
59
  onAccept: handleAccept,
61
- className: require_utils.cn("w-fit", className),
60
+ className: require_utils.cn("w-fit ", className),
62
61
  accept: "image/*",
63
62
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.FileUploadDropzone, {
64
- className: currentSize.dropZone,
65
- children: files.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.FileUploadList, { children: files.map(({ file, id }, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AvatarUploadItem.AvatarUploadItem, {
66
- file,
67
- index: i,
63
+ className: require_utils.cn(error != null && "border-red-500", currentSize.dropZone),
64
+ children: selectedFile != null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.FileUploadList, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AvatarUploadItem.AvatarUploadItem, {
65
+ file: selectedFile.file,
68
66
  currentSize,
69
67
  change,
70
68
  onFileSuccess,
69
+ onError: setError,
71
70
  onFileError,
72
71
  onClear: showClearButton ? handleClear : void 0
73
- }, id)) }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_AvatarUploadComponents.MainWrapper, {
72
+ }, selectedFile.id) }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_AvatarUploadComponents.MainWrapper, {
74
73
  currentSize,
75
74
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AvatarUploadComponents.AvatarWrap, {
76
75
  className: currentSize.avatar,
@@ -81,7 +80,7 @@ const AvatarUpload = (props) => {
81
80
  className: "text-muted-foreground w-full h-full",
82
81
  strokeWidth: 1
83
82
  })
84
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AvatarUploadComponents.MessageComponent, { message: hasImageUrl != null ? change : upload })]
83
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AvatarUploadComponents.MessageComponent, { message: value ? change : upload })]
85
84
  })
86
85
  })
87
86
  });
@@ -31,41 +31,40 @@ const AvatarUpload = (props) => {
31
31
  const { className, messages, value, onAccept, onFileSuccess, onFileError, onChange, size = "md", clearable = true,...rest } = props;
32
32
  const { upload = "Upload", change = "Change" } = messages || {};
33
33
  const currentSize = sizeClasses[size];
34
- const [files, setFiles] = React.useState([]);
34
+ const [selectedFile, setSelectedFile] = React.useState(null);
35
+ const [error, setError] = React.useState(null);
35
36
  const imageUrl = value?.url;
36
37
  const handleAccept = React.useCallback((acceptedFiles) => {
37
- const nextFiles = acceptedFiles.slice(0, 1);
38
- setFiles(nextFiles.map((file) => {
39
- return {
40
- file,
41
- id: `${file.name}-${file.lastModified.toString()}`
42
- };
43
- }));
44
- onAccept?.(nextFiles);
38
+ const nextFile = acceptedFiles[0];
39
+ setSelectedFile(nextFile == null ? null : {
40
+ file: nextFile,
41
+ id: `${nextFile.name}-${nextFile.lastModified.toString()}`
42
+ });
43
+ onAccept?.(nextFile == null ? [] : [nextFile]);
45
44
  }, [onAccept]);
46
45
  const handleClear = React.useCallback(() => {
47
- setFiles([]);
46
+ setSelectedFile(null);
48
47
  onChange?.(null);
49
48
  }, [onChange]);
50
49
  const hasImageUrl = imageUrl != null;
51
- const showClearButton = clearable && (files.length > 0 || hasImageUrl);
50
+ const showClearButton = clearable && (selectedFile != null || hasImageUrl);
52
51
  return /* @__PURE__ */ jsx(FileUpload, {
53
52
  ...rest,
54
53
  multiple: false,
55
54
  onAccept: handleAccept,
56
- className: cn$1("w-fit", className),
55
+ className: cn$1("w-fit ", className),
57
56
  accept: "image/*",
58
57
  children: /* @__PURE__ */ jsx(FileUploadDropzone, {
59
- className: currentSize.dropZone,
60
- children: files.length > 0 ? /* @__PURE__ */ jsx(FileUploadList, { children: files.map(({ file, id }, i) => /* @__PURE__ */ jsx(AvatarUploadItem, {
61
- file,
62
- index: i,
58
+ className: cn$1(error != null && "border-red-500", currentSize.dropZone),
59
+ children: selectedFile != null ? /* @__PURE__ */ jsx(FileUploadList, { children: /* @__PURE__ */ jsx(AvatarUploadItem, {
60
+ file: selectedFile.file,
63
61
  currentSize,
64
62
  change,
65
63
  onFileSuccess,
64
+ onError: setError,
66
65
  onFileError,
67
66
  onClear: showClearButton ? handleClear : void 0
68
- }, id)) }) : /* @__PURE__ */ jsxs(MainWrapper, {
67
+ }, selectedFile.id) }) : /* @__PURE__ */ jsxs(MainWrapper, {
69
68
  currentSize,
70
69
  children: [/* @__PURE__ */ jsx(AvatarWrap, {
71
70
  className: currentSize.avatar,
@@ -76,7 +75,7 @@ const AvatarUpload = (props) => {
76
75
  className: "text-muted-foreground w-full h-full",
77
76
  strokeWidth: 1
78
77
  })
79
- }), /* @__PURE__ */ jsx(MessageComponent, { message: hasImageUrl != null ? change : upload })]
78
+ }), /* @__PURE__ */ jsx(MessageComponent, { message: value ? change : upload })]
80
79
  })
81
80
  })
82
81
  });
@@ -26,7 +26,7 @@ const AvatarWrap = ({ children, className, iconClass, showChangeIcon, onClear })
26
26
  type: "button",
27
27
  variant: "secondary",
28
28
  size: "icon",
29
- className: "-top-1 -right-1 absolute size-5 rounded-full",
29
+ className: "-top-2.5 -right-2.5 absolute size-5.5 rounded-full",
30
30
  "aria-label": "Clear avatar",
31
31
  onClick: (e) => {
32
32
  e.stopPropagation();
@@ -21,7 +21,7 @@ const AvatarWrap = ({ children, className, iconClass, showChangeIcon, onClear })
21
21
  type: "button",
22
22
  variant: "secondary",
23
23
  size: "icon",
24
- className: "-top-1 -right-1 absolute size-5 rounded-full",
24
+ className: "-top-2.5 -right-2.5 absolute size-5.5 rounded-full",
25
25
  "aria-label": "Clear avatar",
26
26
  onClick: (e) => {
27
27
  e.stopPropagation();
@@ -7,12 +7,14 @@ let __pixpilot_shadcn = require("@pixpilot/shadcn");
7
7
  __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
8
8
  let lucide_react = require("lucide-react");
9
9
  lucide_react = require_rolldown_runtime.__toESM(lucide_react);
10
+ let react = require("react");
11
+ react = require_rolldown_runtime.__toESM(react);
10
12
  let react_jsx_runtime = require("react/jsx-runtime");
11
13
  react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
12
14
 
13
15
  //#region src/avatar-upload/AvatarUploadItem.tsx
14
16
  const AvatarUploadItem = (props) => {
15
- const { file, currentSize, change, onFileSuccess, onFileError, onClear } = props;
17
+ const { file, currentSize, change = "Change", onFileSuccess, onFileError, onClear, onError } = props;
16
18
  require_use_file_upload_progress_callbacks.useFileUploadProgressCallbacks(file, {
17
19
  onFileSuccess,
18
20
  onFileError
@@ -23,6 +25,12 @@ const AvatarUploadItem = (props) => {
23
25
  if (store.files.get(file)?.status === "uploading") return true;
24
26
  return false;
25
27
  });
28
+ react.default.useEffect(() => {
29
+ if (fileError != null) onError?.(fileError);
30
+ return () => {
31
+ onError?.(null);
32
+ };
33
+ }, [fileError, onError]);
26
34
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.FileUploadItem, {
27
35
  value: file,
28
36
  className: "p-0 border-0 m-0",
@@ -40,7 +48,7 @@ const AvatarUploadItem = (props) => {
40
48
  asChild: true,
41
49
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
42
50
  type: "button",
43
- className: "absolute -top-2 -right-2 p-1",
51
+ className: "absolute -top-3 -left-3 p-1",
44
52
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.AlertCircle, { className: "h-5 w-5 text-red-500" })
45
53
  })
46
54
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TooltipContent, { children: fileError })] }) })]
@@ -4,11 +4,12 @@ import "../file-upload/index.js";
4
4
  import { AvatarWrap, Image, MainWrapper, MessageComponent } from "./AvatarUploadComponents.js";
5
5
  import { FileUploadItem, FileUploadItemProgress, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, cn, useFileUpload } from "@pixpilot/shadcn";
6
6
  import { AlertCircle } from "lucide-react";
7
+ import React from "react";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
8
9
 
9
10
  //#region src/avatar-upload/AvatarUploadItem.tsx
10
11
  const AvatarUploadItem = (props) => {
11
- const { file, currentSize, change, onFileSuccess, onFileError, onClear } = props;
12
+ const { file, currentSize, change = "Change", onFileSuccess, onFileError, onClear, onError } = props;
12
13
  useFileUploadProgressCallbacks(file, {
13
14
  onFileSuccess,
14
15
  onFileError
@@ -19,6 +20,12 @@ const AvatarUploadItem = (props) => {
19
20
  if (store.files.get(file)?.status === "uploading") return true;
20
21
  return false;
21
22
  });
23
+ React.useEffect(() => {
24
+ if (fileError != null) onError?.(fileError);
25
+ return () => {
26
+ onError?.(null);
27
+ };
28
+ }, [fileError, onError]);
22
29
  return /* @__PURE__ */ jsx(FileUploadItem, {
23
30
  value: file,
24
31
  className: "p-0 border-0 m-0",
@@ -36,7 +43,7 @@ const AvatarUploadItem = (props) => {
36
43
  asChild: true,
37
44
  children: /* @__PURE__ */ jsx("button", {
38
45
  type: "button",
39
- className: "absolute -top-2 -right-2 p-1",
46
+ className: "absolute -top-3 -left-3 p-1",
40
47
  children: /* @__PURE__ */ jsx(AlertCircle, { className: "h-5 w-5 text-red-500" })
41
48
  })
42
49
  }), /* @__PURE__ */ jsx(TooltipContent, { children: fileError })] }) })]
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime18 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
2
2
  import { DialogContent } from "@pixpilot/shadcn";
3
3
  import * as React$1 from "react";
4
4
  import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
@@ -13,14 +13,14 @@ declare const DialogContent$1: React$1.ForwardRefExoticComponent<Omit<_radix_ui_
13
13
  declare function DialogHeader({
14
14
  className,
15
15
  ...props
16
- }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime18.JSX.Element;
16
+ }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
17
17
  declare function DialogBody({
18
18
  className,
19
19
  ...props
20
- }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime18.JSX.Element;
20
+ }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
21
21
  declare function DialogFooter({
22
22
  className,
23
23
  ...props
24
- }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime18.JSX.Element;
24
+ }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
25
25
  //#endregion
26
26
  export { DialogBody, DialogContent$1 as DialogContent, DialogContentProps, DialogFooter, DialogHeader };
@@ -1,7 +1,7 @@
1
1
  import { FileUploadProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/file-upload/FileUpload.d.ts
5
- declare function FileUpload(props: FileUploadProps): react_jsx_runtime8.JSX.Element;
5
+ declare function FileUpload(props: FileUploadProps): react_jsx_runtime20.JSX.Element;
6
6
  //#endregion
7
7
  export { FileUpload };
@@ -1,10 +1,10 @@
1
1
  import { FileUploadInlineProps } from "./types.cjs";
2
- import * as react_jsx_runtime10 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/file-upload-inline/FileUploadInline.d.ts
5
5
  /**
6
6
  * FileUploadInline - An inline file upload component using FileUpload primitives
7
7
  */
8
- declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime10.JSX.Element;
8
+ declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime11.JSX.Element;
9
9
  //#endregion
10
10
  export { FileUploadInline };
@@ -1,11 +1,11 @@
1
1
  import { FileUploadRootProps } from "./types.cjs";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/file-upload-root/FileUploadRoot.d.ts
5
5
  /**
6
6
  * FileUploadInline - An inline file upload component using FileUpload primitives
7
7
  */
8
- declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime11.JSX.Element;
8
+ declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime12.JSX.Element;
9
9
  declare namespace FileUploadRoot {
10
10
  var displayName: string;
11
11
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
2
2
  import { InputProps } from "@pixpilot/shadcn";
3
3
  import * as React$1 from "react";
4
4
 
@@ -10,6 +10,6 @@ type InputProps$1 = InputProps & {
10
10
  prefixClassName?: string;
11
11
  suffixClassName?: string;
12
12
  };
13
- declare function Input(props: InputProps$1): react_jsx_runtime9.JSX.Element;
13
+ declare function Input(props: InputProps$1): react_jsx_runtime13.JSX.Element;
14
14
  //#endregion
15
15
  export { Input, InputProps$1 as InputProps };
@@ -1,5 +1,5 @@
1
1
  import { CommandOptionListItem } from "../CommandOptionList.cjs";
2
- import * as react_jsx_runtime13 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input/TagsInput.d.ts
5
5
  interface TagsInputProps {
@@ -57,6 +57,6 @@ declare function TagsInput({
57
57
  addOnTab,
58
58
  onValidate,
59
59
  addButtonVisibility
60
- }: TagsInputProps): react_jsx_runtime13.JSX.Element;
60
+ }: TagsInputProps): react_jsx_runtime15.JSX.Element;
61
61
  //#endregion
62
62
  export { TagsInput, TagsInputProps };
@@ -1,5 +1,5 @@
1
1
  import { CommandOptionListItem } from "../CommandOptionList.js";
2
- import * as react_jsx_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input/TagsInput.d.ts
5
5
  interface TagsInputProps {
@@ -57,6 +57,6 @@ declare function TagsInput({
57
57
  addOnTab,
58
58
  onValidate,
59
59
  addButtonVisibility
60
- }: TagsInputProps): react_jsx_runtime16.JSX.Element;
60
+ }: TagsInputProps): react_jsx_runtime15.JSX.Element;
61
61
  //#endregion
62
62
  export { TagsInput, TagsInputProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
2
2
  import { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, Ref } from "react";
3
3
 
4
4
  //#region src/tags-input/TagsInputInline.d.ts
@@ -75,6 +75,6 @@ declare function TagsInputInline({
75
75
  canAddCurrentValue,
76
76
  onAddCurrentInput,
77
77
  showClear
78
- }: TagsInputInlineProps): react_jsx_runtime12.JSX.Element;
78
+ }: TagsInputInlineProps): react_jsx_runtime14.JSX.Element;
79
79
  //#endregion
80
80
  export { TagsInputInline, TagsInputInlineItem, TagsInputInlineProps };
@@ -1,5 +1,5 @@
1
1
  import { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, Ref } from "react";
2
- import * as react_jsx_runtime15 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input/TagsInputInline.d.ts
5
5
  interface TagsInputInlineItem {
@@ -75,6 +75,6 @@ declare function TagsInputInline({
75
75
  canAddCurrentValue,
76
76
  onAddCurrentInput,
77
77
  showClear
78
- }: TagsInputInlineProps): react_jsx_runtime15.JSX.Element;
78
+ }: TagsInputInlineProps): react_jsx_runtime16.JSX.Element;
79
79
  //#endregion
80
80
  export { TagsInputInline, TagsInputInlineItem, TagsInputInlineProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime14 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeDropdown.d.ts
4
4
  interface ThemeModeDropdownProps {
@@ -17,7 +17,7 @@ interface ThemeModeDropdownProps {
17
17
  * Provides Light / Dark / System options.
18
18
  * Pure component - requires themeValue and onChange props.
19
19
  */
20
- declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime14.JSX.Element;
20
+ declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime16.JSX.Element;
21
21
  declare namespace ThemeModeDropdown {
22
22
  var displayName: string;
23
23
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime18 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeDropdown.d.ts
4
4
  interface ThemeModeDropdownProps {
@@ -17,7 +17,7 @@ interface ThemeModeDropdownProps {
17
17
  * Provides Light / Dark / System options.
18
18
  * Pure component - requires themeValue and onChange props.
19
19
  */
20
- declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime18.JSX.Element;
20
+ declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime17.JSX.Element;
21
21
  declare namespace ThemeModeDropdown {
22
22
  var displayName: string;
23
23
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime15 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeSwitchInside.d.ts
4
4
  type ThemeModeSwitchInsideSize = 'sm' | 'md' | 'lg';
@@ -25,7 +25,7 @@ interface ThemeModeSwitchInsideProps {
25
25
  * Icons are embedded within the switch control.
26
26
  * Pure component - requires value and onChange props.
27
27
  */
28
- declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime15.JSX.Element;
28
+ declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime17.JSX.Element;
29
29
  declare namespace ThemeModeSwitchInside {
30
30
  var displayName: string;
31
31
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime19 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeSwitchInside.d.ts
4
4
  type ThemeModeSwitchInsideSize = 'sm' | 'md' | 'lg';
@@ -25,7 +25,7 @@ interface ThemeModeSwitchInsideProps {
25
25
  * Icons are embedded within the switch control.
26
26
  * Pure component - requires value and onChange props.
27
27
  */
28
- declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime19.JSX.Element;
28
+ declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime18.JSX.Element;
29
29
  declare namespace ThemeModeSwitchInside {
30
30
  var displayName: string;
31
31
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime17 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeSwitchOutside.d.ts
4
4
  interface ThemeModeSwitchOutsideProps {
@@ -22,7 +22,7 @@ interface ThemeModeSwitchOutsideProps {
22
22
  * Icons flank the switch control on either side.
23
23
  * Pure component - requires value and onChange props.
24
24
  */
25
- declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime17.JSX.Element;
25
+ declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime18.JSX.Element;
26
26
  declare namespace ThemeModeSwitchOutside {
27
27
  var displayName: string;
28
28
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime20 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeSwitchOutside.d.ts
4
4
  interface ThemeModeSwitchOutsideProps {
@@ -22,7 +22,7 @@ interface ThemeModeSwitchOutsideProps {
22
22
  * Icons flank the switch control on either side.
23
23
  * Pure component - requires value and onChange props.
24
24
  */
25
- declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime20.JSX.Element;
25
+ declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime19.JSX.Element;
26
26
  declare namespace ThemeModeSwitchOutside {
27
27
  var displayName: string;
28
28
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime16 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeToggleButton.d.ts
4
4
  interface ThemeModeToggleButtonProps {
@@ -13,7 +13,7 @@ interface ThemeModeToggleButtonProps {
13
13
  * Light/Dark toggle button.
14
14
  * Pure component - toggles between light and dark.
15
15
  */
16
- declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime16.JSX.Element;
16
+ declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime19.JSX.Element;
17
17
  declare namespace ThemeModeToggleButton {
18
18
  var displayName: string;
19
19
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime17 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeToggleButton.d.ts
4
4
  interface ThemeModeToggleButtonProps {
@@ -13,7 +13,7 @@ interface ThemeModeToggleButtonProps {
13
13
  * Light/Dark toggle button.
14
14
  * Pure component - toggles between light and dark.
15
15
  */
16
- declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime17.JSX.Element;
16
+ declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime20.JSX.Element;
17
17
  declare namespace ThemeModeToggleButton {
18
18
  var displayName: string;
19
19
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/shadcn-ui",
3
3
  "type": "module",
4
- "version": "1.9.0",
4
+ "version": "1.10.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",