@pixpilot/shadcn-ui 0.20.0 → 0.22.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.
@@ -19,14 +19,22 @@ function Swatch(props) {
19
19
  });
20
20
  }
21
21
  const ColorPicker = (props) => {
22
- const { variant = "input", placeholder = "Pick a color",...rest } = props;
22
+ const { variant = "input", placeholder = "Pick a color", formatDisplayValue,...rest } = props;
23
23
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ColorPickerBase.ColorPickerBase, {
24
24
  ...rest,
25
25
  children: ({ value, onValueChange, isPickerOpen }) => {
26
+ const swatchColor = value != null && value !== "" ? value : void 0;
27
+ const renderSwatch = () => {
28
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Swatch, { color: swatchColor });
29
+ };
30
+ const renderDisplayValue = () => {
31
+ if (value == null || value === "") return placeholder;
32
+ return formatDisplayValue != null ? formatDisplayValue(value) : value;
33
+ };
26
34
  if (variant === "input") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.InputGroup, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.InputGroupAddon, {
27
35
  align: "inline-start",
28
36
  className: "pl-0",
29
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Swatch, { color: value })
37
+ children: renderSwatch()
30
38
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.InputGroupInput, {
31
39
  value: value ?? "",
32
40
  onPointerDown: (e) => {
@@ -46,11 +54,11 @@ const ColorPicker = (props) => {
46
54
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.InputGroupAddon, {
47
55
  align: "inline-start",
48
56
  className: "pl-0",
49
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Swatch, { color: value })
57
+ children: renderSwatch()
50
58
  }),
51
59
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.InputGroupText, {
52
60
  className: "flex-1 text-left text-foreground pl-2",
53
- children: value ?? placeholder
61
+ children: renderDisplayValue()
54
62
  }),
55
63
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.InputGroupAddon, {
56
64
  align: "inline-end",
@@ -4,6 +4,7 @@ import { ColorPickerBaseProps } from "../ColorPickerBase/types.cjs";
4
4
  interface ColorPickerProps extends Omit<ColorPickerBaseProps, 'children'> {
5
5
  variant?: 'button' | 'input';
6
6
  placeholder?: string;
7
+ formatDisplayValue?: (value: string) => React.ReactNode;
7
8
  }
8
9
  declare const ColorPicker: React.FC<ColorPickerProps>;
9
10
  //#endregion
@@ -5,6 +5,7 @@ import "../ColorPickerBase/index.js";
5
5
  interface ColorPickerProps extends Omit<ColorPickerBaseProps, 'children'> {
6
6
  variant?: 'button' | 'input';
7
7
  placeholder?: string;
8
+ formatDisplayValue?: (value: string) => React.ReactNode;
8
9
  }
9
10
  declare const ColorPicker: React.FC<ColorPickerProps>;
10
11
  //#endregion
@@ -15,14 +15,22 @@ function Swatch(props) {
15
15
  });
16
16
  }
17
17
  const ColorPicker$1 = (props) => {
18
- const { variant = "input", placeholder = "Pick a color",...rest } = props;
18
+ const { variant = "input", placeholder = "Pick a color", formatDisplayValue,...rest } = props;
19
19
  return /* @__PURE__ */ jsx(ColorPickerBase, {
20
20
  ...rest,
21
21
  children: ({ value, onValueChange, isPickerOpen }) => {
22
+ const swatchColor = value != null && value !== "" ? value : void 0;
23
+ const renderSwatch = () => {
24
+ return /* @__PURE__ */ jsx(Swatch, { color: swatchColor });
25
+ };
26
+ const renderDisplayValue = () => {
27
+ if (value == null || value === "") return placeholder;
28
+ return formatDisplayValue != null ? formatDisplayValue(value) : value;
29
+ };
22
30
  if (variant === "input") return /* @__PURE__ */ jsxs(InputGroup, { children: [/* @__PURE__ */ jsx(InputGroupAddon, {
23
31
  align: "inline-start",
24
32
  className: "pl-0",
25
- children: /* @__PURE__ */ jsx(Swatch, { color: value })
33
+ children: renderSwatch()
26
34
  }), /* @__PURE__ */ jsx(InputGroupInput, {
27
35
  value: value ?? "",
28
36
  onPointerDown: (e) => {
@@ -42,11 +50,11 @@ const ColorPicker$1 = (props) => {
42
50
  /* @__PURE__ */ jsx(InputGroupAddon, {
43
51
  align: "inline-start",
44
52
  className: "pl-0",
45
- children: /* @__PURE__ */ jsx(Swatch, { color: value })
53
+ children: renderSwatch()
46
54
  }),
47
55
  /* @__PURE__ */ jsx(InputGroupText, {
48
56
  className: "flex-1 text-left text-foreground pl-2",
49
- children: value ?? placeholder
57
+ children: renderDisplayValue()
50
58
  }),
51
59
  /* @__PURE__ */ jsx(InputGroupAddon, {
52
60
  align: "inline-end",
@@ -15,22 +15,70 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
15
15
 
16
16
  //#region src/ColorPickerBase/ColorPickerBase.tsx
17
17
  const commonColors = [
18
- "#00000000",
19
- "#000000",
20
- "#FFFFFF",
21
- "#808080",
22
- "#FF0000",
23
- "#FFA500",
24
- "#FFFF00",
25
- "#84CC16",
26
- "#22C55E",
27
- "#14B8A6",
28
- "#00FFFF",
29
- "#3B82F6",
30
- "#6366F1",
31
- "#A855F7",
32
- "#EC4899",
33
- "#A52A2A"
18
+ {
19
+ label: "Transparent",
20
+ value: "#00000000"
21
+ },
22
+ {
23
+ label: "Black",
24
+ value: "#000000"
25
+ },
26
+ {
27
+ label: "White",
28
+ value: "#FFFFFF"
29
+ },
30
+ {
31
+ label: "Gray",
32
+ value: "#808080"
33
+ },
34
+ {
35
+ label: "Red",
36
+ value: "#FF0000"
37
+ },
38
+ {
39
+ label: "Orange",
40
+ value: "#FFA500"
41
+ },
42
+ {
43
+ label: "Yellow",
44
+ value: "#FFFF00"
45
+ },
46
+ {
47
+ label: "Lime",
48
+ value: "#84CC16"
49
+ },
50
+ {
51
+ label: "Green",
52
+ value: "#22C55E"
53
+ },
54
+ {
55
+ label: "Teal",
56
+ value: "#14B8A6"
57
+ },
58
+ {
59
+ label: "Cyan",
60
+ value: "#00FFFF"
61
+ },
62
+ {
63
+ label: "Blue",
64
+ value: "#3B82F6"
65
+ },
66
+ {
67
+ label: "Indigo",
68
+ value: "#6366F1"
69
+ },
70
+ {
71
+ label: "Purple",
72
+ value: "#A855F7"
73
+ },
74
+ {
75
+ label: "Pink",
76
+ value: "#EC4899"
77
+ },
78
+ {
79
+ label: "Brown",
80
+ value: "#A52A2A"
81
+ }
34
82
  ];
35
83
  const DEFAULT_COLOR = "#000000";
36
84
  const ColorPickerBase = (props) => {
@@ -11,22 +11,70 @@ import { jsx, jsxs } from "react/jsx-runtime";
11
11
 
12
12
  //#region src/ColorPickerBase/ColorPickerBase.tsx
13
13
  const commonColors = [
14
- "#00000000",
15
- "#000000",
16
- "#FFFFFF",
17
- "#808080",
18
- "#FF0000",
19
- "#FFA500",
20
- "#FFFF00",
21
- "#84CC16",
22
- "#22C55E",
23
- "#14B8A6",
24
- "#00FFFF",
25
- "#3B82F6",
26
- "#6366F1",
27
- "#A855F7",
28
- "#EC4899",
29
- "#A52A2A"
14
+ {
15
+ label: "Transparent",
16
+ value: "#00000000"
17
+ },
18
+ {
19
+ label: "Black",
20
+ value: "#000000"
21
+ },
22
+ {
23
+ label: "White",
24
+ value: "#FFFFFF"
25
+ },
26
+ {
27
+ label: "Gray",
28
+ value: "#808080"
29
+ },
30
+ {
31
+ label: "Red",
32
+ value: "#FF0000"
33
+ },
34
+ {
35
+ label: "Orange",
36
+ value: "#FFA500"
37
+ },
38
+ {
39
+ label: "Yellow",
40
+ value: "#FFFF00"
41
+ },
42
+ {
43
+ label: "Lime",
44
+ value: "#84CC16"
45
+ },
46
+ {
47
+ label: "Green",
48
+ value: "#22C55E"
49
+ },
50
+ {
51
+ label: "Teal",
52
+ value: "#14B8A6"
53
+ },
54
+ {
55
+ label: "Cyan",
56
+ value: "#00FFFF"
57
+ },
58
+ {
59
+ label: "Blue",
60
+ value: "#3B82F6"
61
+ },
62
+ {
63
+ label: "Indigo",
64
+ value: "#6366F1"
65
+ },
66
+ {
67
+ label: "Purple",
68
+ value: "#A855F7"
69
+ },
70
+ {
71
+ label: "Pink",
72
+ value: "#EC4899"
73
+ },
74
+ {
75
+ label: "Brown",
76
+ value: "#A52A2A"
77
+ }
30
78
  ];
31
79
  const DEFAULT_COLOR = "#000000";
32
80
  const ColorPickerBase = (props) => {
@@ -31,7 +31,7 @@ const ColorPickerCompact = react.default.memo((props) => {
31
31
  children: [presetColors.map((color) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteSwatch.PaletteSwatch, {
32
32
  color,
33
33
  onSelect: onValueChange
34
- }, color)), layout === "compact" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteButton.PaletteButton, {
34
+ }, color.value)), layout === "compact" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteButton.PaletteButton, {
35
35
  onClick: () => setShowFullPicker(!showFullPicker),
36
36
  "aria-label": "Toggle full color picker",
37
37
  className: "flex items-center justify-center border-input bg-input hover:bg-accent hover:text-accent-foreground",
@@ -26,7 +26,7 @@ const ColorPickerCompact = React.memo((props) => {
26
26
  children: [presetColors.map((color) => /* @__PURE__ */ jsx(PaletteSwatch, {
27
27
  color,
28
28
  onSelect: onValueChange
29
- }, color)), layout === "compact" && /* @__PURE__ */ jsx(PaletteButton, {
29
+ }, color.value)), layout === "compact" && /* @__PURE__ */ jsx(PaletteButton, {
30
30
  onClick: () => setShowFullPicker(!showFullPicker),
31
31
  "aria-label": "Toggle full color picker",
32
32
  className: "flex items-center justify-center border-input bg-input hover:bg-accent hover:text-accent-foreground",
@@ -25,7 +25,7 @@ const ColorPickerFull = react.default.memo((props) => {
25
25
  children: presetColors.map((color) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteSwatch.PaletteSwatch, {
26
26
  color,
27
27
  onSelect: onValueChange
28
- }, color))
28
+ }, color.value))
29
29
  }),
30
30
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
31
31
  className: "flex items-center gap-2 w-full",
@@ -21,7 +21,7 @@ const ColorPickerFull = React.memo((props) => {
21
21
  children: presetColors.map((color) => /* @__PURE__ */ jsx(PaletteSwatch, {
22
22
  color,
23
23
  onSelect: onValueChange
24
- }, color))
24
+ }, color.value))
25
25
  }),
26
26
  /* @__PURE__ */ jsxs("div", {
27
27
  className: "flex items-center gap-2 w-full",
@@ -1,5 +1,7 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_PaletteButton = require('./PaletteButton.cjs');
3
+ let __pixpilot_shadcn = require("@pixpilot/shadcn");
4
+ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
3
5
  let react = require("react");
4
6
  react = require_rolldown_runtime.__toESM(react);
5
7
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -7,17 +9,27 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
7
9
 
8
10
  //#region src/ColorPickerBase/PaletteSwatch.tsx
9
11
  const PaletteSwatch = ({ color, onSelect, className }) => {
12
+ const colorValue = color?.value ?? "rgb(0,0,0,0)";
13
+ const colorLabel = color?.label;
10
14
  const handleClick = (0, react.useCallback)(() => {
11
- if (onSelect) onSelect(color ?? "rgb(0,0,0,0)");
12
- }, [color, onSelect]);
13
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteButton.PaletteButton, {
15
+ if (onSelect) onSelect(colorValue);
16
+ }, [colorValue, onSelect]);
17
+ const button = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteButton.PaletteButton, {
14
18
  style: {
15
- backgroundImage: `linear-gradient(${color}, ${color}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%)`,
19
+ backgroundImage: `linear-gradient(${colorValue}, ${colorValue}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%)`,
16
20
  backgroundSize: "auto, 8px 8px"
17
21
  },
18
22
  className,
19
23
  onClick: handleClick
20
24
  });
25
+ if (colorLabel === null || colorLabel === void 0 || colorLabel === "") return button;
26
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.Tooltip, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TooltipTrigger, {
27
+ asChild: true,
28
+ children: button
29
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TooltipContent, {
30
+ side: "top",
31
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: colorLabel })
32
+ })] });
21
33
  };
22
34
 
23
35
  //#endregion
@@ -1,20 +1,31 @@
1
1
  import { PaletteButton } from "./PaletteButton.js";
2
+ import { Tooltip, TooltipContent, TooltipTrigger } from "@pixpilot/shadcn";
2
3
  import { useCallback } from "react";
3
- import { jsx } from "react/jsx-runtime";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
4
5
 
5
6
  //#region src/ColorPickerBase/PaletteSwatch.tsx
6
7
  const PaletteSwatch = ({ color, onSelect, className }) => {
8
+ const colorValue = color?.value ?? "rgb(0,0,0,0)";
9
+ const colorLabel = color?.label;
7
10
  const handleClick = useCallback(() => {
8
- if (onSelect) onSelect(color ?? "rgb(0,0,0,0)");
9
- }, [color, onSelect]);
10
- return /* @__PURE__ */ jsx(PaletteButton, {
11
+ if (onSelect) onSelect(colorValue);
12
+ }, [colorValue, onSelect]);
13
+ const button = /* @__PURE__ */ jsx(PaletteButton, {
11
14
  style: {
12
- backgroundImage: `linear-gradient(${color}, ${color}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%)`,
15
+ backgroundImage: `linear-gradient(${colorValue}, ${colorValue}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%)`,
13
16
  backgroundSize: "auto, 8px 8px"
14
17
  },
15
18
  className,
16
19
  onClick: handleClick
17
20
  });
21
+ if (colorLabel === null || colorLabel === void 0 || colorLabel === "") return button;
22
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
23
+ asChild: true,
24
+ children: button
25
+ }), /* @__PURE__ */ jsx(TooltipContent, {
26
+ side: "top",
27
+ children: /* @__PURE__ */ jsx("p", { children: colorLabel })
28
+ })] });
18
29
  };
19
30
 
20
31
  //#endregion
@@ -1,2 +1,2 @@
1
- import { ColorPickerBaseProps } from "./types.js";
1
+ import { ColorPickerBaseProps, PresetColor } from "./types.js";
2
2
  import { ColorPickerBase } from "./ColorPickerBase.js";
@@ -1,10 +1,14 @@
1
1
  import { ColorPickerProps } from "@pixpilot/shadcn";
2
2
 
3
3
  //#region src/ColorPickerBase/types.d.ts
4
+ interface PresetColor {
5
+ label: string;
6
+ value: string;
7
+ }
4
8
  interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'children'> {
5
9
  value?: string;
6
10
  onChange?: (value: string) => void;
7
- presetColors?: string[];
11
+ presetColors?: PresetColor[];
8
12
  layout?: 'full' | 'compact';
9
13
  children: (props: {
10
14
  value?: string;
@@ -13,4 +17,4 @@ interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'chil
13
17
  }) => React.ReactNode;
14
18
  }
15
19
  //#endregion
16
- export { ColorPickerBaseProps };
20
+ export { ColorPickerBaseProps, PresetColor };
@@ -1,10 +1,14 @@
1
1
  import { ColorPickerProps } from "@pixpilot/shadcn";
2
2
 
3
3
  //#region src/ColorPickerBase/types.d.ts
4
+ interface PresetColor {
5
+ label: string;
6
+ value: string;
7
+ }
4
8
  interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'children'> {
5
9
  value?: string;
6
10
  onChange?: (value: string) => void;
7
- presetColors?: string[];
11
+ presetColors?: PresetColor[];
8
12
  layout?: 'full' | 'compact';
9
13
  children: (props: {
10
14
  value?: string;
@@ -13,4 +17,4 @@ interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'chil
13
17
  }) => React.ReactNode;
14
18
  }
15
19
  //#endregion
16
- export { ColorPickerBaseProps };
20
+ export { ColorPickerBaseProps, PresetColor };
package/dist/index.d.cts CHANGED
@@ -10,7 +10,7 @@ import { CircleLoader, CircleLoaderProps } from "./circle-loader/circle-loader.c
10
10
  import "./circle-loader/index.cjs";
11
11
  import { CloseButtonRounded, CloseButtonRoundedProps } from "./CloseButtonRounded.cjs";
12
12
  import { CloseButtonAbsolute, PopoverCloseButtonProps } from "./CloseButtonAbsolute.cjs";
13
- import { ColorPickerBaseProps } from "./ColorPickerBase/types.cjs";
13
+ import { ColorPickerBaseProps, PresetColor } from "./ColorPickerBase/types.cjs";
14
14
  import { ColorPickerBase } from "./ColorPickerBase/ColorPickerBase.cjs";
15
15
  import { ColorPicker, ColorPickerProps } from "./ColorPicker/ColorPicker.cjs";
16
16
  import { BaseColorSelectProps, ColorSelect, ColorSelectOption } from "./ColorSelect.cjs";
@@ -62,4 +62,4 @@ import { ThemeToggle } from "./ThemeToggle.cjs";
62
62
  import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.cjs";
63
63
  import "./toast/index.cjs";
64
64
  import { cn } from "@pixpilot/shadcn";
65
- export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, 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, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
65
+ export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, 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, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, PresetColor, RichTextEditor, RichTextEditorProps, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { CircleLoader, CircleLoaderProps } from "./circle-loader/circle-loader.j
10
10
  import "./circle-loader/index.js";
11
11
  import { CloseButtonRounded, CloseButtonRoundedProps } from "./CloseButtonRounded.js";
12
12
  import { CloseButtonAbsolute, PopoverCloseButtonProps } from "./CloseButtonAbsolute.js";
13
- import { ColorPickerBaseProps } from "./ColorPickerBase/types.js";
13
+ import { ColorPickerBaseProps, PresetColor } from "./ColorPickerBase/types.js";
14
14
  import { ColorPickerBase } from "./ColorPickerBase/ColorPickerBase.js";
15
15
  import "./ColorPickerBase/index.js";
16
16
  import { ColorPicker, ColorPickerProps } from "./ColorPicker/ColorPicker.js";
@@ -64,4 +64,4 @@ import { ThemeToggle } from "./ThemeToggle.js";
64
64
  import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.js";
65
65
  import "./toast/index.js";
66
66
  import { cn } from "@pixpilot/shadcn";
67
- export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, 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, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
67
+ export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, 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, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, PresetColor, RichTextEditor, RichTextEditorProps, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/shadcn-ui",
3
3
  "type": "module",
4
- "version": "0.20.0",
4
+ "version": "0.22.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",