rc-slider
Advanced tools
Comparing version 9.7.1 to 9.7.2
import React from 'react'; | ||
import { GenericSliderProps, GenericSliderState, GenericSlider } from '../interface'; | ||
import type { GenericSliderProps, GenericSliderState, GenericSlider } from '../interface'; | ||
export default function createSlider<Props extends GenericSliderProps, State extends GenericSliderState>(Component: GenericSlider<Props, State>): React.ComponentClass<Props, State>; |
import * as React from 'react'; | ||
import { TooltipProps } from 'rc-tooltip/lib/Tooltip'; | ||
import type { TooltipProps } from 'rc-tooltip/lib/Tooltip'; | ||
declare const SliderTooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>; | ||
export default SliderTooltip; |
import React from 'react'; | ||
import { GenericSliderProps } from './interface'; | ||
import type { GenericSliderProps } from './interface'; | ||
export interface ComponentWrapperProps { | ||
@@ -4,0 +4,0 @@ tipFormatter?: (value: number) => React.ReactNode; |
@@ -1,2 +0,2 @@ | ||
import * as React from 'react'; | ||
import type * as React from 'react'; | ||
export interface GenericSliderProps { | ||
@@ -3,0 +3,0 @@ min?: number; |
import React from 'react'; | ||
import { SliderProps } from './Slider'; | ||
import { GenericSliderProps, GenericSliderState } from './interface'; | ||
import type { SliderProps } from './Slider'; | ||
import type { GenericSliderProps, GenericSliderState } from './interface'; | ||
export interface RangeProps extends GenericSliderProps { | ||
@@ -21,3 +21,3 @@ value?: number[]; | ||
}>; | ||
step?: number; | ||
step?: number | null; | ||
threshold?: number; | ||
@@ -29,6 +29,6 @@ prefixCls?: string; | ||
handleStyle?: React.CSSProperties[]; | ||
tabIndex?: number | Array<number>; | ||
ariaLabelGroupForHandles?: string | Array<string>; | ||
ariaLabelledByGroupForHandles?: string | Array<string>; | ||
ariaValueTextFormatterGroupForHandles?: string | Array<string>; | ||
tabIndex?: number | number[]; | ||
ariaLabelGroupForHandles?: string | string[]; | ||
ariaLabelledByGroupForHandles?: string | string[]; | ||
ariaValueTextFormatterGroupForHandles?: string | string[]; | ||
handle?: SliderProps['handle']; | ||
@@ -35,0 +35,0 @@ draggableTrack?: boolean; |
import React from 'react'; | ||
import { GenericSliderProps, GenericSliderState } from './interface'; | ||
import type { GenericSliderProps, GenericSliderState } from './interface'; | ||
export interface SliderProps extends GenericSliderProps { | ||
@@ -4,0 +4,0 @@ value?: number; |
import React from 'react'; | ||
import { GenericSliderProps, GenericSliderState, GenericSlider } from '../interface'; | ||
import type { GenericSliderProps, GenericSliderState, GenericSlider } from '../interface'; | ||
export default function createSlider<Props extends GenericSliderProps, State extends GenericSliderState>(Component: GenericSlider<Props, State>): React.ComponentClass<Props, State>; |
import * as React from 'react'; | ||
import { TooltipProps } from 'rc-tooltip/lib/Tooltip'; | ||
import type { TooltipProps } from 'rc-tooltip/lib/Tooltip'; | ||
declare const SliderTooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>; | ||
export default SliderTooltip; |
import React from 'react'; | ||
import { GenericSliderProps } from './interface'; | ||
import type { GenericSliderProps } from './interface'; | ||
export interface ComponentWrapperProps { | ||
@@ -4,0 +4,0 @@ tipFormatter?: (value: number) => React.ReactNode; |
@@ -1,2 +0,2 @@ | ||
import * as React from 'react'; | ||
import type * as React from 'react'; | ||
export interface GenericSliderProps { | ||
@@ -3,0 +3,0 @@ min?: number; |
import React from 'react'; | ||
import { SliderProps } from './Slider'; | ||
import { GenericSliderProps, GenericSliderState } from './interface'; | ||
import type { SliderProps } from './Slider'; | ||
import type { GenericSliderProps, GenericSliderState } from './interface'; | ||
export interface RangeProps extends GenericSliderProps { | ||
@@ -21,3 +21,3 @@ value?: number[]; | ||
}>; | ||
step?: number; | ||
step?: number | null; | ||
threshold?: number; | ||
@@ -29,6 +29,6 @@ prefixCls?: string; | ||
handleStyle?: React.CSSProperties[]; | ||
tabIndex?: number | Array<number>; | ||
ariaLabelGroupForHandles?: string | Array<string>; | ||
ariaLabelledByGroupForHandles?: string | Array<string>; | ||
ariaValueTextFormatterGroupForHandles?: string | Array<string>; | ||
tabIndex?: number | number[]; | ||
ariaLabelGroupForHandles?: string | string[]; | ||
ariaLabelledByGroupForHandles?: string | string[]; | ||
ariaValueTextFormatterGroupForHandles?: string | string[]; | ||
handle?: SliderProps['handle']; | ||
@@ -35,0 +35,0 @@ draggableTrack?: boolean; |
import React from 'react'; | ||
import { GenericSliderProps, GenericSliderState } from './interface'; | ||
import type { GenericSliderProps, GenericSliderState } from './interface'; | ||
export interface SliderProps extends GenericSliderProps { | ||
@@ -4,0 +4,0 @@ value?: number; |
{ | ||
"name": "rc-slider", | ||
"version": "9.7.1", | ||
"version": "9.7.2", | ||
"description": "Slider UI component for React", | ||
@@ -65,3 +65,3 @@ "engines": { | ||
"cross-env": "^7.0.0", | ||
"dumi": "^1.0.37", | ||
"dumi": "^1.1.7", | ||
"enzyme": "^3.1.0", | ||
@@ -68,0 +68,0 @@ "enzyme-adapter-react-16": "^1.0.1", |
@@ -60,3 +60,3 @@ # rc-slider | ||
```jsx | ||
```js | ||
const Slider = require('rc-slider'); | ||
@@ -63,0 +63,0 @@ const createSliderWithTooltip = Slider.createSliderWithTooltip; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
185768
53
0