@pixpilot/shadcn-ui 3.13.0 → 3.14.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/absolute-fill/AbsoluteFill.d.ts +2 -2
- package/dist/button/Button.d.ts +2 -2
- package/dist/button-extended/ButtonExtended.d.ts +2 -2
- package/dist/card/Card.d.ts +3 -3
- package/dist/color-select/ColorSelect.d.cts +2 -2
- package/dist/color-select/ColorSelect.d.ts +2 -2
- package/dist/content-card/ContentCard.d.cts +2 -2
- package/dist/content-card/ContentCard.d.ts +2 -2
- package/dist/date-picker/DatePicker.d.ts +2 -2
- package/dist/dialog/Dialog.cjs +13 -5
- package/dist/dialog/Dialog.d.ts +5 -5
- package/dist/dialog/Dialog.js +13 -5
- package/dist/drawer/Drawer.cjs +21 -13
- package/dist/drawer/Drawer.d.ts +6 -6
- package/dist/drawer/Drawer.js +21 -13
- package/dist/file-upload/FileUpload.d.ts +2 -2
- package/dist/file-upload-inline/FileUploadInline.d.ts +2 -2
- package/dist/file-upload-root/FileUploadRoot.d.ts +2 -2
- package/dist/input/Input.d.ts +2 -2
- package/dist/overlay-panel/overlay-interaction.cjs +8 -0
- package/dist/overlay-panel/overlay-interaction.js +7 -0
- package/dist/rating/Rating.d.ts +3 -3
- package/dist/select/Select.d.ts +2 -2
- package/dist/tags-input/TagsInput.d.cts +2 -2
- package/dist/tags-input/TagsInput.d.ts +2 -2
- package/dist/tags-input/TagsInputInline.d.cts +2 -2
- package/dist/tags-input/TagsInputInline.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.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/ToastProvider.cjs +20 -1
- package/dist/toast/ToastProvider.d.cts +5 -4
- package/dist/toast/ToastProvider.d.ts +4 -3
- package/dist/toast/ToastProvider.js +18 -1
- package/dist/toast/mcp.js +4 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/absolute-fill/AbsoluteFill.d.ts
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
|
10
10
|
*/
|
|
11
11
|
declare function AbsoluteFill(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
12
12
|
ref?: React.Ref<HTMLDivElement>;
|
|
13
|
-
}):
|
|
13
|
+
}): react_jsx_runtime7.JSX.Element;
|
|
14
14
|
declare namespace AbsoluteFill {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, Tooltip, TooltipContent, TooltipTrigger, buttonVariants } from "@pixpilot/shadcn";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
|
|
6
6
|
//#region src/button/Button.d.ts
|
|
@@ -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
|
-
}):
|
|
30
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
31
31
|
declare namespace Button$1 {
|
|
32
32
|
var displayName: string;
|
|
33
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, Tooltip, TooltipContent, TooltipTrigger, buttonVariants } from "@pixpilot/shadcn";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
|
|
6
6
|
//#region src/button-extended/ButtonExtended.d.ts
|
|
@@ -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
|
-
}):
|
|
53
|
+
}): react_jsx_runtime10.JSX.Element;
|
|
54
54
|
declare namespace ButtonExtended {
|
|
55
55
|
var displayName: string;
|
|
56
56
|
}
|
package/dist/card/Card.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@pixpilot/shadcn";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/card/Card.d.ts
|
|
6
6
|
declare function CardTitle$1({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof CardTitle>):
|
|
9
|
+
}: React.ComponentProps<typeof CardTitle>): react_jsx_runtime11.JSX.Element;
|
|
10
10
|
declare function CardHeader$1({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof CardHeader>):
|
|
13
|
+
}: React.ComponentProps<typeof CardHeader>): react_jsx_runtime11.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader$1 as CardHeader, CardTitle$1 as CardTitle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
@@ -17,6 +17,6 @@ type BaseColorSelectProps = {
|
|
|
17
17
|
keyboardMode?: 'cycle' | 'dropdown';
|
|
18
18
|
className?: string;
|
|
19
19
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
20
|
-
declare function ColorSelect(props: BaseColorSelectProps):
|
|
20
|
+
declare function ColorSelect(props: BaseColorSelectProps): react_jsx_runtime5.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { BaseColorSelectProps, ColorSelect, ColorSelectOption };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
2
2
|
import React, { ComponentProps } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/color-select/ColorSelect.d.ts
|
|
6
6
|
interface ColorSelectOption {
|
|
@@ -17,6 +17,6 @@ type BaseColorSelectProps = {
|
|
|
17
17
|
keyboardMode?: 'cycle' | 'dropdown';
|
|
18
18
|
className?: string;
|
|
19
19
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
20
|
-
declare function ColorSelect(props: BaseColorSelectProps):
|
|
20
|
+
declare function ColorSelect(props: BaseColorSelectProps): react_jsx_runtime13.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { BaseColorSelectProps, ColorSelect, ColorSelectOption };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Card } from "../card/Card.cjs";
|
|
2
2
|
import "../card/index.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/content-card/ContentCard.d.ts
|
|
@@ -9,7 +9,7 @@ interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
marginBottom?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare function ContentCard(props: SectionCardProps):
|
|
12
|
+
declare function ContentCard(props: SectionCardProps): react_jsx_runtime6.JSX.Element;
|
|
13
13
|
declare namespace ContentCard {
|
|
14
14
|
var displayName: string;
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Card } from "../card/Card.js";
|
|
2
2
|
import "../card/index.js";
|
|
3
3
|
import React, { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/content-card/ContentCard.d.ts
|
|
7
7
|
interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
@@ -9,7 +9,7 @@ interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
marginBottom?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare function ContentCard(props: SectionCardProps):
|
|
12
|
+
declare function ContentCard(props: SectionCardProps): react_jsx_runtime14.JSX.Element;
|
|
13
13
|
declare namespace ContentCard {
|
|
14
14
|
var displayName: string;
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Calendar } from "@pixpilot/shadcn";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/date-picker/DatePicker.d.ts
|
|
6
6
|
type DatePickerProps = {
|
|
@@ -10,7 +10,7 @@ type DatePickerProps = {
|
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
showClearButton?: boolean;
|
|
12
12
|
} & Omit<ComponentProps<typeof Calendar>, 'selected' | 'onSelect' | 'mode'>;
|
|
13
|
-
declare function DatePicker(props: DatePickerProps):
|
|
13
|
+
declare function DatePicker(props: DatePickerProps): react_jsx_runtime15.JSX.Element;
|
|
14
14
|
declare namespace DatePicker {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
package/dist/dialog/Dialog.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_overlay_interaction = require('../overlay-panel/overlay-interaction.cjs');
|
|
2
3
|
const require_OverlayPanel = require('../overlay-panel/OverlayPanel.cjs');
|
|
3
4
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
4
5
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
@@ -8,11 +9,18 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
8
9
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
10
|
|
|
10
11
|
//#region src/dialog/Dialog.tsx
|
|
11
|
-
const DialogContent = react.forwardRef(({ className, fullscreen = false,...props }, ref) =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
12
|
+
const DialogContent = react.forwardRef(({ className, fullscreen = false, onPointerDownOutside,...props }, ref) => {
|
|
13
|
+
const handleOnPointerDownOutside = react.useCallback((event) => {
|
|
14
|
+
onPointerDownOutside?.(event);
|
|
15
|
+
if (require_overlay_interaction.isToastInteractionTarget(event.target)) event.preventDefault();
|
|
16
|
+
}, [onPointerDownOutside]);
|
|
17
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.DialogContent, {
|
|
18
|
+
ref,
|
|
19
|
+
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 gap-4 px-6 py-5", fullscreen && "h-[calc(100%-2rem)] w-[calc(100%-2rem)] max-w-none sm:max-w-none", className),
|
|
20
|
+
onPointerDownOutside: handleOnPointerDownOutside,
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
});
|
|
16
24
|
DialogContent.displayName = "DialogContent";
|
|
17
25
|
function DialogHeader(props) {
|
|
18
26
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_OverlayPanel.OverlayPanelHeader, {
|
package/dist/dialog/Dialog.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { DialogClose, DialogContent } from "@pixpilot/shadcn";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/dialog/Dialog.d.ts
|
|
6
6
|
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogContent> {
|
|
7
7
|
fullscreen?: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const DialogContent$1: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare function DialogHeader$1(props: React$1.HTMLAttributes<HTMLDivElement>):
|
|
11
|
-
declare function DialogBody(props: React$1.HTMLAttributes<HTMLDivElement>):
|
|
12
|
-
declare function DialogFooter$1(props: React$1.HTMLAttributes<HTMLDivElement>):
|
|
10
|
+
declare function DialogHeader$1(props: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime16.JSX.Element;
|
|
11
|
+
declare function DialogBody(props: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime16.JSX.Element;
|
|
12
|
+
declare function DialogFooter$1(props: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime16.JSX.Element;
|
|
13
13
|
declare function DialogClose$1({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentPropsWithoutRef<typeof DialogClose>):
|
|
16
|
+
}: React$1.ComponentPropsWithoutRef<typeof DialogClose>): react_jsx_runtime16.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { DialogBody, DialogClose$1 as DialogClose, DialogContent$1 as DialogContent, DialogContentProps, DialogFooter$1 as DialogFooter, DialogHeader$1 as DialogHeader };
|
package/dist/dialog/Dialog.js
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+
import { isToastInteractionTarget } from "../overlay-panel/overlay-interaction.js";
|
|
1
2
|
import { OverlayPanelBody, OverlayPanelFooter, OverlayPanelHeader } from "../overlay-panel/OverlayPanel.js";
|
|
2
3
|
import { DialogClose, DialogContent, cn } from "@pixpilot/shadcn";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
|
|
6
7
|
//#region src/dialog/Dialog.tsx
|
|
7
|
-
const DialogContent$1 = React$1.forwardRef(({ className, fullscreen = false,...props }, ref) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
8
|
+
const DialogContent$1 = React$1.forwardRef(({ className, fullscreen = false, onPointerDownOutside,...props }, ref) => {
|
|
9
|
+
const handleOnPointerDownOutside = React$1.useCallback((event) => {
|
|
10
|
+
onPointerDownOutside?.(event);
|
|
11
|
+
if (isToastInteractionTarget(event.target)) event.preventDefault();
|
|
12
|
+
}, [onPointerDownOutside]);
|
|
13
|
+
return /* @__PURE__ */ jsx(DialogContent, {
|
|
14
|
+
ref,
|
|
15
|
+
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 gap-4 px-6 py-5", fullscreen && "h-[calc(100%-2rem)] w-[calc(100%-2rem)] max-w-none sm:max-w-none", className),
|
|
16
|
+
onPointerDownOutside: handleOnPointerDownOutside,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
12
20
|
DialogContent$1.displayName = "DialogContent";
|
|
13
21
|
function DialogHeader$1(props) {
|
|
14
22
|
return /* @__PURE__ */ jsx(OverlayPanelHeader, {
|
package/dist/drawer/Drawer.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_overlay_interaction = require('../overlay-panel/overlay-interaction.cjs');
|
|
2
3
|
const require_OverlayPanel = require('../overlay-panel/OverlayPanel.cjs');
|
|
3
4
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
4
5
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
@@ -46,20 +47,27 @@ function Drawer({ noDrag = false,...props }) {
|
|
|
46
47
|
* so they deterministically override the registry's `rounded-t-lg`/`rounded-b-lg`.
|
|
47
48
|
*/
|
|
48
49
|
const floatingClass = (0, __pixpilot_shadcn.cn)("overflow-hidden border shadow-lg", "data-[vaul-drawer-direction=bottom]:inset-x-3 data-[vaul-drawer-direction=bottom]:bottom-3 data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=bottom]:rounded-b-2xl", "data-[vaul-drawer-direction=top]:inset-x-3 data-[vaul-drawer-direction=top]:top-3 data-[vaul-drawer-direction=top]:rounded-t-2xl data-[vaul-drawer-direction=top]:rounded-b-2xl", "data-[vaul-drawer-direction=right]:inset-y-3 data-[vaul-drawer-direction=right]:right-3 data-[vaul-drawer-direction=right]:rounded-2xl", "data-[vaul-drawer-direction=left]:inset-y-3 data-[vaul-drawer-direction=left]:left-3 data-[vaul-drawer-direction=left]:rounded-2xl");
|
|
49
|
-
const DrawerContent = react.forwardRef(({ className, floating = true, showCloseButton = true, noDrag,...props }, ref) =>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
className: "
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
const DrawerContent = react.forwardRef(({ className, floating = true, showCloseButton = true, noDrag, onPointerDownOutside,...props }, ref) => {
|
|
51
|
+
const handleOnPointerDownOutside = react.useCallback((event) => {
|
|
52
|
+
onPointerDownOutside?.(event);
|
|
53
|
+
if (require_overlay_interaction.isToastInteractionTarget(event.target)) event.preventDefault();
|
|
54
|
+
}, [onPointerDownOutside]);
|
|
55
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.DrawerContent, {
|
|
56
|
+
ref,
|
|
57
|
+
className: (0, __pixpilot_shadcn.cn)("min-h-0 gap-4 px-6 pb-6", floating && floatingClass, className),
|
|
58
|
+
...useNoDragProps(noDrag),
|
|
59
|
+
onPointerDownOutside: handleOnPointerDownOutside,
|
|
60
|
+
...props,
|
|
61
|
+
children: [props.children, showCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.DrawerClose, {
|
|
62
|
+
"data-slot": "drawer-close",
|
|
63
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
64
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.XIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
65
|
+
className: "sr-only",
|
|
66
|
+
children: "Close"
|
|
67
|
+
})]
|
|
60
68
|
})]
|
|
61
|
-
})
|
|
62
|
-
})
|
|
69
|
+
});
|
|
70
|
+
});
|
|
63
71
|
DrawerContent.displayName = "DrawerContent";
|
|
64
72
|
function DrawerHeader({ noDrag,...props }) {
|
|
65
73
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_OverlayPanel.OverlayPanelHeader, {
|
package/dist/drawer/Drawer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Drawer, DrawerClose, DrawerContent } from "@pixpilot/shadcn";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
4
4
|
import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
|
|
5
5
|
|
|
6
6
|
//#region src/drawer/Drawer.d.ts
|
|
@@ -22,7 +22,7 @@ type DrawerProps = React$1.ComponentProps<typeof Drawer> & NoDragProps;
|
|
|
22
22
|
declare function Drawer$1({
|
|
23
23
|
noDrag,
|
|
24
24
|
...props
|
|
25
|
-
}: DrawerProps):
|
|
25
|
+
}: DrawerProps): react_jsx_runtime20.JSX.Element;
|
|
26
26
|
type DrawerContentProps = React$1.ComponentPropsWithoutRef<typeof DrawerContent> & NoDragProps & {
|
|
27
27
|
/**
|
|
28
28
|
* Detach the drawer from the viewport edges: adds a gap on every side and
|
|
@@ -44,19 +44,19 @@ declare const DrawerContent$1: React$1.ForwardRefExoticComponent<Omit<Omit<_radi
|
|
|
44
44
|
declare function DrawerHeader({
|
|
45
45
|
noDrag,
|
|
46
46
|
...props
|
|
47
|
-
}: React$1.HTMLAttributes<HTMLDivElement> & NoDragProps):
|
|
47
|
+
}: React$1.HTMLAttributes<HTMLDivElement> & NoDragProps): react_jsx_runtime20.JSX.Element;
|
|
48
48
|
declare function DrawerBody({
|
|
49
49
|
noDrag,
|
|
50
50
|
...props
|
|
51
|
-
}: React$1.HTMLAttributes<HTMLDivElement> & NoDragProps):
|
|
51
|
+
}: React$1.HTMLAttributes<HTMLDivElement> & NoDragProps): react_jsx_runtime20.JSX.Element;
|
|
52
52
|
declare function DrawerFooter({
|
|
53
53
|
noDrag,
|
|
54
54
|
...props
|
|
55
|
-
}: React$1.HTMLAttributes<HTMLDivElement> & NoDragProps):
|
|
55
|
+
}: React$1.HTMLAttributes<HTMLDivElement> & NoDragProps): react_jsx_runtime20.JSX.Element;
|
|
56
56
|
declare function DrawerClose$1({
|
|
57
57
|
className,
|
|
58
58
|
noDrag,
|
|
59
59
|
...props
|
|
60
|
-
}: React$1.ComponentPropsWithoutRef<typeof DrawerClose> & NoDragProps):
|
|
60
|
+
}: React$1.ComponentPropsWithoutRef<typeof DrawerClose> & NoDragProps): react_jsx_runtime20.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { Drawer$1 as Drawer, DrawerBody, DrawerClose$1 as DrawerClose, DrawerContent$1 as DrawerContent, DrawerContentProps, DrawerFooter, DrawerHeader, DrawerProps };
|
package/dist/drawer/Drawer.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isToastInteractionTarget } from "../overlay-panel/overlay-interaction.js";
|
|
1
2
|
import { OverlayPanelBody, OverlayPanelFooter, OverlayPanelHeader } from "../overlay-panel/OverlayPanel.js";
|
|
2
3
|
import { Drawer, DrawerClose, DrawerContent, cn } from "@pixpilot/shadcn";
|
|
3
4
|
import { XIcon } from "lucide-react";
|
|
@@ -41,20 +42,27 @@ function Drawer$1({ noDrag = false,...props }) {
|
|
|
41
42
|
* so they deterministically override the registry's `rounded-t-lg`/`rounded-b-lg`.
|
|
42
43
|
*/
|
|
43
44
|
const floatingClass = cn("overflow-hidden border shadow-lg", "data-[vaul-drawer-direction=bottom]:inset-x-3 data-[vaul-drawer-direction=bottom]:bottom-3 data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=bottom]:rounded-b-2xl", "data-[vaul-drawer-direction=top]:inset-x-3 data-[vaul-drawer-direction=top]:top-3 data-[vaul-drawer-direction=top]:rounded-t-2xl data-[vaul-drawer-direction=top]:rounded-b-2xl", "data-[vaul-drawer-direction=right]:inset-y-3 data-[vaul-drawer-direction=right]:right-3 data-[vaul-drawer-direction=right]:rounded-2xl", "data-[vaul-drawer-direction=left]:inset-y-3 data-[vaul-drawer-direction=left]:left-3 data-[vaul-drawer-direction=left]:rounded-2xl");
|
|
44
|
-
const DrawerContent$1 = React$1.forwardRef(({ className, floating = true, showCloseButton = true, noDrag,...props }, ref) =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
className: "
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
const DrawerContent$1 = React$1.forwardRef(({ className, floating = true, showCloseButton = true, noDrag, onPointerDownOutside,...props }, ref) => {
|
|
46
|
+
const handleOnPointerDownOutside = React$1.useCallback((event) => {
|
|
47
|
+
onPointerDownOutside?.(event);
|
|
48
|
+
if (isToastInteractionTarget(event.target)) event.preventDefault();
|
|
49
|
+
}, [onPointerDownOutside]);
|
|
50
|
+
return /* @__PURE__ */ jsxs(DrawerContent, {
|
|
51
|
+
ref,
|
|
52
|
+
className: cn("min-h-0 gap-4 px-6 pb-6", floating && floatingClass, className),
|
|
53
|
+
...useNoDragProps(noDrag),
|
|
54
|
+
onPointerDownOutside: handleOnPointerDownOutside,
|
|
55
|
+
...props,
|
|
56
|
+
children: [props.children, showCloseButton && /* @__PURE__ */ jsxs(DrawerClose, {
|
|
57
|
+
"data-slot": "drawer-close",
|
|
58
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
59
|
+
children: [/* @__PURE__ */ jsx(XIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
60
|
+
className: "sr-only",
|
|
61
|
+
children: "Close"
|
|
62
|
+
})]
|
|
55
63
|
})]
|
|
56
|
-
})
|
|
57
|
-
})
|
|
64
|
+
});
|
|
65
|
+
});
|
|
58
66
|
DrawerContent$1.displayName = "DrawerContent";
|
|
59
67
|
function DrawerHeader({ noDrag,...props }) {
|
|
60
68
|
return /* @__PURE__ */ jsx(OverlayPanelHeader, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileUploadProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/file-upload/FileUpload.d.ts
|
|
5
|
-
declare function FileUpload(props: FileUploadProps):
|
|
5
|
+
declare function FileUpload(props: FileUploadProps): react_jsx_runtime8.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { FileUpload };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime25 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_runtime25.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FileUploadRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 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):
|
|
8
|
+
declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime26.JSX.Element;
|
|
9
9
|
declare namespace FileUploadRoot {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
package/dist/input/Input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputProps } from "@pixpilot/shadcn";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime27 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):
|
|
13
|
+
declare function Input$1(props: InputProps$1): react_jsx_runtime27.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input$1 as Input, InputProps$1 as InputProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/overlay-panel/overlay-interaction.ts
|
|
3
|
+
function isToastInteractionTarget(target) {
|
|
4
|
+
return target instanceof Element && target.closest("[data-sonner-toast]") !== null;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.isToastInteractionTarget = isToastInteractionTarget;
|
package/dist/rating/Rating.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -35,7 +35,7 @@ declare function RatingButton({
|
|
|
35
35
|
index,
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: RatingButtonProps):
|
|
38
|
+
}: RatingButtonProps): react_jsx_runtime28.JSX.Element;
|
|
39
39
|
declare function Rating({
|
|
40
40
|
value: valueProp,
|
|
41
41
|
defaultValue,
|
|
@@ -53,6 +53,6 @@ declare function Rating({
|
|
|
53
53
|
children,
|
|
54
54
|
id,
|
|
55
55
|
...props
|
|
56
|
-
}: React$1.PropsWithChildren<RatingProps>):
|
|
56
|
+
}: React$1.PropsWithChildren<RatingProps>): react_jsx_runtime28.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps };
|
package/dist/select/Select.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select, SelectContent, SelectTrigger } from "@pixpilot/shadcn";
|
|
2
2
|
import React, { ComponentProps } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/select/Select.d.ts
|
|
6
6
|
interface SelectOption {
|
|
@@ -60,6 +60,6 @@ type BaseSelectProps = {
|
|
|
60
60
|
/** Styles the visible trigger. */
|
|
61
61
|
className?: string;
|
|
62
62
|
} & Omit<ComponentProps<typeof SelectTrigger>, 'onChange' | 'value'>;
|
|
63
|
-
declare function Select$1(props: BaseSelectProps):
|
|
63
|
+
declare function Select$1(props: BaseSelectProps): react_jsx_runtime0.JSX.Element;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { BaseSelectProps, Select$1 as Select, SelectContentProps, SelectOption };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommandOptionListItem } from "../command-option-list/CommandOptionList.cjs";
|
|
2
2
|
import { TagsInputInline } from "./TagsInputInline.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/tags-input/TagsInput.d.ts
|
|
@@ -32,6 +32,6 @@ interface TagsInputProps extends Omit<ComponentProps<typeof TagsInputInline>, 'o
|
|
|
32
32
|
* - Options support with dropdown (like Select)
|
|
33
33
|
* - freeSolo mode for custom tags (like MUI Autocomplete)
|
|
34
34
|
*/
|
|
35
|
-
declare function TagsInput(props: TagsInputProps):
|
|
35
|
+
declare function TagsInput(props: TagsInputProps): react_jsx_runtime27.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { TagsInput, TagsInputProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandOptionListItem } from "../command-option-list/CommandOptionList.js";
|
|
2
2
|
import { TagsInputInline } from "./TagsInputInline.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/tags-input/TagsInput.d.ts
|
|
7
7
|
interface TagsInputProps extends Omit<ComponentProps<typeof TagsInputInline>, 'onChange' | 'value' | 'onValueChange' | 'onValidate' | 'items' | 'max' | 'inputRef' | 'inputPlaceholder' | 'inputValue' | 'onInputFocus' | 'onInputChange' | 'onInputKeyDown' | 'onInputMouseDown' | 'onListClick' | 'canAddCurrentValue' | 'onAddCurrentInput' | 'showClear'> {
|
|
@@ -32,6 +32,6 @@ interface TagsInputProps extends Omit<ComponentProps<typeof TagsInputInline>, 'o
|
|
|
32
32
|
* - Options support with dropdown (like Select)
|
|
33
33
|
* - freeSolo mode for custom tags (like MUI Autocomplete)
|
|
34
34
|
*/
|
|
35
|
-
declare function TagsInput(props: TagsInputProps):
|
|
35
|
+
declare function TagsInput(props: TagsInputProps): react_jsx_runtime1.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { TagsInput, TagsInputProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime28 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):
|
|
80
|
+
}: TagsInputInlineProps): react_jsx_runtime28.JSX.Element;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { TagsInputInline, TagsInputInlineItem, TagsInputInlineProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, Ref } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input/TagsInputInline.d.ts
|
|
5
5
|
interface TagsInputInlineItem {
|
|
@@ -77,6 +77,6 @@ declare function TagsInputInline({
|
|
|
77
77
|
canAddCurrentValue,
|
|
78
78
|
onAddCurrentInput,
|
|
79
79
|
showClear
|
|
80
|
-
}: TagsInputInlineProps):
|
|
80
|
+
}: TagsInputInlineProps): react_jsx_runtime0.JSX.Element;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { TagsInputInline, TagsInputInlineItem, TagsInputInlineProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 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):
|
|
21
|
+
declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime23.JSX.Element;
|
|
22
22
|
declare namespace ThemeModeDropdown {
|
|
23
23
|
var displayName: string;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 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):
|
|
21
|
+
declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime3.JSX.Element;
|
|
22
22
|
declare namespace ThemeModeDropdown {
|
|
23
23
|
var displayName: string;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime25 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):
|
|
29
|
+
declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime25.JSX.Element;
|
|
30
30
|
declare namespace ThemeModeSwitchInside {
|
|
31
31
|
var displayName: string;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 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):
|
|
29
|
+
declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime4.JSX.Element;
|
|
30
30
|
declare namespace ThemeModeSwitchInside {
|
|
31
31
|
var displayName: string;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 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):
|
|
26
|
+
declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime24.JSX.Element;
|
|
27
27
|
declare namespace ThemeModeSwitchOutside {
|
|
28
28
|
var displayName: string;
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 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):
|
|
26
|
+
declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime5.JSX.Element;
|
|
27
27
|
declare namespace ThemeModeSwitchOutside {
|
|
28
28
|
var displayName: string;
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeToggleButton.d.ts
|
|
4
4
|
interface ThemeModeToggleButtonProps {
|
|
@@ -14,7 +14,7 @@ interface ThemeModeToggleButtonProps {
|
|
|
14
14
|
* Light/Dark toggle button.
|
|
15
15
|
* Pure component - toggles between light and dark.
|
|
16
16
|
*/
|
|
17
|
-
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps):
|
|
17
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime26.JSX.Element;
|
|
18
18
|
declare namespace ThemeModeToggleButton {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeToggleButton.d.ts
|
|
4
4
|
interface ThemeModeToggleButtonProps {
|
|
@@ -14,7 +14,7 @@ interface ThemeModeToggleButtonProps {
|
|
|
14
14
|
* Light/Dark toggle button.
|
|
15
15
|
* Pure component - toggles between light and dark.
|
|
16
16
|
*/
|
|
17
|
-
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps):
|
|
17
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime2.JSX.Element;
|
|
18
18
|
declare namespace ThemeModeToggleButton {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
2
6
|
let sonner = require("sonner");
|
|
3
7
|
sonner = require_rolldown_runtime.__toESM(sonner);
|
|
4
8
|
|
|
5
9
|
//#region src/toast/ToastProvider.tsx
|
|
6
|
-
|
|
10
|
+
function Toaster(props) {
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(sonner.Toaster, {
|
|
12
|
+
...props,
|
|
13
|
+
style: {
|
|
14
|
+
...props.style,
|
|
15
|
+
pointerEvents: "auto"
|
|
16
|
+
},
|
|
17
|
+
toastOptions: {
|
|
18
|
+
...props.toastOptions,
|
|
19
|
+
style: {
|
|
20
|
+
...props.toastOptions?.style,
|
|
21
|
+
pointerEvents: "auto"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
7
26
|
|
|
8
27
|
//#endregion
|
|
9
28
|
exports.Toaster = Toaster;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { Toaster } from "sonner";
|
|
3
4
|
|
|
4
5
|
//#region src/toast/ToastProvider.d.ts
|
|
5
|
-
declare
|
|
6
|
+
declare function Toaster$1(props: React$1.ComponentProps<typeof Toaster>): react_jsx_runtime29.JSX.Element;
|
|
6
7
|
//#endregion
|
|
7
|
-
export { Toaster };
|
|
8
|
+
export { Toaster$1 as Toaster };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
|
+
import { Toaster } from "sonner";
|
|
3
4
|
|
|
4
5
|
//#region src/toast/ToastProvider.d.ts
|
|
5
|
-
declare
|
|
6
|
+
declare function Toaster$1(props: React$1.ComponentProps<typeof Toaster>): react_jsx_runtime6.JSX.Element;
|
|
6
7
|
//#endregion
|
|
7
8
|
export { Toaster$1 as Toaster };
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
3
|
import { Toaster } from "sonner";
|
|
2
4
|
|
|
3
5
|
//#region src/toast/ToastProvider.tsx
|
|
4
|
-
|
|
6
|
+
function Toaster$1(props) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Toaster, {
|
|
8
|
+
...props,
|
|
9
|
+
style: {
|
|
10
|
+
...props.style,
|
|
11
|
+
pointerEvents: "auto"
|
|
12
|
+
},
|
|
13
|
+
toastOptions: {
|
|
14
|
+
...props.toastOptions,
|
|
15
|
+
style: {
|
|
16
|
+
...props.toastOptions?.style,
|
|
17
|
+
pointerEvents: "auto"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
5
22
|
|
|
6
23
|
//#endregion
|
|
7
24
|
export { Toaster$1 as Toaster };
|
package/dist/toast/mcp.js
CHANGED
|
@@ -34,7 +34,8 @@ const meta = {
|
|
|
34
34
|
notes: [
|
|
35
35
|
"Render <ToastProvider /> once near the app root.",
|
|
36
36
|
"Convenience helpers: toast.success, toast.error, toast.warning, toast.info, toast.custom, toast.dismiss(id), toast.dismissAll().",
|
|
37
|
-
"toast.custom accepts either a React element or a render function `(toastApi) => element`, where `toastApi` is `{ id, dismiss() }` for the toast being rendered."
|
|
37
|
+
"toast.custom accepts either a React element or a render function `(toastApi) => element`, where `toastApi` is `{ id, dismiss() }` for the toast being rendered.",
|
|
38
|
+
"For a custom toast with the built-in alert styling, use the `AlertToast` component from `packages/shadcn-ui/src/toast/AlertToast.tsx` (also exported from `@pixpilot/shadcn-ui`)."
|
|
38
39
|
],
|
|
39
40
|
examples: [
|
|
40
41
|
{
|
|
@@ -46,8 +47,8 @@ const meta = {
|
|
|
46
47
|
code: "toast({ title: \"Heads up\", description: \"Something happened\", variant: \"warning\", duration: 5000 });"
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
|
-
title: "Custom
|
|
50
|
-
code: "toast.custom((toastApi) => (\n <
|
|
50
|
+
title: "Custom AlertToast",
|
|
51
|
+
code: "toast.custom((toastApi) => (\n <AlertToast\n title=\"Saved to drafts\"\n description=\"Your draft is ready to continue editing.\"\n variant=\"success\"\n onClose={toastApi.dismiss}\n />\n));"
|
|
51
52
|
}
|
|
52
53
|
],
|
|
53
54
|
keywords: [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/shadcn-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.14.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",
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"tsdown": "^0.15.12",
|
|
74
74
|
"tsx": "^4.21.0",
|
|
75
75
|
"typescript": "^5.9.3",
|
|
76
|
-
"@internal/hooks": "0.0.0",
|
|
77
76
|
"@internal/eslint-config": "0.3.0",
|
|
77
|
+
"@internal/hooks": "0.0.0",
|
|
78
78
|
"@internal/mcp": "0.0.0",
|
|
79
79
|
"@internal/prettier-config": "0.0.1",
|
|
80
|
+
"@internal/tsconfig": "0.1.0",
|
|
80
81
|
"@internal/tsdown-config": "0.1.0",
|
|
81
|
-
"@internal/vitest-config": "0.1.0"
|
|
82
|
-
"@internal/tsconfig": "0.1.0"
|
|
82
|
+
"@internal/vitest-config": "0.1.0"
|
|
83
83
|
},
|
|
84
84
|
"prettier": "@internal/prettier-config",
|
|
85
85
|
"scripts": {
|