@pixpilot/shadcn-ui 1.1.1 → 1.1.2
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/ColorPickerBase/color-palette/PaletteButton.cjs +3 -2
- package/dist/ColorPickerBase/color-palette/PaletteButton.d.cts +1 -0
- package/dist/ColorPickerBase/color-palette/PaletteButton.d.ts +1 -0
- package/dist/ColorPickerBase/color-palette/PaletteButton.js +3 -2
- package/dist/ColorPickerBase/color-palette/PaletteSwatch.cjs +3 -3
- package/dist/ColorPickerBase/color-palette/PaletteSwatch.js +4 -4
- package/dist/Rating.d.cts +1 -1
- package/dist/Rating.d.ts +1 -1
- package/dist/dialog/Dialog.d.ts +4 -4
- 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/tags-input/TagsInput.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.cts +2 -2
- package/package.json +3 -3
|
@@ -8,11 +8,12 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
8
8
|
|
|
9
9
|
//#region src/ColorPickerBase/color-palette/PaletteButton.tsx
|
|
10
10
|
const COLOR_PICKER_PALETTE_BUTTON_CLASSES = "w-6.5 h-6.5 rounded border border-input focus:outline-none focus:ring-2 focus:ring-ring";
|
|
11
|
-
const ColorPickerPaletteButton = (props) => {
|
|
11
|
+
const ColorPickerPaletteButton = ({ selected,...props }) => {
|
|
12
12
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
13
13
|
type: "button",
|
|
14
14
|
...props,
|
|
15
|
-
className: (0, __pixpilot_shadcn.cn)(COLOR_PICKER_PALETTE_BUTTON_CLASSES, props.className)
|
|
15
|
+
className: (0, __pixpilot_shadcn.cn)(COLOR_PICKER_PALETTE_BUTTON_CLASSES, selected && "ring-2 ring-ring ring-offset-2 ring-offset-background border-ring", props.className),
|
|
16
|
+
"aria-pressed": selected
|
|
16
17
|
});
|
|
17
18
|
};
|
|
18
19
|
ColorPickerPaletteButton.displayName = "PaletteButton";
|
|
@@ -3,6 +3,7 @@ import React from "react";
|
|
|
3
3
|
//#region src/ColorPickerBase/color-palette/PaletteButton.d.ts
|
|
4
4
|
interface ColorPickerPaletteButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
|
+
selected?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const COLOR_PICKER_PALETTE_BUTTON_CLASSES = "w-6.5 h-6.5 rounded border border-input focus:outline-none focus:ring-2 focus:ring-ring";
|
|
8
9
|
declare const ColorPickerPaletteButton: React.FC<ColorPickerPaletteButtonProps>;
|
|
@@ -3,6 +3,7 @@ import React from "react";
|
|
|
3
3
|
//#region src/ColorPickerBase/color-palette/PaletteButton.d.ts
|
|
4
4
|
interface ColorPickerPaletteButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
|
+
selected?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const COLOR_PICKER_PALETTE_BUTTON_CLASSES = "w-6.5 h-6.5 rounded border border-input focus:outline-none focus:ring-2 focus:ring-ring";
|
|
8
9
|
declare const ColorPickerPaletteButton: React.FC<ColorPickerPaletteButtonProps>;
|
|
@@ -4,11 +4,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region src/ColorPickerBase/color-palette/PaletteButton.tsx
|
|
6
6
|
const COLOR_PICKER_PALETTE_BUTTON_CLASSES = "w-6.5 h-6.5 rounded border border-input focus:outline-none focus:ring-2 focus:ring-ring";
|
|
7
|
-
const ColorPickerPaletteButton = (props) => {
|
|
7
|
+
const ColorPickerPaletteButton = ({ selected,...props }) => {
|
|
8
8
|
return /* @__PURE__ */ jsx("button", {
|
|
9
9
|
type: "button",
|
|
10
10
|
...props,
|
|
11
|
-
className: cn(COLOR_PICKER_PALETTE_BUTTON_CLASSES, props.className)
|
|
11
|
+
className: cn(COLOR_PICKER_PALETTE_BUTTON_CLASSES, selected && "ring-2 ring-ring ring-offset-2 ring-offset-background border-ring", props.className),
|
|
12
|
+
"aria-pressed": selected
|
|
12
13
|
});
|
|
13
14
|
};
|
|
14
15
|
ColorPickerPaletteButton.displayName = "PaletteButton";
|
|
@@ -31,9 +31,9 @@ const ColorPickerPaletteSwatch = ({ color, onSelect, className, selectedValue })
|
|
|
31
31
|
backgroundImage: `linear-gradient(${colorValue}, ${colorValue}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%)`,
|
|
32
32
|
backgroundSize: "auto, 8px 8px"
|
|
33
33
|
},
|
|
34
|
-
className
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
className,
|
|
35
|
+
selected: isSelected,
|
|
36
|
+
onClick: handleClick
|
|
37
37
|
});
|
|
38
38
|
if (colorLabel === null || colorLabel === void 0 || colorLabel === "") return button;
|
|
39
39
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.Tooltip, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TooltipTrigger, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorPickerPaletteButton } from "./PaletteButton.js";
|
|
2
|
-
import { Tooltip, TooltipContent, TooltipTrigger,
|
|
2
|
+
import { Tooltip, TooltipContent, TooltipTrigger, colorUtils } from "@pixpilot/shadcn";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -27,9 +27,9 @@ const ColorPickerPaletteSwatch = ({ color, onSelect, className, selectedValue })
|
|
|
27
27
|
backgroundImage: `linear-gradient(${colorValue}, ${colorValue}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%)`,
|
|
28
28
|
backgroundSize: "auto, 8px 8px"
|
|
29
29
|
},
|
|
30
|
-
className
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
className,
|
|
31
|
+
selected: isSelected,
|
|
32
|
+
onClick: handleClick
|
|
33
33
|
});
|
|
34
34
|
if (colorLabel === null || colorLabel === void 0 || colorLabel === "") return button;
|
|
35
35
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
package/dist/Rating.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ interface RatingOption {
|
|
|
10
10
|
value: number;
|
|
11
11
|
}
|
|
12
12
|
declare const ratingVariants: (props?: ({
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
15
15
|
type RatingSize = VariantProps<typeof ratingVariants>['size'];
|
|
16
16
|
type IconType = 'star' | 'circle';
|
package/dist/Rating.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface RatingOption {
|
|
|
10
10
|
value: number;
|
|
11
11
|
}
|
|
12
12
|
declare const ratingVariants: (props?: ({
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
15
15
|
type RatingSize = VariantProps<typeof ratingVariants>['size'];
|
|
16
16
|
type IconType = 'star' | 'circle';
|
package/dist/dialog/Dialog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
|
|
4
4
|
|
|
5
5
|
//#region src/dialog/Dialog.d.ts
|
|
@@ -9,14 +9,14 @@ declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<_radix_ui_re
|
|
|
9
9
|
declare function DialogHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
12
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime9.JSX.Element;
|
|
13
13
|
declare function DialogBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
16
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime9.JSX.Element;
|
|
17
17
|
declare function DialogFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
20
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime9.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { DialogBody, DialogContent, DialogFooter, DialogHeader };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 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_runtime13.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_runtime12 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_runtime12.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_runtime12 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_runtime12.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input, InputProps$1 as InputProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandOptionListItem } from "../CommandOptionList.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input/TagsInput.d.ts
|
|
5
5
|
interface TagsInputProps {
|
|
@@ -57,6 +57,6 @@ declare function TagsInput({
|
|
|
57
57
|
addOnTab,
|
|
58
58
|
onValidate,
|
|
59
59
|
addButtonVisibility
|
|
60
|
-
}: TagsInputProps):
|
|
60
|
+
}: TagsInputProps): react_jsx_runtime16.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { TagsInput, TagsInputProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 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_runtime17.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": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
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",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"tsdown": "^0.15.12",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
63
|
"@internal/eslint-config": "0.3.0",
|
|
64
|
+
"@internal/hooks": "0.0.0",
|
|
64
65
|
"@internal/prettier-config": "0.0.1",
|
|
65
66
|
"@internal/tsconfig": "0.1.0",
|
|
66
67
|
"@internal/tsdown-config": "0.1.0",
|
|
67
|
-
"@internal/vitest-config": "0.1.0"
|
|
68
|
-
"@internal/hooks": "0.0.0"
|
|
68
|
+
"@internal/vitest-config": "0.1.0"
|
|
69
69
|
},
|
|
70
70
|
"prettier": "@internal/prettier-config",
|
|
71
71
|
"scripts": {
|