@ledvance/base 1.1.65 → 1.1.66

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.65",
7
+ "version": "1.1.66",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -13,6 +13,7 @@ const {convertX: cx} = Utils.RatioUtils
13
13
  export interface ColorTempAdjustViewProps {
14
14
  colorTemp: number
15
15
  brightness: number
16
+ minBrightness?: number
16
17
  isSupportTemperature: boolean
17
18
  isSupportBrightness: boolean
18
19
  onCCTChange?: (cct: number) => void
@@ -46,6 +47,7 @@ const ColorTempAdjustView = (props: ColorTempAdjustViewProps) => {
46
47
  {props.isSupportBrightness &&
47
48
  <LdvSlider
48
49
  title={I18n.getLang('light_sources_tile_rgb_lighting_brightness')}
50
+ min={props.minBrightness}
49
51
  value={props.brightness}
50
52
  onValueChange={props.onBrightnessChange}
51
53
  onSlidingComplete={props.onBrightnessChangeComplete}/>}
@@ -22,7 +22,7 @@ const LdvSlider = (props: LdvSliderProps) => {
22
22
  const {value, onSlidingComplete, min, max, sliderStyle, subTitleStr, titleStyle, onValueChange} = props
23
23
 
24
24
  const mMax = max || 100
25
- const mMin = min || 1
25
+ const mMin = min ?? 1
26
26
  const state = useReactive({
27
27
  value: value,
28
28
  })