@pixpilot/shadcn-ui 0.7.0 → 0.9.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.
Files changed (38) hide show
  1. package/dist/Button.d.ts +2 -2
  2. package/dist/ContentCard.d.ts +2 -2
  3. package/dist/DatePicker.d.ts +2 -2
  4. package/dist/Select.d.ts +2 -2
  5. package/dist/ThemeToggle.d.cts +2 -2
  6. package/dist/file-upload/FileUpload.d.cts +2 -2
  7. package/dist/file-upload/FileUpload.d.ts +2 -2
  8. package/dist/file-upload-inline/FileUploadInline.cjs +2 -1
  9. package/dist/file-upload-inline/FileUploadInline.d.cts +2 -2
  10. package/dist/file-upload-inline/FileUploadInline.d.ts +2 -2
  11. package/dist/file-upload-inline/FileUploadInline.js +2 -1
  12. package/dist/index.cjs +9 -0
  13. package/dist/index.d.cts +6 -1
  14. package/dist/index.d.ts +6 -1
  15. package/dist/index.js +6 -1
  16. package/dist/layout/Layout.cjs +20 -0
  17. package/dist/layout/Layout.d.cts +7 -0
  18. package/dist/layout/Layout.d.ts +7 -0
  19. package/dist/layout/Layout.js +16 -0
  20. package/dist/layout/LayoutFooter.cjs +18 -0
  21. package/dist/layout/LayoutFooter.d.cts +7 -0
  22. package/dist/layout/LayoutFooter.d.ts +7 -0
  23. package/dist/layout/LayoutFooter.js +14 -0
  24. package/dist/layout/LayoutHeader.cjs +18 -0
  25. package/dist/layout/LayoutHeader.d.cts +7 -0
  26. package/dist/layout/LayoutHeader.d.ts +7 -0
  27. package/dist/layout/LayoutHeader.js +14 -0
  28. package/dist/layout/LayoutMain.cjs +20 -0
  29. package/dist/layout/LayoutMain.d.cts +9 -0
  30. package/dist/layout/LayoutMain.d.ts +9 -0
  31. package/dist/layout/LayoutMain.js +16 -0
  32. package/dist/layout/index.cjs +4 -0
  33. package/dist/layout/index.d.cts +4 -0
  34. package/dist/layout/index.d.ts +4 -0
  35. package/dist/layout/index.js +4 -0
  36. package/dist/tags-input.d.cts +2 -2
  37. package/dist/tags-input.d.ts +2 -2
  38. package/package.json +1 -1
package/dist/Button.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Button, Tooltip, buttonVariants } from "@pixpilot/shadcn";
2
2
  import React from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
 
6
6
  //#region src/Button.d.ts
@@ -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
- }): react_jsx_runtime0.JSX.Element;
42
+ }): react_jsx_runtime4.JSX.Element;
43
43
  declare namespace Button$1 {
44
44
  var displayName: string;
45
45
  }
@@ -1,6 +1,6 @@
1
1
  import { Card } from "@pixpilot/shadcn";
2
2
  import React, { ReactNode } from "react";
3
- import * as react_jsx_runtime1 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/ContentCard.d.ts
6
6
  interface SectionCardProps extends React.ComponentProps<typeof Card> {
@@ -8,7 +8,7 @@ interface SectionCardProps extends React.ComponentProps<typeof Card> {
8
8
  children: ReactNode;
9
9
  marginBottom?: boolean;
10
10
  }
11
- declare function ContentCard(props: SectionCardProps): react_jsx_runtime1.JSX.Element;
11
+ declare function ContentCard(props: SectionCardProps): react_jsx_runtime0.JSX.Element;
12
12
  declare namespace ContentCard {
13
13
  var displayName: string;
14
14
  }
@@ -1,6 +1,6 @@
1
1
  import { Calendar } from "@pixpilot/shadcn";
2
2
  import { ComponentProps } from "react";
3
- import * as react_jsx_runtime2 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/DatePicker.d.ts
6
6
  type DatePickerProps = {
@@ -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): react_jsx_runtime2.JSX.Element;
11
+ declare function DatePicker(props: DatePickerProps): react_jsx_runtime1.JSX.Element;
12
12
  declare namespace DatePicker {
13
13
  var displayName: string;
14
14
  }
package/dist/Select.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Select } from "@pixpilot/shadcn";
2
2
  import { ComponentProps } from "react";
3
- import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/Select.d.ts
6
6
  interface SelectOption {
@@ -13,6 +13,6 @@ type BaseSelectProps = {
13
13
  onChange?: (value: string) => void;
14
14
  placeholder?: string;
15
15
  } & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
16
- declare function Select$1(props: BaseSelectProps): react_jsx_runtime3.JSX.Element;
16
+ declare function Select$1(props: BaseSelectProps): react_jsx_runtime2.JSX.Element;
17
17
  //#endregion
18
18
  export { Select$1 as Select, SelectOption };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/ThemeToggle.d.ts
4
- declare function ThemeToggle(): react_jsx_runtime5.JSX.Element;
4
+ declare function ThemeToggle(): react_jsx_runtime4.JSX.Element;
5
5
  //#endregion
6
6
  export { ThemeToggle };
@@ -1,7 +1,7 @@
1
1
  import { FileUploadProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/file-upload/FileUpload.d.ts
5
- declare function FileUpload(props: FileUploadProps): react_jsx_runtime6.JSX.Element;
5
+ declare function FileUpload(props: FileUploadProps): react_jsx_runtime7.JSX.Element;
6
6
  //#endregion
7
7
  export { FileUpload };
@@ -1,7 +1,7 @@
1
1
  import { FileUploadProps } from "./types/index.js";
2
- import * as react_jsx_runtime7 from "react/jsx-runtime";
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): react_jsx_runtime7.JSX.Element;
5
+ declare function FileUpload(props: FileUploadProps): react_jsx_runtime6.JSX.Element;
6
6
  //#endregion
7
7
  export { FileUpload };
@@ -20,7 +20,8 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
20
20
  * FileUploadInline - An inline file upload component using FileUpload primitives
21
21
  */
22
22
  function FileUploadInline(props) {
23
- const { value, onChange, className, disabled = require_defaults.defaultOptions.disabled, multiple = require_defaults.defaultOptions.multiple, buttonText, showIcon = require_defaults.defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
23
+ const { value, onChange, className, disabled = require_defaults.defaultOptions.disabled, multiple = require_defaults.defaultOptions.multiple, buttonText: buttonTextProp, showIcon = require_defaults.defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
24
+ const buttonText = buttonTextProp ?? (multiple ? "Click to upload files" : "Click to upload a file");
24
25
  const { handleAccept, displayFiles, deleteFile, getFile, orgValue } = require_use_file_upload_store.useFileUploadStore({
25
26
  value,
26
27
  onChange,
@@ -1,10 +1,10 @@
1
1
  import { FileUploadInlineProps } from "./types.cjs";
2
- import * as react_jsx_runtime7 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/file-upload-inline/FileUploadInline.d.ts
5
5
  /**
6
6
  * FileUploadInline - An inline file upload component using FileUpload primitives
7
7
  */
8
- declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime7.JSX.Element;
8
+ declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime6.JSX.Element;
9
9
  //#endregion
10
10
  export { FileUploadInline };
@@ -1,10 +1,10 @@
1
1
  import { FileUploadInlineProps } from "./types.js";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
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): react_jsx_runtime6.JSX.Element;
8
+ declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime7.JSX.Element;
9
9
  //#endregion
10
10
  export { FileUploadInline };
@@ -15,7 +15,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  * FileUploadInline - An inline file upload component using FileUpload primitives
16
16
  */
17
17
  function FileUploadInline(props) {
18
- const { value, onChange, className, disabled = defaultOptions.disabled, multiple = defaultOptions.multiple, buttonText, showIcon = defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
18
+ const { value, onChange, className, disabled = defaultOptions.disabled, multiple = defaultOptions.multiple, buttonText: buttonTextProp, showIcon = defaultOptions.showIcon, onAccept, preventDuplicates,...rest } = props;
19
+ const buttonText = buttonTextProp ?? (multiple ? "Click to upload files" : "Click to upload a file");
19
20
  const { handleAccept, displayFiles, deleteFile, getFile, orgValue } = useFileUploadStore({
20
21
  value,
21
22
  onChange,
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 };
@@ -0,0 +1,4 @@
1
+ const require_Layout = require('./Layout.cjs');
2
+ const require_LayoutFooter = require('./LayoutFooter.cjs');
3
+ const require_LayoutHeader = require('./LayoutHeader.cjs');
4
+ const require_LayoutMain = require('./LayoutMain.cjs');
@@ -0,0 +1,4 @@
1
+ import { Layout, LayoutProps } from "./Layout.cjs";
2
+ import { LayoutFooter, LayoutFooterProps } from "./LayoutFooter.cjs";
3
+ import { LayoutHeader, LayoutHeaderProps } from "./LayoutHeader.cjs";
4
+ import { LayoutMain, LayoutMainProps } from "./LayoutMain.cjs";
@@ -0,0 +1,4 @@
1
+ import { Layout, LayoutProps } from "./Layout.js";
2
+ import { LayoutFooter, LayoutFooterProps } from "./LayoutFooter.js";
3
+ import { LayoutHeader, LayoutHeaderProps } from "./LayoutHeader.js";
4
+ import { LayoutMain, LayoutMainProps } from "./LayoutMain.js";
@@ -0,0 +1,4 @@
1
+ import { Layout } from "./Layout.js";
2
+ import { LayoutFooter } from "./LayoutFooter.js";
3
+ import { LayoutHeader } from "./LayoutHeader.js";
4
+ import { LayoutMain } from "./LayoutMain.js";
@@ -1,5 +1,5 @@
1
1
  import { CommandOptionListItem } from "./CommandOptionList.cjs";
2
- import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input.d.ts
5
5
  interface TagsInputProps {
@@ -55,6 +55,6 @@ declare function TagsInput({
55
55
  addOnPaste,
56
56
  addOnTab,
57
57
  onValidate
58
- }: TagsInputProps): react_jsx_runtime4.JSX.Element;
58
+ }: TagsInputProps): react_jsx_runtime5.JSX.Element;
59
59
  //#endregion
60
60
  export { TagsInput, TagsInputProps };
@@ -1,5 +1,5 @@
1
1
  import { CommandOptionListItem } from "./CommandOptionList.js";
2
- import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input.d.ts
5
5
  interface TagsInputProps {
@@ -55,6 +55,6 @@ declare function TagsInput({
55
55
  addOnPaste,
56
56
  addOnTab,
57
57
  onValidate
58
- }: TagsInputProps): react_jsx_runtime4.JSX.Element;
58
+ }: TagsInputProps): react_jsx_runtime3.JSX.Element;
59
59
  //#endregion
60
60
  export { TagsInput, TagsInputProps };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/shadcn-ui",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.9.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",