@impulse-ui-native/color-picker 9.1.2 → 11.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/components/alpha-input.d.mts +1 -2
- package/dist/components/alpha-slider.d.mts +1 -2
- package/dist/components/apply.d.mts +1 -2
- package/dist/components/cancel.d.mts +1 -2
- package/dist/components/channel-input.d.mts +1 -2
- package/dist/components/color-picker.d.mts +1 -2
- package/dist/components/gradient.d.mts +1 -2
- package/dist/components/hex-input.d.mts +1 -2
- package/dist/components/hue-slider.d.mts +1 -2
- package/dist/components/index.d.mts +5 -23
- package/dist/components/motion-gradient.d.mts +1 -2
- package/dist/components/motion-surface.d.mts +1 -2
- package/dist/components/preset.d.mts +1 -2
- package/dist/components/preview.d.mts +1 -2
- package/dist/components/root.d.mts +1 -2
- package/dist/components/spectrum.d.mts +1 -2
- package/dist/components/swatch.d.mts +1 -2
- package/dist/constants/motion.constants.d.mts +1 -1
- package/dist/hooks/use-spectrum-interaction.hook.d.mts +28 -2
- package/dist/index.d.mts +22 -6
- package/dist/types/color-picker.types.d.mts +3 -3
- package/package.json +17 -17
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerAlphaInputProps } from '../types/color-picker.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/primitives';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerAlphaInput: react.MemoExoticComponent<({ label, }: ColorPickerAlphaInputProps) =>
|
|
7
|
+
declare const ColorPickerAlphaInput: react.MemoExoticComponent<({ label, }: ColorPickerAlphaInputProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerAlphaInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
|
-
declare const ColorPickerAlphaSlider: react.MemoExoticComponent<() =>
|
|
3
|
+
declare const ColorPickerAlphaSlider: react.MemoExoticComponent<() => react.JSX.Element>;
|
|
5
4
|
|
|
6
5
|
export { ColorPickerAlphaSlider };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerActionProps } from '../types/color-picker.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/primitives';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerApply: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) =>
|
|
7
|
+
declare const ColorPickerApply: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerApply };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerActionProps } from '../types/color-picker.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/primitives';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerCancel: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) =>
|
|
7
|
+
declare const ColorPickerCancel: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerCancel };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerChannelInputProps } from '../types/color-picker.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/primitives';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerChannelInput: react.MemoExoticComponent<({ channel, label, }: ColorPickerChannelInputProps) =>
|
|
7
|
+
declare const ColorPickerChannelInput: react.MemoExoticComponent<({ channel, label, }: ColorPickerChannelInputProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerChannelInput };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerProps } from '../types/color-picker.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/primitives';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerComponent: react.MemoExoticComponent<({ showAlpha, showPresets, presets, presetsLabel, commitMode, ...props }: ColorPickerProps) =>
|
|
7
|
+
declare const ColorPickerComponent: react.MemoExoticComponent<({ showAlpha, showPresets, presets, presetsLabel, commitMode, ...props }: ColorPickerProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerComponent };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorGradientProps } from '../types/color-gradient.types.mjs';
|
|
4
3
|
|
|
5
|
-
declare const ColorGradient: react.MemoExoticComponent<({ colors, checkerboard, vertical, }: ColorGradientProps) =>
|
|
4
|
+
declare const ColorGradient: react.MemoExoticComponent<({ colors, checkerboard, vertical, }: ColorGradientProps) => react.JSX.Element>;
|
|
6
5
|
|
|
7
6
|
export { ColorGradient };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerHexInputProps } from '../types/color-input.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/input';
|
|
5
4
|
|
|
6
|
-
declare const ColorPickerHexInput: react.MemoExoticComponent<({ disabled: disabledProp, onBlur, onSubmitEditing, error, ...props }: ColorPickerHexInputProps) =>
|
|
5
|
+
declare const ColorPickerHexInput: react.MemoExoticComponent<({ disabled: disabledProp, onBlur, onSubmitEditing, error, ...props }: ColorPickerHexInputProps) => react.JSX.Element>;
|
|
7
6
|
|
|
8
7
|
export { ColorPickerHexInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
|
-
declare const ColorPickerHueSlider: react.MemoExoticComponent<() =>
|
|
3
|
+
declare const ColorPickerHueSlider: react.MemoExoticComponent<() => react.JSX.Element>;
|
|
5
4
|
|
|
6
5
|
export { ColorPickerHueSlider };
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import '@impulse-ui-native/primitives';
|
|
2
|
+
import 'react';
|
|
3
|
+
export { ColorPicker } from '../index.mjs';
|
|
4
|
+
import '../types/color-picker.types.mjs';
|
|
5
|
+
import '../types/color-input.types.mjs';
|
|
6
6
|
import '../types/color.types.mjs';
|
|
7
7
|
import '@impulse-ui-native/theme';
|
|
8
8
|
import '@impulse-ui-native/input';
|
|
9
|
-
|
|
10
|
-
declare const ColorPicker: react.NamedExoticComponent<ColorPickerProps> & {
|
|
11
|
-
readonly type: ({ showAlpha, showPresets, presets, presetsLabel, commitMode, ...props }: ColorPickerProps) => react_jsx_runtime.JSX.Element;
|
|
12
|
-
} & {
|
|
13
|
-
Root: react.MemoExoticComponent<({ children, style, value, defaultValue, onChange, disabled, size, commitMode, ...props }: ColorPickerRootProps) => react_jsx_runtime.JSX.Element>;
|
|
14
|
-
Spectrum: react.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
15
|
-
HueSlider: react.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
16
|
-
AlphaSlider: react.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
17
|
-
Preview: react.MemoExoticComponent<({ style, children, ...props }: _impulse_ui_native_primitives.ViewProps) => react_jsx_runtime.JSX.Element>;
|
|
18
|
-
HexInput: react.MemoExoticComponent<({ disabled: disabledProp, onBlur, onSubmitEditing, error, ...props }: ColorPickerHexInputProps) => react_jsx_runtime.JSX.Element>;
|
|
19
|
-
ChannelInput: react.MemoExoticComponent<({ channel, label, }: ColorPickerChannelInputProps) => react_jsx_runtime.JSX.Element>;
|
|
20
|
-
AlphaInput: react.MemoExoticComponent<({ label, }: ColorPickerAlphaInputProps) => react_jsx_runtime.JSX.Element>;
|
|
21
|
-
Swatch: react.MemoExoticComponent<({ color, children, disabled: disabledProp, style, onPress, ...props }: ColorPickerSwatchProps) => react_jsx_runtime.JSX.Element>;
|
|
22
|
-
Apply: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) => react_jsx_runtime.JSX.Element>;
|
|
23
|
-
Cancel: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) => react_jsx_runtime.JSX.Element>;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { ColorPicker };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorMotionSurfaceProps } from '../types/color-motion.types.mjs';
|
|
4
3
|
import 'react-native-reanimated';
|
|
5
4
|
import '../types/color.types.mjs';
|
|
6
5
|
|
|
7
|
-
declare const ColorMotionGradient: react.MemoExoticComponent<({ rgba, }: ColorMotionSurfaceProps) =>
|
|
6
|
+
declare const ColorMotionGradient: react.MemoExoticComponent<({ rgba, }: ColorMotionSurfaceProps) => react.JSX.Element>;
|
|
8
7
|
|
|
9
8
|
export { ColorMotionGradient };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorMotionSurfaceProps } from '../types/color-motion.types.mjs';
|
|
4
3
|
import 'react-native-reanimated';
|
|
5
4
|
import '../types/color.types.mjs';
|
|
6
5
|
|
|
7
|
-
declare const ColorMotionSurface: react.MemoExoticComponent<({ rgba, }: ColorMotionSurfaceProps) =>
|
|
6
|
+
declare const ColorMotionSurface: react.MemoExoticComponent<({ rgba, }: ColorMotionSurfaceProps) => react.JSX.Element>;
|
|
8
7
|
|
|
9
8
|
export { ColorMotionSurface };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerPresetEntryProps } from '../types/color-picker-internal.types.mjs';
|
|
4
3
|
import 'react-native-reanimated';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerPresetEntry: react.MemoExoticComponent<({ preset, }: ColorPickerPresetEntryProps) =>
|
|
7
|
+
declare const ColorPickerPresetEntry: react.MemoExoticComponent<({ preset, }: ColorPickerPresetEntryProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerPresetEntry };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ViewProps } from '@impulse-ui-native/primitives';
|
|
4
3
|
|
|
5
|
-
declare const ColorPickerPreview: react.MemoExoticComponent<({ style, children, ...props }: ViewProps) =>
|
|
4
|
+
declare const ColorPickerPreview: react.MemoExoticComponent<({ style, children, ...props }: ViewProps) => react.JSX.Element>;
|
|
6
5
|
|
|
7
6
|
export { ColorPickerPreview };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerRootProps } from '../types/color-picker.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/primitives';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerRoot: react.MemoExoticComponent<({ children, style, value, defaultValue, onChange, disabled, size, commitMode, ...props }: ColorPickerRootProps) =>
|
|
7
|
+
declare const ColorPickerRoot: react.MemoExoticComponent<({ children, style, value, defaultValue, onChange, disabled, size, commitMode, ...props }: ColorPickerRootProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerRoot };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
|
-
declare const ColorPickerSpectrum: react.MemoExoticComponent<() =>
|
|
3
|
+
declare const ColorPickerSpectrum: react.MemoExoticComponent<() => react.JSX.Element>;
|
|
5
4
|
|
|
6
5
|
export { ColorPickerSpectrum };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { ColorPickerSwatchProps } from '../types/color-picker.types.mjs';
|
|
4
3
|
import '@impulse-ui-native/primitives';
|
|
5
4
|
import '@impulse-ui-native/theme';
|
|
6
5
|
import '../types/color.types.mjs';
|
|
7
6
|
|
|
8
|
-
declare const ColorPickerSwatch: react.MemoExoticComponent<({ color, children, disabled: disabledProp, style, onPress, ...props }: ColorPickerSwatchProps) =>
|
|
7
|
+
declare const ColorPickerSwatch: react.MemoExoticComponent<({ color, children, disabled: disabledProp, style, onPress, ...props }: ColorPickerSwatchProps) => react.JSX.Element>;
|
|
9
8
|
|
|
10
9
|
export { ColorPickerSwatch };
|
|
@@ -4,6 +4,6 @@ import { Rect } from 'react-native-svg';
|
|
|
4
4
|
|
|
5
5
|
declare const TransparentStops: readonly string[];
|
|
6
6
|
declare const SaturationStops: readonly string[];
|
|
7
|
-
declare const AnimatedColorRect: react_native_reanimated_lib_typescript_createAnimatedComponent.AnimatedComponentType<Readonly<react_native_svg.RectProps | Readonly<react_native_svg.RectProps>>, typeof Rect>;
|
|
7
|
+
declare const AnimatedColorRect: react_native_reanimated_lib_typescript_createAnimatedComponent.AnimatedComponentType<Readonly<react_native_svg.RectProps | Readonly<react_native_svg.RectProps>>, typeof Rect, object>;
|
|
8
8
|
|
|
9
9
|
export { AnimatedColorRect, SaturationStops, TransparentStops };
|
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
import * as react_native_reanimated_lib_typescript_hook_commonTypes from 'react-native-reanimated/lib/typescript/hook/commonTypes';
|
|
2
|
+
import * as react_native from 'react-native';
|
|
2
3
|
import * as react_native_gesture_handler_lib_typescript_handlers_gestures_panGesture from 'react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture';
|
|
3
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
4
4
|
import { SpectrumInteractionOptions } from '../types/spectrum.types.mjs';
|
|
5
5
|
|
|
6
6
|
declare function useSpectrumInteraction({ disabled, onChange, onChangeWorklet, onComplete, saturation, brightness, }: SpectrumInteractionOptions): {
|
|
7
7
|
gesture: react_native_gesture_handler_lib_typescript_handlers_gestures_panGesture.PanGesture;
|
|
8
|
-
handleLayout: (event:
|
|
8
|
+
handleLayout: (event: Readonly<{
|
|
9
|
+
bubbles: boolean | undefined;
|
|
10
|
+
cancelable: boolean | undefined;
|
|
11
|
+
currentTarget: number | react_native.HostInstance;
|
|
12
|
+
defaultPrevented: boolean | undefined;
|
|
13
|
+
dispatchConfig: Readonly<{
|
|
14
|
+
registrationName: string;
|
|
15
|
+
}>;
|
|
16
|
+
eventPhase: number | undefined;
|
|
17
|
+
preventDefault: () => void;
|
|
18
|
+
isDefaultPrevented: () => boolean;
|
|
19
|
+
stopPropagation: () => void;
|
|
20
|
+
isPropagationStopped: () => boolean;
|
|
21
|
+
isTrusted: boolean | undefined;
|
|
22
|
+
nativeEvent: Readonly<{
|
|
23
|
+
layout: Readonly<{
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}>;
|
|
29
|
+
}>;
|
|
30
|
+
persist: () => void;
|
|
31
|
+
target: (number | undefined) | react_native.HostInstance;
|
|
32
|
+
timeStamp: number;
|
|
33
|
+
type: string | undefined;
|
|
34
|
+
}>) => void;
|
|
9
35
|
indicatorStyle: react_native_reanimated_lib_typescript_hook_commonTypes.AnimatedStyleHandle<{
|
|
10
36
|
transform: ({
|
|
11
37
|
translateX: number;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
export { ColorPicker } from './components/index.mjs';
|
|
2
1
|
export { ColorChannel, ColorPickerCommitMode } from './types/color.types.mjs';
|
|
3
|
-
|
|
2
|
+
import { ColorPickerProps, ColorPickerRootProps, ColorPickerChannelInputProps, ColorPickerAlphaInputProps, ColorPickerSwatchProps, ColorPickerActionProps } from './types/color-picker.types.mjs';
|
|
4
3
|
export { ColorPickerPreset } from '@impulse-ui-native/theme';
|
|
5
|
-
|
|
6
|
-
import '@impulse-ui-native/primitives';
|
|
7
|
-
import 'react
|
|
8
|
-
import 'react';
|
|
4
|
+
import { ColorPickerHexInputProps } from './types/color-input.types.mjs';
|
|
5
|
+
import * as _impulse_ui_native_primitives from '@impulse-ui-native/primitives';
|
|
6
|
+
import * as react from 'react';
|
|
9
7
|
import '@impulse-ui-native/input';
|
|
8
|
+
|
|
9
|
+
declare const ColorPicker: react.NamedExoticComponent<ColorPickerProps> & {
|
|
10
|
+
readonly type: ({ showAlpha, showPresets, presets, presetsLabel, commitMode, ...props }: ColorPickerProps) => react.JSX.Element;
|
|
11
|
+
} & {
|
|
12
|
+
Root: react.MemoExoticComponent<({ children, style, value, defaultValue, onChange, disabled, size, commitMode, ...props }: ColorPickerRootProps) => react.JSX.Element>;
|
|
13
|
+
Spectrum: react.MemoExoticComponent<() => react.JSX.Element>;
|
|
14
|
+
HueSlider: react.MemoExoticComponent<() => react.JSX.Element>;
|
|
15
|
+
AlphaSlider: react.MemoExoticComponent<() => react.JSX.Element>;
|
|
16
|
+
Preview: react.MemoExoticComponent<({ style, children, ...props }: _impulse_ui_native_primitives.ViewProps) => react.JSX.Element>;
|
|
17
|
+
HexInput: react.MemoExoticComponent<({ disabled: disabledProp, onBlur, onSubmitEditing, error, ...props }: ColorPickerHexInputProps) => react.JSX.Element>;
|
|
18
|
+
ChannelInput: react.MemoExoticComponent<({ channel, label, }: ColorPickerChannelInputProps) => react.JSX.Element>;
|
|
19
|
+
AlphaInput: react.MemoExoticComponent<({ label, }: ColorPickerAlphaInputProps) => react.JSX.Element>;
|
|
20
|
+
Swatch: react.MemoExoticComponent<({ color, children, disabled: disabledProp, style, onPress, ...props }: ColorPickerSwatchProps) => react.JSX.Element>;
|
|
21
|
+
Apply: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) => react.JSX.Element>;
|
|
22
|
+
Cancel: react.MemoExoticComponent<({ disabled, loading, onPress, ...props }: ColorPickerActionProps) => react.JSX.Element>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { ColorPicker, ColorPickerActionProps, ColorPickerAlphaInputProps, ColorPickerChannelInputProps, ColorPickerHexInputProps, ColorPickerProps, ColorPickerRootProps, ColorPickerSwatchProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ViewProps, PressableCoreProps
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps, ViewProps, PressableCoreProps } from '@impulse-ui-native/primitives';
|
|
3
3
|
import { ComponentSize, ColorPickerPreset } from '@impulse-ui-native/theme';
|
|
4
|
-
import {
|
|
4
|
+
import { ColorChannel, ColorPickerCommitMode } from './color.types.mjs';
|
|
5
5
|
|
|
6
6
|
interface ColorPickerRootProps extends ViewProps {
|
|
7
7
|
/** Hex: RGB, RGBA, RRGGBB, or RRGGBBAA, with an optional #. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulse-ui-native/color-picker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Modular spectrum color picker with custom hex/RGB entry and theme presets for React Native.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
],
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@impulse-ui-native/
|
|
32
|
-
"@impulse-ui-native/
|
|
33
|
-
"@impulse-ui-native/primitives": "
|
|
34
|
-
"@impulse-ui-native/
|
|
35
|
-
"@impulse-ui-native/
|
|
36
|
-
"@impulse-ui-native/
|
|
31
|
+
"@impulse-ui-native/core": "11.0.0",
|
|
32
|
+
"@impulse-ui-native/icon": "11.0.0",
|
|
33
|
+
"@impulse-ui-native/primitives": "11.0.0",
|
|
34
|
+
"@impulse-ui-native/theme": "11.0.0",
|
|
35
|
+
"@impulse-ui-native/input": "11.0.0",
|
|
36
|
+
"@impulse-ui-native/slider": "11.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
39
|
+
"@impulse-ui-native/eslint-config": "1.0.0",
|
|
40
|
+
"@impulse-ui-native/prettier-config": "1.0.0",
|
|
41
|
+
"@impulse-ui-native/tsconfig": "1.0.0",
|
|
42
|
+
"@types/react": "~19.3.0",
|
|
40
43
|
"eslint": "^9.38.0",
|
|
41
44
|
"prettier": "^3.6.2",
|
|
42
|
-
"react": "19.
|
|
43
|
-
"react-native": "0.
|
|
45
|
+
"react": "19.3.0",
|
|
46
|
+
"react-native": "0.88.0",
|
|
44
47
|
"typescript": "~6.0.3",
|
|
45
|
-
"react-native-svg": "15.
|
|
46
|
-
"react-native-gesture-handler": "~
|
|
47
|
-
"react-native-reanimated": "4.
|
|
48
|
-
"react-native-worklets": "0.
|
|
49
|
-
"@impulse-ui-native/eslint-config": "1.0.0",
|
|
50
|
-
"@impulse-ui-native/tsconfig": "1.0.0",
|
|
51
|
-
"@impulse-ui-native/prettier-config": "1.0.0"
|
|
48
|
+
"react-native-svg": "15.16.0",
|
|
49
|
+
"react-native-gesture-handler": "~3.3.0",
|
|
50
|
+
"react-native-reanimated": "4.7.1",
|
|
51
|
+
"react-native-worklets": "0.13.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">=18",
|