reanimated-color-picker 2.3.4 → 2.3.5

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.
Files changed (37) hide show
  1. package/README.md +6 -3
  2. package/lib/commonjs/ColorPicker.js +21 -0
  3. package/lib/commonjs/ColorPicker.js.map +5 -2
  4. package/lib/commonjs/components/Panels/Panel4.js +12 -13
  5. package/lib/commonjs/components/Panels/Panel4.js.map +4 -5
  6. package/lib/commonjs/components/Preview.js +26 -5
  7. package/lib/commonjs/components/Preview.js.map +8 -3
  8. package/lib/commonjs/components/Swatches.js +1 -1
  9. package/lib/commonjs/components/Swatches.js.map +2 -2
  10. package/lib/commonjs/types.js.map +1 -1
  11. package/lib/commonjs/utils.js +5 -27
  12. package/lib/commonjs/utils.js.map +2 -3
  13. package/lib/module/ColorPicker.js +21 -0
  14. package/lib/module/ColorPicker.js.map +5 -2
  15. package/lib/module/components/Panels/Panel4.js +13 -14
  16. package/lib/module/components/Panels/Panel4.js.map +4 -5
  17. package/lib/module/components/Preview.js +26 -5
  18. package/lib/module/components/Preview.js.map +7 -2
  19. package/lib/module/components/Swatches.js +1 -1
  20. package/lib/module/components/Swatches.js.map +2 -2
  21. package/lib/module/types.js.map +1 -1
  22. package/lib/module/utils.js +3 -25
  23. package/lib/module/utils.js.map +2 -3
  24. package/lib/src/ColorPicker.js +18 -0
  25. package/lib/src/components/Panels/Panel4.js +3 -3
  26. package/lib/src/components/Preview.js +14 -3
  27. package/lib/src/components/Swatches.js +1 -1
  28. package/lib/src/utils.js +0 -10
  29. package/lib/typescript/ColorPicker.d.ts.map +1 -1
  30. package/lib/typescript/components/Panels/Panel4.d.ts.map +1 -1
  31. package/lib/typescript/components/Preview.d.ts +8 -1
  32. package/lib/typescript/components/Preview.d.ts.map +1 -1
  33. package/lib/typescript/types.d.ts +2 -0
  34. package/lib/typescript/types.d.ts.map +1 -1
  35. package/lib/typescript/utils.d.ts +0 -10
  36. package/lib/typescript/utils.d.ts.map +1 -1
  37. package/package.json +1 -1
package/README.md CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  # Reanimated Color Picker
4
4
 
5
- ![npm](https://img.shields.io/npm/v/reanimated-color-picker?style=for-the-badge)
6
- ![GitHub](https://img.shields.io/github/license/alabsi91/reanimated-color-picker?style=for-the-badge)
7
- ![GitHub issues](https://img.shields.io/github/issues/alabsi91/reanimated-color-picker?style=for-the-badge)
5
+ [![npm](https://img.shields.io/npm/v/reanimated-color-picker?style=for-the-badge)](https://www.npmjs.com/package/reanimated-color-picker)
6
+ [![GitHub](https://img.shields.io/github/license/alabsi91/reanimated-color-picker?style=for-the-badge)](https://github.com/alabsi91/reanimated-color-picker/blob/main/LICENSE)
7
+ [![GitHub issues](https://img.shields.io/github/issues/alabsi91/reanimated-color-picker?style=for-the-badge)](https://github.com/alabsi91/reanimated-color-picker/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
8
8
  ![Platform](https://img.shields.io/badge/Platform-IOS%20%7C%20Android%20%7C%20Expo%20%7C%20Web-informational?style=for-the-badge)
9
+ ![Arch](https://img.shields.io/badge/React%20Native-Paper%20%7C%20New%20Architecture-informational?style=for-the-badge)
9
10
 
10
11
  ### - A Pure JavaScript Color Picker for React Native.
11
12
 
@@ -63,6 +64,8 @@ npm i reanimated-color-picker
63
64
 
64
65
  ### [📖 View the documentation site 📖](https://alabsi91.github.io/reanimated-color-picker/)
65
66
 
67
+ > Please check out my other library, [React Native Material You Colors](https://github.com/alabsi91/react-native-material-you-colors).
68
+
66
69
  # :small_blue_diamond:License
67
70
 
68
71
  - Reanimated Color Picker library is licensed under [**The MIT License.**](https://github.com/alabsi91/reanimated-color-picker/blob/main/LICENSE)
@@ -127,6 +127,27 @@ const ColorPicker = /*#__PURE__*/ (0, _react.forwardRef)((_ref, ref) => {
127
127
  });
128
128
  };
129
129
  (0, _react.useEffect)(() => {
130
+ // Ignore value changes if the current color already matches the new color from the value props.
131
+ const newColorFormat = _colorKit.default.getFormat(value);
132
+ const currentColors = returnedResults();
133
+
134
+ // null or named color E.g "red"
135
+ if (!newColorFormat || newColorFormat === 'named') {
136
+ setColor(value);
137
+ return;
138
+ }
139
+
140
+ // hex color
141
+ if (newColorFormat === 'hex3' || newColorFormat === 'hex4' || newColorFormat === 'hex6' || newColorFormat === 'hex8') {
142
+ if (value !== currentColors.hex) setColor(value);
143
+ return;
144
+ }
145
+
146
+ // hsl | hsla | rgb | rgba | hsva | hsv | hwba | hwb
147
+ if (newColorFormat in currentColors) {
148
+ if (value !== currentColors[newColorFormat]) setColor(value);
149
+ return;
150
+ }
130
151
  setColor(value);
131
152
  }, [value]);
132
153
 
@@ -101,6 +101,9 @@
101
101
  "undefined",
102
102
  "withTiming",
103
103
  "useEffect",
104
+ "newColorFormat",
105
+ "getFormat",
106
+ "currentColors",
104
107
  "useImperativeHandle",
105
108
  "ctxValue",
106
109
  "GestureHandlerRootView",
@@ -111,7 +114,7 @@
111
114
  ],
112
115
  "sources": ["../../src/ColorPicker.tsx"],
113
116
  "sourcesContent": [
114
- "import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';\r\nimport { Text } from 'react-native';\r\nimport { GestureHandlerRootView } from 'react-native-gesture-handler';\r\nimport { useSharedValue, withTiming } from 'react-native-reanimated';\r\n\r\nimport colorKit from '@colorKit';\r\nimport pickerContext from '@context';\r\nimport { isWeb } from '@utils';\r\n\r\nimport type { ColorPickerContext, ColorPickerProps, ColorPickerRef } from '@types';\r\nimport type { SupportedColorFormats } from './colorKit/types';\r\n\r\nif (isWeb) {\r\n // @ts-ignore\r\n if (!global.setImmediate) global.setImmediate = setTimeout;\r\n try {\r\n const { enableExperimentalWebImplementation } = require('react-native-gesture-handler');\r\n enableExperimentalWebImplementation(true);\r\n } catch (error) {\r\n // ignore\r\n }\r\n}\r\n\r\nconst ColorPicker = forwardRef<ColorPickerRef, ColorPickerProps>(\r\n (\r\n {\r\n adaptSpectrum = false,\r\n sliderThickness = 25,\r\n thumbAnimationDuration = 200,\r\n thumbSize = 35,\r\n thumbShape = 'ring',\r\n boundedThumb = false,\r\n thumbColor,\r\n renderThumb,\r\n thumbStyle,\r\n thumbInnerStyle,\r\n value = '#fff',\r\n onChange,\r\n onComplete,\r\n style = {},\r\n children = <Text>NO CHILDREN</Text>,\r\n },\r\n ref\r\n ) => {\r\n const initialColor = useRef(colorKit.HSV(value).object()).current;\r\n // color's channels values.\r\n const hueValue = useSharedValue(initialColor.h);\r\n const saturationValue = useSharedValue(initialColor.s);\r\n const brightnessValue = useSharedValue(initialColor.v);\r\n const alphaValue = useSharedValue(initialColor.a);\r\n\r\n const returnedResults = (color?: SupportedColorFormats) => {\r\n color = color ?? {\r\n h: hueValue.value,\r\n s: saturationValue.value,\r\n v: brightnessValue.value,\r\n a: alphaValue.value,\r\n };\r\n return {\r\n hex: colorKit.HEX(color),\r\n rgb: colorKit.RGB(color).string(false),\r\n rgba: colorKit.RGB(color).string(true),\r\n hsl: colorKit.HSL(color).string(false),\r\n hsla: colorKit.HSL(color).string(true),\r\n hsv: colorKit.HSV(color).string(false),\r\n hsva: colorKit.HSV(color).string(true),\r\n hwb: colorKit.HWB(color).string(false),\r\n hwba: colorKit.HWB(color).string(true),\r\n };\r\n };\r\n\r\n const onGestureEnd = (color?: SupportedColorFormats) => {\r\n onComplete?.(returnedResults(color));\r\n };\r\n\r\n const onGestureChange = (color?: SupportedColorFormats) => {\r\n onChange?.(returnedResults(color));\r\n };\r\n\r\n const setColor = (color: string, duration = thumbAnimationDuration) => {\r\n const { h, s, v, a } = colorKit.HSV(color).object();\r\n\r\n hueValue.value = withTiming(h, { duration });\r\n saturationValue.value = withTiming(s, { duration });\r\n brightnessValue.value = withTiming(v, { duration });\r\n alphaValue.value = withTiming(a, { duration });\r\n };\r\n\r\n useEffect(() => {\r\n setColor(value);\r\n }, [value]);\r\n\r\n // Addressing a sporadic problem where the shared value for color channels fails to update upon component mounting.\r\n // This issue appears to manifest randomly and might be correlated with the Reanimated library.\r\n useEffect(() => {\r\n hueValue.value += 1;\r\n saturationValue.value += 1;\r\n brightnessValue.value += 1;\r\n setColor(value, 100);\r\n }, []);\r\n\r\n useImperativeHandle(ref, () => ({ setColor }));\r\n\r\n const ctxValue: ColorPickerContext = {\r\n hueValue,\r\n saturationValue,\r\n brightnessValue,\r\n alphaValue,\r\n\r\n adaptSpectrum,\r\n\r\n sliderThickness,\r\n thumbSize,\r\n thumbShape,\r\n boundedThumb,\r\n thumbColor,\r\n renderThumb,\r\n thumbStyle,\r\n thumbInnerStyle,\r\n\r\n value,\r\n setColor,\r\n\r\n returnedResults,\r\n onGestureEnd,\r\n onGestureChange,\r\n };\r\n\r\n return (\r\n <GestureHandlerRootView style={[{ direction: isWeb ? 'ltr' : undefined }, style]}>\r\n <pickerContext.Provider value={ctxValue}>{children}</pickerContext.Provider>\r\n </GestureHandlerRootView>\r\n );\r\n }\r\n);\r\n\r\nexport default ColorPicker;\r\n"
117
+ "import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';\r\nimport { Text } from 'react-native';\r\nimport { GestureHandlerRootView } from 'react-native-gesture-handler';\r\nimport { useSharedValue, withTiming } from 'react-native-reanimated';\r\n\r\nimport colorKit from '@colorKit';\r\nimport pickerContext from '@context';\r\nimport { isWeb } from '@utils';\r\n\r\nimport type { ColorPickerContext, ColorPickerProps, ColorPickerRef } from '@types';\r\nimport type { SupportedColorFormats } from './colorKit/types';\r\n\r\nif (isWeb) {\r\n // @ts-ignore\r\n if (!global.setImmediate) global.setImmediate = setTimeout;\r\n try {\r\n const { enableExperimentalWebImplementation } = require('react-native-gesture-handler');\r\n enableExperimentalWebImplementation(true);\r\n } catch (error) {\r\n // ignore\r\n }\r\n}\r\n\r\nconst ColorPicker = forwardRef<ColorPickerRef, ColorPickerProps>(\r\n (\r\n {\r\n adaptSpectrum = false,\r\n sliderThickness = 25,\r\n thumbAnimationDuration = 200,\r\n thumbSize = 35,\r\n thumbShape = 'ring',\r\n boundedThumb = false,\r\n thumbColor,\r\n renderThumb,\r\n thumbStyle,\r\n thumbInnerStyle,\r\n value = '#fff',\r\n onChange,\r\n onComplete,\r\n style = {},\r\n children = <Text>NO CHILDREN</Text>,\r\n },\r\n ref\r\n ) => {\r\n const initialColor = useRef(colorKit.HSV(value).object()).current;\r\n // color's channels values.\r\n const hueValue = useSharedValue(initialColor.h);\r\n const saturationValue = useSharedValue(initialColor.s);\r\n const brightnessValue = useSharedValue(initialColor.v);\r\n const alphaValue = useSharedValue(initialColor.a);\r\n\r\n const returnedResults = (color?: SupportedColorFormats) => {\r\n color = color ?? {\r\n h: hueValue.value,\r\n s: saturationValue.value,\r\n v: brightnessValue.value,\r\n a: alphaValue.value,\r\n };\r\n return {\r\n hex: colorKit.HEX(color),\r\n rgb: colorKit.RGB(color).string(false),\r\n rgba: colorKit.RGB(color).string(true),\r\n hsl: colorKit.HSL(color).string(false),\r\n hsla: colorKit.HSL(color).string(true),\r\n hsv: colorKit.HSV(color).string(false),\r\n hsva: colorKit.HSV(color).string(true),\r\n hwb: colorKit.HWB(color).string(false),\r\n hwba: colorKit.HWB(color).string(true),\r\n };\r\n };\r\n\r\n const onGestureEnd = (color?: SupportedColorFormats) => {\r\n onComplete?.(returnedResults(color));\r\n };\r\n\r\n const onGestureChange = (color?: SupportedColorFormats) => {\r\n onChange?.(returnedResults(color));\r\n };\r\n\r\n const setColor = (color: string, duration = thumbAnimationDuration) => {\r\n const { h, s, v, a } = colorKit.HSV(color).object();\r\n\r\n hueValue.value = withTiming(h, { duration });\r\n saturationValue.value = withTiming(s, { duration });\r\n brightnessValue.value = withTiming(v, { duration });\r\n alphaValue.value = withTiming(a, { duration });\r\n };\r\n\r\n useEffect(() => {\r\n // Ignore value changes if the current color already matches the new color from the value props.\r\n const newColorFormat = colorKit.getFormat(value);\r\n const currentColors = returnedResults();\r\n\r\n // null or named color E.g \"red\"\r\n if (!newColorFormat || newColorFormat === 'named') {\r\n setColor(value);\r\n return;\r\n }\r\n\r\n // hex color\r\n if (newColorFormat === 'hex3' || newColorFormat === 'hex4' || newColorFormat === 'hex6' || newColorFormat === 'hex8') {\r\n if (value !== currentColors.hex) setColor(value);\r\n return;\r\n }\r\n\r\n // hsl | hsla | rgb | rgba | hsva | hsv | hwba | hwb\r\n if (newColorFormat in currentColors) {\r\n if (value !== currentColors[newColorFormat]) setColor(value);\r\n return;\r\n }\r\n setColor(value);\r\n }, [value]);\r\n\r\n // Addressing a sporadic problem where the shared value for color channels fails to update upon component mounting.\r\n // This issue appears to manifest randomly and might be correlated with the Reanimated library.\r\n useEffect(() => {\r\n hueValue.value += 1;\r\n saturationValue.value += 1;\r\n brightnessValue.value += 1;\r\n setColor(value, 100);\r\n }, []);\r\n\r\n useImperativeHandle(ref, () => ({ setColor }));\r\n\r\n const ctxValue: ColorPickerContext = {\r\n hueValue,\r\n saturationValue,\r\n brightnessValue,\r\n alphaValue,\r\n\r\n adaptSpectrum,\r\n\r\n sliderThickness,\r\n thumbSize,\r\n thumbShape,\r\n boundedThumb,\r\n thumbColor,\r\n renderThumb,\r\n thumbStyle,\r\n thumbInnerStyle,\r\n\r\n value,\r\n setColor,\r\n\r\n returnedResults,\r\n onGestureEnd,\r\n onGestureChange,\r\n };\r\n\r\n return (\r\n <GestureHandlerRootView style={[{ direction: isWeb ? 'ltr' : undefined }, style]}>\r\n <pickerContext.Provider value={ctxValue}>{children}</pickerContext.Provider>\r\n </GestureHandlerRootView>\r\n );\r\n }\r\n);\r\n\r\nexport default ColorPicker;\r\n"
115
118
  ],
116
- "mappings": ";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,WAAA,GAAAD,sBAAA,CAAAL,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAA+B,SAAAK,uBAAAG,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G,CAAC;EACtB,CAAC,EAAE,EAAE,CAAC;EAEN,IAAAkD,0BAAmB,EAAC7D,GAAG,EAAE,OAAO;IAAEmD;EAAS,CAAC,CAAC,CAAC;EAE9C,MAAMW,QAA4B,GAAG;IACnCtC,QAAQ;IACRG,eAAe;IACfE,eAAe;IACfE,UAAU;IAEV9B,aAAa;IAEbC,eAAe;IACfE,SAAS;IACTC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC,WAAW;IACXC,UAAU;IACVC,eAAe;IAEfC,KAAK;IACLwC,QAAQ;IAERlB,eAAe;IACfgB,YAAY;IACZC;EACF,CAAC;EAED,oBACE3F,MAAA,CAAAY,OAAA,CAAA6C,aAAA,CAACrD,0BAAA,CAAAoG,sBAAsB;IAACjD,KAAK,EAAE,CAAC;MAAEkD,SAAS,EAAEzE,YAAK,GAAG,KAAK,GAAGgE;IAAU,CAAC,EAAEzC,KAAK;EAAE,gBAC/EvD,MAAA,CAAAY,OAAA,CAAA6C,aAAA,CAACjD,WAAA,CAAAI,OAAa,CAAC8F,QAAQ;IAACtD,KAAK,EAAEmD;EAAS,GAAE/C,QAAQ,CAA0B,CACrD;AAE7B,CAAC,CACF;AAAC,IAAAmD,QAAA,GAEarE,WAAW;AAAAsE,OAAA,CAAAhG,OAAA,GAAA+F,QAAA"
117
120
  }
@@ -94,14 +94,14 @@ function Panel4(_ref) {
94
94
  const handleStyle = (0, _reactNativeReanimated.useAnimatedStyle)(
95
95
  (function () {
96
96
  const _f = function () {
97
- const { l } = (0, _utils.HSVA2HSLA_object)(hueValue.value, saturationValue.value, brightnessValue.value);
98
97
  const length = {
99
98
  x: width.value - (boundedThumb ? thumbSize : 0),
100
99
  y: height.value - (boundedThumb ? thumbSize : 0),
101
100
  },
102
101
  calcThumb = boundedThumb ? 0 : thumbSize / 2,
103
102
  // luminance
104
- poxPercentX = (l / 100) * length.x,
103
+ lum = (((2 - saturationValue.value / 100) * (brightnessValue.value / 100)) / 2) * 100,
104
+ poxPercentX = (lum / 100) * length.x,
105
105
  posX = (reverseHorizontalChannels ? poxPercentX : length.x - poxPercentX) - calcThumb,
106
106
  // hue
107
107
  percentY = (hueValue.value / 360) * length.y,
@@ -121,23 +121,22 @@ function Panel4(_ref) {
121
121
  };
122
122
  };
123
123
  _f._closure = {
124
- HSVA2HSLA_object: _utils.HSVA2HSLA_object,
125
- hueValue,
126
- saturationValue,
127
- brightnessValue,
128
124
  width,
129
125
  boundedThumb,
130
126
  thumbSize,
131
127
  height,
128
+ saturationValue,
129
+ brightnessValue,
132
130
  reverseHorizontalChannels,
131
+ hueValue,
133
132
  reverseHue,
134
133
  handleScale,
135
134
  };
136
135
  _f.asString =
137
- 'function _f(){const{HSVA2HSLA_object,hueValue,saturationValue,brightnessValue,width,boundedThumb,thumbSize,height,reverseHorizontalChannels,reverseHue,handleScale}=jsThis._closure;{const{l:l}=HSVA2HSLA_object(hueValue.value,saturationValue.value,brightnessValue.value);const length={x:width.value-(boundedThumb?thumbSize:0),y:height.value-(boundedThumb?thumbSize:0)},calcThumb=boundedThumb?0:thumbSize/2,poxPercentX=l/100*length.x,posX=(reverseHorizontalChannels?poxPercentX:length.x-poxPercentX)-calcThumb,percentY=hueValue.value/360*length.y,posY=(reverseHue?percentY:length.y-percentY)-calcThumb;return{transform:[{translateX:posX},{translateY:posY},{scale:handleScale.value}]};}}';
138
- _f.__workletHash = 11835963917605;
136
+ 'function _f(){const{width,boundedThumb,thumbSize,height,saturationValue,brightnessValue,reverseHorizontalChannels,hueValue,reverseHue,handleScale}=jsThis._closure;{const length={x:width.value-(boundedThumb?thumbSize:0),y:height.value-(boundedThumb?thumbSize:0)},calcThumb=boundedThumb?0:thumbSize/2,lum=(2-saturationValue.value/100)*(brightnessValue.value/100)/2*100,poxPercentX=lum/100*length.x,posX=(reverseHorizontalChannels?poxPercentX:length.x-poxPercentX)-calcThumb,percentY=hueValue.value/360*length.y,posY=(reverseHue?percentY:length.y-percentY)-calcThumb;return{transform:[{translateX:posX},{translateY:posY},{scale:handleScale.value}]};}}';
137
+ _f.__workletHash = 7574188237903;
139
138
  _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (58:39)';
140
- _f.__optimalization = 2;
139
+ _f.__optimalization = 3;
141
140
  return _f;
142
141
  })(),
143
142
  [localThumbSize, reverseHue, reverseHorizontalChannels]
@@ -182,7 +181,7 @@ function Panel4(_ref) {
182
181
  _f.asString =
183
182
  'function _f({x:x,y:y}){const{width,boundedThumb,thumbSize,height,clamp,reverseHue,reverseHorizontalChannels,hueValue,saturationValue,brightnessValue,runOnJS,onGestureChange}=jsThis._closure;{const lengthX=width.value-(boundedThumb?thumbSize:0),lengthY=height.value-(boundedThumb?thumbSize:0),posX=clamp(x-(boundedThumb?thumbSize/2:0),lengthX),posY=clamp(y-(boundedThumb?thumbSize/2:0),lengthY),valueX=Math.round(posX/lengthX*200),valueY=Math.round(posY/lengthY*360),newHueValue=reverseHue?valueY:360-valueY,newSaturationValue=clamp(reverseHorizontalChannels?200-valueX:valueX,100),newBrightnessValue=clamp(reverseHorizontalChannels?valueX:200-valueX,100);if(hueValue.value===newHueValue&&saturationValue.value===newSaturationValue&&brightnessValue.value===newBrightnessValue)return;hueValue.value=newHueValue;saturationValue.value=newSaturationValue;brightnessValue.value=newBrightnessValue;runOnJS(onGestureChange)();}}';
184
183
  _f.__workletHash = 15687744026353;
185
- _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (75:26)';
184
+ _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (74:26)';
186
185
  return _f;
187
186
  })();
188
187
  const onGestureBegin = (function () {
@@ -200,7 +199,7 @@ function Panel4(_ref) {
200
199
  _f.asString =
201
200
  'function _f(event){const{handleScale,withTiming,onGestureUpdate}=jsThis._closure;{handleScale.value=withTiming(1.2,{duration:100});onGestureUpdate(event);}}';
202
201
  _f.__workletHash = 14773240202957;
203
- _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (99:25)';
202
+ _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (98:25)';
204
203
  return _f;
205
204
  })();
206
205
  const onGestureFinish = (function () {
@@ -219,7 +218,7 @@ function Panel4(_ref) {
219
218
  _f.asString =
220
219
  'function _f(){const{handleScale,withTiming,runOnJS,onGestureEnd}=jsThis._closure;{handleScale.value=withTiming(1,{duration:100});runOnJS(onGestureEnd)();}}';
221
220
  _f.__workletHash = 6379049506140;
222
- _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (104:26)';
221
+ _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (103:26)';
223
222
  return _f;
224
223
  })();
225
224
  const pan = _reactNativeGestureHandler.Gesture.Pan().onBegin(onGestureBegin).onUpdate(onGestureUpdate).onEnd(onGestureFinish);
@@ -262,7 +261,7 @@ function Panel4(_ref) {
262
261
  _f.asString =
263
262
  "function _f(){const{height,width,reverseHue,isRtl}=jsThis._closure;{return{width:height.value,height:width.value,transform:[{scaleY:reverseHue?-1:1},{rotate:'270deg'},{translateX:(width.value-height.value)/2*(reverseHue?-1:1)},{translateY:(width.value-height.value)/2*(isRtl?-1:1)}]};}}";
264
263
  _f.__workletHash = 8519187383491;
265
- _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (120:44)';
264
+ _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Panels\\Panel4.tsx (119:44)';
266
265
  _f.__optimalization = 3;
267
266
  return _f;
268
267
  })()
@@ -78,13 +78,12 @@
78
78
  "handleStyle",
79
79
  "useAnimatedStyle",
80
80
  "_f",
81
- "l",
82
- "HSVA2HSLA_object",
83
- "value",
84
81
  "length",
85
82
  "x",
83
+ "value",
86
84
  "y",
87
85
  "calcThumb",
86
+ "lum",
88
87
  "poxPercentX",
89
88
  "posX",
90
89
  "percentY",
@@ -159,7 +158,7 @@
159
158
  ],
160
159
  "sources": ["../../../../src/components/Panels/Panel4.tsx"],
161
160
  "sourcesContent": [
162
- "import React, { useCallback, useContext } from 'react';\r\nimport { Image, View } from 'react-native';\r\nimport { Gesture, GestureDetector } from 'react-native-gesture-handler';\r\nimport Animated, { runOnJS, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\r\n\r\nimport pickerContext from '@context';\r\nimport { styles } from '@styles';\r\nimport Thumb from '@thumb';\r\nimport { clamp, getStyle, HSVA2HSLA_object, isRtl } from '@utils';\r\n\r\nimport type { Panel4Props } from '@types';\r\nimport type { LayoutChangeEvent } from 'react-native';\r\nimport type { PanGestureHandlerEventPayload } from 'react-native-gesture-handler';\r\n\r\nexport function Panel4({\r\n thumbColor: localThumbColor,\r\n boundedThumb: localBoundedThumb,\r\n renderThumb: localRenderThumb,\r\n thumbShape: localThumbShape,\r\n thumbSize: localThumbSize,\r\n thumbStyle: localThumbStyle,\r\n thumbInnerStyle: localThumbInnerStyle,\r\n reverseHue = false,\r\n reverseHorizontalChannels = false,\r\n style = {},\r\n}: Panel4Props) {\r\n const {\r\n hueValue,\r\n saturationValue,\r\n brightnessValue,\r\n onGestureChange,\r\n onGestureEnd,\r\n thumbSize: globalThumbsSize,\r\n thumbShape: globalThumbShape,\r\n thumbColor: globalThumbsColor,\r\n boundedThumb: globalBoundedThumb,\r\n renderThumb: globalRenderThumbs,\r\n thumbStyle: globalThumbsStyle,\r\n thumbInnerStyle: globalThumbsInnerStyle,\r\n } = useContext(pickerContext);\r\n\r\n const thumbShape = localThumbShape ?? globalThumbShape,\r\n thumbSize = localThumbSize ?? globalThumbsSize,\r\n thumbColor = localThumbColor ?? globalThumbsColor,\r\n boundedThumb = localBoundedThumb ?? globalBoundedThumb,\r\n renderThumb = localRenderThumb ?? globalRenderThumbs,\r\n thumbStyle = localThumbStyle ?? globalThumbsStyle ?? {},\r\n thumbInnerStyle = localThumbInnerStyle ?? globalThumbsInnerStyle ?? {};\r\n\r\n const borderRadius = getStyle(style, 'borderRadius') ?? 5,\r\n getHeight = getStyle(style, 'height') ?? 200;\r\n\r\n const width = useSharedValue(0),\r\n height = useSharedValue(0);\r\n\r\n const handleScale = useSharedValue(1);\r\n\r\n const handleStyle = useAnimatedStyle(() => {\r\n const { l } = HSVA2HSLA_object(hueValue.value, saturationValue.value, brightnessValue.value);\r\n\r\n const length = { x: width.value - (boundedThumb ? thumbSize : 0), y: height.value - (boundedThumb ? thumbSize : 0) },\r\n calcThumb = boundedThumb ? 0 : thumbSize / 2,\r\n // luminance\r\n poxPercentX = (l / 100) * length.x,\r\n posX = (reverseHorizontalChannels ? poxPercentX : length.x - poxPercentX) - calcThumb,\r\n // hue\r\n percentY = (hueValue.value / 360) * length.y,\r\n posY = (reverseHue ? percentY : length.y - percentY) - calcThumb;\r\n\r\n return {\r\n transform: [{ translateX: posX }, { translateY: posY }, { scale: handleScale.value }],\r\n };\r\n }, [localThumbSize, reverseHue, reverseHorizontalChannels]);\r\n\r\n const onGestureUpdate = ({ x, y }: PanGestureHandlerEventPayload) => {\r\n 'worklet';\r\n\r\n const lengthX = width.value - (boundedThumb ? thumbSize : 0),\r\n lengthY = height.value - (boundedThumb ? thumbSize : 0),\r\n posX = clamp(x - (boundedThumb ? thumbSize / 2 : 0), lengthX),\r\n posY = clamp(y - (boundedThumb ? thumbSize / 2 : 0), lengthY),\r\n valueX = Math.round((posX / lengthX) * 200),\r\n valueY = Math.round((posY / lengthY) * 360),\r\n newHueValue = reverseHue ? valueY : 360 - valueY,\r\n newSaturationValue = clamp(reverseHorizontalChannels ? 200 - valueX : valueX, 100),\r\n newBrightnessValue = clamp(reverseHorizontalChannels ? valueX : 200 - valueX, 100);\r\n if (\r\n hueValue.value === newHueValue &&\r\n saturationValue.value === newSaturationValue &&\r\n brightnessValue.value === newBrightnessValue\r\n )\r\n return;\r\n\r\n hueValue.value = newHueValue;\r\n saturationValue.value = newSaturationValue;\r\n brightnessValue.value = newBrightnessValue;\r\n runOnJS(onGestureChange)();\r\n };\r\n const onGestureBegin = (event: PanGestureHandlerEventPayload) => {\r\n 'worklet';\r\n handleScale.value = withTiming(1.2, { duration: 100 });\r\n onGestureUpdate(event);\r\n };\r\n const onGestureFinish = () => {\r\n 'worklet';\r\n handleScale.value = withTiming(1, { duration: 100 });\r\n runOnJS(onGestureEnd)();\r\n };\r\n\r\n const pan = Gesture.Pan().onBegin(onGestureBegin).onUpdate(onGestureUpdate).onEnd(onGestureFinish);\r\n const tap = Gesture.Tap().onTouchesUp(onGestureFinish);\r\n const longPress = Gesture.LongPress().onTouchesUp(onGestureFinish);\r\n const composed = Gesture.Exclusive(pan, tap, longPress);\r\n\r\n const onLayout = useCallback(({ nativeEvent: { layout } }: LayoutChangeEvent) => {\r\n width.value = layout.width;\r\n height.value = layout.height;\r\n }, []);\r\n\r\n const rotatePanelImage = useAnimatedStyle(() => ({\r\n width: height.value,\r\n height: width.value,\r\n transform: [\r\n { scaleY: reverseHue ? -1 : 1 },\r\n { rotate: '270deg' },\r\n { translateX: ((width.value - height.value) / 2) * (reverseHue ? -1 : 1) },\r\n { translateY: ((width.value - height.value) / 2) * (isRtl ? -1 : 1) },\r\n ],\r\n }));\r\n\r\n return (\r\n <GestureDetector gesture={composed}>\r\n <Animated.View\r\n onLayout={onLayout}\r\n style={[styles.panel_container, { height: getHeight }, style, { position: 'relative', borderWidth: 0, padding: 0 }]}\r\n >\r\n <Animated.Image\r\n source={require('@assets/Hue.png')}\r\n style={[styles.panel_image, { borderRadius }, rotatePanelImage]}\r\n resizeMode='stretch'\r\n />\r\n\r\n <View\r\n style={[\r\n styles.panel_image,\r\n {\r\n borderRadius,\r\n flexDirection: isRtl ? 'row-reverse' : 'row',\r\n transform: [{ scaleX: reverseHorizontalChannels ? -1 : 1 }],\r\n },\r\n ]}\r\n >\r\n <Image source={require('@assets/blackGradient.png')} style={{ flex: 1, tintColor: '#fff' }} resizeMode='stretch' />\r\n <Image\r\n source={require('@assets/blackGradient.png')}\r\n style={{ flex: 1, transform: [{ scaleX: -1 }] }}\r\n resizeMode='stretch'\r\n />\r\n </View>\r\n\r\n <Thumb\r\n {...{\r\n thumbShape,\r\n thumbSize,\r\n thumbColor,\r\n renderThumb,\r\n innerStyle: thumbInnerStyle,\r\n style: thumbStyle,\r\n handleStyle,\r\n }}\r\n />\r\n </Animated.View>\r\n </GestureDetector>\r\n );\r\n}\r\n"
161
+ "import React, { useCallback, useContext } from 'react';\r\nimport { Image, View } from 'react-native';\r\nimport { Gesture, GestureDetector } from 'react-native-gesture-handler';\r\nimport Animated, { runOnJS, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\r\n\r\nimport pickerContext from '@context';\r\nimport { styles } from '@styles';\r\nimport Thumb from '@thumb';\r\nimport { clamp, getStyle, isRtl } from '@utils';\r\n\r\nimport type { Panel4Props } from '@types';\r\nimport type { LayoutChangeEvent } from 'react-native';\r\nimport type { PanGestureHandlerEventPayload } from 'react-native-gesture-handler';\r\n\r\nexport function Panel4({\r\n thumbColor: localThumbColor,\r\n boundedThumb: localBoundedThumb,\r\n renderThumb: localRenderThumb,\r\n thumbShape: localThumbShape,\r\n thumbSize: localThumbSize,\r\n thumbStyle: localThumbStyle,\r\n thumbInnerStyle: localThumbInnerStyle,\r\n reverseHue = false,\r\n reverseHorizontalChannels = false,\r\n style = {},\r\n}: Panel4Props) {\r\n const {\r\n hueValue,\r\n saturationValue,\r\n brightnessValue,\r\n onGestureChange,\r\n onGestureEnd,\r\n thumbSize: globalThumbsSize,\r\n thumbShape: globalThumbShape,\r\n thumbColor: globalThumbsColor,\r\n boundedThumb: globalBoundedThumb,\r\n renderThumb: globalRenderThumbs,\r\n thumbStyle: globalThumbsStyle,\r\n thumbInnerStyle: globalThumbsInnerStyle,\r\n } = useContext(pickerContext);\r\n\r\n const thumbShape = localThumbShape ?? globalThumbShape,\r\n thumbSize = localThumbSize ?? globalThumbsSize,\r\n thumbColor = localThumbColor ?? globalThumbsColor,\r\n boundedThumb = localBoundedThumb ?? globalBoundedThumb,\r\n renderThumb = localRenderThumb ?? globalRenderThumbs,\r\n thumbStyle = localThumbStyle ?? globalThumbsStyle ?? {},\r\n thumbInnerStyle = localThumbInnerStyle ?? globalThumbsInnerStyle ?? {};\r\n\r\n const borderRadius = getStyle(style, 'borderRadius') ?? 5,\r\n getHeight = getStyle(style, 'height') ?? 200;\r\n\r\n const width = useSharedValue(0),\r\n height = useSharedValue(0);\r\n\r\n const handleScale = useSharedValue(1);\r\n\r\n const handleStyle = useAnimatedStyle(() => {\r\n const length = { x: width.value - (boundedThumb ? thumbSize : 0), y: height.value - (boundedThumb ? thumbSize : 0) },\r\n calcThumb = boundedThumb ? 0 : thumbSize / 2,\r\n // luminance\r\n lum = (((2 - saturationValue.value / 100) * (brightnessValue.value / 100)) / 2) * 100,\r\n poxPercentX = (lum / 100) * length.x,\r\n posX = (reverseHorizontalChannels ? poxPercentX : length.x - poxPercentX) - calcThumb,\r\n // hue\r\n percentY = (hueValue.value / 360) * length.y,\r\n posY = (reverseHue ? percentY : length.y - percentY) - calcThumb;\r\n\r\n return {\r\n transform: [{ translateX: posX }, { translateY: posY }, { scale: handleScale.value }],\r\n };\r\n }, [localThumbSize, reverseHue, reverseHorizontalChannels]);\r\n\r\n const onGestureUpdate = ({ x, y }: PanGestureHandlerEventPayload) => {\r\n 'worklet';\r\n\r\n const lengthX = width.value - (boundedThumb ? thumbSize : 0),\r\n lengthY = height.value - (boundedThumb ? thumbSize : 0),\r\n posX = clamp(x - (boundedThumb ? thumbSize / 2 : 0), lengthX),\r\n posY = clamp(y - (boundedThumb ? thumbSize / 2 : 0), lengthY),\r\n valueX = Math.round((posX / lengthX) * 200),\r\n valueY = Math.round((posY / lengthY) * 360),\r\n newHueValue = reverseHue ? valueY : 360 - valueY,\r\n newSaturationValue = clamp(reverseHorizontalChannels ? 200 - valueX : valueX, 100),\r\n newBrightnessValue = clamp(reverseHorizontalChannels ? valueX : 200 - valueX, 100);\r\n if (\r\n hueValue.value === newHueValue &&\r\n saturationValue.value === newSaturationValue &&\r\n brightnessValue.value === newBrightnessValue\r\n )\r\n return;\r\n\r\n hueValue.value = newHueValue;\r\n saturationValue.value = newSaturationValue;\r\n brightnessValue.value = newBrightnessValue;\r\n runOnJS(onGestureChange)();\r\n };\r\n const onGestureBegin = (event: PanGestureHandlerEventPayload) => {\r\n 'worklet';\r\n handleScale.value = withTiming(1.2, { duration: 100 });\r\n onGestureUpdate(event);\r\n };\r\n const onGestureFinish = () => {\r\n 'worklet';\r\n handleScale.value = withTiming(1, { duration: 100 });\r\n runOnJS(onGestureEnd)();\r\n };\r\n\r\n const pan = Gesture.Pan().onBegin(onGestureBegin).onUpdate(onGestureUpdate).onEnd(onGestureFinish);\r\n const tap = Gesture.Tap().onTouchesUp(onGestureFinish);\r\n const longPress = Gesture.LongPress().onTouchesUp(onGestureFinish);\r\n const composed = Gesture.Exclusive(pan, tap, longPress);\r\n\r\n const onLayout = useCallback(({ nativeEvent: { layout } }: LayoutChangeEvent) => {\r\n width.value = layout.width;\r\n height.value = layout.height;\r\n }, []);\r\n\r\n const rotatePanelImage = useAnimatedStyle(() => ({\r\n width: height.value,\r\n height: width.value,\r\n transform: [\r\n { scaleY: reverseHue ? -1 : 1 },\r\n { rotate: '270deg' },\r\n { translateX: ((width.value - height.value) / 2) * (reverseHue ? -1 : 1) },\r\n { translateY: ((width.value - height.value) / 2) * (isRtl ? -1 : 1) },\r\n ],\r\n }));\r\n\r\n return (\r\n <GestureDetector gesture={composed}>\r\n <Animated.View\r\n onLayout={onLayout}\r\n style={[styles.panel_container, { height: getHeight }, style, { position: 'relative', borderWidth: 0, padding: 0 }]}\r\n >\r\n <Animated.Image\r\n source={require('@assets/Hue.png')}\r\n style={[styles.panel_image, { borderRadius }, rotatePanelImage]}\r\n resizeMode='stretch'\r\n />\r\n\r\n <View\r\n style={[\r\n styles.panel_image,\r\n {\r\n borderRadius,\r\n flexDirection: isRtl ? 'row-reverse' : 'row',\r\n transform: [{ scaleX: reverseHorizontalChannels ? -1 : 1 }],\r\n },\r\n ]}\r\n >\r\n <Image source={require('@assets/blackGradient.png')} style={{ flex: 1, tintColor: '#fff' }} resizeMode='stretch' />\r\n <Image\r\n source={require('@assets/blackGradient.png')}\r\n style={{ flex: 1, transform: [{ scaleX: -1 }] }}\r\n resizeMode='stretch'\r\n />\r\n </View>\r\n\r\n <Thumb\r\n {...{\r\n thumbShape,\r\n thumbSize,\r\n thumbColor,\r\n renderThumb,\r\n innerStyle: thumbInnerStyle,\r\n style: thumbStyle,\r\n handleStyle,\r\n }}\r\n />\r\n </Animated.View>\r\n </GestureDetector>\r\n );\r\n}\r\n"
163
162
  ],
164
- "mappings": ";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAEA,IAAAI,WAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAF,sBAAA,CAAAL,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAAkE,SAAAK,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAd,wBAAAU,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,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A,CAAAa,OAAA,CAAA0H,aAAA,CAACpI,YAAA,CAAAuI,IAAI;IACHvF,KAAK,EAAE,CACLwF,cAAM,CAACO,WAAW,EAClB;MACEhF,YAAY;MACZkF,aAAa,EAAEd,YAAK,GAAG,aAAa,GAAG,KAAK;MAC5ChD,SAAS,EAAE,CAAC;QAAE+D,MAAM,EAAEnG,yBAAyB,GAAG,CAAC,CAAC,GAAG;MAAE,CAAC;IAC5D,CAAC;EACD,gBAEFlD,MAAA,CAAAa,OAAA,CAAA0H,aAAA,CAACpI,YAAA,CAAA6I,KAAK;IAACC,MAAM,EAAE/I,OAAO,kCAA8B;IAACiD,KAAK,EAAE;MAAEmG,IAAI,EAAE,CAAC;MAAEC,SAAS,EAAE;IAAO,CAAE;IAACJ,UAAU,EAAC;EAAS,EAAG,eACnHnJ,MAAA,CAAAa,OAAA,CAAA0H,aAAA,CAACpI,YAAA,CAAA6I,KAAK;IACJC,MAAM,EAAE/I,OAAO,kCAA8B;IAC7CiD,KAAK,EAAE;MAAEmG,IAAI,EAAE,CAAC;MAAEhE,SAAS,EAAE,CAAC;QAAE+D,MAAM,EAAE,CAAC;MAAE,CAAC;IAAE,CAAE;IAChDF,UAAU,EAAC;EAAS,EACpB,CACG,eAEPnJ,MAAA,CAAAa,OAAA,CAAA0H,aAAA,CAAC9H,MAAA,CAAAI,OAAK;IAEF4B,UAAU;IACVE,SAAS;IACTR,UAAU;IACVI,WAAW;IACXiH,UAAU,EAAEzG,eAAe;IAC3BI,KAAK,EAAEN,UAAU;IACjB4B;EAAW,EAEb,CACY,CACA;AAEtB"
165
164
  }
@@ -84,7 +84,14 @@ const ReText = _ref => {
84
84
  );
85
85
  };
86
86
  function Preview(_ref2) {
87
- let { style = {}, textStyle = {}, colorFormat = 'hex', hideInitialColor = false, hideText = false } = _ref2;
87
+ let {
88
+ style = {},
89
+ textStyle = {},
90
+ colorFormat = 'hex',
91
+ hideInitialColor = false,
92
+ hideText = false,
93
+ disableOpacityTexture = false,
94
+ } = _ref2;
88
95
  const { hueValue, saturationValue, brightnessValue, alphaValue, returnedResults, value } = (0, _react.useContext)(
89
96
  _AppContext.default
90
97
  );
@@ -119,7 +126,7 @@ function Preview(_ref2) {
119
126
  };
120
127
  _f.asString = 'function _f(){const{textColor}=jsThis._closure;{return{color:textColor.value};}}';
121
128
  _f.__workletHash = 14472989744818;
122
- _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Preview.tsx (52:42)';
129
+ _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Preview.tsx (53:42)';
123
130
  _f.__optimalization = 3;
124
131
  return _f;
125
132
  })()
@@ -140,7 +147,7 @@ function Preview(_ref2) {
140
147
  };
141
148
  _f.asString = 'function _f(){const{previewColor}=jsThis._closure;{return{backgroundColor:previewColor.value};}}';
142
149
  _f.__workletHash = 9056204683932;
143
- _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Preview.tsx (60:45)';
150
+ _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Preview.tsx (61:45)';
144
151
  _f.__optimalization = 3;
145
152
  return _f;
146
153
  })()
@@ -182,13 +189,14 @@ function Preview(_ref2) {
182
189
  _f.asString =
183
190
  'function _f(){const{hueValue,saturationValue,brightnessValue,alphaValue,runOnJS,setPreviewColor,setTextColor}=jsThis._closure;{const currentColor={h:hueValue.value,s:saturationValue.value,v:brightnessValue.value,a:alphaValue.value};const adaptiveTextColor=alphaValue.value>0.5?currentColor:{h:0,s:0,v:70};runOnJS(setPreviewColor)(currentColor);runOnJS(setTextColor)(adaptiveTextColor);}}';
184
191
  _f.__workletHash = 1063704335960;
185
- _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Preview.tsx (66:18)';
192
+ _f.__location = 'F:\\ReactNative\\reanimated-color-picker\\src\\components\\Preview.tsx (67:18)';
186
193
  return _f;
187
194
  })()
188
195
  );
189
196
  return /*#__PURE__*/ _react.default.createElement(
190
197
  Wrapper,
191
198
  {
199
+ disableTexture: disableOpacityTexture,
192
200
  style: style,
193
201
  },
194
202
  /*#__PURE__*/ _react.default.createElement(
@@ -254,7 +262,16 @@ function Preview(_ref2) {
254
262
  );
255
263
  }
256
264
  function Wrapper(_ref3) {
257
- let { children, style } = _ref3;
265
+ let { children, disableTexture, style } = _ref3;
266
+ if (disableTexture) {
267
+ return /*#__PURE__*/ _react.default.createElement(
268
+ _reactNative.View,
269
+ {
270
+ style: [_styles.styles.previewWrapper, style],
271
+ },
272
+ children
273
+ );
274
+ }
258
275
  if (_utils.isWeb) {
259
276
  return /*#__PURE__*/ _react.default.createElement(
260
277
  _reactNative.View,
@@ -268,6 +285,10 @@ function Wrapper(_ref3) {
268
285
  _reactNative.ImageBackground,
269
286
  {
270
287
  source: require('../assets/transparent-texture.png'),
288
+ imageStyle: {
289
+ width: '100%',
290
+ height: '100%',
291
+ },
271
292
  resizeMode: 'repeat',
272
293
  style: [_styles.styles.previewWrapper, style],
273
294
  },
@@ -63,6 +63,7 @@
63
63
  "colorFormat",
64
64
  "hideInitialColor",
65
65
  "hideText",
66
+ "disableOpacityTexture",
66
67
  "hueValue",
67
68
  "saturationValue",
68
69
  "brightnessValue",
@@ -98,17 +99,21 @@
98
99
  "currentColor",
99
100
  "a",
100
101
  "Wrapper",
102
+ "disableTexture",
101
103
  "ConditionalRendering",
102
104
  "render",
103
105
  "View",
104
106
  "previewContainer",
105
107
  "_ref3",
106
108
  "children",
107
- "isWeb",
108
109
  "previewWrapper",
110
+ "isWeb",
109
111
  "previewWrapperWeb",
110
112
  "ImageBackground",
111
113
  "source",
114
+ "imageStyle",
115
+ "width",
116
+ "height",
112
117
  "resizeMode",
113
118
  "backgroundImage",
114
119
  "backgroundPosition",
@@ -116,7 +121,7 @@
116
121
  ],
117
122
  "sources": ["../../../src/components/Preview.tsx"],
118
123
  "sourcesContent": [
119
- "import React, { useContext, useMemo, useState } from 'react';\r\nimport { ImageBackground, Text, View } from 'react-native';\r\nimport Animated, { runOnJS, useAnimatedStyle, useDerivedValue, useSharedValue } from 'react-native-reanimated';\r\n\r\nimport colorKit from '@colorKit';\r\nimport pickerContext from '@context';\r\nimport { styles } from '@styles';\r\nimport { ConditionalRendering, getStyle, isWeb } from '@utils';\r\n\r\nimport type { PreviewProps } from '@types';\r\nimport type { ReactNode } from 'react';\r\nimport type { StyleProp, TextStyle } from 'react-native';\r\nimport type { SharedValue } from 'react-native-reanimated';\r\n\r\nconst ReText = ({ text, style, hash }: { text: () => string; style: StyleProp<TextStyle>[]; hash: SharedValue<number>[] }) => {\r\n const [color, setColor] = useState(text());\r\n\r\n const updateText = () => {\r\n setColor(text());\r\n };\r\n\r\n useDerivedValue(() => {\r\n hash.forEach(e => e.value);\r\n runOnJS(updateText)();\r\n });\r\n\r\n return <Animated.Text style={[styles.previewInitialText, ...style]}>{color}</Animated.Text>;\r\n};\r\n\r\nexport function Preview({\r\n style = {},\r\n textStyle = {},\r\n colorFormat = 'hex',\r\n hideInitialColor = false,\r\n hideText = false,\r\n}: PreviewProps) {\r\n const { hueValue, saturationValue, brightnessValue, alphaValue, returnedResults, value } = useContext(pickerContext);\r\n\r\n const justifyContent = getStyle(style, 'justifyContent') ?? 'center';\r\n\r\n // To track changes in the color channel values of the ReText component.\r\n const colorHash = [hueValue, saturationValue, brightnessValue, alphaValue];\r\n\r\n const initialColorText = useMemo(() => {\r\n const adaptiveTextColor = alphaValue.value > 0.5 ? value : { h: 0, s: 0, v: 70 };\r\n const contrast = colorKit.contrastRatio(adaptiveTextColor, '#fff');\r\n const color = contrast < 4.5 ? '#000' : '#fff';\r\n return { formatted: returnedResults()[colorFormat], color };\r\n }, [value, colorFormat]);\r\n\r\n const textColor = useSharedValue('#fff');\r\n const textColorStyle = useAnimatedStyle(() => ({ color: textColor.value }));\r\n const setTextColor = (color1: { h: number; s: number; v: number; a?: number }) => {\r\n const color = textColor.value === '#ffffff' ? '#000000' : '#ffffff';\r\n const contrast = colorKit.contrastRatio(color1, textColor.value);\r\n textColor.value = contrast < 4.5 ? color : textColor.value;\r\n };\r\n\r\n const previewColor = useSharedValue('#fff');\r\n const previewColorStyle = useAnimatedStyle(() => ({ backgroundColor: previewColor.value }));\r\n const setPreviewColor = (color: { h: number; s: number; v: number; a: number }) => {\r\n previewColor.value = colorKit.HEX(color);\r\n };\r\n\r\n // When the values of channels change\r\n useDerivedValue(() => {\r\n const currentColor = { h: hueValue.value, s: saturationValue.value, v: brightnessValue.value, a: alphaValue.value };\r\n const adaptiveTextColor = alphaValue.value > 0.5 ? currentColor : { h: 0, s: 0, v: 70 };\r\n runOnJS(setPreviewColor)(currentColor);\r\n runOnJS(setTextColor)(adaptiveTextColor);\r\n });\r\n\r\n return (\r\n <Wrapper style={style}>\r\n <ConditionalRendering render={!hideInitialColor}>\r\n <View style={[styles.previewContainer, { backgroundColor: value, justifyContent }]}>\r\n <ConditionalRendering render={!hideText}>\r\n <Text style={[{ color: initialColorText.color }, styles.previewInitialText, textStyle]}>\r\n {initialColorText.formatted}\r\n </Text>\r\n </ConditionalRendering>\r\n </View>\r\n </ConditionalRendering>\r\n\r\n <Animated.View style={[styles.previewContainer, { justifyContent }, previewColorStyle]}>\r\n <ConditionalRendering render={!hideText}>\r\n <ReText text={() => returnedResults()[colorFormat]} hash={colorHash} style={[textStyle, textColorStyle]} />\r\n </ConditionalRendering>\r\n </Animated.View>\r\n </Wrapper>\r\n );\r\n}\r\n\r\nfunction Wrapper({ children, style }: { children: ReactNode; style: {} | null }) {\r\n if (isWeb) {\r\n return <View style={[styles.previewWrapper, previewWrapperWeb, style]}>{children}</View>;\r\n }\r\n\r\n return (\r\n <ImageBackground\r\n source={require('@assets/transparent-texture.png')}\r\n resizeMode='repeat'\r\n style={[styles.previewWrapper, style]}\r\n >\r\n {children}\r\n </ImageBackground>\r\n );\r\n}\r\n\r\nconst previewWrapperWeb = {\r\n backgroundImage:\r\n 'repeating-linear-gradient(45deg, #c1c1c1 25%, transparent 25%, transparent 75%, #c1c1c1 75%, #c1c1c1), repeating-linear-gradient(45deg, #c1c1c1 25%, #fff 25%, #fff 75%, #c1c1c1 75%, #c1c1c1)',\r\n backgroundPosition: '0px 0px, 8px 8px',\r\n backgroundSize: '16px 16px',\r\n};\r\n"
124
+ "import React, { useContext, useMemo, useState } from 'react';\r\nimport { ImageBackground, Text, View } from 'react-native';\r\nimport Animated, { runOnJS, useAnimatedStyle, useDerivedValue, useSharedValue } from 'react-native-reanimated';\r\n\r\nimport colorKit from '@colorKit';\r\nimport pickerContext from '@context';\r\nimport { styles } from '@styles';\r\nimport { ConditionalRendering, getStyle, isWeb } from '@utils';\r\n\r\nimport type { PreviewProps } from '@types';\r\nimport type { ReactNode } from 'react';\r\nimport type { StyleProp, TextStyle } from 'react-native';\r\nimport type { SharedValue } from 'react-native-reanimated';\r\n\r\nconst ReText = ({ text, style, hash }: { text: () => string; style: StyleProp<TextStyle>[]; hash: SharedValue<number>[] }) => {\r\n const [color, setColor] = useState(text());\r\n\r\n const updateText = () => {\r\n setColor(text());\r\n };\r\n\r\n useDerivedValue(() => {\r\n hash.forEach(e => e.value);\r\n runOnJS(updateText)();\r\n });\r\n\r\n return <Animated.Text style={[styles.previewInitialText, ...style]}>{color}</Animated.Text>;\r\n};\r\n\r\nexport function Preview({\r\n style = {},\r\n textStyle = {},\r\n colorFormat = 'hex',\r\n hideInitialColor = false,\r\n hideText = false,\r\n disableOpacityTexture = false,\r\n}: PreviewProps) {\r\n const { hueValue, saturationValue, brightnessValue, alphaValue, returnedResults, value } = useContext(pickerContext);\r\n\r\n const justifyContent = getStyle(style, 'justifyContent') ?? 'center';\r\n\r\n // To track changes in the color channel values of the ReText component.\r\n const colorHash = [hueValue, saturationValue, brightnessValue, alphaValue];\r\n\r\n const initialColorText = useMemo(() => {\r\n const adaptiveTextColor = alphaValue.value > 0.5 ? value : { h: 0, s: 0, v: 70 };\r\n const contrast = colorKit.contrastRatio(adaptiveTextColor, '#fff');\r\n const color = contrast < 4.5 ? '#000' : '#fff';\r\n return { formatted: returnedResults()[colorFormat], color };\r\n }, [value, colorFormat]);\r\n\r\n const textColor = useSharedValue('#fff');\r\n const textColorStyle = useAnimatedStyle(() => ({ color: textColor.value }));\r\n const setTextColor = (color1: { h: number; s: number; v: number; a?: number }) => {\r\n const color = textColor.value === '#ffffff' ? '#000000' : '#ffffff';\r\n const contrast = colorKit.contrastRatio(color1, textColor.value);\r\n textColor.value = contrast < 4.5 ? color : textColor.value;\r\n };\r\n\r\n const previewColor = useSharedValue('#fff');\r\n const previewColorStyle = useAnimatedStyle(() => ({ backgroundColor: previewColor.value }));\r\n const setPreviewColor = (color: { h: number; s: number; v: number; a: number }) => {\r\n previewColor.value = colorKit.HEX(color);\r\n };\r\n\r\n // When the values of channels change\r\n useDerivedValue(() => {\r\n const currentColor = { h: hueValue.value, s: saturationValue.value, v: brightnessValue.value, a: alphaValue.value };\r\n const adaptiveTextColor = alphaValue.value > 0.5 ? currentColor : { h: 0, s: 0, v: 70 };\r\n runOnJS(setPreviewColor)(currentColor);\r\n runOnJS(setTextColor)(adaptiveTextColor);\r\n });\r\n\r\n return (\r\n <Wrapper disableTexture={disableOpacityTexture} style={style}>\r\n <ConditionalRendering render={!hideInitialColor}>\r\n <View style={[styles.previewContainer, { backgroundColor: value, justifyContent }]}>\r\n <ConditionalRendering render={!hideText}>\r\n <Text style={[{ color: initialColorText.color }, styles.previewInitialText, textStyle]}>\r\n {initialColorText.formatted}\r\n </Text>\r\n </ConditionalRendering>\r\n </View>\r\n </ConditionalRendering>\r\n\r\n <Animated.View style={[styles.previewContainer, { justifyContent }, previewColorStyle]}>\r\n <ConditionalRendering render={!hideText}>\r\n <ReText text={() => returnedResults()[colorFormat]} hash={colorHash} style={[textStyle, textColorStyle]} />\r\n </ConditionalRendering>\r\n </Animated.View>\r\n </Wrapper>\r\n );\r\n}\r\n\r\nfunction Wrapper({ children, disableTexture, style }: { children: ReactNode; disableTexture: boolean; style: {} | null }) {\r\n if (disableTexture) {\r\n return <View style={[styles.previewWrapper, style]}>{children}</View>;\r\n }\r\n\r\n if (isWeb) {\r\n return <View style={[styles.previewWrapper, previewWrapperWeb, style]}>{children}</View>;\r\n }\r\n\r\n return (\r\n <ImageBackground\r\n source={require('@assets/transparent-texture.png')}\r\n imageStyle={{ width: '100%', height: '100%' }}\r\n resizeMode='repeat'\r\n style={[styles.previewWrapper, style]}\r\n >\r\n {children}\r\n </ImageBackground>\r\n );\r\n}\r\n\r\nconst previewWrapperWeb = {\r\n backgroundImage:\r\n 'repeating-linear-gradient(45deg, #c1c1c1 25%, transparent 25%, transparent 75%, #c1c1c1 75%, #c1c1c1), repeating-linear-gradient(45deg, #c1c1c1 25%, #fff 25%, #fff 75%, #c1c1c1 75%, #c1c1c1)',\r\n backgroundPosition: '0px 0px, 8px 8px',\r\n backgroundSize: '16px 16px',\r\n};\r\n"
120
125
  ],
121
- "mappings": ";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAEA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAA+D,SAAAI,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAb,wBAAAS,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAA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IAClB,oBAAOjG,MAAA,CAAAY,OAAA,CAAAuC,aAAA,CAAChD,YAAA,CAAAiG,IAAI;MAACjE,KAAK,EAAE,CAACkB,cAAM,CAACmD,cAAc,EAAErE,KAAK;IAAE,GAAEoE,QAAQ,CAAQ;EACvE;EAEA,IAAIE,YAAK,EAAE;IACT,oBAAOzG,MAAA,CAAAY,OAAA,CAAAuC,aAAA,CAAChD,YAAA,CAAAiG,IAAI;MAACjE,KAAK,EAAE,CAACkB,cAAM,CAACmD,cAAc,EAAEE,iBAAiB,EAAEvE,KAAK;IAAE,GAAEoE,QAAQ,CAAQ;EAC1F;EAEA,oBACEvG,MAAA,CAAAY,OAAA,CAAAuC,aAAA,CAAChD,YAAA,CAAAwG,eAAe;IACdC,MAAM,EAAE1G,OAAO,qCAAoC;IACnD2G,UAAU,EAAE;MAAEC,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAO,CAAE;IAC9CC,UAAU,EAAC,QAAQ;IACnB7E,KAAK,EAAE,CAACkB,cAAM,CAACmD,cAAc,EAAErE,KAAK;EAAE,GAErCoE,QAAQ,CACO;AAEtB;AAEA,MAAMG,iBAAiB,GAAG;EACxBO,eAAe,EACb,gMAAgM;EAClMC,kBAAkB,EAAE,kBAAkB;EACtCC,cAAc,EAAE;AAClB,CAAC"
122
127
  }
@@ -72,7 +72,7 @@ const SWATCHES_COLORS = [
72
72
  function Swatches(_ref) {
73
73
  let { colors = SWATCHES_COLORS, style = {}, swatchStyle = {} } = _ref;
74
74
  const { setColor, onGestureChange, onGestureEnd } = (0, _react.useContext)(_AppContext.default);
75
- const onPress = async swatch => {
75
+ const onPress = swatch => {
76
76
  setColor(swatch);
77
77
  onGestureChange(swatch);
78
78
  onGestureEnd(swatch);
@@ -55,7 +55,7 @@
55
55
  ],
56
56
  "sources": ["../../../src/components/Swatches.tsx"],
57
57
  "sourcesContent": [
58
- "import React, { useContext } from 'react';\r\nimport { Pressable, View } from 'react-native';\r\n\r\nimport pickerContext from '@context';\r\nimport { styles } from '@styles';\r\n\r\nimport type { SwatchesProps } from '@types';\r\n\r\nconst SWATCHES_COLORS = [\r\n '#f44336',\r\n '#E91E63',\r\n '#9C27B0',\r\n '#673AB7',\r\n '#3F51B5',\r\n '#2196F3',\r\n '#03A9F4',\r\n '#00BCD4',\r\n '#009688',\r\n '#4CAF50',\r\n '#8BC34A',\r\n '#CDDC39',\r\n '#FFEB3B',\r\n '#FFC107',\r\n '#FF9800',\r\n '#FF5722',\r\n '#795548',\r\n '#9E9E9E',\r\n '#607D8B',\r\n];\r\n\r\nexport function Swatches({ colors = SWATCHES_COLORS, style = {}, swatchStyle = {} }: SwatchesProps) {\r\n const { setColor, onGestureChange, onGestureEnd } = useContext(pickerContext);\r\n\r\n const onPress = async (swatch: string) => {\r\n setColor(swatch);\r\n onGestureChange(swatch);\r\n onGestureEnd(swatch);\r\n };\r\n\r\n return (\r\n <View style={[styles.swatchesContainer, style]}>\r\n {colors.map((swatch, i) => (\r\n <Pressable\r\n key={swatch + i}\r\n onPress={() => onPress(swatch)}\r\n style={[styles.swatch, swatchStyle, { backgroundColor: swatch }]}\r\n />\r\n ))}\r\n </View>\r\n );\r\n}\r\n"
58
+ "import React, { useContext } from 'react';\r\nimport { Pressable, View } from 'react-native';\r\n\r\nimport pickerContext from '@context';\r\nimport { styles } from '@styles';\r\n\r\nimport type { SwatchesProps } from '@types';\r\n\r\nconst SWATCHES_COLORS = [\r\n '#f44336',\r\n '#E91E63',\r\n '#9C27B0',\r\n '#673AB7',\r\n '#3F51B5',\r\n '#2196F3',\r\n '#03A9F4',\r\n '#00BCD4',\r\n '#009688',\r\n '#4CAF50',\r\n '#8BC34A',\r\n '#CDDC39',\r\n '#FFEB3B',\r\n '#FFC107',\r\n '#FF9800',\r\n '#FF5722',\r\n '#795548',\r\n '#9E9E9E',\r\n '#607D8B',\r\n];\r\n\r\nexport function Swatches({ colors = SWATCHES_COLORS, style = {}, swatchStyle = {} }: SwatchesProps) {\r\n const { setColor, onGestureChange, onGestureEnd } = useContext(pickerContext);\r\n\r\n const onPress = (swatch: string) => {\r\n setColor(swatch);\r\n onGestureChange(swatch);\r\n onGestureEnd(swatch);\r\n };\r\n\r\n return (\r\n <View style={[styles.swatchesContainer, style]}>\r\n {colors.map((swatch, i) => (\r\n <Pressable\r\n key={swatch + i}\r\n onPress={() => onPress(swatch)}\r\n style={[styles.swatch, swatchStyle, { backgroundColor: swatch }]}\r\n />\r\n ))}\r\n </View>\r\n );\r\n}\r\n"
59
59
  ],
60
- "mappings": ";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAiC,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAM,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAhB,GAAA,QAAAgB,GAAA,kBAAAH,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C,YAAA,CAAAwC,IAAI;IAACV,KAAK,EAAE,CAACW,cAAM,CAACC,iBAAiB,EAAEZ,KAAK;EAAE,GAC5CD,MAAM,CAACc,GAAG,CAAC,CAACL,MAAM,EAAEM,CAAC,kBACpB/C,MAAA,CAAAS,OAAA,CAAAiC,aAAA,CAACvC,YAAA,CAAA6C,SAAS;IACRzB,GAAG,EAAEkB,MAAM,GAAGM,CAAE;IAChBP,OAAO,EAAEA,CAAA,KAAMA,OAAO,CAACC,MAAM,CAAE;IAC/BR,KAAK,EAAE,CAACW,cAAM,CAACH,MAAM,EAAEP,WAAW,EAAE;MAAEe,eAAe,EAAER;IAAO,CAAC;EAAE,EAEpE,CAAC,CACG;AAEX"
61
61
  }
@@ -4,7 +4,7 @@
4
4
  "names": [],
5
5
  "sources": ["../../src/types.ts"],
6
6
  "sourcesContent": [
7
- "import type { ReactNode } from 'react';\r\nimport type { ImageStyle, StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native';\r\nimport type { AnimatedStyleProp, SharedValue } from 'react-native-reanimated';\r\nimport type { SupportedColorFormats } from './colorKit/types';\r\n\r\nexport interface returnedResults {\r\n hex: string;\r\n rgb: string;\r\n rgba: string;\r\n hsl: string;\r\n hsla: string;\r\n hsv: string;\r\n hsva: string;\r\n hwb: string;\r\n hwba: string;\r\n}\r\n\r\nexport type thumbShapeType =\r\n | 'ring'\r\n | 'solid'\r\n | 'hollow'\r\n | 'line'\r\n | 'plus'\r\n | 'pill'\r\n | 'triangleUp'\r\n | 'triangleDown'\r\n | 'doubleTriangle'\r\n | 'rect'\r\n | 'circle';\r\n\r\nexport type RenderThumbProps = {\r\n /**\r\n * - This style determines the position of the thumb and is a crucial element that should be included.\r\n * - It should be tied to an `Reanimated` component, for example, `<Animated.View style={positionStyle} />`.\r\n */\r\n positionStyle: StyleProp<ViewStyle | ImageStyle | TextStyle>;\r\n\r\n /**\r\n * - A `number` that determines the thumb's width in pixels and is important for thumb position calculation.\r\n * - It's extracted from the `thumbSize` prop.\r\n */\r\n width: number;\r\n\r\n /**\r\n * - A `number` that determines the thumb's height in pixels and is important for thumb position calculation.\r\n * - It's extracted from the `thumbSize` prop.\r\n */\r\n height: number;\r\n\r\n /**\r\n * - The `adaptiveColor` is a type of `SharedValue<string>` that determines the color to be displayed based on the contrast ratio.\r\n * - It can either be a `white` or `black` color.\r\n */\r\n adaptiveColor: SharedValue<string>;\r\n\r\n /**\r\n * - A `SharedValue` of type `string` that represents the current color.\r\n * - This shared value will update whenever the color changes, but without the alpha channel.\r\n */\r\n currentColor: SharedValue<string>;\r\n\r\n /** - The initial color value as a `string` */\r\n initialColor: string;\r\n};\r\n\r\nexport type RenderThumbType = React.FC<RenderThumbProps>;\r\n\r\nexport type ThumbProps = {\r\n thumbColor?: string;\r\n handleStyle: {};\r\n innerStyle?: {};\r\n style?: {};\r\n renderThumb?: RenderThumbType;\r\n vertical?: boolean;\r\n adaptSpectrum?: boolean;\r\n channel?: 'h' | 's' | 'v' | 'a';\r\n thumbShape?: thumbShapeType;\r\n thumbSize: number;\r\n};\r\n\r\nexport type BuiltinThumbsProps = {\r\n width: number;\r\n height: number;\r\n borderRadius: number;\r\n thumbColor?: string;\r\n adaptiveColor: SharedValue<string>;\r\n handleStyle: {};\r\n innerStyle?: {};\r\n style?: {};\r\n solidColor: AnimatedStyleProp<ViewStyle>;\r\n renderThumb?: RenderThumbType;\r\n vertical?: boolean;\r\n};\r\n\r\nexport interface ColorPickerContext {\r\n /** Color's channels. */\r\n hueValue: SharedValue<number>;\r\n saturationValue: SharedValue<number>;\r\n brightnessValue: SharedValue<number>;\r\n alphaValue: SharedValue<number>;\r\n\r\n /** A global property that allows the color spectrum to adapt to changes in brightness and saturation for all descendant slider components. */\r\n adaptSpectrum: boolean;\r\n\r\n /** Apply a color to the color picker. */\r\n setColor: (color: string, duration?: number) => void;\r\n\r\n /** A global prop for all sliders children. */\r\n sliderThickness: number;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbSize: number;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbShape: thumbShapeType;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbColor: string | undefined;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbStyle: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb: boolean;\r\n\r\n /** A global style for all sliders children. */\r\n thumbInnerStyle: StyleProp<ViewStyle>;\r\n\r\n /** A global prop for all sliders children. */\r\n renderThumb: RenderThumbType | undefined;\r\n\r\n /** The initial color value as a `string` */\r\n value: string;\r\n\r\n /** The returned results of the color picker. */\r\n returnedResults: (color?: SupportedColorFormats) => returnedResults;\r\n\r\n /** This function is called when the user lifts the finger from the color picker. */\r\n onGestureEnd: (color?: SupportedColorFormats) => void;\r\n\r\n /** This function is called every time the color is changed. */\r\n onGestureChange: (color?: SupportedColorFormats) => void;\r\n}\r\n\r\nexport interface ColorPickerProps {\r\n /** - a global property that allows the color spectrum to adapt to changes in brightness and saturation for all descendant slider components.*/\r\n adaptSpectrum?: boolean;\r\n\r\n /**\r\n * - a global property to change the thickness of all descendant sliders components.\r\n * - thickness is the width of the slider in vertical mode or the height in horizontal mode.\r\n */\r\n sliderThickness?: number;\r\n\r\n /** - a global property to change the duration which the thumbs animate when the value prop changes. */\r\n thumbAnimationDuration?: number;\r\n\r\n /** - a global property to change the thumb size of all descendant sliders components. */\r\n thumbSize?: number;\r\n\r\n /** - a global property to change the shape and appearance of the thumb of all descendant sliders components. */\r\n thumbShape?: thumbShapeType;\r\n\r\n /** - a global property to change the color of the thumb of all descendant sliders components. */\r\n thumbColor?: string;\r\n\r\n /** - a global property to change the style of the thumb's View for all descendant sliders components */\r\n thumbStyle?: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - a global property for all descendant sliders and panels components\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb?: boolean;\r\n\r\n /** - a global property to change the color of the thumb's inner View(s) for all descendant sliders components. */\r\n thumbInnerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - a global function for rendering a thumb component based on ThumbProps. */\r\n renderThumb?: RenderThumbType;\r\n\r\n /** - color picker wrapper style. */\r\n style?: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - initial color.\r\n * - Accepts `hex`, `rgb`, `rgba`, `hsl`, `hsla`, `hsv`, `hsva`, `hwb`, `hwba` and `named color` formats.\r\n */\r\n value?: string;\r\n\r\n /** - called when the user moves the sliders. */\r\n onChange?: (colors: returnedResults) => void;\r\n\r\n /**\r\n * - called when the user lifts his finger off the sliders.\r\n * - CAUTION : As of `react-native-gesture-handler@2.9.0` the new web implementation does not support the events which trigger this callback.\r\n */\r\n onComplete?: (colors: returnedResults) => void;\r\n\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface ColorPickerRef {\r\n /** Apply a color to the color picker. */\r\n setColor: (color: string, duration?: number) => void;\r\n}\r\n\r\nexport interface SwatchesProps {\r\n /**\r\n * - swatch style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n swatchStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - swatches container style. */\r\n style?: StyleProp<ViewStyle>;\r\n\r\n /** - provide your own swatches colors. */\r\n colors?: string[];\r\n}\r\n\r\nexport interface PreviewProps {\r\n /** - show color preview in specific format. */\r\n colorFormat?: 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsv' | 'hsva' | 'hwb' | 'hwba';\r\n\r\n /** - hide initial color preview and show the picked color preview only. */\r\n hideInitialColor?: boolean;\r\n\r\n /** - hide color preview text. */\r\n hideText?: boolean;\r\n\r\n /**\r\n * - preview container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - preview text style.\r\n * - **Note** Certain style properties will be overridden..\r\n */\r\n textStyle?: StyleProp<TextStyle>;\r\n}\r\n\r\nexport interface PreviewTextProps {\r\n /** - show color preview in specific format. */\r\n colorFormat?: 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsv' | 'hsva' | 'hwb' | 'hwba';\r\n\r\n /** - preview text style */\r\n style?: StyleProp<TextStyle>;\r\n}\r\n\r\nexport interface PanelProps {\r\n /** - panel handle (thumb) size (height*width). */\r\n thumbSize?: number;\r\n\r\n /** - panel handle (thumb) color. */\r\n thumbColor?: string;\r\n\r\n /** - panel handle (thumb) shape. */\r\n thumbShape?: thumbShapeType;\r\n\r\n /**\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb?: boolean;\r\n\r\n /** - slider's handle (thumb) outer View style. */\r\n thumbStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - slider's handle (thumb) inner View style. */\r\n thumbInnerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - function which receives ThumbProps and renders slider's handle (thumb). */\r\n renderThumb?: RenderThumbType;\r\n\r\n /**\r\n * - panel container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport interface Panel2Props extends PanelProps {\r\n /** - reverse (flip) hue direction. */\r\n reverseHue?: boolean;\r\n\r\n /** - reverse (flip) the direction of the vertical channel's saturation or brightness. */\r\n reverseVerticalChannel?: boolean;\r\n\r\n /** - determines which color channel to adjust when moving the thumb vertically on the slider. */\r\n verticalChannel?: 'saturation' | 'brightness';\r\n\r\n /** - color spectrum adapts to changes in brightness and saturation */\r\n adaptSpectrum?: boolean;\r\n}\r\n\r\nexport interface Panel3Props extends PanelProps {\r\n /** - determines which color channel to adjust when moving the thumb towards or away from the center of the circular slider. */\r\n centerChannel?: 'saturation' | 'brightness';\r\n\r\n /** - color spectrum adapts to changes in brightness and saturation */\r\n adaptSpectrum?: boolean;\r\n}\r\n\r\nexport interface Panel4Props extends PanelProps {\r\n /** - reverse (flip) hue direction. */\r\n reverseHue?: boolean;\r\n\r\n /** - reverse (flip) the horizontal channel's brightness and saturation. */\r\n reverseHorizontalChannels?: boolean;\r\n}\r\n\r\nexport interface Panel5Props extends PanelProps {\r\n /**\r\n * - panel container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n /**\r\n * - The style of the square that indicates the selected color.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n selectionStyle?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport interface SliderProps {\r\n /** - slider's handle (thumb) size (height*width). */\r\n thumbSize?: number;\r\n\r\n /** - slider's handle (thumb) color. */\r\n thumbColor?: string;\r\n\r\n /** - slider's handle (thumb) shape. */\r\n thumbShape?: thumbShapeType;\r\n\r\n /**\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb?: boolean;\r\n\r\n /** - slider's handle (thumb) outer View style. */\r\n thumbStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - slider's handle (thumb) inner View style. */\r\n thumbInnerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - function which receives ThumbProps and renders slider's handle (thumb). */\r\n renderThumb?: RenderThumbType;\r\n\r\n /** - thickness is the width of the slider in vertical mode or the height in horizontal mode. */\r\n sliderThickness?: number;\r\n\r\n /** - reverse slider direction. */\r\n reverse?: boolean;\r\n\r\n /** - vertical slider. */\r\n vertical?: boolean;\r\n\r\n /** - color spectrum adapts to changes in brightness and saturation */\r\n adaptSpectrum?: boolean;\r\n\r\n /**\r\n * - slider's container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport interface RgbSliderProps extends Omit<SliderProps, 'adaptSpectrum'> {}\r\n\r\nexport interface HueCircular extends Omit<SliderProps, 'vertical' | 'reverse' | 'boundedThumb'> {\r\n children?: ReactNode;\r\n\r\n /** - the style of the container that wraps the given children.*/\r\n containerStyle?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport type InputProps = Omit<\r\n TextInputProps,\r\n | 'ref'\r\n | 'style'\r\n | 'value'\r\n | 'maxLength'\r\n | 'onChangeText'\r\n | 'onBlur'\r\n | 'onFocus'\r\n | 'keyboardType'\r\n | 'autoComplete'\r\n | 'autoCorrect'\r\n | 'defaultValue'\r\n>;\r\n\r\nexport type WidgetProps = {\r\n onChange: (color: string) => void;\r\n returnedResults: ColorPickerContext['returnedResults'];\r\n hueValue: ColorPickerContext['hueValue'];\r\n saturationValue: ColorPickerContext['saturationValue'];\r\n brightnessValue: ColorPickerContext['brightnessValue'];\r\n alphaValue: ColorPickerContext['alphaValue'];\r\n inputStyle: StyleProp<TextStyle>;\r\n inputTitleStyle?: StyleProp<TextStyle>;\r\n inputProps: InputProps;\r\n disableAlphaChannel: boolean;\r\n};\r\n\r\ntype defaultFormats = 'HEX' | 'RGB' | 'HSL' | 'HWB' | 'HSV';\r\n\r\nexport interface InputWidgetProps {\r\n /**\r\n * - The initial input widget color format.\r\n * - You can select one of the following options: `'HEX'`, `'RGB'`, '`HSL'`, `'HWB'`, or `'HSV'`\r\n */\r\n defaultFormat?: defaultFormats;\r\n\r\n /**\r\n * - What input widgets should be included that can be cycled through.\r\n * - Available options: `'HEX'`, `'RGB'`, '`HSL'`, `'HWB'`, and `'HSV'`\r\n */\r\n formats?: readonly defaultFormats[];\r\n\r\n /** - Limit the user's ability to modify the alpha channel of the selected color. */\r\n disableAlphaChannel?: boolean;\r\n\r\n /** - `InputText` components style. */\r\n inputStyle?: StyleProp<TextStyle>;\r\n\r\n /** - The props for the `TextInput` components. */\r\n inputProps?: InputProps;\r\n\r\n /** - The style of the `Text` component for the title located below the inputs. */\r\n inputTitleStyle?: StyleProp<TextStyle>;\r\n\r\n /** - The style of the `View` component that wraps around all the widgets. */\r\n containerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - The color of the cycle button icon (`Image` component). */\r\n iconColor?: string;\r\n\r\n /** - The style of the cycle button (`Image` component). */\r\n iconStyle?: StyleProp<ImageStyle>;\r\n}\r\n"
7
+ "import type { ReactNode } from 'react';\r\nimport type { ImageStyle, StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native';\r\nimport type { AnimatedStyleProp, SharedValue } from 'react-native-reanimated';\r\nimport type { SupportedColorFormats } from './colorKit/types';\r\n\r\nexport interface returnedResults {\r\n hex: string;\r\n rgb: string;\r\n rgba: string;\r\n hsl: string;\r\n hsla: string;\r\n hsv: string;\r\n hsva: string;\r\n hwb: string;\r\n hwba: string;\r\n}\r\n\r\nexport type thumbShapeType =\r\n | 'ring'\r\n | 'solid'\r\n | 'hollow'\r\n | 'line'\r\n | 'plus'\r\n | 'pill'\r\n | 'triangleUp'\r\n | 'triangleDown'\r\n | 'doubleTriangle'\r\n | 'rect'\r\n | 'circle';\r\n\r\nexport type RenderThumbProps = {\r\n /**\r\n * - This style determines the position of the thumb and is a crucial element that should be included.\r\n * - It should be tied to an `Reanimated` component, for example, `<Animated.View style={positionStyle} />`.\r\n */\r\n positionStyle: StyleProp<ViewStyle | ImageStyle | TextStyle>;\r\n\r\n /**\r\n * - A `number` that determines the thumb's width in pixels and is important for thumb position calculation.\r\n * - It's extracted from the `thumbSize` prop.\r\n */\r\n width: number;\r\n\r\n /**\r\n * - A `number` that determines the thumb's height in pixels and is important for thumb position calculation.\r\n * - It's extracted from the `thumbSize` prop.\r\n */\r\n height: number;\r\n\r\n /**\r\n * - The `adaptiveColor` is a type of `SharedValue<string>` that determines the color to be displayed based on the contrast ratio.\r\n * - It can either be a `white` or `black` color.\r\n */\r\n adaptiveColor: SharedValue<string>;\r\n\r\n /**\r\n * - A `SharedValue` of type `string` that represents the current color.\r\n * - This shared value will update whenever the color changes, but without the alpha channel.\r\n */\r\n currentColor: SharedValue<string>;\r\n\r\n /** - The initial color value as a `string` */\r\n initialColor: string;\r\n};\r\n\r\nexport type RenderThumbType = React.FC<RenderThumbProps>;\r\n\r\nexport type ThumbProps = {\r\n thumbColor?: string;\r\n handleStyle: {};\r\n innerStyle?: {};\r\n style?: {};\r\n renderThumb?: RenderThumbType;\r\n vertical?: boolean;\r\n adaptSpectrum?: boolean;\r\n channel?: 'h' | 's' | 'v' | 'a';\r\n thumbShape?: thumbShapeType;\r\n thumbSize: number;\r\n};\r\n\r\nexport type BuiltinThumbsProps = {\r\n width: number;\r\n height: number;\r\n borderRadius: number;\r\n thumbColor?: string;\r\n adaptiveColor: SharedValue<string>;\r\n handleStyle: {};\r\n innerStyle?: {};\r\n style?: {};\r\n solidColor: AnimatedStyleProp<ViewStyle>;\r\n renderThumb?: RenderThumbType;\r\n vertical?: boolean;\r\n};\r\n\r\nexport interface ColorPickerContext {\r\n /** Color's channels. */\r\n hueValue: SharedValue<number>;\r\n saturationValue: SharedValue<number>;\r\n brightnessValue: SharedValue<number>;\r\n alphaValue: SharedValue<number>;\r\n\r\n /** A global property that allows the color spectrum to adapt to changes in brightness and saturation for all descendant slider components. */\r\n adaptSpectrum: boolean;\r\n\r\n /** Apply a color to the color picker. */\r\n setColor: (color: string, duration?: number) => void;\r\n\r\n /** A global prop for all sliders children. */\r\n sliderThickness: number;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbSize: number;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbShape: thumbShapeType;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbColor: string | undefined;\r\n\r\n /** A global prop for all sliders children. */\r\n thumbStyle: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb: boolean;\r\n\r\n /** A global style for all sliders children. */\r\n thumbInnerStyle: StyleProp<ViewStyle>;\r\n\r\n /** A global prop for all sliders children. */\r\n renderThumb: RenderThumbType | undefined;\r\n\r\n /** The initial color value as a `string` */\r\n value: string;\r\n\r\n /** The returned results of the color picker. */\r\n returnedResults: (color?: SupportedColorFormats) => returnedResults;\r\n\r\n /** This function is called when the user lifts the finger from the color picker. */\r\n onGestureEnd: (color?: SupportedColorFormats) => void;\r\n\r\n /** This function is called every time the color is changed. */\r\n onGestureChange: (color?: SupportedColorFormats) => void;\r\n}\r\n\r\nexport interface ColorPickerProps {\r\n /** - a global property that allows the color spectrum to adapt to changes in brightness and saturation for all descendant slider components.*/\r\n adaptSpectrum?: boolean;\r\n\r\n /**\r\n * - a global property to change the thickness of all descendant sliders components.\r\n * - thickness is the width of the slider in vertical mode or the height in horizontal mode.\r\n */\r\n sliderThickness?: number;\r\n\r\n /** - a global property to change the duration which the thumbs animate when the value prop changes. */\r\n thumbAnimationDuration?: number;\r\n\r\n /** - a global property to change the thumb size of all descendant sliders components. */\r\n thumbSize?: number;\r\n\r\n /** - a global property to change the shape and appearance of the thumb of all descendant sliders components. */\r\n thumbShape?: thumbShapeType;\r\n\r\n /** - a global property to change the color of the thumb of all descendant sliders components. */\r\n thumbColor?: string;\r\n\r\n /** - a global property to change the style of the thumb's View for all descendant sliders components */\r\n thumbStyle?: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - a global property for all descendant sliders and panels components\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb?: boolean;\r\n\r\n /** - a global property to change the color of the thumb's inner View(s) for all descendant sliders components. */\r\n thumbInnerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - a global function for rendering a thumb component based on ThumbProps. */\r\n renderThumb?: RenderThumbType;\r\n\r\n /** - color picker wrapper style. */\r\n style?: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - initial color.\r\n * - Accepts `hex`, `rgb`, `rgba`, `hsl`, `hsla`, `hsv`, `hsva`, `hwb`, `hwba` and `named color` formats.\r\n */\r\n value?: string;\r\n\r\n /** - called when the user moves the sliders. */\r\n onChange?: (colors: returnedResults) => void;\r\n\r\n /**\r\n * - called when the user lifts his finger off the sliders.\r\n * - CAUTION : As of `react-native-gesture-handler@2.9.0` the new web implementation does not support the events which trigger this callback.\r\n */\r\n onComplete?: (colors: returnedResults) => void;\r\n\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface ColorPickerRef {\r\n /** Apply a color to the color picker. */\r\n setColor: (color: string, duration?: number) => void;\r\n}\r\n\r\nexport interface SwatchesProps {\r\n /**\r\n * - swatch style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n swatchStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - swatches container style. */\r\n style?: StyleProp<ViewStyle>;\r\n\r\n /** - provide your own swatches colors. */\r\n colors?: string[];\r\n}\r\n\r\nexport interface PreviewProps {\r\n /** - show color preview in specific format. */\r\n colorFormat?: 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsv' | 'hsva' | 'hwb' | 'hwba';\r\n\r\n /** - hide initial color preview and show the picked color preview only. */\r\n hideInitialColor?: boolean;\r\n\r\n /** - hide color preview text. */\r\n hideText?: boolean;\r\n\r\n /** - hide the preview background texture image that appears when the color has an opacity less than 1. */\r\n disableOpacityTexture?: boolean;\r\n\r\n /**\r\n * - preview container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n\r\n /**\r\n * - preview text style.\r\n * - **Note** Certain style properties will be overridden..\r\n */\r\n textStyle?: StyleProp<TextStyle>;\r\n}\r\n\r\nexport interface PreviewTextProps {\r\n /** - show color preview in specific format. */\r\n colorFormat?: 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsv' | 'hsva' | 'hwb' | 'hwba';\r\n\r\n /** - preview text style */\r\n style?: StyleProp<TextStyle>;\r\n}\r\n\r\nexport interface PanelProps {\r\n /** - panel handle (thumb) size (height*width). */\r\n thumbSize?: number;\r\n\r\n /** - panel handle (thumb) color. */\r\n thumbColor?: string;\r\n\r\n /** - panel handle (thumb) shape. */\r\n thumbShape?: thumbShapeType;\r\n\r\n /**\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb?: boolean;\r\n\r\n /** - slider's handle (thumb) outer View style. */\r\n thumbStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - slider's handle (thumb) inner View style. */\r\n thumbInnerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - function which receives ThumbProps and renders slider's handle (thumb). */\r\n renderThumb?: RenderThumbType;\r\n\r\n /**\r\n * - panel container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport interface Panel2Props extends PanelProps {\r\n /** - reverse (flip) hue direction. */\r\n reverseHue?: boolean;\r\n\r\n /** - reverse (flip) the direction of the vertical channel's saturation or brightness. */\r\n reverseVerticalChannel?: boolean;\r\n\r\n /** - determines which color channel to adjust when moving the thumb vertically on the slider. */\r\n verticalChannel?: 'saturation' | 'brightness';\r\n\r\n /** - color spectrum adapts to changes in brightness and saturation */\r\n adaptSpectrum?: boolean;\r\n}\r\n\r\nexport interface Panel3Props extends PanelProps {\r\n /** - determines which color channel to adjust when moving the thumb towards or away from the center of the circular slider. */\r\n centerChannel?: 'saturation' | 'brightness';\r\n\r\n /** - color spectrum adapts to changes in brightness and saturation */\r\n adaptSpectrum?: boolean;\r\n}\r\n\r\nexport interface Panel4Props extends PanelProps {\r\n /** - reverse (flip) hue direction. */\r\n reverseHue?: boolean;\r\n\r\n /** - reverse (flip) the horizontal channel's brightness and saturation. */\r\n reverseHorizontalChannels?: boolean;\r\n}\r\n\r\nexport interface Panel5Props extends PanelProps {\r\n /**\r\n * - panel container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n /**\r\n * - The style of the square that indicates the selected color.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n selectionStyle?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport interface SliderProps {\r\n /** - slider's handle (thumb) size (height*width). */\r\n thumbSize?: number;\r\n\r\n /** - slider's handle (thumb) color. */\r\n thumbColor?: string;\r\n\r\n /** - slider's handle (thumb) shape. */\r\n thumbShape?: thumbShapeType;\r\n\r\n /**\r\n * - Determines whether the slider thumb (or handle) should be constrained to stay within the boundaries of the slider.\r\n * - When set to true, the thumb will not be allowed to move beyond the edges of the slider.\r\n * - When set to false, part of it will be outside of the slider bounds.\r\n */\r\n boundedThumb?: boolean;\r\n\r\n /** - slider's handle (thumb) outer View style. */\r\n thumbStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - slider's handle (thumb) inner View style. */\r\n thumbInnerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - function which receives ThumbProps and renders slider's handle (thumb). */\r\n renderThumb?: RenderThumbType;\r\n\r\n /** - thickness is the width of the slider in vertical mode or the height in horizontal mode. */\r\n sliderThickness?: number;\r\n\r\n /** - reverse slider direction. */\r\n reverse?: boolean;\r\n\r\n /** - vertical slider. */\r\n vertical?: boolean;\r\n\r\n /** - color spectrum adapts to changes in brightness and saturation */\r\n adaptSpectrum?: boolean;\r\n\r\n /**\r\n * - slider's container style.\r\n * - **Note** Certain style properties will be overridden.\r\n */\r\n style?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport interface RgbSliderProps extends Omit<SliderProps, 'adaptSpectrum'> {}\r\n\r\nexport interface HueCircular extends Omit<SliderProps, 'vertical' | 'reverse' | 'boundedThumb'> {\r\n children?: ReactNode;\r\n\r\n /** - the style of the container that wraps the given children.*/\r\n containerStyle?: StyleProp<ViewStyle>;\r\n}\r\n\r\nexport type InputProps = Omit<\r\n TextInputProps,\r\n | 'ref'\r\n | 'style'\r\n | 'value'\r\n | 'maxLength'\r\n | 'onChangeText'\r\n | 'onBlur'\r\n | 'onFocus'\r\n | 'keyboardType'\r\n | 'autoComplete'\r\n | 'autoCorrect'\r\n | 'defaultValue'\r\n>;\r\n\r\nexport type WidgetProps = {\r\n onChange: (color: string) => void;\r\n returnedResults: ColorPickerContext['returnedResults'];\r\n hueValue: ColorPickerContext['hueValue'];\r\n saturationValue: ColorPickerContext['saturationValue'];\r\n brightnessValue: ColorPickerContext['brightnessValue'];\r\n alphaValue: ColorPickerContext['alphaValue'];\r\n inputStyle: StyleProp<TextStyle>;\r\n inputTitleStyle?: StyleProp<TextStyle>;\r\n inputProps: InputProps;\r\n disableAlphaChannel: boolean;\r\n};\r\n\r\ntype defaultFormats = 'HEX' | 'RGB' | 'HSL' | 'HWB' | 'HSV';\r\n\r\nexport interface InputWidgetProps {\r\n /**\r\n * - The initial input widget color format.\r\n * - You can select one of the following options: `'HEX'`, `'RGB'`, '`HSL'`, `'HWB'`, or `'HSV'`\r\n */\r\n defaultFormat?: defaultFormats;\r\n\r\n /**\r\n * - What input widgets should be included that can be cycled through.\r\n * - Available options: `'HEX'`, `'RGB'`, '`HSL'`, `'HWB'`, and `'HSV'`\r\n */\r\n formats?: readonly defaultFormats[];\r\n\r\n /** - Limit the user's ability to modify the alpha channel of the selected color. */\r\n disableAlphaChannel?: boolean;\r\n\r\n /** - `InputText` components style. */\r\n inputStyle?: StyleProp<TextStyle>;\r\n\r\n /** - The props for the `TextInput` components. */\r\n inputProps?: InputProps;\r\n\r\n /** - The style of the `Text` component for the title located below the inputs. */\r\n inputTitleStyle?: StyleProp<TextStyle>;\r\n\r\n /** - The style of the `View` component that wraps around all the widgets. */\r\n containerStyle?: StyleProp<ViewStyle>;\r\n\r\n /** - The color of the cycle button icon (`Image` component). */\r\n iconColor?: string;\r\n\r\n /** - The style of the cycle button (`Image` component). */\r\n iconStyle?: StyleProp<ImageStyle>;\r\n}\r\n"
8
8
  ],
9
9
  "mappings": ""
10
10
  }