@pixpilot/shadcn-ui 0.35.0 → 0.36.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/file-upload-inline/FileUploadInline.d.cts +2 -2
- package/dist/file-upload-inline/FileUploadInline.d.ts +2 -2
- package/dist/input/Input.d.cts +2 -2
- package/dist/input/Input.d.ts +2 -2
- package/dist/rich-text-editor/RichTextEditor.cjs +15 -2
- package/dist/rich-text-editor/RichTextEditor.js +13 -2
- package/dist/rich-text-editor/predefined-toolbar-items.cjs +24 -0
- package/dist/rich-text-editor/predefined-toolbar-items.js +25 -1
- package/dist/theme-toggle/ThemeModeDropdown.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.cts +2 -2
- package/package.json +8 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 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_runtime8.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 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_runtime8.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
package/dist/input/Input.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 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_runtime7.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input, InputProps$1 as InputProps };
|
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_runtime7 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_runtime7.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input$1 as Input, InputProps$1 as InputProps };
|
|
@@ -6,6 +6,10 @@ let react = require("react");
|
|
|
6
6
|
react = require_rolldown_runtime.__toESM(react);
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
let __tiptap_extension_link = require("@tiptap/extension-link");
|
|
10
|
+
__tiptap_extension_link = require_rolldown_runtime.__toESM(__tiptap_extension_link);
|
|
11
|
+
let __tiptap_extension_text_align = require("@tiptap/extension-text-align");
|
|
12
|
+
__tiptap_extension_text_align = require_rolldown_runtime.__toESM(__tiptap_extension_text_align);
|
|
9
13
|
let __tiptap_react = require("@tiptap/react");
|
|
10
14
|
__tiptap_react = require_rolldown_runtime.__toESM(__tiptap_react);
|
|
11
15
|
let __tiptap_starter_kit = require("@tiptap/starter-kit");
|
|
@@ -17,9 +21,14 @@ const defaultToolbarItems = [
|
|
|
17
21
|
"bold",
|
|
18
22
|
"italic",
|
|
19
23
|
"underline",
|
|
24
|
+
"link",
|
|
20
25
|
"strike",
|
|
21
26
|
"code",
|
|
22
27
|
"|",
|
|
28
|
+
"alignLeft",
|
|
29
|
+
"alignCenter",
|
|
30
|
+
"alignRight",
|
|
31
|
+
"|",
|
|
23
32
|
"heading1",
|
|
24
33
|
"heading2",
|
|
25
34
|
"heading3",
|
|
@@ -31,7 +40,7 @@ const defaultToolbarItems = [
|
|
|
31
40
|
"codeBlock"
|
|
32
41
|
];
|
|
33
42
|
function useEditorProps(slots, customEditorProps) {
|
|
34
|
-
const defaultEditorProps = react.default.useMemo(() => ({ attributes: { class: (0, __pixpilot_shadcn.cn)("min-h-[200px] p-4 text-sm leading-relaxed focus:outline-none", "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:leading-tight [&_h1]:mt-8 [&_h1]:mb-4 [&_h1:first-child]:mt-0", "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:leading-tight [&_h2]:mt-6 [&_h2]:mb-3 [&_h2:first-child]:mt-0", "[&_h3]:text-xl [&_h3]:font-bold [&_h3]:leading-tight [&_h3]:mt-4 [&_h3]:mb-2 [&_h3:first-child]:mt-0", "[&_p]:mb-3", "[&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-3", "[&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:mb-3", "[&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:mb-4 [&_blockquote]:italic [&_blockquote:first-child]:mt-0", "[&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[0.875em] [&_code]:font-mono", "[&_pre]:bg-muted [&_pre]:p-4 [&_pre]:rounded [&_pre]:overflow-x-auto [&_pre]:font-mono [&_pre]:mb-4", "[&_*:last-child]:mb-0", slots?.content?.className) } }), [slots]);
|
|
43
|
+
const defaultEditorProps = react.default.useMemo(() => ({ attributes: { class: (0, __pixpilot_shadcn.cn)("min-h-[200px] p-4 text-sm leading-relaxed focus:outline-none", "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:leading-tight [&_h1]:mt-8 [&_h1]:mb-4 [&_h1:first-child]:mt-0", "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:leading-tight [&_h2]:mt-6 [&_h2]:mb-3 [&_h2:first-child]:mt-0", "[&_h3]:text-xl [&_h3]:font-bold [&_h3]:leading-tight [&_h3]:mt-4 [&_h3]:mb-2 [&_h3:first-child]:mt-0", "[&_p]:mb-3", "[&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-3", "[&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:mb-3", "[&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:mb-4 [&_blockquote]:italic [&_blockquote:first-child]:mt-0", "[&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[0.875em] [&_code]:font-mono", "[&_pre]:bg-muted [&_pre]:p-4 [&_pre]:rounded [&_pre]:overflow-x-auto [&_pre]:font-mono [&_pre]:mb-4", "[&_a]:text-blue-500 [&_a]:hover:text-blue-600 [&_a]:cursor-pointer [&_a]:underline [&_a]:underline-offset-2 ", "[&_*:last-child]:mb-0", slots?.content?.className) } }), [slots]);
|
|
35
44
|
return react.default.useMemo(() => ({
|
|
36
45
|
...defaultEditorProps,
|
|
37
46
|
...customEditorProps,
|
|
@@ -51,7 +60,11 @@ const RichTextEditor = ({ value, onChange, extensions = defaultExtensions, edita
|
|
|
51
60
|
onChangeRef.current?.(props.editor.getHTML());
|
|
52
61
|
}, []);
|
|
53
62
|
const editorInstance = (0, __tiptap_react.useEditor)({
|
|
54
|
-
extensions:
|
|
63
|
+
extensions: react.default.useMemo(() => [
|
|
64
|
+
__tiptap_starter_kit.default,
|
|
65
|
+
__tiptap_extension_link.default,
|
|
66
|
+
__tiptap_extension_text_align.default.configure({ types: ["heading", "paragraph"] })
|
|
67
|
+
].concat(extensions), [extensions]),
|
|
55
68
|
content: value,
|
|
56
69
|
editable,
|
|
57
70
|
onUpdate: handleChange,
|
|
@@ -2,6 +2,8 @@ import { RichTextEditorToolbar } from "./RichTextEditorToolbar.js";
|
|
|
2
2
|
import { cn } from "@pixpilot/shadcn";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import Link from "@tiptap/extension-link";
|
|
6
|
+
import TextAlign from "@tiptap/extension-text-align";
|
|
5
7
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
6
8
|
import StarterKit from "@tiptap/starter-kit";
|
|
7
9
|
|
|
@@ -11,9 +13,14 @@ const defaultToolbarItems = [
|
|
|
11
13
|
"bold",
|
|
12
14
|
"italic",
|
|
13
15
|
"underline",
|
|
16
|
+
"link",
|
|
14
17
|
"strike",
|
|
15
18
|
"code",
|
|
16
19
|
"|",
|
|
20
|
+
"alignLeft",
|
|
21
|
+
"alignCenter",
|
|
22
|
+
"alignRight",
|
|
23
|
+
"|",
|
|
17
24
|
"heading1",
|
|
18
25
|
"heading2",
|
|
19
26
|
"heading3",
|
|
@@ -25,7 +32,7 @@ const defaultToolbarItems = [
|
|
|
25
32
|
"codeBlock"
|
|
26
33
|
];
|
|
27
34
|
function useEditorProps(slots, customEditorProps) {
|
|
28
|
-
const defaultEditorProps = React.useMemo(() => ({ attributes: { class: cn("min-h-[200px] p-4 text-sm leading-relaxed focus:outline-none", "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:leading-tight [&_h1]:mt-8 [&_h1]:mb-4 [&_h1:first-child]:mt-0", "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:leading-tight [&_h2]:mt-6 [&_h2]:mb-3 [&_h2:first-child]:mt-0", "[&_h3]:text-xl [&_h3]:font-bold [&_h3]:leading-tight [&_h3]:mt-4 [&_h3]:mb-2 [&_h3:first-child]:mt-0", "[&_p]:mb-3", "[&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-3", "[&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:mb-3", "[&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:mb-4 [&_blockquote]:italic [&_blockquote:first-child]:mt-0", "[&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[0.875em] [&_code]:font-mono", "[&_pre]:bg-muted [&_pre]:p-4 [&_pre]:rounded [&_pre]:overflow-x-auto [&_pre]:font-mono [&_pre]:mb-4", "[&_*:last-child]:mb-0", slots?.content?.className) } }), [slots]);
|
|
35
|
+
const defaultEditorProps = React.useMemo(() => ({ attributes: { class: cn("min-h-[200px] p-4 text-sm leading-relaxed focus:outline-none", "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:leading-tight [&_h1]:mt-8 [&_h1]:mb-4 [&_h1:first-child]:mt-0", "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:leading-tight [&_h2]:mt-6 [&_h2]:mb-3 [&_h2:first-child]:mt-0", "[&_h3]:text-xl [&_h3]:font-bold [&_h3]:leading-tight [&_h3]:mt-4 [&_h3]:mb-2 [&_h3:first-child]:mt-0", "[&_p]:mb-3", "[&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-3", "[&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:mb-3", "[&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:mb-4 [&_blockquote]:italic [&_blockquote:first-child]:mt-0", "[&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[0.875em] [&_code]:font-mono", "[&_pre]:bg-muted [&_pre]:p-4 [&_pre]:rounded [&_pre]:overflow-x-auto [&_pre]:font-mono [&_pre]:mb-4", "[&_a]:text-blue-500 [&_a]:hover:text-blue-600 [&_a]:cursor-pointer [&_a]:underline [&_a]:underline-offset-2 ", "[&_*:last-child]:mb-0", slots?.content?.className) } }), [slots]);
|
|
29
36
|
return React.useMemo(() => ({
|
|
30
37
|
...defaultEditorProps,
|
|
31
38
|
...customEditorProps,
|
|
@@ -45,7 +52,11 @@ const RichTextEditor = ({ value, onChange, extensions = defaultExtensions, edita
|
|
|
45
52
|
onChangeRef.current?.(props.editor.getHTML());
|
|
46
53
|
}, []);
|
|
47
54
|
const editorInstance = useEditor({
|
|
48
|
-
extensions:
|
|
55
|
+
extensions: React.useMemo(() => [
|
|
56
|
+
StarterKit,
|
|
57
|
+
Link,
|
|
58
|
+
TextAlign.configure({ types: ["heading", "paragraph"] })
|
|
59
|
+
].concat(extensions), [extensions]),
|
|
49
60
|
content: value,
|
|
50
61
|
editable,
|
|
51
62
|
onUpdate: handleChange,
|
|
@@ -24,6 +24,12 @@ const predefinedToolbarItems = {
|
|
|
24
24
|
onClick: (editor) => editor.chain().focus().toggleUnderline().run(),
|
|
25
25
|
isActive: (editor) => editor.isActive("underline")
|
|
26
26
|
},
|
|
27
|
+
link: {
|
|
28
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Link, { className: "h-4 w-4" }),
|
|
29
|
+
tooltip: "Link",
|
|
30
|
+
onClick: (editor) => editor.chain().focus().toggleLink().run(),
|
|
31
|
+
isActive: (editor) => editor.isActive("link")
|
|
32
|
+
},
|
|
27
33
|
strike: {
|
|
28
34
|
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Strikethrough, { className: "h-4 w-4" }),
|
|
29
35
|
tooltip: "Strikethrough",
|
|
@@ -77,6 +83,24 @@ const predefinedToolbarItems = {
|
|
|
77
83
|
tooltip: "Code Block",
|
|
78
84
|
onClick: (editor) => editor.chain().focus().toggleCodeBlock().run(),
|
|
79
85
|
isActive: (editor) => editor.isActive("codeBlock")
|
|
86
|
+
},
|
|
87
|
+
alignLeft: {
|
|
88
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.AlignLeft, { className: "h-4 w-4" }),
|
|
89
|
+
tooltip: "Align Left",
|
|
90
|
+
onClick: (editor) => editor.chain().focus().setTextAlign("left").run(),
|
|
91
|
+
isActive: (editor) => editor.isActive({ textAlign: "left" })
|
|
92
|
+
},
|
|
93
|
+
alignCenter: {
|
|
94
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.AlignCenter, { className: "h-4 w-4" }),
|
|
95
|
+
tooltip: "Align Center",
|
|
96
|
+
onClick: (editor) => editor.chain().focus().setTextAlign("center").run(),
|
|
97
|
+
isActive: (editor) => editor.isActive({ textAlign: "center" })
|
|
98
|
+
},
|
|
99
|
+
alignRight: {
|
|
100
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.AlignRight, { className: "h-4 w-4" }),
|
|
101
|
+
tooltip: "Align Right",
|
|
102
|
+
onClick: (editor) => editor.chain().focus().setTextAlign("right").run(),
|
|
103
|
+
isActive: (editor) => editor.isActive({ textAlign: "right" })
|
|
80
104
|
}
|
|
81
105
|
};
|
|
82
106
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bold, Code, Code2, Heading1, Heading2, Heading3, Italic, List, ListOrdered, Quote, Strikethrough, Underline } from "lucide-react";
|
|
1
|
+
import { AlignCenter, AlignLeft, AlignRight, Bold, Code, Code2, Heading1, Heading2, Heading3, Italic, Link, List, ListOrdered, Quote, Strikethrough, Underline } from "lucide-react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/rich-text-editor/predefined-toolbar-items.tsx
|
|
@@ -21,6 +21,12 @@ const predefinedToolbarItems = {
|
|
|
21
21
|
onClick: (editor) => editor.chain().focus().toggleUnderline().run(),
|
|
22
22
|
isActive: (editor) => editor.isActive("underline")
|
|
23
23
|
},
|
|
24
|
+
link: {
|
|
25
|
+
icon: /* @__PURE__ */ jsx(Link, { className: "h-4 w-4" }),
|
|
26
|
+
tooltip: "Link",
|
|
27
|
+
onClick: (editor) => editor.chain().focus().toggleLink().run(),
|
|
28
|
+
isActive: (editor) => editor.isActive("link")
|
|
29
|
+
},
|
|
24
30
|
strike: {
|
|
25
31
|
icon: /* @__PURE__ */ jsx(Strikethrough, { className: "h-4 w-4" }),
|
|
26
32
|
tooltip: "Strikethrough",
|
|
@@ -74,6 +80,24 @@ const predefinedToolbarItems = {
|
|
|
74
80
|
tooltip: "Code Block",
|
|
75
81
|
onClick: (editor) => editor.chain().focus().toggleCodeBlock().run(),
|
|
76
82
|
isActive: (editor) => editor.isActive("codeBlock")
|
|
83
|
+
},
|
|
84
|
+
alignLeft: {
|
|
85
|
+
icon: /* @__PURE__ */ jsx(AlignLeft, { className: "h-4 w-4" }),
|
|
86
|
+
tooltip: "Align Left",
|
|
87
|
+
onClick: (editor) => editor.chain().focus().setTextAlign("left").run(),
|
|
88
|
+
isActive: (editor) => editor.isActive({ textAlign: "left" })
|
|
89
|
+
},
|
|
90
|
+
alignCenter: {
|
|
91
|
+
icon: /* @__PURE__ */ jsx(AlignCenter, { className: "h-4 w-4" }),
|
|
92
|
+
tooltip: "Align Center",
|
|
93
|
+
onClick: (editor) => editor.chain().focus().setTextAlign("center").run(),
|
|
94
|
+
isActive: (editor) => editor.isActive({ textAlign: "center" })
|
|
95
|
+
},
|
|
96
|
+
alignRight: {
|
|
97
|
+
icon: /* @__PURE__ */ jsx(AlignRight, { className: "h-4 w-4" }),
|
|
98
|
+
tooltip: "Align Right",
|
|
99
|
+
onClick: (editor) => editor.chain().focus().setTextAlign("right").run(),
|
|
100
|
+
isActive: (editor) => editor.isActive({ textAlign: "right" })
|
|
77
101
|
}
|
|
78
102
|
};
|
|
79
103
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 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):
|
|
20
|
+
declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime10.JSX.Element;
|
|
21
21
|
declare namespace ThemeModeDropdown {
|
|
22
22
|
var displayName: string;
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 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):
|
|
28
|
+
declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime11.JSX.Element;
|
|
29
29
|
declare namespace ThemeModeSwitchInside {
|
|
30
30
|
var displayName: string;
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 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):
|
|
25
|
+
declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime12.JSX.Element;
|
|
26
26
|
declare namespace ThemeModeSwitchOutside {
|
|
27
27
|
var displayName: string;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 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_runtime9.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": "0.
|
|
4
|
+
"version": "0.36.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",
|
|
@@ -34,10 +34,12 @@
|
|
|
34
34
|
"@iconify/react": "^6.0.2",
|
|
35
35
|
"@pixpilot/hash": "^0.0.0",
|
|
36
36
|
"@tailwindcss/typography": "^0.5.19",
|
|
37
|
-
"@tanstack/react-virtual": "^3.13.
|
|
38
|
-
"@tiptap/core": "^3.
|
|
39
|
-
"@tiptap/
|
|
40
|
-
"@tiptap/
|
|
37
|
+
"@tanstack/react-virtual": "^3.13.18",
|
|
38
|
+
"@tiptap/core": "^3.16.0",
|
|
39
|
+
"@tiptap/extension-link": "^3.16.0",
|
|
40
|
+
"@tiptap/extension-text-align": "^3.16.0",
|
|
41
|
+
"@tiptap/react": "^3.16.0",
|
|
42
|
+
"@tiptap/starter-kit": "^3.16.0",
|
|
41
43
|
"class-variance-authority": "^0.7.1",
|
|
42
44
|
"lucide-react": "0.553.0",
|
|
43
45
|
"next-themes": "0.4.6",
|
|
@@ -57,9 +59,9 @@
|
|
|
57
59
|
"react-dom": "19.2.0",
|
|
58
60
|
"tsdown": "^0.15.12",
|
|
59
61
|
"typescript": "^5.9.3",
|
|
62
|
+
"@internal/eslint-config": "0.3.0",
|
|
60
63
|
"@internal/hooks": "0.0.0",
|
|
61
64
|
"@internal/prettier-config": "0.0.1",
|
|
62
|
-
"@internal/eslint-config": "0.3.0",
|
|
63
65
|
"@internal/tsconfig": "0.1.0",
|
|
64
66
|
"@internal/tsdown-config": "0.1.0",
|
|
65
67
|
"@internal/vitest-config": "0.1.0"
|