@pixpilot/shadcn-ui 0.49.0 → 0.51.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 +2 -2
- package/dist/ColorSelect.d.cts +2 -2
- package/dist/DatePicker.d.cts +2 -2
- package/dist/LoadingOverlay.cjs +31 -7
- package/dist/LoadingOverlay.d.cts +45 -3
- package/dist/LoadingOverlay.d.ts +45 -3
- package/dist/LoadingOverlay.js +31 -7
- package/dist/Rating.d.cts +3 -3
- package/dist/Select.d.cts +2 -2
- package/dist/dialog/Dialog.d.cts +4 -4
- package/dist/file-upload-inline/FileUploadInline.d.cts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/input/Input.d.cts +2 -2
- package/dist/tags-input/TagsInput.d.cts +2 -2
- package/dist/tags-input/TagsInput.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.ts +2 -2
- package/dist/toast/types.d.cts +1 -0
- package/dist/toast/types.d.ts +1 -0
- package/package.json +3 -3
package/dist/Button.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import { Button, Tooltip, buttonVariants } from "@pixpilot/shadcn";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
@@ -39,7 +39,7 @@ interface ButtonProps extends React.ComponentProps<typeof Button>, VariantProps<
|
|
|
39
39
|
}
|
|
40
40
|
declare function Button$1(props: ButtonProps & {
|
|
41
41
|
ref?: React.Ref<HTMLButtonElement>;
|
|
42
|
-
}):
|
|
42
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
43
43
|
declare namespace Button$1 {
|
|
44
44
|
var displayName: string;
|
|
45
45
|
}
|
package/dist/ColorSelect.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
@@ -15,6 +15,6 @@ type BaseColorSelectProps = {
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
keyboardMode?: 'cycle' | 'dropdown';
|
|
17
17
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
18
|
-
declare function ColorSelect(props: BaseColorSelectProps):
|
|
18
|
+
declare function ColorSelect(props: BaseColorSelectProps): react_jsx_runtime1.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { BaseColorSelectProps, ColorSelect, ColorSelectOption };
|
package/dist/DatePicker.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { Calendar } from "@pixpilot/shadcn";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ type DatePickerProps = {
|
|
|
8
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
} & Omit<ComponentProps<typeof Calendar>, 'selected' | 'onSelect' | 'mode'>;
|
|
11
|
-
declare function DatePicker(props: DatePickerProps):
|
|
11
|
+
declare function DatePicker(props: DatePickerProps): react_jsx_runtime3.JSX.Element;
|
|
12
12
|
declare namespace DatePicker {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
package/dist/LoadingOverlay.cjs
CHANGED
|
@@ -15,7 +15,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
15
15
|
const DEFAULT_DELAY = 0;
|
|
16
16
|
const FADE_DURATION = 300;
|
|
17
17
|
const LoadingOverlay = (props) => {
|
|
18
|
-
const { backdrop = true, placement = "center", loading, delay = DEFAULT_DELAY, message } = props;
|
|
18
|
+
const { backdrop = true, placement = "center", loading, delay = DEFAULT_DELAY, message, scope = "container ", size = "default", className, spinnerClassName, messageClassName } = props;
|
|
19
19
|
const [mounted, setMounted] = (0, react.useState)(false);
|
|
20
20
|
const [visible, setVisible] = (0, react.useState)(false);
|
|
21
21
|
(0, react.useEffect)(() => {
|
|
@@ -47,19 +47,43 @@ const LoadingOverlay = (props) => {
|
|
|
47
47
|
center: "items-center",
|
|
48
48
|
bottom: "items-end pb-[50px]"
|
|
49
49
|
}[placement];
|
|
50
|
+
const sizeClass = {
|
|
51
|
+
sm: "h-6 w-6",
|
|
52
|
+
default: "h-10 w-10",
|
|
53
|
+
lg: "h-16 w-16"
|
|
54
|
+
}[size];
|
|
55
|
+
const messageSizeClass = {
|
|
56
|
+
sm: "text-xs",
|
|
57
|
+
default: "text-sm",
|
|
58
|
+
lg: "text-base"
|
|
59
|
+
}[size];
|
|
50
60
|
if (!mounted) return null;
|
|
51
61
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
52
|
-
className: (0, __pixpilot_shadcn.cn)("
|
|
62
|
+
className: (0, __pixpilot_shadcn.cn)("inset-0 z-[9999] flex justify-center transition-opacity", scope === "fullscreen" ? "fixed" : "absolute", positionClass, backdrop ? "bg-black/50" : "pointer-events-none", visible ? "opacity-100" : "opacity-0", className),
|
|
53
63
|
style: { transitionDuration: `${FADE_DURATION}ms` },
|
|
64
|
+
role: "status",
|
|
65
|
+
"aria-live": "polite",
|
|
66
|
+
"aria-busy": loading,
|
|
54
67
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
55
|
-
className: "flex flex-col items-center",
|
|
56
|
-
children: [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
className: "flex flex-col items-center gap-2",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Loader2, {
|
|
71
|
+
className: (0, __pixpilot_shadcn.cn)("text-foreground animate-spin", sizeClass, spinnerClassName),
|
|
72
|
+
"aria-hidden": "true"
|
|
73
|
+
}),
|
|
74
|
+
message != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
75
|
+
className: (0, __pixpilot_shadcn.cn)("text-foreground font-medium", messageSizeClass, messageClassName),
|
|
76
|
+
children: message
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
79
|
+
className: "sr-only",
|
|
80
|
+
children: message || "Loading, please wait..."
|
|
81
|
+
})
|
|
82
|
+
]
|
|
60
83
|
})
|
|
61
84
|
});
|
|
62
85
|
};
|
|
86
|
+
LoadingOverlay.displayName = "LoadingOverlay";
|
|
63
87
|
|
|
64
88
|
//#endregion
|
|
65
89
|
exports.LoadingOverlay = LoadingOverlay;
|
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/LoadingOverlay.d.ts
|
|
4
|
-
interface
|
|
4
|
+
interface LoadingOverlayProps {
|
|
5
|
+
/**
|
|
6
|
+
* Show semi-transparent backdrop
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
5
9
|
backdrop?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Vertical alignment of the loader
|
|
12
|
+
* @default 'center'
|
|
13
|
+
*/
|
|
6
14
|
placement?: 'top' | 'bottom' | 'center';
|
|
15
|
+
/**
|
|
16
|
+
* Whether to show the loader
|
|
17
|
+
*/
|
|
7
18
|
loading: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Optional loading message to display below spinner
|
|
21
|
+
*/
|
|
8
22
|
message?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Delay in milliseconds before showing the loader
|
|
25
|
+
* @default 0
|
|
26
|
+
*/
|
|
9
27
|
delay?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Scope of the loader overlay
|
|
30
|
+
* - 'container': Fills parent container (requires parent with position: relative)
|
|
31
|
+
* - 'fullscreen': Covers entire viewport
|
|
32
|
+
* @default 'container'
|
|
33
|
+
*/
|
|
34
|
+
scope?: 'container' | 'fullscreen';
|
|
35
|
+
/**
|
|
36
|
+
* Size of the spinner
|
|
37
|
+
* @default 'default'
|
|
38
|
+
*/
|
|
39
|
+
size?: 'sm' | 'default' | 'lg';
|
|
40
|
+
/**
|
|
41
|
+
* Custom class name for the overlay wrapper
|
|
42
|
+
*/
|
|
43
|
+
className?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Custom class name for the spinner
|
|
46
|
+
*/
|
|
47
|
+
spinnerClassName?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Custom class name for the message
|
|
50
|
+
*/
|
|
51
|
+
messageClassName?: string;
|
|
10
52
|
}
|
|
11
|
-
declare const LoadingOverlay: React.FC<
|
|
53
|
+
declare const LoadingOverlay: React.FC<LoadingOverlayProps>;
|
|
12
54
|
//#endregion
|
|
13
|
-
export {
|
|
55
|
+
export { LoadingOverlay, LoadingOverlayProps };
|
package/dist/LoadingOverlay.d.ts
CHANGED
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/LoadingOverlay.d.ts
|
|
4
|
-
interface
|
|
4
|
+
interface LoadingOverlayProps {
|
|
5
|
+
/**
|
|
6
|
+
* Show semi-transparent backdrop
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
5
9
|
backdrop?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Vertical alignment of the loader
|
|
12
|
+
* @default 'center'
|
|
13
|
+
*/
|
|
6
14
|
placement?: 'top' | 'bottom' | 'center';
|
|
15
|
+
/**
|
|
16
|
+
* Whether to show the loader
|
|
17
|
+
*/
|
|
7
18
|
loading: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Optional loading message to display below spinner
|
|
21
|
+
*/
|
|
8
22
|
message?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Delay in milliseconds before showing the loader
|
|
25
|
+
* @default 0
|
|
26
|
+
*/
|
|
9
27
|
delay?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Scope of the loader overlay
|
|
30
|
+
* - 'container': Fills parent container (requires parent with position: relative)
|
|
31
|
+
* - 'fullscreen': Covers entire viewport
|
|
32
|
+
* @default 'container'
|
|
33
|
+
*/
|
|
34
|
+
scope?: 'container' | 'fullscreen';
|
|
35
|
+
/**
|
|
36
|
+
* Size of the spinner
|
|
37
|
+
* @default 'default'
|
|
38
|
+
*/
|
|
39
|
+
size?: 'sm' | 'default' | 'lg';
|
|
40
|
+
/**
|
|
41
|
+
* Custom class name for the overlay wrapper
|
|
42
|
+
*/
|
|
43
|
+
className?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Custom class name for the spinner
|
|
46
|
+
*/
|
|
47
|
+
spinnerClassName?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Custom class name for the message
|
|
50
|
+
*/
|
|
51
|
+
messageClassName?: string;
|
|
10
52
|
}
|
|
11
|
-
declare const LoadingOverlay: React.FC<
|
|
53
|
+
declare const LoadingOverlay: React.FC<LoadingOverlayProps>;
|
|
12
54
|
//#endregion
|
|
13
|
-
export {
|
|
55
|
+
export { LoadingOverlay, LoadingOverlayProps };
|
package/dist/LoadingOverlay.js
CHANGED
|
@@ -10,7 +10,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
const DEFAULT_DELAY = 0;
|
|
11
11
|
const FADE_DURATION = 300;
|
|
12
12
|
const LoadingOverlay = (props) => {
|
|
13
|
-
const { backdrop = true, placement = "center", loading, delay = DEFAULT_DELAY, message } = props;
|
|
13
|
+
const { backdrop = true, placement = "center", loading, delay = DEFAULT_DELAY, message, scope = "container ", size = "default", className, spinnerClassName, messageClassName } = props;
|
|
14
14
|
const [mounted, setMounted] = useState(false);
|
|
15
15
|
const [visible, setVisible] = useState(false);
|
|
16
16
|
useEffect(() => {
|
|
@@ -42,19 +42,43 @@ const LoadingOverlay = (props) => {
|
|
|
42
42
|
center: "items-center",
|
|
43
43
|
bottom: "items-end pb-[50px]"
|
|
44
44
|
}[placement];
|
|
45
|
+
const sizeClass = {
|
|
46
|
+
sm: "h-6 w-6",
|
|
47
|
+
default: "h-10 w-10",
|
|
48
|
+
lg: "h-16 w-16"
|
|
49
|
+
}[size];
|
|
50
|
+
const messageSizeClass = {
|
|
51
|
+
sm: "text-xs",
|
|
52
|
+
default: "text-sm",
|
|
53
|
+
lg: "text-base"
|
|
54
|
+
}[size];
|
|
45
55
|
if (!mounted) return null;
|
|
46
56
|
return /* @__PURE__ */ jsx("div", {
|
|
47
|
-
className: cn("
|
|
57
|
+
className: cn("inset-0 z-[9999] flex justify-center transition-opacity", scope === "fullscreen" ? "fixed" : "absolute", positionClass, backdrop ? "bg-black/50" : "pointer-events-none", visible ? "opacity-100" : "opacity-0", className),
|
|
48
58
|
style: { transitionDuration: `${FADE_DURATION}ms` },
|
|
59
|
+
role: "status",
|
|
60
|
+
"aria-live": "polite",
|
|
61
|
+
"aria-busy": loading,
|
|
49
62
|
children: /* @__PURE__ */ jsxs("div", {
|
|
50
|
-
className: "flex flex-col items-center",
|
|
51
|
-
children: [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
63
|
+
className: "flex flex-col items-center gap-2",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsx(Loader2, {
|
|
66
|
+
className: cn("text-foreground animate-spin", sizeClass, spinnerClassName),
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
}),
|
|
69
|
+
message != null && /* @__PURE__ */ jsx("div", {
|
|
70
|
+
className: cn("text-foreground font-medium", messageSizeClass, messageClassName),
|
|
71
|
+
children: message
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsx("span", {
|
|
74
|
+
className: "sr-only",
|
|
75
|
+
children: message || "Loading, please wait..."
|
|
76
|
+
})
|
|
77
|
+
]
|
|
55
78
|
})
|
|
56
79
|
});
|
|
57
80
|
};
|
|
81
|
+
LoadingOverlay.displayName = "LoadingOverlay";
|
|
58
82
|
|
|
59
83
|
//#endregion
|
|
60
84
|
export { LoadingOverlay };
|
package/dist/Rating.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -35,7 +35,7 @@ declare function RatingButton({
|
|
|
35
35
|
index,
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: RatingButtonProps):
|
|
38
|
+
}: RatingButtonProps): react_jsx_runtime4.JSX.Element;
|
|
39
39
|
declare function Rating({
|
|
40
40
|
value: valueProp,
|
|
41
41
|
defaultValue,
|
|
@@ -52,6 +52,6 @@ declare function Rating({
|
|
|
52
52
|
className,
|
|
53
53
|
children,
|
|
54
54
|
...props
|
|
55
|
-
}: React$1.PropsWithChildren<RatingProps>):
|
|
55
|
+
}: React$1.PropsWithChildren<RatingProps>): react_jsx_runtime4.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps };
|
package/dist/Select.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
@@ -46,6 +46,6 @@ type BaseSelectProps = {
|
|
|
46
46
|
*/
|
|
47
47
|
clearable?: boolean;
|
|
48
48
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
49
|
-
declare function Select$1(props: BaseSelectProps):
|
|
49
|
+
declare function Select$1(props: BaseSelectProps): react_jsx_runtime6.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Select$1 as Select, SelectContentProps, SelectOption };
|
package/dist/dialog/Dialog.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
|
|
4
4
|
|
|
@@ -9,14 +9,14 @@ declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<_radix_ui_re
|
|
|
9
9
|
declare function DialogHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
12
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime9.JSX.Element;
|
|
13
13
|
declare function DialogBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
16
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime9.JSX.Element;
|
|
17
17
|
declare function DialogFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
20
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime9.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { DialogBody, DialogContent, DialogFooter, DialogHeader };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 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):
|
|
8
|
+
declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime12.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
package/dist/index.d.cts
CHANGED
|
@@ -41,7 +41,7 @@ import { LayoutFooter, LayoutFooterProps } from "./layout/LayoutFooter.cjs";
|
|
|
41
41
|
import { LayoutHeader, LayoutHeaderProps } from "./layout/LayoutHeader.cjs";
|
|
42
42
|
import { LayoutMain, LayoutMainProps } from "./layout/LayoutMain.cjs";
|
|
43
43
|
import "./layout/index.cjs";
|
|
44
|
-
import {
|
|
44
|
+
import { LoadingOverlay, LoadingOverlayProps } from "./LoadingOverlay.cjs";
|
|
45
45
|
import { Pagination, PaginationProps } from "./pagination/Pagination.cjs";
|
|
46
46
|
import "./pagination/index.cjs";
|
|
47
47
|
import { Popover, PopoverAnchor, PopoverContent, PopoverContentProps, PopoverTrigger } from "./popover/Popover.cjs";
|
|
@@ -79,4 +79,4 @@ import "./toast/index.cjs";
|
|
|
79
79
|
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue } from "./ToggleGroup.cjs";
|
|
80
80
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "./utils/svg.cjs";
|
|
81
81
|
import { cn } from "@pixpilot/shadcn";
|
|
82
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps,
|
|
82
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoadingOverlay, LoadingOverlayProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverTrigger, PresetColor, Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectContentProps, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputInline, TagsInputInlineItem, TagsInputInlineProps, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastMessage, Toaster, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue, ToolbarItems, cn, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ import { LayoutFooter, LayoutFooterProps } from "./layout/LayoutFooter.js";
|
|
|
43
43
|
import { LayoutHeader, LayoutHeaderProps } from "./layout/LayoutHeader.js";
|
|
44
44
|
import { LayoutMain, LayoutMainProps } from "./layout/LayoutMain.js";
|
|
45
45
|
import "./layout/index.js";
|
|
46
|
-
import {
|
|
46
|
+
import { LoadingOverlay, LoadingOverlayProps } from "./LoadingOverlay.js";
|
|
47
47
|
import { Pagination, PaginationProps } from "./pagination/Pagination.js";
|
|
48
48
|
import "./pagination/index.js";
|
|
49
49
|
import { Popover, PopoverAnchor, PopoverContent, PopoverContentProps, PopoverTrigger } from "./popover/Popover.js";
|
|
@@ -81,4 +81,4 @@ import "./toast/index.js";
|
|
|
81
81
|
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue } from "./ToggleGroup.js";
|
|
82
82
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "./utils/svg.js";
|
|
83
83
|
import { cn } from "@pixpilot/shadcn";
|
|
84
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps,
|
|
84
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoadingOverlay, LoadingOverlayProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverTrigger, PresetColor, Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectContentProps, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputInline, TagsInputInlineItem, TagsInputInlineProps, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastMessage, Toaster, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue, ToolbarItems, cn, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/input/Input.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 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):
|
|
13
|
+
declare function Input(props: InputProps$1): react_jsx_runtime8.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
|
|
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):
|
|
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
|
|
2
|
+
import * as react_jsx_runtime14 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):
|
|
60
|
+
}: TagsInputProps): react_jsx_runtime14.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { TagsInput, TagsInputProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 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):
|
|
16
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime14.JSX.Element;
|
|
17
17
|
declare namespace ThemeModeToggleButton {
|
|
18
18
|
var displayName: string;
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 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):
|
|
16
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime15.JSX.Element;
|
|
17
17
|
declare namespace ThemeModeToggleButton {
|
|
18
18
|
var displayName: string;
|
|
19
19
|
}
|
package/dist/toast/types.d.cts
CHANGED
package/dist/toast/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/shadcn-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.51.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",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"react-dom": "19.2.0",
|
|
61
61
|
"tsdown": "^0.15.12",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
|
-
"@internal/
|
|
63
|
+
"@internal/hooks": "0.0.0",
|
|
64
64
|
"@internal/prettier-config": "0.0.1",
|
|
65
|
+
"@internal/eslint-config": "0.3.0",
|
|
65
66
|
"@internal/tsconfig": "0.1.0",
|
|
66
|
-
"@internal/hooks": "0.0.0",
|
|
67
67
|
"@internal/tsdown-config": "0.1.0",
|
|
68
68
|
"@internal/vitest-config": "0.1.0"
|
|
69
69
|
},
|