@chayns-components/color-picker 5.0.0-beta.1006 → 5.0.0-beta.1009

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.
@@ -29,7 +29,7 @@ interface ColorPickerProviderProps {
29
29
  selectedColor?: string;
30
30
  }
31
31
  declare const ColorPickerProvider: {
32
- ({ children, selectedColor, onSelect }: ColorPickerProviderProps): React.JSX.Element;
32
+ ({ children, selectedColor, onSelect }: ColorPickerProviderProps): import("react/jsx-runtime").JSX.Element;
33
33
  displayName: string;
34
34
  };
35
35
  export default ColorPickerProvider;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import type { IPresetColor } from '../../types/colorPicker';
3
3
  interface ColorPickerProps {
4
4
  /**
@@ -55,7 +55,7 @@ interface ColorPickerProps {
55
55
  shouldUseSiteColors?: boolean;
56
56
  }
57
57
  declare const ColorPicker: {
58
- ({ children, onPresetColorAdd, onPresetColorRemove, onSelect, presetColors, selectedColor, shouldShowAsPopup, shouldShowMoreOptions, shouldShowPresetColors, shouldShowPreviewColorString, shouldShowRoundPreviewColor, shouldShowTransparencySlider, shouldUseSiteColors, }: ColorPickerProps): React.JSX.Element;
58
+ ({ children, onPresetColorAdd, onPresetColorRemove, onSelect, presetColors, selectedColor, shouldShowAsPopup, shouldShowMoreOptions, shouldShowPresetColors, shouldShowPreviewColorString, shouldShowRoundPreviewColor, shouldShowTransparencySlider, shouldUseSiteColors, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  export default ColorPicker;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import type { IPresetColor } from '../../../types/colorPicker';
3
3
  interface ColorPickerWrapperProps {
4
4
  children?: ReactNode;
@@ -14,7 +14,7 @@ interface ColorPickerWrapperProps {
14
14
  shouldUseSiteColors: boolean;
15
15
  }
16
16
  declare const ColorPickerWrapper: {
17
- ({ children, onPresetColorAdd, onPresetColorRemove, presetColors, shouldShowAsPopup, shouldShowMoreOptions, shouldShowPresetColors, shouldShowPreviewColorString, shouldShowRoundPreviewColor, shouldShowTransparencySlider, shouldUseSiteColors, }: ColorPickerWrapperProps): React.JSX.Element;
17
+ ({ children, onPresetColorAdd, onPresetColorRemove, presetColors, shouldShowAsPopup, shouldShowMoreOptions, shouldShowPresetColors, shouldShowPreviewColorString, shouldShowRoundPreviewColor, shouldShowTransparencySlider, shouldUseSiteColors, }: ColorPickerWrapperProps): import("react/jsx-runtime").JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  export default ColorPickerWrapper;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { IPresetColor } from '../../types/colorPicker';
3
2
  interface ColorPickerPopupProps {
4
3
  presetColors?: IPresetColor[];
@@ -10,7 +9,7 @@ interface ColorPickerPopupProps {
10
9
  shouldUseSiteColors: boolean;
11
10
  }
12
11
  declare const ColorPickerPopup: {
13
- ({ presetColors, onPresetColorRemove, onPresetColorAdd, shouldShowPresetColors, shouldShowTransparencySlider, shouldUseSiteColors, shouldShowMoreOptions, }: ColorPickerPopupProps): React.JSX.Element;
12
+ ({ presetColors, onPresetColorRemove, onPresetColorAdd, shouldShowPresetColors, shouldShowTransparencySlider, shouldUseSiteColors, shouldShowMoreOptions, }: ColorPickerPopupProps): import("react/jsx-runtime").JSX.Element;
14
13
  displayName: string;
15
14
  };
16
15
  export default ColorPickerPopup;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  declare const ColorArea: {
3
- (): React.JSX.Element;
2
+ (): import("react/jsx-runtime").JSX.Element;
4
3
  displayName: string;
5
4
  };
6
5
  export default ColorArea;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  declare const MoreOptions: {
3
- (): React.JSX.Element;
2
+ (): import("react/jsx-runtime").JSX.Element;
4
3
  displayName: string;
5
4
  };
6
5
  export default MoreOptions;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { IPresetColor } from '../../../types/colorPicker';
3
2
  interface PresetColorsProps {
4
3
  presetColors?: IPresetColor[];
@@ -7,7 +6,7 @@ interface PresetColorsProps {
7
6
  shouldUseSiteColors: boolean;
8
7
  }
9
8
  declare const PresetColors: {
10
- ({ presetColors, onPresetColorRemove, onPresetColorAdd, shouldUseSiteColors, }: PresetColorsProps): React.JSX.Element;
9
+ ({ presetColors, onPresetColorRemove, onPresetColorAdd, shouldUseSiteColors, }: PresetColorsProps): import("react/jsx-runtime").JSX.Element;
11
10
  displayName: string;
12
11
  };
13
12
  export default PresetColors;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { IPresetColor } from '../../../../types/colorPicker';
3
2
  interface PresetButtonProps {
4
3
  id?: IPresetColor['id'];
@@ -7,7 +6,7 @@ interface PresetButtonProps {
7
6
  onRemove?: (id: IPresetColor['id']) => void;
8
7
  }
9
8
  declare const PresetButton: {
10
- ({ id, isCustom, onRemove, onAdd }: PresetButtonProps): React.JSX.Element;
9
+ ({ id, isCustom, onRemove, onAdd }: PresetButtonProps): import("react/jsx-runtime").JSX.Element;
11
10
  displayName: string;
12
11
  };
13
12
  export default PresetButton;
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  import type { IPresetColor } from '../../../../types/colorPicker';
3
2
  interface PresetColorProps {
4
3
  color: IPresetColor['color'];
5
4
  }
6
5
  declare const PresetColor: {
7
- ({ color }: PresetColorProps): React.JSX.Element;
6
+ ({ color }: PresetColorProps): import("react/jsx-runtime").JSX.Element;
8
7
  displayName: string;
9
8
  };
10
9
  export default PresetColor;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  interface SlidersProps {
3
2
  shouldShowTransparencySlider: boolean;
4
3
  }
5
4
  declare const Sliders: {
6
- ({ shouldShowTransparencySlider }: SlidersProps): React.JSX.Element;
5
+ ({ shouldShowTransparencySlider }: SlidersProps): import("react/jsx-runtime").JSX.Element;
7
6
  displayName: string;
8
7
  };
9
8
  export default Sliders;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  declare const ColorPreview: {
3
- (): React.JSX.Element;
2
+ (): import("react/jsx-runtime").JSX.Element;
4
3
  displayName: string;
5
4
  };
6
5
  export default ColorPreview;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface TransparencySliderProps {
3
2
  /**
4
3
  * The color that should be selected.
@@ -18,7 +17,7 @@ interface TransparencySliderProps {
18
17
  onStart?: (color: string) => void;
19
18
  }
20
19
  declare const TransparencySlider: {
21
- ({ onChange, onStart, onEnd, color, }: TransparencySliderProps): React.JSX.Element;
20
+ ({ onChange, onStart, onEnd, color, }: TransparencySliderProps): import("react/jsx-runtime").JSX.Element;
22
21
  displayName: string;
23
22
  };
24
23
  export default TransparencySlider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/color-picker",
3
- "version": "5.0.0-beta.1006",
3
+ "version": "5.0.0-beta.1009",
4
4
  "description": "A set of beautiful React components for developing your own applications with chayns.",
5
5
  "sideEffects": false,
6
6
  "browserslist": [
@@ -70,7 +70,7 @@
70
70
  "typescript": "^5.7.3"
71
71
  },
72
72
  "dependencies": {
73
- "@chayns-components/core": "^5.0.0-beta.1006",
73
+ "@chayns-components/core": "^5.0.0-beta.1009",
74
74
  "@chayns/colors": "^2.0.0"
75
75
  },
76
76
  "peerDependencies": {
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "4159a8a5550b9fd5c455eff0e0950556b65cc96d"
86
+ "gitHead": "9a56a164288d1638c7350e5126bf24349534f622"
87
87
  }