Skip to content

Commit 6ab82c1

Browse files
committed
more cleanup
1 parent 7f4c2bf commit 6ab82c1

File tree

7 files changed

+455
-193
lines changed

7 files changed

+455
-193
lines changed

demo/pages/HomePage.jsx

Lines changed: 0 additions & 193 deletions
This file was deleted.

demo/pages/HomePage/ButtonSection.jsx

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
Copyright (c) 2015, salesforce.com, inc. All rights reserved.
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
5+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
6+
Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
7+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8+
*/
9+
10+
'use strict';
11+
12+
import React from 'react';
13+
import SLDSButton from '../../../components/SLDSButton';
14+
import {ButtonIcon, Icon} from "./../../../components/SLDSIcons";
15+
import {default as PrismCode} from "react-prism/lib/PrismCode";
16+
17+
18+
19+
20+
21+
module.exports = React.createClass( {
22+
23+
getDefaultProps () {
24+
return {};
25+
},
26+
27+
getInitialState () {
28+
return {};
29+
},
30+
31+
32+
33+
handleButtonClick () {
34+
alert('Test Button Clicked');
35+
},
36+
37+
render() {
38+
return (
39+
40+
41+
<div className='slds-p-around--medium'>
42+
<h3 className='slds-text-heading--medium slds-truncate'>
43+
Button
44+
</h3>
45+
46+
<PrismCode className='language-markup'>
47+
{require('raw-loader!../../code-snippets/SLDSButton.txt')}
48+
</PrismCode>
49+
<div className='slds-p-vertical--large'>
50+
<SLDSButton flavor='brand' onClick={this.handleButtonClick}>
51+
Test Button
52+
</SLDSButton>
53+
</div>
54+
</div>
55+
56+
57+
);
58+
}
59+
});
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
Copyright (c) 2015, salesforce.com, inc. All rights reserved.
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
5+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
6+
Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
7+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8+
*/
9+
10+
'use strict';
11+
12+
import React from 'react';
13+
import SLDSPicklistBase from '../../../components/SLDSPicklistBase';
14+
15+
import SLDSDateInput from '../../../components/SLDSDateInput';
16+
17+
import {default as PrismCode} from 'react-prism/lib/PrismCode';
18+
19+
20+
21+
22+
23+
module.exports = React.createClass( {
24+
25+
getDefaultProps () {
26+
return {};
27+
},
28+
29+
getInitialState () {
30+
return {};
31+
},
32+
33+
34+
render() {
35+
return (
36+
37+
38+
<div className="slds-p-around--medium">
39+
40+
<h3 className="slds-text-heading--medium slds-truncate">
41+
Datepickers (Work in progress)
42+
</h3>
43+
44+
<PrismCode className='language-markup'>
45+
{require("raw-loader!../../code-snippets/SLDSDateInputPage.txt")}
46+
</PrismCode>
47+
48+
<div className="slds-p-vertical--large">
49+
<SLDSDateInput />
50+
</div>
51+
52+
</div>
53+
54+
55+
);
56+
}
57+
});
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
Copyright (c) 2015, salesforce.com, inc. All rights reserved.
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
5+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
6+
Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
7+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8+
*/
9+
10+
'use strict';
11+
12+
import React from 'react';
13+
import SLDSLookup from '../../../components/SLDSLookup';
14+
15+
import {default as PrismCode} from 'react-prism/lib/PrismCode';
16+
17+
18+
const items = ['Paddy\'s Pub', 'Tyrell Corp', 'Paper St. Soap Company', 'Nakatomi Investments', 'Acme Landscaping', 'Acme Construction'];
19+
20+
21+
22+
module.exports = React.createClass( {
23+
24+
getDefaultProps () {
25+
return {};
26+
},
27+
28+
getInitialState () {
29+
return {};
30+
},
31+
32+
33+
render() {
34+
return (
35+
36+
37+
38+
<div className="slds-p-around--medium">
39+
40+
<h3 className="slds-text-heading--medium slds-truncate">
41+
Lookups (Work in progress)
42+
</h3>
43+
44+
<PrismCode className='language-markup'>
45+
{require("raw-loader!../../code-snippets/SLDSLookupPage.txt")}
46+
</PrismCode>
47+
48+
<div className="slds-p-vertical--large">
49+
<SLDSLookup items={items} label="Contacts" />
50+
</div>
51+
52+
</div>
53+
54+
55+
);
56+
}
57+
});

0 commit comments

Comments
 (0)