@pixpilot/shadcn-ui 0.25.1 → 0.26.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/AbsoluteFill.cjs +1 -0
- package/dist/AbsoluteFill.js +1 -0
- package/dist/Button.cjs +1 -0
- package/dist/Button.js +1 -0
- package/dist/ContentCard.d.cts +2 -2
- package/dist/DatePicker.d.cts +2 -2
- package/dist/ScaledPreview.cjs +2 -0
- package/dist/ScaledPreview.js +2 -0
- package/dist/file-upload/FileUpload.d.ts +2 -2
- package/dist/input/Input.d.ts +2 -2
- package/dist/layout/Layout.cjs +1 -0
- package/dist/layout/Layout.js +1 -0
- package/dist/layout/LayoutFooter.cjs +1 -0
- package/dist/layout/LayoutFooter.js +1 -0
- package/dist/layout/LayoutHeader.cjs +1 -0
- package/dist/layout/LayoutHeader.js +1 -0
- package/dist/layout/LayoutMain.cjs +1 -0
- package/dist/layout/LayoutMain.js +1 -0
- package/package.json +2 -2
package/dist/AbsoluteFill.cjs
CHANGED
|
@@ -15,6 +15,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
15
15
|
function AbsoluteFill(props) {
|
|
16
16
|
const { ref, className,...rest } = props;
|
|
17
17
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
18
|
+
"data-slot": "absolute-fill",
|
|
18
19
|
ref,
|
|
19
20
|
...rest,
|
|
20
21
|
className: (0, __pixpilot_shadcn.cn)("absolute top-0 right-0 bottom-0 left-0", className)
|
package/dist/AbsoluteFill.js
CHANGED
|
@@ -11,6 +11,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
11
11
|
function AbsoluteFill(props) {
|
|
12
12
|
const { ref, className,...rest } = props;
|
|
13
13
|
return /* @__PURE__ */ jsx("div", {
|
|
14
|
+
"data-slot": "absolute-fill",
|
|
14
15
|
ref,
|
|
15
16
|
...rest,
|
|
16
17
|
className: cn("absolute top-0 right-0 bottom-0 left-0", className)
|
package/dist/Button.cjs
CHANGED
|
@@ -33,6 +33,7 @@ function Button(props) {
|
|
|
33
33
|
const showTooltip = hasTooltip || hasDisabledTooltip;
|
|
34
34
|
const tooltipContent = hasDisabledTooltip ? disabledTooltip ?? "" : tooltip ?? title ?? "";
|
|
35
35
|
const Loader = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
36
|
+
"data-slot": "button-loader",
|
|
36
37
|
className: (0, __pixpilot_shadcn.cn)("flex items-center justify-center", loaderPlacement === "center" && "rounded-0 absolute inset-0", loaderPlacement === "start" && "mr-1", loaderPlacement === "end" && "ml-1"),
|
|
37
38
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Loader2, {
|
|
38
39
|
className: "text-background animate-spin",
|
package/dist/Button.js
CHANGED
|
@@ -28,6 +28,7 @@ function Button$1(props) {
|
|
|
28
28
|
const showTooltip = hasTooltip || hasDisabledTooltip;
|
|
29
29
|
const tooltipContent = hasDisabledTooltip ? disabledTooltip ?? "" : tooltip ?? title ?? "";
|
|
30
30
|
const Loader = /* @__PURE__ */ jsx("div", {
|
|
31
|
+
"data-slot": "button-loader",
|
|
31
32
|
className: cn("flex items-center justify-center", loaderPlacement === "center" && "rounded-0 absolute inset-0", loaderPlacement === "start" && "mr-1", loaderPlacement === "end" && "ml-1"),
|
|
32
33
|
children: /* @__PURE__ */ jsx(Loader2, {
|
|
33
34
|
className: "text-background animate-spin",
|
package/dist/ContentCard.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
import { Card } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -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):
|
|
11
|
+
declare function ContentCard(props: SectionCardProps): react_jsx_runtime2.JSX.Element;
|
|
12
12
|
declare namespace ContentCard {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
package/dist/DatePicker.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { Calendar } from "@pixpilot/shadcn";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ type DatePickerProps = {
|
|
|
8
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
} & Omit<ComponentProps<typeof Calendar>, 'selected' | 'onSelect' | 'mode'>;
|
|
11
|
-
declare function DatePicker(props: DatePickerProps):
|
|
11
|
+
declare function DatePicker(props: DatePickerProps): react_jsx_runtime3.JSX.Element;
|
|
12
12
|
declare namespace DatePicker {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
package/dist/ScaledPreview.cjs
CHANGED
|
@@ -20,6 +20,7 @@ const ScaledPreview = ({ baseSize = DEFAULT_BASE_SIZE, scaleFactor, previewBoxSi
|
|
|
20
20
|
const finalScale = forceScale ?? calculatedScale;
|
|
21
21
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
22
22
|
...rest,
|
|
23
|
+
"data-slot": "scaled-preview",
|
|
23
24
|
style: {
|
|
24
25
|
width: calculatedPreviewBoxSize.width,
|
|
25
26
|
height: calculatedPreviewBoxSize.height,
|
|
@@ -27,6 +28,7 @@ const ScaledPreview = ({ baseSize = DEFAULT_BASE_SIZE, scaleFactor, previewBoxSi
|
|
|
27
28
|
...rest.style
|
|
28
29
|
},
|
|
29
30
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
31
|
+
"data-slot": "scaled-preview-content",
|
|
30
32
|
className: "absolute top-1/2 left-1/2",
|
|
31
33
|
style: {
|
|
32
34
|
width: baseSize.width,
|
package/dist/ScaledPreview.js
CHANGED
|
@@ -17,6 +17,7 @@ const ScaledPreview = ({ baseSize = DEFAULT_BASE_SIZE, scaleFactor, previewBoxSi
|
|
|
17
17
|
const finalScale = forceScale ?? calculatedScale;
|
|
18
18
|
return /* @__PURE__ */ jsx("div", {
|
|
19
19
|
...rest,
|
|
20
|
+
"data-slot": "scaled-preview",
|
|
20
21
|
style: {
|
|
21
22
|
width: calculatedPreviewBoxSize.width,
|
|
22
23
|
height: calculatedPreviewBoxSize.height,
|
|
@@ -24,6 +25,7 @@ const ScaledPreview = ({ baseSize = DEFAULT_BASE_SIZE, scaleFactor, previewBoxSi
|
|
|
24
25
|
...rest.style
|
|
25
26
|
},
|
|
26
27
|
children: /* @__PURE__ */ jsx("div", {
|
|
28
|
+
"data-slot": "scaled-preview-content",
|
|
27
29
|
className: "absolute top-1/2 left-1/2",
|
|
28
30
|
style: {
|
|
29
31
|
width: baseSize.width,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileUploadProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 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_runtime9.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { FileUpload };
|
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 };
|
package/dist/layout/Layout.cjs
CHANGED
|
@@ -9,6 +9,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
9
9
|
//#region src/layout/Layout.tsx
|
|
10
10
|
const Layout = react.default.forwardRef(({ className, as: Component = "div",...props }, ref) => {
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
12
|
+
"data-slot": "layout",
|
|
12
13
|
ref,
|
|
13
14
|
className: (0, __pixpilot_shadcn.cn)("flex w-full flex-col overflow-hidden", "h-dvh", "max-h-full", className),
|
|
14
15
|
...props
|
package/dist/layout/Layout.js
CHANGED
|
@@ -5,6 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/layout/Layout.tsx
|
|
6
6
|
const Layout = React.forwardRef(({ className, as: Component = "div",...props }, ref) => {
|
|
7
7
|
return /* @__PURE__ */ jsx(Component, {
|
|
8
|
+
"data-slot": "layout",
|
|
8
9
|
ref,
|
|
9
10
|
className: cn("flex w-full flex-col overflow-hidden", "h-dvh", "max-h-full", className),
|
|
10
11
|
...props
|
|
@@ -8,6 +8,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
8
8
|
|
|
9
9
|
//#region src/layout/LayoutFooter.tsx
|
|
10
10
|
const LayoutFooter = react.default.forwardRef(({ className, as: Component = "div",...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
11
|
+
"data-slot": "layout-footer",
|
|
11
12
|
...props,
|
|
12
13
|
className: (0, __pixpilot_shadcn.cn)(className),
|
|
13
14
|
ref
|
|
@@ -4,6 +4,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region src/layout/LayoutFooter.tsx
|
|
6
6
|
const LayoutFooter = React.forwardRef(({ className, as: Component = "div",...props }, ref) => /* @__PURE__ */ jsx(Component, {
|
|
7
|
+
"data-slot": "layout-footer",
|
|
7
8
|
...props,
|
|
8
9
|
className: cn(className),
|
|
9
10
|
ref
|
|
@@ -8,6 +8,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
8
8
|
|
|
9
9
|
//#region src/layout/LayoutHeader.tsx
|
|
10
10
|
const LayoutHeader = react.default.forwardRef(({ className, as: Component = "div",...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
11
|
+
"data-slot": "layout-header",
|
|
11
12
|
...props,
|
|
12
13
|
className: (0, __pixpilot_shadcn.cn)(className),
|
|
13
14
|
ref
|
|
@@ -4,6 +4,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region src/layout/LayoutHeader.tsx
|
|
6
6
|
const LayoutHeader = React.forwardRef(({ className, as: Component = "div",...props }, ref) => /* @__PURE__ */ jsx(Component, {
|
|
7
|
+
"data-slot": "layout-header",
|
|
7
8
|
...props,
|
|
8
9
|
className: cn(className),
|
|
9
10
|
ref
|
|
@@ -9,6 +9,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
9
9
|
//#region src/layout/LayoutMain.tsx
|
|
10
10
|
const LayoutMain = react.default.forwardRef(({ autoScroll = true, className, as: Component = "div",...props }, ref) => {
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
12
|
+
"data-slot": "layout-main",
|
|
12
13
|
ref,
|
|
13
14
|
className: (0, __pixpilot_shadcn.cn)("flex-1", { "overflow-auto": autoScroll }, className),
|
|
14
15
|
...props
|
|
@@ -5,6 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/layout/LayoutMain.tsx
|
|
6
6
|
const LayoutMain = React.forwardRef(({ autoScroll = true, className, as: Component = "div",...props }, ref) => {
|
|
7
7
|
return /* @__PURE__ */ jsx(Component, {
|
|
8
|
+
"data-slot": "layout-main",
|
|
8
9
|
ref,
|
|
9
10
|
className: cn("flex-1", { "overflow-auto": autoScroll }, className),
|
|
10
11
|
...props
|
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.26.0",
|
|
5
5
|
"description": "Custom UI components and utilities built with shadcn/ui.",
|
|
6
6
|
"author": "m.doaie <m.doaie@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@internal/eslint-config": "0.3.0",
|
|
61
61
|
"@internal/hooks": "0.0.0",
|
|
62
62
|
"@internal/prettier-config": "0.0.1",
|
|
63
|
-
"@internal/tsconfig": "0.1.0",
|
|
64
63
|
"@internal/tsdown-config": "0.1.0",
|
|
64
|
+
"@internal/tsconfig": "0.1.0",
|
|
65
65
|
"@internal/vitest-config": "0.1.0"
|
|
66
66
|
},
|
|
67
67
|
"prettier": "@internal/prettier-config",
|