Skip to content

Commit c4c2825

Browse files
committed
chore: make shadow props (insetShadow) opt-in
1 parent 01383c2 commit c4c2825

File tree

11 files changed

+17
-18
lines changed

11 files changed

+17
-18
lines changed

src/Cutout/Cutout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const Cutout = React.forwardRef(function Cutout(props, ref) {
5555

5656
Cutout.defaultProps = {
5757
children: null,
58-
shadow: true
58+
shadow: false
5959
};
6060

6161
Cutout.propTypes = {

src/DatePicker/DatePicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class DatePicker extends Component {
6868
};
6969

7070
static defaultProps = {
71-
shadow: true,
71+
shadow: false,
7272
className: '',
7373
onAccept: null,
7474
onCancel: null,

src/List/List.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const List = React.forwardRef(function List(props, ref) {
3333

3434
List.defaultProps = {
3535
fullWidth: false,
36-
shadow: true,
36+
shadow: false,
3737
inline: false,
3838
children: null
3939
};

src/List/List.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ menu: Components
55

66
import { Playground, Props } from 'docz';
77

8-
import List from './List'
9-
import ListItem from '../ListItem/ListItem'
8+
import List from './List';
9+
import ListItem from '../ListItem/ListItem';
1010

1111
# List
1212

@@ -38,10 +38,10 @@ import ListItem from '../ListItem/ListItem'
3838
</List>
3939
</Playground>
4040

41-
#### No shadow
41+
#### With shadow
4242

4343
<Playground>
44-
<List shadow={false}>
44+
<List shadow>
4545
<ListItem>Photos</ListItem>
4646
<ListItem>Videos</ListItem>
4747
<ListItem>Other</ListItem>

src/NumberField/NumberField.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ import Cutout from '../Cutout/Cutout'
4040
/>
4141
</Playground>
4242

43-
#### No shadow
43+
#### With shadow
4444

4545
<Playground>
4646
<NumberField
47-
shadow={false}
47+
shadow
4848
value={1991}
4949
onChange={value => console.log(value)}
5050
/>
@@ -60,7 +60,6 @@ import Cutout from '../Cutout/Cutout'
6060
</p>
6161
<NumberField
6262
variant='flat'
63-
shadow={false}
6463
value={1991}
6564
onChange={value => console.log(value)}
6665
/>

src/Progress/Progress.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const Progress = forwardRef(function Progress(props, ref) {
152152

153153
Progress.defaultProps = {
154154
value: 0,
155-
shadow: true,
155+
shadow: false,
156156
variant: 'default',
157157
hideValue: false
158158
};

src/Select/Select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ Select.defaultProps = {
474474
options: [],
475475
readOnly: undefined,
476476
SelectDisplayProps: {},
477-
shadow: true,
477+
shadow: false,
478478
style: {},
479479
value: undefined,
480480
variant: 'default',

src/Select/Select.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import Cutout from '../Cutout/Cutout'
6161
}}
6262
</Playground>
6363

64-
#### No shadow
64+
#### With shadow
6565

6666
<Playground>
6767
{() => {
@@ -76,7 +76,7 @@ import Cutout from '../Cutout/Cutout'
7676
];
7777
return (
7878
<Select
79-
shadow={false}
79+
shadow
8080
items={items}
8181
onChange={value => console.log(value)}
8282
/>

src/TextField/TextField.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ TextField.defaultProps = {
102102
fullWidth: null,
103103
multiline: false,
104104
onChange: () => {},
105-
shadow: true,
105+
shadow: false,
106106
style: {},
107107
type: 'text',
108108
variant: 'default'

src/TextField/TextField.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import Cutout from '../Cutout/Cutout';
1818
<TextField defaultValue='' onChange={e => console.log(e.target.value)} />
1919
</Playground>
2020

21-
#### No shadow
21+
#### With shadow
2222

2323
<Playground>
2424
<TextField
2525
defaultValue='No shadow'
26-
shadow={false}
26+
shadow
2727
onChange={e => console.log(e.target.value)}
2828
/>
2929
</Playground>

src/Window/Window.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Window = React.forwardRef(function Window(props, ref) {
5252

5353
Window.defaultProps = {
5454
resizable: false,
55-
shadow: true,
55+
shadow: false,
5656
children: null
5757
};
5858

0 commit comments

Comments
 (0)