Skip to content

Commit 6b6fe13

Browse files
authored
Update dependencies (#807)
* Update dependencies * Update for Webpack 5
1 parent 88a7259 commit 6b6fe13

File tree

6 files changed

+9601
-17231
lines changed

6 files changed

+9601
-17231
lines changed

demo/Demo.js

Lines changed: 17 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
ButtonGroup,
77
Card,
88
CardBody,
9-
CardDeck,
109
CardFooter,
1110
CardHeader,
1211
CardImg,
@@ -20,14 +19,10 @@ import {
2019
Fade,
2120
Form,
2221
FormFeedback,
23-
FormGroup,
2422
Input,
25-
Jumbotron,
2623
Label,
2724
ListGroup,
2825
ListGroupItem,
29-
ListGroupItemHeading,
30-
ListGroupItemText,
3126
NavbarSimple,
3227
NavItem,
3328
NavLink,
@@ -60,12 +55,12 @@ const CollapseComponent = ({children}) => {
6055
};
6156

6257
const FadeComponent = ({children}) => {
63-
const [isOpen, setIsOpen] = useState(false);
58+
const [isIn, setIsIn] = useState(false);
6459

6560
return (
6661
<div>
67-
<Button onClick={() => setIsOpen(!isOpen)}>Toggle fade</Button>
68-
<Fade is_open={isOpen}>{children}</Fade>
62+
<Button onClick={() => setIsOpen(!isIn)}>Toggle fade</Button>
63+
<Fade is_in={isIn}>{children}</Fade>
6964
</div>
7065
);
7166
};
@@ -180,12 +175,6 @@ const Demo = () => (
180175
</Button>
181176
</div>
182177

183-
<h4>Block button</h4>
184-
<div>
185-
<Button block={true} color="primary">
186-
primary block
187-
</Button>{' '}
188-
</div>
189178
<h4>Button Group</h4>
190179
<div>
191180
<ButtonGroup size="sm">
@@ -243,37 +232,6 @@ const Demo = () => (
243232
</Col>
244233
</Row>
245234

246-
<h4>Card deck</h4>
247-
<CardDeck>
248-
<Card>
249-
<CardBody>
250-
<h5 className="card-title">The first card</h5>
251-
<p className="card-text">
252-
This is a card with some text on it, it's the first one in the
253-
deck.
254-
</p>
255-
</CardBody>
256-
</Card>
257-
<Card>
258-
<CardBody>
259-
<h5 className="card-title">The second card</h5>
260-
<p className="card-text">
261-
This is a card with some text on it, it's the second one in the
262-
deck. It has a bit more text in it so that we can see how the
263-
vertical spacing will work.
264-
</p>
265-
</CardBody>
266-
</Card>
267-
<Card outline={true} color="primary">
268-
<CardBody>
269-
<h5 className="card-title">The third card</h5>
270-
<h6 className="card-subtitle">...and the last :(</h6>
271-
<p className="card-text">This card doesn't have much text...</p>
272-
<Button color="danger">Click me</Button>
273-
</CardBody>
274-
</Card>
275-
</CardDeck>
276-
277235
<h2>Collapse</h2>
278236
<CollapseComponent>
279237
<Card>
@@ -316,41 +274,6 @@ const Demo = () => (
316274
</Col>
317275
</Row>
318276

319-
<h4>Row with no gutters</h4>
320-
<Row no_gutters={true}>
321-
<Col md={3}>
322-
<div
323-
style={{
324-
borderStyle: 'solid',
325-
padding: '10px'
326-
}}
327-
>
328-
<h4>A quarter width column</h4>
329-
</div>
330-
</Col>
331-
<Col md={6}>
332-
<div
333-
style={{
334-
borderStyle: 'solid',
335-
padding: '10px'
336-
}}
337-
>
338-
<h4>A half width column</h4>
339-
<p>With some text below</p>
340-
</div>
341-
</Col>
342-
<Col md={3}>
343-
<div
344-
style={{
345-
borderStyle: 'solid',
346-
padding: '10px'
347-
}}
348-
>
349-
<h4>A quarter width column</h4>
350-
</div>
351-
</Col>
352-
</Row>
353-
354277
<h2>DropdownMenu</h2>
355278
<DropdownMenu label="Toggle" caret={true}>
356279
<DropdownMenuItem header={true}>Heading</DropdownMenuItem>
@@ -372,42 +295,35 @@ const Demo = () => (
372295

373296
<h2>Form</h2>
374297
<Form>
375-
<FormGroup>
376-
<Label for="exampleEmail">Email</Label>
298+
<div>
299+
<Label html_for="exampleEmail">Email</Label>
377300
<Input
378301
type="email"
379302
name="email"
380303
id="exampleEmail"
381304
placeholder="with a placeholder"
382-
valid
305+
valid={true}
383306
/>
384-
<FormFeedback valid>That email is valid!</FormFeedback>
385-
</FormGroup>
386-
<FormGroup>
387-
<Label for="examplePassword">Password</Label>
307+
<FormFeedback type="valid">That email is valid!</FormFeedback>
308+
</div>
309+
<div>
310+
<Label html_for="examplePassword">Password</Label>
388311
<Input
389312
type="password"
390313
name="password"
391314
id="examplePassword"
392315
placeholder="password placeholder"
393-
invalid
316+
invalid={true}
394317
/>
395318
<FormFeedback>That password is invalid... :(</FormFeedback>
396-
</FormGroup>
397-
<FormGroup>
398-
<Label for="exampleText">Text Area</Label>
319+
</div>
320+
<div>
321+
<Label html_for="exampleText">Text Area</Label>
399322
<Textarea id="exampleText" />
400-
</FormGroup>
323+
</div>
401324
<Button>Submit</Button>
402325
</Form>
403326

404-
<h2>Jumbotron</h2>
405-
<Jumbotron>
406-
<h2>This is a jumbotron</h2>
407-
<p>Pretty big huh?</p>
408-
<Button color="danger">Click here</Button>
409-
</Jumbotron>
410-
411327
<h2>ListGroup</h2>
412328

413329
<ListGroup>
@@ -417,8 +333,8 @@ const Demo = () => (
417333
<ListGroupItem disabled={true}>Item 2</ListGroupItem>
418334
<ListGroupItem>Item 3</ListGroupItem>
419335
<ListGroupItem>
420-
<ListGroupItemHeading>Item 4 heading</ListGroupItemHeading>
421-
<ListGroupItemText>Item 4 text</ListGroupItemText>
336+
<h3>Item 4 heading</h3>
337+
<p>Item 4 text</p>
422338
</ListGroupItem>
423339
</ListGroup>
424340

0 commit comments

Comments
 (0)