File tree Expand file tree Collapse file tree 9 files changed +23
-23
lines changed Expand file tree Collapse file tree 9 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import { storiesOf } from '@storybook/react';
3
3
import { action } from '@storybook/addon-actions' ;
4
4
import IconSettings from '../../icon-settings' ;
5
5
6
- import { FORMS_CHECKBOX } from '../../../utilities/constants' ;
6
+ import { CHECKBOX } from '../../../utilities/constants' ;
7
7
import Checkbox from '../' ;
8
8
import Button from '../../button' ;
9
9
10
10
import DefaultCheckbox from '../__examples__/default' ;
11
11
12
12
class CheckboxIndeterminate extends React . Component {
13
- static displayName = `${ FORMS_CHECKBOX } _INDETERMINATE` ;
13
+ static displayName = `${ CHECKBOX } _INDETERMINATE` ;
14
14
15
15
state = {
16
16
indeterminate : true ,
@@ -106,7 +106,7 @@ class CheckboxIndeterminate extends React.Component {
106
106
}
107
107
}
108
108
109
- storiesOf ( FORMS_CHECKBOX , module )
109
+ storiesOf ( CHECKBOX , module )
110
110
. addDecorator ( ( getStory ) => (
111
111
< div className = "slds-p-around--medium" >
112
112
< IconSettings iconPath = "/assets/icons" > { getStory ( ) } </ IconSettings >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import EventUtil from '../../utilities/event';
22
22
// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)
23
23
import checkProps from './check-props' ;
24
24
25
- import { FORMS_CHECKBOX } from '../../utilities/constants' ;
25
+ import { CHECKBOX } from '../../utilities/constants' ;
26
26
27
27
const propTypes = {
28
28
/**
@@ -159,7 +159,7 @@ const defaultProps = {
159
159
*/
160
160
class Checkbox extends React . Component {
161
161
componentWillMount ( ) {
162
- checkProps ( FORMS_CHECKBOX , this . props ) ;
162
+ checkProps ( CHECKBOX , this . props ) ;
163
163
this . generatedId = shortid . generate ( ) ;
164
164
}
165
165
@@ -384,7 +384,7 @@ class Checkbox extends React.Component {
384
384
}
385
385
}
386
386
387
- Checkbox . displayName = FORMS_CHECKBOX ;
387
+ Checkbox . displayName = CHECKBOX ;
388
388
Checkbox . propTypes = propTypes ;
389
389
Checkbox . defaultProps = defaultProps ;
390
390
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { storiesOf , action } from '@storybook/react' ;
3
3
4
- import { FORMS_INPUT } from '../../../utilities/constants' ;
4
+ import { INPUT } from '../../../utilities/constants' ;
5
5
import Button from '../../button' ;
6
6
import IconSettings from '../../icon-settings' ;
7
7
import Input from '../' ;
@@ -38,7 +38,7 @@ const searchIconClickable = (
38
38
/>
39
39
) ;
40
40
41
- storiesOf ( FORMS_INPUT , module )
41
+ storiesOf ( INPUT , module )
42
42
. addDecorator ( ( getStory ) => (
43
43
< div className = "slds-p-around--medium" > { getStory ( ) } </ div >
44
44
) )
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ import sunsetProperty from '../../utilities/warning/sunset-property';
8
8
// import oneOfRequiredProperty from '../../../utilities/warning/one-of-required-property';
9
9
import onlyOneOfProperties from '../../utilities/warning/only-one-of-properties' ;
10
10
11
- import { FORMS_INPUT , FORMS_SEARCH } from '../../utilities/constants' ;
11
+ import { INPUT , SEARCH } from '../../utilities/constants' ;
12
12
13
13
let checkProps = function ( ) { } ;
14
14
15
15
if ( process . env . NODE_ENV !== 'production' ) {
16
16
checkProps = function ( COMPONENT , props ) {
17
- if ( COMPONENT === FORMS_INPUT ) {
17
+ if ( COMPONENT === INPUT ) {
18
18
// Deprecated and changed to another property
19
19
deprecatedProperty (
20
20
COMPONENT ,
@@ -81,7 +81,7 @@ if (process.env.NODE_ENV !== 'production') {
81
81
});
82
82
}
83
83
*/
84
- } else if ( COMPONENT === FORMS_SEARCH ) {
84
+ } else if ( COMPONENT === SEARCH ) {
85
85
if ( typeof props . assistiveText === 'string' ) {
86
86
sunsetProperty (
87
87
COMPONENT ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import Label from '../utilities/label';
34
34
// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)
35
35
import checkProps from './check-props' ;
36
36
37
- import { FORMS_INPUT } from '../../utilities/constants' ;
37
+ import { INPUT } from '../../utilities/constants' ;
38
38
39
39
const defaultProps = {
40
40
assistiveText : {
@@ -47,7 +47,7 @@ const defaultProps = {
47
47
* The HTML `input` with a label and error messaging.
48
48
*/
49
49
const Input = createReactClass ( {
50
- displayName : FORMS_INPUT ,
50
+ displayName : INPUT ,
51
51
52
52
propTypes : {
53
53
/**
@@ -279,7 +279,7 @@ const Input = createReactClass({
279
279
280
280
componentWillMount ( ) {
281
281
// `checkProps` issues warnings to developers about properties (similar to React's built in development tools)
282
- checkProps ( FORMS_INPUT , this . props ) ;
282
+ checkProps ( INPUT , this . props ) ;
283
283
284
284
this . generatedId = shortid . generate ( ) ;
285
285
if ( this . props . errorText ) {
Original file line number Diff line number Diff line change 4
4
// Alias
5
5
import VerticalNavigation from '../vertical-navigation' ;
6
6
import componentHasMoved from '../../utilities/warning/component-has-moved' ;
7
- import { NAVIGATION } from '../../utilities/constants' ;
7
+ import { VERTICAL_NAVIGATION } from '../../utilities/constants' ;
8
8
9
- componentHasMoved ( NAVIGATION , {
9
+ componentHasMoved ( VERTICAL_NAVIGATION , {
10
10
oldFileLocation : 'components/navigation' ,
11
11
newFileLocation : 'components/vertical-navigation' ,
12
12
} ) ;
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ import shortid from 'shortid';
29
29
// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)
30
30
import checkProps from './check-props' ;
31
31
32
- import { FORMS_TEXTAREA } from '../../utilities/constants' ;
32
+ import { TEXTAREA } from '../../utilities/constants' ;
33
33
34
34
/**
35
35
* A multi-line plain-text editing control.
36
36
*/
37
37
const Textarea = createReactClass ( {
38
- displayName : FORMS_TEXTAREA ,
38
+ displayName : TEXTAREA ,
39
39
40
40
propTypes : {
41
41
/**
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const DIALOG = 'SLDSDialog';
35
35
export const FILTER = 'SLDSFilter' ;
36
36
export const FORMS_CHECKBOX = 'SLDSCheckbox' ;
37
37
export const FORMS_INLINE_EDIT = 'SLDSInlineEdit' ;
38
- export const FORMS_INPUT = 'SLDSInput' ;
38
+ export const INPUT = 'SLDSInput' ;
39
39
export const FORMS_TEXTAREA = 'SLDSTextarea' ;
40
40
export const FORMS_SEARCH = 'SLDSSearch' ;
41
41
export const GLOBAL_HEADER = 'SLDSGlobalHeader' ;
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import {
10
10
BUTTON ,
11
11
BUTTON_STATEFUL ,
12
12
BUTTON_GROUP ,
13
- FORMS_CHECKBOX ,
13
+ CHECKBOX ,
14
14
DATE_PICKER ,
15
- FORMS_INPUT ,
15
+ INPUT ,
16
16
LOOKUP ,
17
17
TIME_PICKER ,
18
18
} from '../../utilities/constants' ;
@@ -40,9 +40,9 @@ if (process.env.NODE_ENV !== 'production') {
40
40
trigger . type . displayName !== BUTTON &&
41
41
trigger . type . displayName !== BUTTON_STATEFUL &&
42
42
trigger . type . displayName !== BUTTON_GROUP &&
43
- trigger . type . displayName !== FORMS_CHECKBOX &&
43
+ trigger . type . displayName !== CHECKBOX &&
44
44
trigger . type . displayName !== DATE_PICKER &&
45
- trigger . type . displayName !== FORMS_INPUT &&
45
+ trigger . type . displayName !== INPUT &&
46
46
trigger . type . displayName !== LOOKUP &&
47
47
trigger . type . displayName !== TIME_PICKER
48
48
) {
You can’t perform that action at this time.
0 commit comments