@ray-js/lamp-saturation-slider 1.1.5 → 1.1.6-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
  import React, { useRef, useState, useEffect, useMemo } from 'react';
4
4
  import { View } from '@ray-js/components';
5
- import Slider from '@ray-js/components-ty-slider/lib/slider';
5
+ import Slider from '@ray-js/components-ty-slider/lib/SjsSlider';
6
6
  import { toStyle } from '@ray-js/components-ty-slider';
7
7
  import { hsvToRgb } from './utils';
8
8
  import { defaultProps } from './props';
@@ -21,7 +21,8 @@ function LampSaturationSlider(props) {
21
21
  onTouchStart,
22
22
  onTouchMove,
23
23
  onTouchEnd,
24
- enableTouch = true
24
+ enableTouch = true,
25
+ max = 1000
25
26
  } = props;
26
27
  const startRefValue = useRef(-1);
27
28
  const endRefValue = useRef(-1);
@@ -48,7 +49,7 @@ function LampSaturationSlider(props) {
48
49
  }, /*#__PURE__*/React.createElement(Slider, {
49
50
  instanceId: props.instanceId || instanceId.current,
50
51
  min: 0,
51
- max: 1000,
52
+ max: max,
52
53
  disable: disable,
53
54
  end: controllerSaturation,
54
55
  enableTouch: enableTouch,
package/lib/props.d.ts CHANGED
@@ -58,5 +58,11 @@ export interface IProps {
58
58
  * @default true
59
59
  */
60
60
  enableTouch?: boolean;
61
+ /**
62
+ * @description.en Maximum color temperature
63
+ * @description.zh 最大色温
64
+ * @default 1000
65
+ */
66
+ max?: 100 | 1000;
61
67
  }
62
68
  export declare const defaultProps: IProps;
package/lib/props.js CHANGED
@@ -6,5 +6,7 @@ export const defaultProps = {
6
6
  trackStyle: {},
7
7
  onTouchStart: () => null,
8
8
  onTouchMove: () => null,
9
- onTouchEnd: () => null
9
+ onTouchEnd: () => null,
10
+ max: 1000,
11
+ hue: 0
10
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-saturation-slider",
3
- "version": "1.1.5",
3
+ "version": "1.1.6-beta-1",
4
4
  "description": "照明色温Slider",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -60,7 +60,7 @@
60
60
  ]
61
61
  },
62
62
  "dependencies": {
63
- "@ray-js/components-ty-slider": "^0.2.40"
63
+ "@ray-js/components-ty-slider": "^0.2.52"
64
64
  },
65
65
  "maintainers": [
66
66
  {