@pixpilot/shadcn-ui 0.7.0 → 0.8.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/FileUpload.d.ts +2 -2
- package/dist/file-upload-inline/FileUploadInline.d.ts +2 -2
- package/dist/index.cjs +9 -0
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +6 -1
- package/dist/layout/Layout.cjs +20 -0
- package/dist/layout/Layout.d.cts +7 -0
- package/dist/layout/Layout.d.ts +7 -0
- package/dist/layout/Layout.js +16 -0
- package/dist/layout/LayoutFooter.cjs +18 -0
- package/dist/layout/LayoutFooter.d.cts +7 -0
- package/dist/layout/LayoutFooter.d.ts +7 -0
- package/dist/layout/LayoutFooter.js +14 -0
- package/dist/layout/LayoutHeader.cjs +18 -0
- package/dist/layout/LayoutHeader.d.cts +7 -0
- package/dist/layout/LayoutHeader.d.ts +7 -0
- package/dist/layout/LayoutHeader.js +14 -0
- package/dist/layout/LayoutMain.cjs +20 -0
- package/dist/layout/LayoutMain.d.cts +9 -0
- package/dist/layout/LayoutMain.d.ts +9 -0
- package/dist/layout/LayoutMain.js +16 -0
- package/dist/layout/index.cjs +4 -0
- package/dist/layout/index.d.cts +4 -0
- package/dist/layout/index.d.ts +4 -0
- package/dist/layout/index.js +4 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileUploadProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime6 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_runtime6.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_runtime7 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_runtime7.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
package/dist/index.cjs
CHANGED
|
@@ -23,6 +23,11 @@ require('./hooks/index.cjs');
|
|
|
23
23
|
const require_LoadingOverlay = require('./LoadingOverlay.cjs');
|
|
24
24
|
const require_IconPicker = require('./icon-selector/IconPicker.cjs');
|
|
25
25
|
require('./icon-selector/index.cjs');
|
|
26
|
+
const require_Layout = require('./layout/Layout.cjs');
|
|
27
|
+
const require_LayoutFooter = require('./layout/LayoutFooter.cjs');
|
|
28
|
+
const require_LayoutHeader = require('./layout/LayoutHeader.cjs');
|
|
29
|
+
const require_LayoutMain = require('./layout/LayoutMain.cjs');
|
|
30
|
+
require('./layout/index.cjs');
|
|
26
31
|
const require_Pagination = require('./pagination/Pagination.cjs');
|
|
27
32
|
require('./pagination/index.cjs');
|
|
28
33
|
const require_RichTextEditor = require('./rich-text-editor/RichTextEditor.cjs');
|
|
@@ -55,6 +60,10 @@ exports.DialogProvider = require_DialogProvider.DialogProvider;
|
|
|
55
60
|
exports.FileUpload = require_FileUpload.FileUpload;
|
|
56
61
|
exports.FileUploadInline = require_FileUploadInline.FileUploadInline;
|
|
57
62
|
exports.IconPicker = require_IconPicker.IconPicker;
|
|
63
|
+
exports.Layout = require_Layout.Layout;
|
|
64
|
+
exports.LayoutFooter = require_LayoutFooter.LayoutFooter;
|
|
65
|
+
exports.LayoutHeader = require_LayoutHeader.LayoutHeader;
|
|
66
|
+
exports.LayoutMain = require_LayoutMain.LayoutMain;
|
|
58
67
|
exports.LoadingOverlay = require_LoadingOverlay.LoadingOverlay;
|
|
59
68
|
exports.Pagination = require_Pagination.Pagination;
|
|
60
69
|
exports.RichTextEditor = require_RichTextEditor.RichTextEditor;
|
package/dist/index.d.cts
CHANGED
|
@@ -24,6 +24,11 @@ import { useMediaQuery } from "./hooks/use-media-query.cjs";
|
|
|
24
24
|
import { IconProvider, IconProviderLoader, IconProviderProps } from "./icon-selector/types.cjs";
|
|
25
25
|
import { IconPicker, IconPickerProps, IconPickerVariant } from "./icon-selector/IconPicker.cjs";
|
|
26
26
|
import "./icon-selector/index.cjs";
|
|
27
|
+
import { Layout, LayoutProps } from "./layout/Layout.cjs";
|
|
28
|
+
import { LayoutFooter, LayoutFooterProps } from "./layout/LayoutFooter.cjs";
|
|
29
|
+
import { LayoutHeader, LayoutHeaderProps } from "./layout/LayoutHeader.cjs";
|
|
30
|
+
import { LayoutMain, LayoutMainProps } from "./layout/LayoutMain.cjs";
|
|
31
|
+
import "./layout/index.cjs";
|
|
27
32
|
import { LoaderProps, LoadingOverlay } from "./LoadingOverlay.cjs";
|
|
28
33
|
import { Pagination, PaginationProps } from "./pagination/Pagination.cjs";
|
|
29
34
|
import "./pagination/index.cjs";
|
|
@@ -38,4 +43,4 @@ import { ThemeToggle } from "./ThemeToggle.cjs";
|
|
|
38
43
|
import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.cjs";
|
|
39
44
|
import "./toast/index.cjs";
|
|
40
45
|
import { cn } from "@pixpilot/shadcn";
|
|
41
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, Select, SelectOption, SingleFileUploadProps, Slider, SliderProps, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|
|
46
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, Select, SelectOption, SingleFileUploadProps, Slider, SliderProps, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ import "./hooks/index.js";
|
|
|
25
25
|
import { IconProvider, IconProviderLoader, IconProviderProps } from "./icon-selector/types.js";
|
|
26
26
|
import { IconPicker, IconPickerProps, IconPickerVariant } from "./icon-selector/IconPicker.js";
|
|
27
27
|
import "./icon-selector/index.js";
|
|
28
|
+
import { Layout, LayoutProps } from "./layout/Layout.js";
|
|
29
|
+
import { LayoutFooter, LayoutFooterProps } from "./layout/LayoutFooter.js";
|
|
30
|
+
import { LayoutHeader, LayoutHeaderProps } from "./layout/LayoutHeader.js";
|
|
31
|
+
import { LayoutMain, LayoutMainProps } from "./layout/LayoutMain.js";
|
|
32
|
+
import "./layout/index.js";
|
|
28
33
|
import { LoaderProps, LoadingOverlay } from "./LoadingOverlay.js";
|
|
29
34
|
import { Pagination, PaginationProps } from "./pagination/Pagination.js";
|
|
30
35
|
import "./pagination/index.js";
|
|
@@ -39,4 +44,4 @@ import { ThemeToggle } from "./ThemeToggle.js";
|
|
|
39
44
|
import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.js";
|
|
40
45
|
import "./toast/index.js";
|
|
41
46
|
import { cn } from "@pixpilot/shadcn";
|
|
42
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, Select, SelectOption, SingleFileUploadProps, Slider, SliderProps, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|
|
47
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, Select, SelectOption, SingleFileUploadProps, Slider, SliderProps, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,11 @@ import "./hooks/index.js";
|
|
|
22
22
|
import { LoadingOverlay } from "./LoadingOverlay.js";
|
|
23
23
|
import { IconPicker } from "./icon-selector/IconPicker.js";
|
|
24
24
|
import "./icon-selector/index.js";
|
|
25
|
+
import { Layout } from "./layout/Layout.js";
|
|
26
|
+
import { LayoutFooter } from "./layout/LayoutFooter.js";
|
|
27
|
+
import { LayoutHeader } from "./layout/LayoutHeader.js";
|
|
28
|
+
import { LayoutMain } from "./layout/LayoutMain.js";
|
|
29
|
+
import "./layout/index.js";
|
|
25
30
|
import { Pagination } from "./pagination/Pagination.js";
|
|
26
31
|
import "./pagination/index.js";
|
|
27
32
|
import { RichTextEditor } from "./rich-text-editor/RichTextEditor.js";
|
|
@@ -36,4 +41,4 @@ import { DEFAULT_ALERT_DURATION, toast, toastError, toastInfo, toastSuccess, toa
|
|
|
36
41
|
import "./toast/index.js";
|
|
37
42
|
import { cn } from "@pixpilot/shadcn";
|
|
38
43
|
|
|
39
|
-
export { AbsoluteFill, Alert, AvatarUpload, Button, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DialogProvider, FileUpload, FileUploadInline, IconPicker, LoadingOverlay, Pagination, RichTextEditor, Select, Slider, TagsInput, ThemeProvider, ThemeToggle, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|
|
44
|
+
export { AbsoluteFill, Alert, AvatarUpload, Button, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DialogProvider, FileUpload, FileUploadInline, IconPicker, Layout, LayoutFooter, LayoutHeader, LayoutMain, LoadingOverlay, Pagination, RichTextEditor, Select, Slider, TagsInput, ThemeProvider, ThemeToggle, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
3
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
+
|
|
9
|
+
//#region src/layout/Layout.tsx
|
|
10
|
+
const Layout = react.default.forwardRef(({ className,...props }, ref) => {
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
12
|
+
ref,
|
|
13
|
+
className: (0, __pixpilot_shadcn.cn)("flex w-full flex-col overflow-hidden", "h-dvh", "max-h-full", className),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
Layout.displayName = "Layout";
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.Layout = Layout;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/Layout.d.ts
|
|
4
|
+
interface LayoutProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
5
|
+
declare const Layout: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Layout, LayoutProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/Layout.d.ts
|
|
4
|
+
interface LayoutProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
5
|
+
declare const Layout: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Layout, LayoutProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cn } from "@pixpilot/shadcn";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/layout/Layout.tsx
|
|
6
|
+
const Layout = React.forwardRef(({ className,...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("flex w-full flex-col overflow-hidden", "h-dvh", "max-h-full", className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
Layout.displayName = "Layout";
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Layout };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
3
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
+
|
|
9
|
+
//#region src/layout/LayoutFooter.tsx
|
|
10
|
+
const LayoutFooter = react.default.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11
|
+
...props,
|
|
12
|
+
className: (0, __pixpilot_shadcn.cn)(className),
|
|
13
|
+
ref
|
|
14
|
+
}));
|
|
15
|
+
LayoutFooter.displayName = "LayoutFooter";
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.LayoutFooter = LayoutFooter;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/LayoutFooter.d.ts
|
|
4
|
+
interface LayoutFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
5
|
+
declare const LayoutFooter: React.ForwardRefExoticComponent<LayoutFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { LayoutFooter, LayoutFooterProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/LayoutFooter.d.ts
|
|
4
|
+
interface LayoutFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
5
|
+
declare const LayoutFooter: React.ForwardRefExoticComponent<LayoutFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { LayoutFooter, LayoutFooterProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cn } from "@pixpilot/shadcn";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/layout/LayoutFooter.tsx
|
|
6
|
+
const LayoutFooter = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
7
|
+
...props,
|
|
8
|
+
className: cn(className),
|
|
9
|
+
ref
|
|
10
|
+
}));
|
|
11
|
+
LayoutFooter.displayName = "LayoutFooter";
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { LayoutFooter };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
3
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
+
|
|
9
|
+
//#region src/layout/LayoutHeader.tsx
|
|
10
|
+
const LayoutHeader = react.default.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11
|
+
...props,
|
|
12
|
+
className: (0, __pixpilot_shadcn.cn)(className),
|
|
13
|
+
ref
|
|
14
|
+
}));
|
|
15
|
+
LayoutHeader.displayName = "LayoutHeader";
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.LayoutHeader = LayoutHeader;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/LayoutHeader.d.ts
|
|
4
|
+
interface LayoutHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
5
|
+
declare const LayoutHeader: React.ForwardRefExoticComponent<LayoutHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { LayoutHeader, LayoutHeaderProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/LayoutHeader.d.ts
|
|
4
|
+
interface LayoutHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
5
|
+
declare const LayoutHeader: React.ForwardRefExoticComponent<LayoutHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { LayoutHeader, LayoutHeaderProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cn } from "@pixpilot/shadcn";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/layout/LayoutHeader.tsx
|
|
6
|
+
const LayoutHeader = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
7
|
+
...props,
|
|
8
|
+
className: cn(className),
|
|
9
|
+
ref
|
|
10
|
+
}));
|
|
11
|
+
LayoutHeader.displayName = "LayoutHeader";
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { LayoutHeader };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
3
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
+
|
|
9
|
+
//#region src/layout/LayoutMain.tsx
|
|
10
|
+
const LayoutMain = react.default.forwardRef(({ autoScroll = true, className,...props }, ref) => {
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("main", {
|
|
12
|
+
ref,
|
|
13
|
+
className: (0, __pixpilot_shadcn.cn)("flex-1", { "overflow-auto": autoScroll }, className),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
LayoutMain.displayName = "LayoutMain";
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.LayoutMain = LayoutMain;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/LayoutMain.d.ts
|
|
4
|
+
interface LayoutMainProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
autoScroll?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const LayoutMain: React.ForwardRefExoticComponent<LayoutMainProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { LayoutMain, LayoutMainProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/layout/LayoutMain.d.ts
|
|
4
|
+
interface LayoutMainProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
autoScroll?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const LayoutMain: React.ForwardRefExoticComponent<LayoutMainProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { LayoutMain, LayoutMainProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cn } from "@pixpilot/shadcn";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/layout/LayoutMain.tsx
|
|
6
|
+
const LayoutMain = React.forwardRef(({ autoScroll = true, className,...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx("main", {
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("flex-1", { "overflow-auto": autoScroll }, className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
LayoutMain.displayName = "LayoutMain";
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { LayoutMain };
|
package/package.json
CHANGED