@chayns-components/color-picker 5.0.0-beta.686 → 5.0.0-beta.694
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/lib/types/components/color-picker/ColorPicker.styles.d.ts +0 -1
- package/lib/types/components/color-picker/color-picker-wrapper/ColorPickerWrapper.styles.d.ts +1 -2
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/ColorPickerPopup.styles.d.ts +0 -1
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/color-area/ColorArea.styles.d.ts +3 -5
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/more-options/MoreOptions.styles.d.ts +0 -1
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/preset-colors/PresetColors.styles.d.ts +0 -1
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/preset-colors/preset-button/PresetButton.styles.d.ts +0 -1
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/preset-colors/preset-color/PresetColor.styles.d.ts +0 -1
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/sliders/Sliders.styles.d.ts +0 -1
- package/lib/types/components/color-picker/color-picker-wrapper/color-picker-popup/sliders/color-preview/ColorPreview.styles.d.ts +1 -2
- package/lib/types/components/hue-slider/HueSlider.styles.d.ts +1 -1
- package/lib/types/components/transparency-slider/TransparencySlider.styles.d.ts +3 -3
- package/lib/types/utils/color.d.ts +2 -2
- package/package.json +10 -10
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const StyledColorPicker: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/lib/types/components/color-picker/color-picker-wrapper/ColorPickerWrapper.styles.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { WithTheme } from '@chayns-components/core';
|
|
3
2
|
export declare const StyledColorPickerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
3
|
export declare const StyledColorPickerWrapperInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -11,7 +10,7 @@ type StyledColorPickerWrapperInfoColorWrapperProps = WithTheme<{
|
|
|
11
10
|
export declare const StyledColorPickerWrapperInfoColorWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledColorPickerWrapperInfoColorWrapperProps>> & string;
|
|
12
11
|
export declare const StyledColorPickerWrapperInfoColorBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
12
|
export declare const StyledColorPickerWrapperInfoColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
15
14
|
}>, StyledColorPickerWrapperInfoColorProps>, never>> & string;
|
|
16
15
|
export declare const StyledColorPickerWrapperInfoText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
17
16
|
theme: import("@chayns-components/core/lib/types/components/color-scheme-provider/ColorSchemeProvider").Theme;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const StyledColorPickerPopup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
export declare const StyledColorArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
2
|
export declare const StyledColorAreaCanvas: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>, never>> & string;
|
|
5
3
|
export declare const StyledColorAreaPseudo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -64,12 +62,12 @@ export declare const StyledMotionColorAreaPointer: import("styled-components/dis
|
|
|
64
62
|
"aria-colindextext"?: string | undefined;
|
|
65
63
|
"aria-colspan"?: number | undefined;
|
|
66
64
|
"aria-controls"?: string | undefined;
|
|
67
|
-
"aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "
|
|
65
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "date" | "location" | undefined;
|
|
68
66
|
"aria-describedby"?: string | undefined;
|
|
69
67
|
"aria-description"?: string | undefined;
|
|
70
68
|
"aria-details"?: string | undefined;
|
|
71
69
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
72
|
-
"aria-dropeffect"?: "link" | "none" | "copy" | "
|
|
70
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
73
71
|
"aria-errormessage"?: string | undefined;
|
|
74
72
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
75
73
|
"aria-flowto"?: string | undefined;
|
|
@@ -264,5 +262,5 @@ export declare const StyledMotionColorAreaPointer: import("styled-components/dis
|
|
|
264
262
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
265
263
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
266
264
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
267
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
265
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
268
266
|
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { WithTheme } from '@chayns-components/core';
|
|
3
2
|
export declare const StyledMoreOptions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
3
|
export declare const StyledMoreOptionsInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const StyledPresetColors: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const StyledSliders: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
2
|
export declare const StyledSlidersWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { WithTheme } from '@chayns-components/core';
|
|
3
2
|
export declare const StyledColorPreview: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
3
|
export declare const StyledColorPreviewBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -6,6 +5,6 @@ type StyledColorPreviewColorProps = WithTheme<{
|
|
|
6
5
|
$color?: string;
|
|
7
6
|
}>;
|
|
8
7
|
export declare const StyledColorPreviewColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
9
|
}>, StyledColorPreviewColorProps>, never>> & string;
|
|
11
10
|
export {};
|
|
@@ -10,6 +10,6 @@ type StyledHueSliderThumbProps = WithTheme<{
|
|
|
10
10
|
$color: CSSProperties['color'];
|
|
11
11
|
}>;
|
|
12
12
|
export declare const StyledHueSliderThumb: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
14
|
}>, StyledHueSliderThumbProps>, never>> & string;
|
|
15
15
|
export {};
|
|
@@ -6,19 +6,19 @@ type StyledTransparencySliderInputProps = WithTheme<{
|
|
|
6
6
|
$color?: string;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const StyledTransparencySliderInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
9
|
+
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
10
10
|
}>, StyledTransparencySliderInputProps>, never>> & string;
|
|
11
11
|
type StyledTransparencySliderThumbWrapperProps = WithTheme<{
|
|
12
12
|
$position: number;
|
|
13
13
|
}>;
|
|
14
14
|
export declare const StyledTransparencySliderThumbWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
16
|
}>, StyledTransparencySliderThumbWrapperProps>, never>> & string;
|
|
17
17
|
export declare const StyledTransparencySliderThumbBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
18
18
|
type StyledTransparencySliderThumbProps = WithTheme<{
|
|
19
19
|
$color: CSSProperties['color'];
|
|
20
20
|
}>;
|
|
21
21
|
export declare const StyledTransparencySliderThumb: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
23
23
|
}>, StyledTransparencySliderThumbProps>, never>> & string;
|
|
24
24
|
export {};
|
|
@@ -18,13 +18,13 @@ export declare const getCoordinatesFromColor: ({ canvas, color, tolerance, }: Ge
|
|
|
18
18
|
} | null;
|
|
19
19
|
export declare const isValidRGBA: (rgbaString: string) => boolean;
|
|
20
20
|
export declare const convertColorToHsl: (color: string) => string | undefined;
|
|
21
|
-
export declare const rgbToHsv: (color: CSSProperties[
|
|
21
|
+
export declare const rgbToHsv: (color: CSSProperties["color"]) => import("@chayns/colors/lib/types/hsv").HSV | import("@chayns/colors/lib/types/hsv").HSVA | null;
|
|
22
22
|
export declare const extractHsl: (hsl: string) => {
|
|
23
23
|
h: number;
|
|
24
24
|
s: number;
|
|
25
25
|
l: number;
|
|
26
26
|
} | null;
|
|
27
|
-
export declare const splitRgb: (color: CSSProperties[
|
|
27
|
+
export declare const splitRgb: (color: CSSProperties["color"]) => null | RGBA;
|
|
28
28
|
export declare const extractRgbValues: (rgbString: string) => RGBA;
|
|
29
29
|
export declare const hexToRgb: (hex: string) => RGBA;
|
|
30
30
|
export declare const rgbToHex: ({ r, g, b, a }: RGBA) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/color-picker",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.694",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -49,25 +49,25 @@
|
|
|
49
49
|
"url": "https://github.com/TobitSoftware/chayns-components/issues"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@babel/cli": "^7.24.
|
|
53
|
-
"@babel/core": "^7.24.
|
|
54
|
-
"@babel/preset-env": "^7.24.
|
|
55
|
-
"@babel/preset-react": "^7.24.
|
|
56
|
-
"@babel/preset-typescript": "^7.24.
|
|
52
|
+
"@babel/cli": "^7.24.8",
|
|
53
|
+
"@babel/core": "^7.24.9",
|
|
54
|
+
"@babel/preset-env": "^7.24.8",
|
|
55
|
+
"@babel/preset-react": "^7.24.7",
|
|
56
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
57
57
|
"@types/react": "^18.3.3",
|
|
58
58
|
"@types/react-dom": "^18.3.0",
|
|
59
59
|
"@types/styled-components": "^5.1.34",
|
|
60
60
|
"@types/uuid": "^9.0.8",
|
|
61
61
|
"babel-loader": "^9.1.3",
|
|
62
62
|
"cross-env": "^7.0.3",
|
|
63
|
-
"lerna": "^8.1.
|
|
63
|
+
"lerna": "^8.1.6",
|
|
64
64
|
"react": "^18.3.1",
|
|
65
65
|
"react-dom": "^18.3.1",
|
|
66
66
|
"styled-components": "^6.1.11",
|
|
67
|
-
"typescript": "^5.
|
|
67
|
+
"typescript": "^5.5.3"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@chayns-components/core": "^5.0.0-beta.
|
|
70
|
+
"@chayns-components/core": "^5.0.0-beta.694",
|
|
71
71
|
"@chayns/colors": "^2.0.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "53f4f7c8fdabf8493b09818872eb8fc7ce132550"
|
|
84
84
|
}
|