armtek-uikit-react 1.0.198 → 1.0.200

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
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.198","description":"Armtek UIKit for React","main":"cjs/index.js","module":"esm/index.js","types":"esm/index.d.ts","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"clsx":"^2.0.0","rc-slider":"^10.2.1","react":"<=18.0.0","react-datepicker":"^4.16.0","react-dom":"<=18.0.0","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"<=18.0.0","react-dom":"<=18.0.0"},"engines":{"node":">=14.0.0"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.200","description":"Armtek UIKit for React","main":"cjs/index.js","module":"esm/index.js","types":"esm/index.d.ts","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"clsx":"^2.0.0","rc-slider":"^10.2.1","react":"<=18.2.0","react-datepicker":"^4.16.0","react-dom":"<=18.2.0","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"<=18.2.0","react-dom":"<=18.2.0"},"engines":{"node":">=14.0.0"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -1,5 +1,5 @@
1
1
  import { IntervalProps } from './Interval';
2
2
  import { SliderProps } from '../../Slider/Slider';
3
- type PropsType<ValueType = number | number[]> = Omit<IntervalProps<ValueType>, 'color'> & Partial<Pick<SliderProps<ValueType>, 'color'>>;
3
+ type PropsType<ValueType = number | number[]> = Omit<IntervalProps<ValueType>, 'color' | 'step'> & Partial<Pick<SliderProps<ValueType>, 'color' | 'step'>>;
4
4
  declare function IntervalSlide<ValueType = number | number[]>(props: PropsType<ValueType>): import("react/jsx-runtime").JSX.Element;
5
5
  export default IntervalSlide;
@@ -12,6 +12,7 @@ function IntervalSlide(props) {
12
12
  const {
13
13
  onChange,
14
14
  color,
15
+ step,
15
16
  ...restProps
16
17
  } = props;
17
18
  const defaultValue = restProps.defaultValue || (restProps.range ? [restProps.min, restProps.max] : 0);
@@ -39,7 +40,8 @@ function IntervalSlide(props) {
39
40
  value: restProps.value || currentValue,
40
41
  size: props.size,
41
42
  onChange: handleSlide,
42
- range: props.range
43
+ range: props.range,
44
+ step: step
43
45
  })
44
46
  })]
45
47
  })