@pixpilot/shadcn-ui 0.65.0 → 1.0.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/Button.cjs +11 -77
- package/dist/Button.d.cts +1 -24
- package/dist/Button.d.ts +1 -24
- package/dist/Button.js +13 -78
- package/dist/ButtonExtended.cjs +104 -0
- package/dist/ButtonExtended.d.cts +58 -0
- package/dist/ButtonExtended.d.ts +58 -0
- package/dist/ButtonExtended.js +99 -0
- package/dist/ColorPicker/ColorPicker.cjs +5 -57
- package/dist/ColorPicker/ColorPicker.d.cts +1 -0
- package/dist/ColorPicker/ColorPicker.js +9 -59
- package/dist/ColorPicker/index.d.cts +1 -0
- package/dist/ColorPickerBase/ColorPickerBase.cjs +19 -98
- package/dist/ColorPickerBase/ColorPickerBase.js +18 -96
- package/dist/ColorPickerBase/ColorPickerButton.cjs +54 -0
- package/dist/ColorPickerBase/ColorPickerButton.d.cts +14 -0
- package/dist/ColorPickerBase/ColorPickerButton.d.ts +14 -0
- package/dist/ColorPickerBase/ColorPickerButton.js +47 -0
- package/dist/ColorPickerBase/ColorPickerCompactControls.cjs +49 -0
- package/dist/ColorPickerBase/ColorPickerCompactControls.d.cts +8 -0
- package/dist/ColorPickerBase/ColorPickerCompactControls.d.ts +8 -0
- package/dist/ColorPickerBase/ColorPickerCompactControls.js +46 -0
- package/dist/ColorPickerBase/ColorPickerControls.cjs +33 -0
- package/dist/ColorPickerBase/ColorPickerControls.d.cts +15 -0
- package/dist/ColorPickerBase/ColorPickerControls.d.ts +15 -0
- package/dist/ColorPickerBase/ColorPickerControls.js +29 -0
- package/dist/ColorPickerBase/ColorPickerFormatControls.cjs +22 -0
- package/dist/ColorPickerBase/ColorPickerFormatControls.d.cts +12 -0
- package/dist/ColorPickerBase/ColorPickerFormatControls.d.ts +12 -0
- package/dist/ColorPickerBase/ColorPickerFormatControls.js +18 -0
- package/dist/ColorPickerBase/ColorPickerFormatInput.cjs +20 -0
- package/dist/ColorPickerBase/ColorPickerFormatInput.d.cts +8 -0
- package/dist/ColorPickerBase/ColorPickerFormatInput.d.ts +8 -0
- package/dist/ColorPickerBase/ColorPickerFormatInput.js +16 -0
- package/dist/ColorPickerBase/ColorPickerFullControls.cjs +44 -0
- package/dist/ColorPickerBase/ColorPickerFullControls.d.cts +8 -0
- package/dist/ColorPickerBase/ColorPickerFullControls.d.ts +8 -0
- package/dist/ColorPickerBase/ColorPickerFullControls.js +41 -0
- package/dist/ColorPickerBase/ColorPickerInput.cjs +36 -4
- package/dist/ColorPickerBase/ColorPickerInput.d.cts +12 -0
- package/dist/ColorPickerBase/ColorPickerInput.d.ts +12 -0
- package/dist/ColorPickerBase/ColorPickerInput.js +36 -6
- package/dist/ColorPickerBase/ColorPickerRoot.cjs +55 -0
- package/dist/ColorPickerBase/ColorPickerRoot.d.cts +6 -0
- package/dist/ColorPickerBase/ColorPickerRoot.d.ts +6 -0
- package/dist/ColorPickerBase/ColorPickerRoot.js +51 -0
- package/dist/ColorPickerBase/ColorPickerSwatch.cjs +19 -0
- package/dist/ColorPickerBase/ColorPickerSwatch.d.cts +8 -0
- package/dist/ColorPickerBase/ColorPickerSwatch.d.ts +8 -0
- package/dist/ColorPickerBase/ColorPickerSwatch.js +15 -0
- package/dist/ColorPickerBase/color-palette/ColorPickerColorPalette.cjs +101 -0
- package/dist/ColorPickerBase/color-palette/ColorPickerColorPalette.d.cts +14 -0
- package/dist/ColorPickerBase/color-palette/ColorPickerColorPalette.d.ts +14 -0
- package/dist/ColorPickerBase/color-palette/ColorPickerColorPalette.js +95 -0
- package/dist/ColorPickerBase/{PaletteSwatch.cjs → color-palette/PaletteSwatch.cjs} +3 -3
- package/dist/ColorPickerBase/{PaletteSwatch.js → color-palette/PaletteSwatch.js} +2 -2
- package/dist/ColorPickerBase/color-palette/index.cjs +1 -0
- package/dist/ColorPickerBase/color-palette/index.d.cts +1 -0
- package/dist/ColorPickerBase/color-palette/index.d.ts +1 -0
- package/dist/ColorPickerBase/color-palette/index.js +1 -0
- package/dist/ColorPickerBase/color-picker-context.cjs +16 -0
- package/dist/ColorPickerBase/color-picker-context.d.cts +14 -0
- package/dist/ColorPickerBase/color-picker-context.d.ts +14 -0
- package/dist/ColorPickerBase/color-picker-context.js +11 -0
- package/dist/ColorPickerBase/constants.cjs +13 -0
- package/dist/ColorPickerBase/constants.js +11 -0
- package/dist/ColorPickerBase/hooks/use-color-picker-base-swatch.cjs +4 -4
- package/dist/ColorPickerBase/hooks/use-color-picker-base-swatch.js +4 -4
- package/dist/ColorPickerBase/index.cjs +14 -0
- package/dist/ColorPickerBase/index.d.cts +13 -0
- package/dist/ColorPickerBase/index.d.ts +13 -2
- package/dist/ColorPickerBase/index.js +11 -0
- package/dist/ColorPickerBase/types.d.cts +11 -3
- package/dist/ColorPickerBase/types.d.ts +11 -3
- package/dist/ColorSelect.d.cts +2 -2
- package/dist/ColorSelect.d.ts +2 -2
- package/dist/ContentCard.d.cts +2 -2
- package/dist/ContentCard.d.ts +2 -2
- package/dist/DatePicker.d.cts +2 -2
- package/dist/DatePicker.d.ts +2 -2
- package/dist/IconToggle.cjs +44 -66
- package/dist/IconToggle.d.cts +2 -46
- package/dist/IconToggle.d.ts +2 -46
- package/dist/IconToggle.js +45 -66
- package/dist/Rating.d.cts +4 -4
- package/dist/Rating.d.ts +4 -4
- package/dist/Select.d.cts +2 -2
- package/dist/Select.d.ts +2 -2
- package/dist/ToggleButton.cjs +46 -0
- package/dist/ToggleButton.d.cts +41 -0
- package/dist/ToggleButton.d.ts +41 -0
- package/dist/ToggleButton.js +43 -0
- package/dist/dialog/Dialog.d.cts +4 -4
- package/dist/dialog/Dialog.d.ts +4 -4
- package/dist/file-upload/FileUpload.d.cts +2 -2
- package/dist/file-upload/FileUpload.d.ts +2 -2
- package/dist/file-upload-inline/FileUploadInline.d.ts +2 -2
- package/dist/file-upload-root/FileUploadRoot.d.ts +2 -2
- package/dist/index.cjs +33 -0
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +13 -1
- package/dist/input/Input.d.cts +2 -2
- package/dist/input/Input.d.ts +2 -2
- package/dist/tags-input/TagsInput.d.cts +2 -2
- package/dist/tags-input/TagsInput.d.ts +2 -2
- package/dist/tags-input/TagsInputInline.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.cts +2 -2
- package/package.json +2 -2
- package/dist/ColorPickerBase/ColorPickerCompact.cjs +0 -59
- package/dist/ColorPickerBase/ColorPickerCompact.js +0 -54
- package/dist/ColorPickerBase/ColorPickerFull.cjs +0 -48
- package/dist/ColorPickerBase/ColorPickerFull.js +0 -44
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { Provider } from "./color-picker-context.js";
|
|
5
|
+
import { useColorPickerValueAdapter } from "./hooks/use-color-picker-base-swatch.js";
|
|
6
|
+
import { useColorPickerBaseValue } from "./hooks/use-color-picker-base-value.js";
|
|
7
|
+
import { ColorPicker } from "@pixpilot/shadcn";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/ColorPickerBase/ColorPickerRoot.tsx
|
|
12
|
+
const DEFAULT_COLOR = "#000000";
|
|
13
|
+
const ColorPickerRoot = (props) => {
|
|
14
|
+
const { value: propValue, onChange, onValueChange, format, defaultFormat = "hex", onFormatChange, children,...rest } = props;
|
|
15
|
+
const { currentValue, handleValueChange } = useColorPickerBaseValue({
|
|
16
|
+
value: propValue,
|
|
17
|
+
defaultValue: DEFAULT_COLOR,
|
|
18
|
+
onChange,
|
|
19
|
+
onValueChange
|
|
20
|
+
});
|
|
21
|
+
const { valueForPicker, handleFormatChange } = useColorPickerValueAdapter({
|
|
22
|
+
currentValue,
|
|
23
|
+
format,
|
|
24
|
+
defaultFormat,
|
|
25
|
+
onFormatChange,
|
|
26
|
+
handleValueChange
|
|
27
|
+
});
|
|
28
|
+
const [open, setOpen] = useState(false);
|
|
29
|
+
return /* @__PURE__ */ jsx(Provider, {
|
|
30
|
+
value: {
|
|
31
|
+
isPickerOpen: open,
|
|
32
|
+
color: currentValue,
|
|
33
|
+
onColorChange: handleValueChange,
|
|
34
|
+
openPicker: setOpen
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ jsx(ColorPicker, {
|
|
37
|
+
...rest,
|
|
38
|
+
format,
|
|
39
|
+
defaultFormat,
|
|
40
|
+
onFormatChange: handleFormatChange,
|
|
41
|
+
value: valueForPicker,
|
|
42
|
+
onValueChange: handleValueChange,
|
|
43
|
+
onOpenChange: setOpen,
|
|
44
|
+
children
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
ColorPickerRoot.displayName = "ColorPickerRoot";
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { ColorPickerRoot };
|
|
@@ -0,0 +1,19 @@
|
|
|
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/ColorPickerBase/ColorPickerSwatch.tsx
|
|
10
|
+
const ColorPickerSwatch = (props) => {
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.ColorPickerSwatch, {
|
|
12
|
+
...props,
|
|
13
|
+
className: (0, __pixpilot_shadcn.cn)("rounded-sm w-6.5 h-6.5 p-0 -ml-1 cursor-pointer", props.className)
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
ColorPickerSwatch.displayName = "ColorPickerSwatch";
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.ColorPickerSwatch = ColorPickerSwatch;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorPickerSwatch } from "@pixpilot/shadcn";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/ColorPickerBase/ColorPickerSwatch.d.ts
|
|
5
|
+
interface ColorPickerSwatchProps extends React.ComponentProps<typeof ColorPickerSwatch> {}
|
|
6
|
+
declare const ColorPickerSwatch$1: React.FC<ColorPickerSwatchProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ColorPickerSwatch$1 as ColorPickerSwatch };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorPickerSwatch } from "@pixpilot/shadcn";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/ColorPickerBase/ColorPickerSwatch.d.ts
|
|
5
|
+
interface ColorPickerSwatchProps extends React.ComponentProps<typeof ColorPickerSwatch> {}
|
|
6
|
+
declare const ColorPickerSwatch$1: React.FC<ColorPickerSwatchProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ColorPickerSwatch$1 as ColorPickerSwatch };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColorPickerSwatch, cn } from "@pixpilot/shadcn";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/ColorPickerBase/ColorPickerSwatch.tsx
|
|
6
|
+
const ColorPickerSwatch$1 = (props) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(ColorPickerSwatch, {
|
|
8
|
+
...props,
|
|
9
|
+
className: cn("rounded-sm w-6.5 h-6.5 p-0 -ml-1 cursor-pointer", props.className)
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
ColorPickerSwatch$1.displayName = "ColorPickerSwatch";
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ColorPickerSwatch$1 as ColorPickerSwatch };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_PaletteButton = require('../PaletteButton.cjs');
|
|
3
|
+
const require_PaletteSwatch = require('./PaletteSwatch.cjs');
|
|
4
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
5
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
6
|
+
let lucide_react = require("lucide-react");
|
|
7
|
+
lucide_react = require_rolldown_runtime.__toESM(lucide_react);
|
|
8
|
+
let react = require("react");
|
|
9
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
12
|
+
|
|
13
|
+
//#region src/ColorPickerBase/color-palette/ColorPickerColorPalette.tsx
|
|
14
|
+
const COMMON_COLORS = [
|
|
15
|
+
{
|
|
16
|
+
label: "Transparent",
|
|
17
|
+
value: "#00000000"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "Black",
|
|
21
|
+
value: "#000000"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: "White",
|
|
25
|
+
value: "#FFFFFF"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "Gray",
|
|
29
|
+
value: "#808080"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: "Red",
|
|
33
|
+
value: "#FF0000"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: "Orange",
|
|
37
|
+
value: "#FFA500"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: "Yellow",
|
|
41
|
+
value: "#FFFF00"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "Lime",
|
|
45
|
+
value: "#84CC16"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "Green",
|
|
49
|
+
value: "#22C55E"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "Teal",
|
|
53
|
+
value: "#14B8A6"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "Cyan",
|
|
57
|
+
value: "#00FFFF"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "Blue",
|
|
61
|
+
value: "#3B82F6"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "Indigo",
|
|
65
|
+
value: "#6366F1"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "Purple",
|
|
69
|
+
value: "#A855F7"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: "Pink",
|
|
73
|
+
value: "#EC4899"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "Brown",
|
|
77
|
+
value: "#A52A2A"
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
const ColorPickerColorPalette = (props) => {
|
|
81
|
+
const { presetColors = COMMON_COLORS, onChange, selectedColor, onMoreColor,...rest } = props;
|
|
82
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
83
|
+
...rest,
|
|
84
|
+
className: (0, __pixpilot_shadcn.cn)("gap-2 flex flex-wrap", rest.className),
|
|
85
|
+
children: [presetColors.map((color) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteSwatch.PaletteSwatch, {
|
|
86
|
+
color,
|
|
87
|
+
onSelect: onChange,
|
|
88
|
+
selectedValue: selectedColor
|
|
89
|
+
}, color.value)), onMoreColor && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaletteButton.PaletteButton, {
|
|
90
|
+
onClick: onMoreColor,
|
|
91
|
+
"aria-label": "Toggle full color picker",
|
|
92
|
+
className: "flex items-center justify-center border-input bg-input hover:bg-accent hover:text-accent-foreground",
|
|
93
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Droplet, { className: "h-4 w-4" })
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
ColorPickerColorPalette.displayName = "ColorPickerColorPalette";
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
exports.COMMON_COLORS = COMMON_COLORS;
|
|
101
|
+
exports.ColorPickerColorPalette = ColorPickerColorPalette;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PresetColor } from "../types.cjs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/ColorPickerBase/color-palette/ColorPickerColorPalette.d.ts
|
|
5
|
+
declare const COMMON_COLORS: PresetColor[];
|
|
6
|
+
interface ColorPickerColorPaletteProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
7
|
+
presetColors?: PresetColor[];
|
|
8
|
+
onChange?: (color: string) => void;
|
|
9
|
+
selectedColor?: string;
|
|
10
|
+
onMoreColor?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const ColorPickerColorPalette: React.FC<ColorPickerColorPaletteProps>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { COMMON_COLORS, ColorPickerColorPalette, ColorPickerColorPaletteProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PresetColor } from "../types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/ColorPickerBase/color-palette/ColorPickerColorPalette.d.ts
|
|
5
|
+
declare const COMMON_COLORS: PresetColor[];
|
|
6
|
+
interface ColorPickerColorPaletteProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
7
|
+
presetColors?: PresetColor[];
|
|
8
|
+
onChange?: (color: string) => void;
|
|
9
|
+
selectedColor?: string;
|
|
10
|
+
onMoreColor?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const ColorPickerColorPalette: React.FC<ColorPickerColorPaletteProps>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { COMMON_COLORS, ColorPickerColorPalette, ColorPickerColorPaletteProps };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { PaletteButton } from "../PaletteButton.js";
|
|
2
|
+
import { PaletteSwatch } from "./PaletteSwatch.js";
|
|
3
|
+
import { cn } from "@pixpilot/shadcn";
|
|
4
|
+
import { Droplet } from "lucide-react";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/ColorPickerBase/color-palette/ColorPickerColorPalette.tsx
|
|
9
|
+
const COMMON_COLORS = [
|
|
10
|
+
{
|
|
11
|
+
label: "Transparent",
|
|
12
|
+
value: "#00000000"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: "Black",
|
|
16
|
+
value: "#000000"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: "White",
|
|
20
|
+
value: "#FFFFFF"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "Gray",
|
|
24
|
+
value: "#808080"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: "Red",
|
|
28
|
+
value: "#FF0000"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "Orange",
|
|
32
|
+
value: "#FFA500"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: "Yellow",
|
|
36
|
+
value: "#FFFF00"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "Lime",
|
|
40
|
+
value: "#84CC16"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "Green",
|
|
44
|
+
value: "#22C55E"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "Teal",
|
|
48
|
+
value: "#14B8A6"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "Cyan",
|
|
52
|
+
value: "#00FFFF"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "Blue",
|
|
56
|
+
value: "#3B82F6"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "Indigo",
|
|
60
|
+
value: "#6366F1"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "Purple",
|
|
64
|
+
value: "#A855F7"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "Pink",
|
|
68
|
+
value: "#EC4899"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "Brown",
|
|
72
|
+
value: "#A52A2A"
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
const ColorPickerColorPalette = (props) => {
|
|
76
|
+
const { presetColors = COMMON_COLORS, onChange, selectedColor, onMoreColor,...rest } = props;
|
|
77
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
78
|
+
...rest,
|
|
79
|
+
className: cn("gap-2 flex flex-wrap", rest.className),
|
|
80
|
+
children: [presetColors.map((color) => /* @__PURE__ */ jsx(PaletteSwatch, {
|
|
81
|
+
color,
|
|
82
|
+
onSelect: onChange,
|
|
83
|
+
selectedValue: selectedColor
|
|
84
|
+
}, color.value)), onMoreColor && /* @__PURE__ */ jsx(PaletteButton, {
|
|
85
|
+
onClick: onMoreColor,
|
|
86
|
+
"aria-label": "Toggle full color picker",
|
|
87
|
+
className: "flex items-center justify-center border-input bg-input hover:bg-accent hover:text-accent-foreground",
|
|
88
|
+
children: /* @__PURE__ */ jsx(Droplet, { className: "h-4 w-4" })
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
ColorPickerColorPalette.displayName = "ColorPickerColorPalette";
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
export { COMMON_COLORS, ColorPickerColorPalette };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_PaletteButton = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_PaletteButton = require('../PaletteButton.cjs');
|
|
3
3
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
4
4
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
5
5
|
let react = require("react");
|
|
@@ -7,7 +7,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
9
|
|
|
10
|
-
//#region src/ColorPickerBase/PaletteSwatch.tsx
|
|
10
|
+
//#region src/ColorPickerBase/color-palette/PaletteSwatch.tsx
|
|
11
11
|
const PaletteSwatch = ({ color, onSelect, className, selectedValue }) => {
|
|
12
12
|
const colorValue = color?.value ?? "rgb(0,0,0,0)";
|
|
13
13
|
const colorLabel = color?.label;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PaletteButton } from "
|
|
1
|
+
import { PaletteButton } from "../PaletteButton.js";
|
|
2
2
|
import { Tooltip, TooltipContent, TooltipTrigger, cn, colorUtils } from "@pixpilot/shadcn";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
|
-
//#region src/ColorPickerBase/PaletteSwatch.tsx
|
|
6
|
+
//#region src/ColorPickerBase/color-palette/PaletteSwatch.tsx
|
|
7
7
|
const PaletteSwatch = ({ color, onSelect, className, selectedValue }) => {
|
|
8
8
|
const colorValue = color?.value ?? "rgb(0,0,0,0)";
|
|
9
9
|
const colorLabel = color?.label;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ColorPickerColorPalette = require('./ColorPickerColorPalette.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { COMMON_COLORS, ColorPickerColorPalette, ColorPickerColorPaletteProps } from "./ColorPickerColorPalette.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { COMMON_COLORS, ColorPickerColorPalette, ColorPickerColorPaletteProps } from "./ColorPickerColorPalette.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { COMMON_COLORS, ColorPickerColorPalette } from "./ColorPickerColorPalette.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region src/ColorPickerBase/color-picker-context.ts
|
|
6
|
+
const ColorPickerContext = react.default.createContext({});
|
|
7
|
+
const { Provider, Consumer } = ColorPickerContext;
|
|
8
|
+
function useColorPickerContext() {
|
|
9
|
+
return react.default.use(ColorPickerContext);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.ColorPickerContext = ColorPickerContext;
|
|
14
|
+
exports.Consumer = Consumer;
|
|
15
|
+
exports.Provider = Provider;
|
|
16
|
+
exports.useColorPickerContext = useColorPickerContext;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/ColorPickerBase/color-picker-context.d.ts
|
|
4
|
+
interface ColorPickerContextStates {
|
|
5
|
+
isPickerOpen: boolean;
|
|
6
|
+
color: string;
|
|
7
|
+
onColorChange: (value: string) => void;
|
|
8
|
+
openPicker: (open: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ColorPickerContext: React.Context<ColorPickerContextStates>;
|
|
11
|
+
declare const Provider: React.Provider<ColorPickerContextStates>, Consumer: React.Consumer<ColorPickerContextStates>;
|
|
12
|
+
declare function useColorPickerContext(): ColorPickerContextStates;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ColorPickerContext, ColorPickerContextStates, Consumer, Provider, useColorPickerContext };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/ColorPickerBase/color-picker-context.d.ts
|
|
4
|
+
interface ColorPickerContextStates {
|
|
5
|
+
isPickerOpen: boolean;
|
|
6
|
+
color: string;
|
|
7
|
+
onColorChange: (value: string) => void;
|
|
8
|
+
openPicker: (open: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ColorPickerContext: React.Context<ColorPickerContextStates>;
|
|
11
|
+
declare const Provider: React.Provider<ColorPickerContextStates>, Consumer: React.Consumer<ColorPickerContextStates>;
|
|
12
|
+
declare function useColorPickerContext(): ColorPickerContextStates;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ColorPickerContext, ColorPickerContextStates, Consumer, Provider, useColorPickerContext };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/ColorPickerBase/color-picker-context.ts
|
|
4
|
+
const ColorPickerContext = React.createContext({});
|
|
5
|
+
const { Provider, Consumer } = ColorPickerContext;
|
|
6
|
+
function useColorPickerContext() {
|
|
7
|
+
return React.use(ColorPickerContext);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ColorPickerContext, Consumer, Provider, useColorPickerContext };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/ColorPickerBase/constants.ts
|
|
3
|
+
const DEFAULT_COLOR = "#000000";
|
|
4
|
+
const DEFAULT_SECTIONS = [
|
|
5
|
+
"swatch",
|
|
6
|
+
"picker",
|
|
7
|
+
"format-select",
|
|
8
|
+
"input"
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.DEFAULT_COLOR = DEFAULT_COLOR;
|
|
13
|
+
exports.DEFAULT_SECTIONS = DEFAULT_SECTIONS;
|
|
@@ -4,7 +4,7 @@ let react = require("react");
|
|
|
4
4
|
react = require_rolldown_runtime.__toESM(react);
|
|
5
5
|
|
|
6
6
|
//#region src/ColorPickerBase/hooks/use-color-picker-base-swatch.ts
|
|
7
|
-
function
|
|
7
|
+
function useColorPickerValueAdapter(params) {
|
|
8
8
|
const { currentValue, format, defaultFormat, onFormatChange, handleValueChange } = params;
|
|
9
9
|
const currentFormatRef = (0, react.useRef)(format ?? defaultFormat);
|
|
10
10
|
if (format !== void 0) currentFormatRef.current = format;
|
|
@@ -13,7 +13,7 @@ function useColorPickerBaseSwatch(params) {
|
|
|
13
13
|
currentFormatRef.current = nextFormat;
|
|
14
14
|
onFormatChange?.(nextFormat);
|
|
15
15
|
}, [onFormatChange]);
|
|
16
|
-
const
|
|
16
|
+
const handlePresetChange = (0, react.useCallback)((value) => {
|
|
17
17
|
const desiredFormat = currentFormatRef.current;
|
|
18
18
|
const result = require_color_picker_base_utils.getSwatchSelectionResult({
|
|
19
19
|
swatchValue: value,
|
|
@@ -33,9 +33,9 @@ function useColorPickerBaseSwatch(params) {
|
|
|
33
33
|
forceOpaqueHex
|
|
34
34
|
}),
|
|
35
35
|
handleFormatChange,
|
|
36
|
-
|
|
36
|
+
handlePresetChange
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
|
-
exports.
|
|
41
|
+
exports.useColorPickerValueAdapter = useColorPickerValueAdapter;
|
|
@@ -2,7 +2,7 @@ import { getSwatchSelectionResult, toPickerValue } from "../utils/color-picker-b
|
|
|
2
2
|
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/ColorPickerBase/hooks/use-color-picker-base-swatch.ts
|
|
5
|
-
function
|
|
5
|
+
function useColorPickerValueAdapter(params) {
|
|
6
6
|
const { currentValue, format, defaultFormat, onFormatChange, handleValueChange } = params;
|
|
7
7
|
const currentFormatRef = useRef(format ?? defaultFormat);
|
|
8
8
|
if (format !== void 0) currentFormatRef.current = format;
|
|
@@ -11,7 +11,7 @@ function useColorPickerBaseSwatch(params) {
|
|
|
11
11
|
currentFormatRef.current = nextFormat;
|
|
12
12
|
onFormatChange?.(nextFormat);
|
|
13
13
|
}, [onFormatChange]);
|
|
14
|
-
const
|
|
14
|
+
const handlePresetChange = useCallback((value) => {
|
|
15
15
|
const desiredFormat = currentFormatRef.current;
|
|
16
16
|
const result = getSwatchSelectionResult({
|
|
17
17
|
swatchValue: value,
|
|
@@ -31,9 +31,9 @@ function useColorPickerBaseSwatch(params) {
|
|
|
31
31
|
forceOpaqueHex
|
|
32
32
|
}),
|
|
33
33
|
handleFormatChange,
|
|
34
|
-
|
|
34
|
+
handlePresetChange
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
|
-
export {
|
|
39
|
+
export { useColorPickerValueAdapter };
|
|
@@ -1 +1,15 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ColorPickerColorPalette = require('./color-palette/ColorPickerColorPalette.cjs');
|
|
3
|
+
require('./color-palette/index.cjs');
|
|
4
|
+
const require_color_picker_context = require('./color-picker-context.cjs');
|
|
5
|
+
const require_ColorPickerControls = require('./ColorPickerControls.cjs');
|
|
6
|
+
const require_ColorPickerFormatInput = require('./ColorPickerFormatInput.cjs');
|
|
7
|
+
const require_ColorPickerFormatControls = require('./ColorPickerFormatControls.cjs');
|
|
8
|
+
const require_ColorPickerCompactControls = require('./ColorPickerCompactControls.cjs');
|
|
9
|
+
const require_ColorPickerFullControls = require('./ColorPickerFullControls.cjs');
|
|
10
|
+
const require_ColorPickerRoot = require('./ColorPickerRoot.cjs');
|
|
1
11
|
const require_ColorPickerBase = require('./ColorPickerBase.cjs');
|
|
12
|
+
const require_ColorPickerButton = require('./ColorPickerButton.cjs');
|
|
13
|
+
const require_ColorPickerInput = require('./ColorPickerInput.cjs');
|
|
14
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
15
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerRootProps, PresetColor } from "./types.cjs";
|
|
2
|
+
import { COMMON_COLORS, ColorPickerColorPalette, ColorPickerColorPaletteProps } from "./color-palette/ColorPickerColorPalette.cjs";
|
|
3
|
+
import "./color-palette/index.cjs";
|
|
4
|
+
import { ColorPickerContext, ColorPickerContextStates, Consumer, Provider, useColorPickerContext } from "./color-picker-context.cjs";
|
|
5
|
+
import { ColorPickerBase } from "./ColorPickerBase.cjs";
|
|
6
|
+
import { ColorPickerButton, ColorPickerButtonProps } from "./ColorPickerButton.cjs";
|
|
7
|
+
import { ColorPickerCompactControls, ColorPickerCompactControlsProps } from "./ColorPickerCompactControls.cjs";
|
|
8
|
+
import { ColorPickerAlphaSlider, ColorPickerArea, ColorPickerControls, ColorPickerControlsProps, ColorPickerEyeDropper, ColorPickerHueSlider } from "./ColorPickerControls.cjs";
|
|
9
|
+
import { ColorPickerFormatInput, ColorPickerFormatInputProps } from "./ColorPickerFormatInput.cjs";
|
|
10
|
+
import { ColorPickerFormatControls, ColorPickerFormatControlsProps, ColorPickerFormatSelect } from "./ColorPickerFormatControls.cjs";
|
|
11
|
+
import { ColorPickerFullControls, ColorPickerFullControlsProps } from "./ColorPickerFullControls.cjs";
|
|
12
|
+
import { ColorPickerInput, ColorPickerInputProps } from "./ColorPickerInput.cjs";
|
|
13
|
+
import { ColorPickerRoot } from "./ColorPickerRoot.cjs";
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import { ColorPickerBaseProps, ColorPickerBaseSection, PresetColor } from "./types.js";
|
|
2
|
-
import {
|
|
1
|
+
import { ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerRootProps, PresetColor } from "./types.js";
|
|
2
|
+
import { COMMON_COLORS, ColorPickerColorPalette, ColorPickerColorPaletteProps } from "./color-palette/ColorPickerColorPalette.js";
|
|
3
|
+
import "./color-palette/index.js";
|
|
4
|
+
import { ColorPickerContext, ColorPickerContextStates, Consumer, Provider, useColorPickerContext } from "./color-picker-context.js";
|
|
5
|
+
import { ColorPickerBase } from "./ColorPickerBase.js";
|
|
6
|
+
import { ColorPickerButton, ColorPickerButtonProps } from "./ColorPickerButton.js";
|
|
7
|
+
import { ColorPickerCompactControls, ColorPickerCompactControlsProps } from "./ColorPickerCompactControls.js";
|
|
8
|
+
import { ColorPickerAlphaSlider, ColorPickerArea, ColorPickerControls, ColorPickerControlsProps, ColorPickerEyeDropper, ColorPickerHueSlider } from "./ColorPickerControls.js";
|
|
9
|
+
import { ColorPickerFormatInput, ColorPickerFormatInputProps } from "./ColorPickerFormatInput.js";
|
|
10
|
+
import { ColorPickerFormatControls, ColorPickerFormatControlsProps, ColorPickerFormatSelect } from "./ColorPickerFormatControls.js";
|
|
11
|
+
import { ColorPickerFullControls, ColorPickerFullControlsProps } from "./ColorPickerFullControls.js";
|
|
12
|
+
import { ColorPickerInput, ColorPickerInputProps } from "./ColorPickerInput.js";
|
|
13
|
+
import { ColorPickerRoot } from "./ColorPickerRoot.js";
|
|
@@ -1 +1,12 @@
|
|
|
1
|
+
import { COMMON_COLORS, ColorPickerColorPalette } from "./color-palette/ColorPickerColorPalette.js";
|
|
2
|
+
import "./color-palette/index.js";
|
|
3
|
+
import { ColorPickerContext, Consumer, Provider, useColorPickerContext } from "./color-picker-context.js";
|
|
4
|
+
import { ColorPickerAlphaSlider, ColorPickerArea, ColorPickerControls, ColorPickerEyeDropper, ColorPickerHueSlider } from "./ColorPickerControls.js";
|
|
5
|
+
import { ColorPickerFormatInput } from "./ColorPickerFormatInput.js";
|
|
6
|
+
import { ColorPickerFormatControls, ColorPickerFormatSelect } from "./ColorPickerFormatControls.js";
|
|
7
|
+
import { ColorPickerCompactControls } from "./ColorPickerCompactControls.js";
|
|
8
|
+
import { ColorPickerFullControls } from "./ColorPickerFullControls.js";
|
|
9
|
+
import { ColorPickerRoot } from "./ColorPickerRoot.js";
|
|
1
10
|
import { ColorPickerBase } from "./ColorPickerBase.js";
|
|
11
|
+
import { ColorPickerButton } from "./ColorPickerButton.js";
|
|
12
|
+
import { ColorPickerInput } from "./ColorPickerInput.js";
|
|
@@ -10,6 +10,14 @@ type ColorPickerBaseSections = ReadonlyArray<ColorPickerBaseSection>;
|
|
|
10
10
|
interface ColorPickerContentWrapperProps extends React.ComponentProps<typeof ColorPickerContent> {
|
|
11
11
|
width?: number | string;
|
|
12
12
|
}
|
|
13
|
+
type ColorPickerContentProps = Required<Pick<ColorPickerBaseProps, 'onValueChange' | 'presetColors' | 'sections'>> & {
|
|
14
|
+
currentValue: string;
|
|
15
|
+
contentProps?: Partial<ColorPickerContentWrapperProps>;
|
|
16
|
+
};
|
|
17
|
+
interface ColorPickerRootProps extends Omit<ColorPickerProps, 'onChange'> {
|
|
18
|
+
value?: string;
|
|
19
|
+
onChange?: (value: string) => void;
|
|
20
|
+
}
|
|
13
21
|
interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'children'> {
|
|
14
22
|
value?: string;
|
|
15
23
|
onChange?: (value: string) => void;
|
|
@@ -21,11 +29,11 @@ interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'chil
|
|
|
21
29
|
*/
|
|
22
30
|
sections?: ColorPickerBaseSections;
|
|
23
31
|
contentProps?: Partial<ColorPickerContentWrapperProps>;
|
|
24
|
-
children: (props: {
|
|
32
|
+
children: React.ReactNode | ((props: {
|
|
25
33
|
value?: string;
|
|
26
34
|
onValueChange: (value: string) => void;
|
|
27
35
|
isPickerOpen: boolean;
|
|
28
|
-
}) => React.ReactNode;
|
|
36
|
+
}) => React.ReactNode);
|
|
29
37
|
}
|
|
30
38
|
//#endregion
|
|
31
|
-
export { ColorPickerBaseProps, ColorPickerBaseSection, PresetColor };
|
|
39
|
+
export { ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerContentProps, ColorPickerRootProps, PresetColor };
|
|
@@ -10,6 +10,14 @@ type ColorPickerBaseSections = ReadonlyArray<ColorPickerBaseSection>;
|
|
|
10
10
|
interface ColorPickerContentWrapperProps extends React.ComponentProps<typeof ColorPickerContent> {
|
|
11
11
|
width?: number | string;
|
|
12
12
|
}
|
|
13
|
+
type ColorPickerContentProps = Required<Pick<ColorPickerBaseProps, 'onValueChange' | 'presetColors' | 'sections'>> & {
|
|
14
|
+
currentValue: string;
|
|
15
|
+
contentProps?: Partial<ColorPickerContentWrapperProps>;
|
|
16
|
+
};
|
|
17
|
+
interface ColorPickerRootProps extends Omit<ColorPickerProps, 'onChange'> {
|
|
18
|
+
value?: string;
|
|
19
|
+
onChange?: (value: string) => void;
|
|
20
|
+
}
|
|
13
21
|
interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'children'> {
|
|
14
22
|
value?: string;
|
|
15
23
|
onChange?: (value: string) => void;
|
|
@@ -21,11 +29,11 @@ interface ColorPickerBaseProps extends Omit<ColorPickerProps, 'onChange' | 'chil
|
|
|
21
29
|
*/
|
|
22
30
|
sections?: ColorPickerBaseSections;
|
|
23
31
|
contentProps?: Partial<ColorPickerContentWrapperProps>;
|
|
24
|
-
children: (props: {
|
|
32
|
+
children: React.ReactNode | ((props: {
|
|
25
33
|
value?: string;
|
|
26
34
|
onValueChange: (value: string) => void;
|
|
27
35
|
isPickerOpen: boolean;
|
|
28
|
-
}) => React.ReactNode;
|
|
36
|
+
}) => React.ReactNode);
|
|
29
37
|
}
|
|
30
38
|
//#endregion
|
|
31
|
-
export { ColorPickerBaseProps, ColorPickerBaseSection, PresetColor };
|
|
39
|
+
export { ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerContentProps, ColorPickerRootProps, PresetColor };
|