@pixpilot/shadcn-ui 1.30.1 → 1.31.0

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/Button.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { Button, Tooltip, TooltipContent, TooltipTrigger, buttonVariants } from "@pixpilot/shadcn";
3
3
  import React from "react";
4
4
  import { VariantProps } from "class-variance-authority";
@@ -27,7 +27,7 @@ interface ButtonProps extends React.ComponentProps<typeof Button>, VariantProps<
27
27
  }
28
28
  declare function Button$1(props: ButtonProps & {
29
29
  ref?: React.Ref<HTMLButtonElement>;
30
- }): react_jsx_runtime1.JSX.Element;
30
+ }): react_jsx_runtime0.JSX.Element;
31
31
  declare namespace Button$1 {
32
32
  var displayName: string;
33
33
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
2
  import { Button, Tooltip, TooltipContent, TooltipTrigger, buttonVariants } from "@pixpilot/shadcn";
3
3
  import React from "react";
4
4
  import { VariantProps } from "class-variance-authority";
@@ -50,7 +50,7 @@ interface ButtonExtendedProps extends React.ComponentProps<typeof Button>, Varia
50
50
  }
51
51
  declare function ButtonExtended(props: ButtonExtendedProps & {
52
52
  ref?: React.Ref<HTMLButtonElement>;
53
- }): react_jsx_runtime0.JSX.Element;
53
+ }): react_jsx_runtime1.JSX.Element;
54
54
  declare namespace ButtonExtended {
55
55
  var displayName: string;
56
56
  }
@@ -7,30 +7,30 @@ let react_jsx_runtime = require("react/jsx-runtime");
7
7
  react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
8
8
 
9
9
  //#region src/dialog/Dialog.tsx
10
- const DialogContent = react.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.DialogContent, {
10
+ const DialogContent = react.forwardRef(({ className, fullscreen = false,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.DialogContent, {
11
11
  ref,
12
- className: (0, __pixpilot_shadcn.cn)("max-h-[85vh] sm:max-h-[90vh] flex flex-col p-0 gap-0", className),
12
+ className: (0, __pixpilot_shadcn.cn)("max-h-[calc(100%-2rem)] sm:max-h-[calc(100%-2rem)] w-fit max-w-[calc(100%-2rem)] sm:max-w-[calc(100%-2rem)] flex min-h-0 flex-col p-0 gap-0", fullscreen && "h-[calc(100%-2rem)] w-[calc(100%-2rem)] max-w-none sm:max-w-none", className),
13
13
  ...props
14
14
  }));
15
15
  DialogContent.displayName = "DialogContent";
16
16
  function DialogHeader({ className,...props }) {
17
17
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18
18
  "data-slot": "header",
19
- className: (0, __pixpilot_shadcn.cn)("flex flex-col space-y-1.5 px-6 py-4", className),
19
+ className: (0, __pixpilot_shadcn.cn)("flex shrink-0 flex-col space-y-1.5 px-6 py-4", className),
20
20
  ...props
21
21
  });
22
22
  }
23
23
  function DialogBody({ className,...props }) {
24
24
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
25
25
  "data-slot": "body",
26
- className: (0, __pixpilot_shadcn.cn)("flex-1 overflow-y-auto px-6 py-2", className),
26
+ className: (0, __pixpilot_shadcn.cn)("min-h-0 flex-1 overflow-auto px-6 py-2", className),
27
27
  ...props
28
28
  });
29
29
  }
30
30
  function DialogFooter({ className,...props }) {
31
31
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
32
32
  "data-slot": "footer",
33
- className: (0, __pixpilot_shadcn.cn)("flex justify-end space-x-2 px-6 py-4", className),
33
+ className: (0, __pixpilot_shadcn.cn)("flex shrink-0 justify-end space-x-2 px-6 py-4", className),
34
34
  ...props
35
35
  });
36
36
  }
@@ -1,26 +1,23 @@
1
- import * as react_jsx_runtime10 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
2
2
  import { DialogContent } from "@pixpilot/shadcn";
3
3
  import * as React$1 from "react";
4
- import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
5
4
 
6
5
  //#region src/dialog/Dialog.d.ts
7
- type DialogContentProps = React$1.ComponentPropsWithoutRef<typeof DialogContent>;
8
- declare const DialogContent$1: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_dialog0.DialogContentProps & React$1.RefAttributes<HTMLDivElement> & {
9
- showCloseButton?: boolean;
10
- disableOutsideClick?: boolean;
11
- container?: HTMLElement | null;
12
- }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6
+ interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogContent> {
7
+ fullscreen?: boolean;
8
+ }
9
+ declare const DialogContent$1: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
13
10
  declare function DialogHeader({
14
11
  className,
15
12
  ...props
16
- }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime10.JSX.Element;
13
+ }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime20.JSX.Element;
17
14
  declare function DialogBody({
18
15
  className,
19
16
  ...props
20
- }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime10.JSX.Element;
17
+ }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime20.JSX.Element;
21
18
  declare function DialogFooter({
22
19
  className,
23
20
  ...props
24
- }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime10.JSX.Element;
21
+ }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime20.JSX.Element;
25
22
  //#endregion
26
23
  export { DialogBody, DialogContent$1 as DialogContent, DialogContentProps, DialogFooter, DialogHeader };
@@ -1,15 +1,12 @@
1
1
  import { DialogContent } from "@pixpilot/shadcn";
2
2
  import * as React$1 from "react";
3
3
  import * as react_jsx_runtime11 from "react/jsx-runtime";
4
- import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
5
4
 
6
5
  //#region src/dialog/Dialog.d.ts
7
- type DialogContentProps = React$1.ComponentPropsWithoutRef<typeof DialogContent>;
8
- declare const DialogContent$1: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_dialog0.DialogContentProps & React$1.RefAttributes<HTMLDivElement> & {
9
- showCloseButton?: boolean;
10
- disableOutsideClick?: boolean;
11
- container?: HTMLElement | null;
12
- }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6
+ interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogContent> {
7
+ fullscreen?: boolean;
8
+ }
9
+ declare const DialogContent$1: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
13
10
  declare function DialogHeader$1({
14
11
  className,
15
12
  ...props
@@ -3,30 +3,30 @@ import * as React$1 from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
5
5
  //#region src/dialog/Dialog.tsx
6
- const DialogContent$1 = React$1.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(DialogContent, {
6
+ const DialogContent$1 = React$1.forwardRef(({ className, fullscreen = false,...props }, ref) => /* @__PURE__ */ jsx(DialogContent, {
7
7
  ref,
8
- className: cn("max-h-[85vh] sm:max-h-[90vh] flex flex-col p-0 gap-0", className),
8
+ className: cn("max-h-[calc(100%-2rem)] sm:max-h-[calc(100%-2rem)] w-fit max-w-[calc(100%-2rem)] sm:max-w-[calc(100%-2rem)] flex min-h-0 flex-col p-0 gap-0", fullscreen && "h-[calc(100%-2rem)] w-[calc(100%-2rem)] max-w-none sm:max-w-none", className),
9
9
  ...props
10
10
  }));
11
11
  DialogContent$1.displayName = "DialogContent";
12
12
  function DialogHeader$1({ className,...props }) {
13
13
  return /* @__PURE__ */ jsx("div", {
14
14
  "data-slot": "header",
15
- className: cn("flex flex-col space-y-1.5 px-6 py-4", className),
15
+ className: cn("flex shrink-0 flex-col space-y-1.5 px-6 py-4", className),
16
16
  ...props
17
17
  });
18
18
  }
19
19
  function DialogBody({ className,...props }) {
20
20
  return /* @__PURE__ */ jsx("div", {
21
21
  "data-slot": "body",
22
- className: cn("flex-1 overflow-y-auto px-6 py-2", className),
22
+ className: cn("min-h-0 flex-1 overflow-auto px-6 py-2", className),
23
23
  ...props
24
24
  });
25
25
  }
26
26
  function DialogFooter$1({ className,...props }) {
27
27
  return /* @__PURE__ */ jsx("div", {
28
28
  "data-slot": "footer",
29
- className: cn("flex justify-end space-x-2 px-6 py-4", className),
29
+ className: cn("flex shrink-0 justify-end space-x-2 px-6 py-4", className),
30
30
  ...props
31
31
  });
32
32
  }
@@ -1,7 +1,7 @@
1
1
  import { FileUploadProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime22 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/file-upload/FileUpload.d.ts
5
- declare function FileUpload(props: FileUploadProps): react_jsx_runtime22.JSX.Element;
5
+ declare function FileUpload(props: FileUploadProps): react_jsx_runtime10.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_runtime13 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime19 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_runtime13.JSX.Element;
8
+ declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime19.JSX.Element;
9
9
  //#endregion
10
10
  export { FileUploadInline };
@@ -1,10 +1,10 @@
1
1
  import { FileUploadInlineProps } from "./types.js";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime15 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_runtime14.JSX.Element;
8
+ declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime15.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_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 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_runtime14.JSX.Element;
8
+ declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime11.JSX.Element;
9
9
  declare namespace FileUploadRoot {
10
10
  var displayName: string;
11
11
  }
@@ -1,11 +1,11 @@
1
1
  import { FileUploadRootProps } from "./types.js";
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/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_runtime15.JSX.Element;
8
+ declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime16.JSX.Element;
9
9
  declare namespace FileUploadRoot {
10
10
  var displayName: string;
11
11
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime15 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 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_runtime15.JSX.Element;
13
+ declare function Input(props: InputProps$1): react_jsx_runtime12.JSX.Element;
14
14
  //#endregion
15
15
  export { Input, InputProps$1 as InputProps };
@@ -1,6 +1,6 @@
1
1
  import { InputProps } from "@pixpilot/shadcn";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime16 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/input/Input.d.ts
6
6
  type InputProps$1 = InputProps & {
@@ -10,6 +10,6 @@ type InputProps$1 = InputProps & {
10
10
  prefixClassName?: string;
11
11
  suffixClassName?: string;
12
12
  };
13
- declare function Input$1(props: InputProps$1): react_jsx_runtime16.JSX.Element;
13
+ declare function Input$1(props: InputProps$1): react_jsx_runtime14.JSX.Element;
14
14
  //#endregion
15
15
  export { Input$1 as Input, InputProps$1 as InputProps };
@@ -1,5 +1,5 @@
1
1
  import { CommandOptionListItem } from "../CommandOptionList.cjs";
2
- import * as react_jsx_runtime17 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input/TagsInput.d.ts
5
5
  interface TagsInputProps {
@@ -59,6 +59,6 @@ declare function TagsInput({
59
59
  addOnTab,
60
60
  onValidate,
61
61
  addButtonVisibility
62
- }: TagsInputProps): react_jsx_runtime17.JSX.Element;
62
+ }: TagsInputProps): react_jsx_runtime13.JSX.Element;
63
63
  //#endregion
64
64
  export { TagsInput, TagsInputProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime16 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
@@ -77,6 +77,6 @@ declare function TagsInputInline({
77
77
  canAddCurrentValue,
78
78
  onAddCurrentInput,
79
79
  showClear
80
- }: TagsInputInlineProps): react_jsx_runtime16.JSX.Element;
80
+ }: TagsInputInlineProps): react_jsx_runtime14.JSX.Element;
81
81
  //#endregion
82
82
  export { TagsInputInline, TagsInputInlineItem, TagsInputInlineProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime19 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeDropdown.d.ts
4
4
  interface ThemeModeDropdownProps {
@@ -18,7 +18,7 @@ interface ThemeModeDropdownProps {
18
18
  * Provides Light / Dark / System options.
19
19
  * Pure component - requires themeValue and onChange props.
20
20
  */
21
- declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime19.JSX.Element;
21
+ declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime15.JSX.Element;
22
22
  declare namespace ThemeModeDropdown {
23
23
  var displayName: string;
24
24
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime20 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeSwitchInside.d.ts
4
4
  type ThemeModeSwitchInsideSize = 'sm' | 'md' | 'lg';
@@ -26,7 +26,7 @@ interface ThemeModeSwitchInsideProps {
26
26
  * Icons are embedded within the switch control.
27
27
  * Pure component - requires value and onChange props.
28
28
  */
29
- declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime20.JSX.Element;
29
+ declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime16.JSX.Element;
30
30
  declare namespace ThemeModeSwitchInside {
31
31
  var displayName: string;
32
32
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime21 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/theme-toggle/ThemeModeSwitchOutside.d.ts
4
4
  interface ThemeModeSwitchOutsideProps {
@@ -23,7 +23,7 @@ interface ThemeModeSwitchOutsideProps {
23
23
  * Icons flank the switch control on either side.
24
24
  * Pure component - requires value and onChange props.
25
25
  */
26
- declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime21.JSX.Element;
26
+ declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime17.JSX.Element;
27
27
  declare namespace ThemeModeSwitchOutside {
28
28
  var displayName: string;
29
29
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/shadcn-ui",
3
3
  "type": "module",
4
- "version": "1.30.1",
4
+ "version": "1.31.0",
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",
@@ -64,8 +64,8 @@
64
64
  "tailwindcss": "^4.2.2",
65
65
  "tsdown": "^0.15.12",
66
66
  "typescript": "^5.9.3",
67
- "@internal/hooks": "0.0.0",
68
67
  "@internal/eslint-config": "0.3.0",
68
+ "@internal/hooks": "0.0.0",
69
69
  "@internal/prettier-config": "0.0.1",
70
70
  "@internal/tsconfig": "0.1.0",
71
71
  "@internal/tsdown-config": "0.1.0",