Skip to content

Commit 3845d2a

Browse files
committed
Move module def to top
1 parent 269e965 commit 3845d2a

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

src/InputRange/InputRange.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @module InputRange
3+
*/
4+
15
import React from 'react';
26
import Slider from './Slider';
37
import Track from './Track';
@@ -7,10 +11,6 @@ import valueTransformer from './valueTransformer';
711
import { autobind, captialize, distanceTo, isDefined, isObject, length } from './util';
812
import { maxMinValuePropType } from './propTypes';
913

10-
/**
11-
* @module InputRange
12-
*/
13-
1414
/**
1515
* A map for storing internal members
1616
* @const {WeakMap}

src/InputRange/Label.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React from 'react';
2-
31
/**
42
* @module InputRange/Label
53
*/
64

5+
import React from 'react';
6+
77
/**
88
* Label React component
99
* @class

src/InputRange/Slider.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react';
2-
import Label from './Label';
3-
import { autobind } from './util';
4-
51
/**
62
* @module InputRange/Slider
73
*/
84

5+
import React from 'react';
6+
import Label from './Label';
7+
import { autobind } from './util';
8+
99
/**
1010
* Get the owner document of slider
1111
* @private

src/InputRange/Track.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import React from 'react';
2-
import { autobind } from './util';
3-
41
/**
52
* @module InputRange/Track
63
*/
74

5+
import React from 'react';
6+
import { autobind } from './util';
7+
88
/**
99
* Get the CSS styles for an active track
1010
* @private

src/InputRange/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import InputRange from './InputRange';
2-
31
/**
42
* @module InputRange
53
*/
64

5+
import InputRange from './InputRange';
6+
77
/**
88
* An object describing the position of a point
99
* @typedef {Object} Point

src/InputRange/propTypes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { isNumber, objectOf } from './util';
2-
31
/**
42
* @module InputRange/maxMinValuePropType
53
*/
64

5+
import { isNumber, objectOf } from './util';
6+
77
/**
88
* A prop type accepting a range of numeric values or a single numeric value
99
* @param {Object} props - React component props

src/InputRange/valueTransformer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { clamp, isEmpty, isNumber, objectOf } from './util';
2-
31
/**
42
* @module InputRange/valueTransformer
53
*/
64

5+
import { clamp, isEmpty, isNumber, objectOf } from './util';
6+
77
/**
88
* Convert position into percentage value
99
* @static

0 commit comments

Comments
 (0)