@momo-kits/slider 0.157.1-test.1 → 0.157.2-test.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/Label.tsx +3 -1
- package/index.tsx +3 -1
- package/package.json +1 -1
package/Label.tsx
CHANGED
package/index.tsx
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
useWidthLayout,
|
|
28
28
|
} from './hooks';
|
|
29
29
|
import {clamp, getValueForPosition, isLowCloser} from './helpers';
|
|
30
|
-
import {ApplicationContext, Radius, Shadow} from '@momo-kits/foundation';
|
|
30
|
+
import {ApplicationContext, Radius, Shadow, useScreenRegistry} from '@momo-kits/foundation';
|
|
31
31
|
|
|
32
32
|
const trueFunc = () => true;
|
|
33
33
|
const falseFunc = () => false;
|
|
@@ -134,6 +134,7 @@ const Slider: React.FC<SliderProps> = memo(
|
|
|
134
134
|
onSliderTouchEnd,
|
|
135
135
|
...restProps
|
|
136
136
|
}) => {
|
|
137
|
+
useScreenRegistry('Slider');
|
|
137
138
|
const {theme} = useContext(ApplicationContext);
|
|
138
139
|
|
|
139
140
|
const {inPropsRef, inPropsRefPrev, setLow, setHigh} = useLowHigh(
|
|
@@ -450,4 +451,5 @@ const Slider: React.FC<SliderProps> = memo(
|
|
|
450
451
|
}
|
|
451
452
|
);
|
|
452
453
|
|
|
454
|
+
Slider.displayName = 'Slider';
|
|
453
455
|
export {Slider};
|