Skip to content

Commit 6e9a359

Browse files
committed
[refactor] upgrade NavBar, Progress & Form validation
1 parent fdacc52 commit 6e9a359

File tree

18 files changed

+852
-453
lines changed

18 files changed

+852
-453
lines changed

document/source/components/BreadCrumb.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: docs
3-
title: BreadCrumb
3+
title: Bread crumb
44
description: Indicate the current page's location within a navigational hierarchy that automatically adds separators via CSS.
55
group: Components
66
---

document/source/components/Card.mdx

Lines changed: 23 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ group: Components
77

88
import { Card } from 'boot-cell/source/Content/Card';
99
import { Button } from 'boot-cell/source/Form/Button';
10-
import { Nav } from 'boot-cell/source/Navigator/Nav';
10+
import { Nav, NavLink } from 'boot-cell/source/Navigator/Nav';
1111

1212
import { Example } from '../../../source/component/Example';
1313

@@ -245,19 +245,11 @@ Add some navigation to a card’s header (or block) with BootCell’s [`<Nav />`
245245
<Card
246246
className="text-center"
247247
header={
248-
<Nav
249-
className="card-header-tabs"
250-
itemMode="tabs"
251-
list={[
252-
{ title: 'Active', href: 'javascript: void;' },
253-
{ title: 'Link', href: 'javascript: void;' },
254-
{
255-
title: 'Disabled',
256-
href: 'javascript: void;',
257-
disabled: true
258-
}
259-
]}
260-
/>
248+
<Nav className="card-header-tabs" itemMode="tabs">
249+
<NavLink active>Active</NavLink>
250+
<NavLink>Link</NavLink>
251+
<NavLink disabled>Disabled</NavLink>
252+
</Nav>
261253
}
262254
title="Special title treatment"
263255
text="With supporting text below as a natural lead-in to additional content."
@@ -269,26 +261,18 @@ Add some navigation to a card’s header (or block) with BootCell’s [`<Nav />`
269261
```TSX
270262
import { render, createCell } from 'web-cell';
271263
import { Card } from 'boot-cell/source/Content/Card';
272-
import { Nav } from 'boot-cell/source/Navigator/Nav';
264+
import { Nav, NavLink } from 'boot-cell/source/Navigator/Nav';
273265
import { Button } from 'boot-cell/source/Form/Button';
274266

275267
render(
276268
<Card
277269
className="text-center"
278270
header={
279-
<Nav
280-
className="card-header-tabs"
281-
itemMode="tabs"
282-
list={[
283-
{ title: 'Active', href: 'javascript: void;' },
284-
{ title: 'Link', href: 'javascript: void;' },
285-
{
286-
title: 'Disabled',
287-
href: 'javascript: void;',
288-
disabled: true
289-
}
290-
]}
291-
/>
271+
<Nav className="card-header-tabs" itemMode="tabs">
272+
<NavLink active>Active</NavLink>
273+
<NavLink>Link</NavLink>
274+
<NavLink disabled>Disabled</NavLink>
275+
</Nav>
292276
}
293277
title="Special title treatment"
294278
text="With supporting text below as a natural lead-in to additional content."
@@ -302,19 +286,11 @@ render(
302286
<Card
303287
className="text-center"
304288
header={
305-
<Nav
306-
className="card-header-pills"
307-
itemMode="pills"
308-
list={[
309-
{ title: 'Active', href: 'javascript: void;' },
310-
{ title: 'Link', href: 'javascript: void;' },
311-
{
312-
title: 'Disabled',
313-
href: 'javascript: void;',
314-
disabled: true
315-
}
316-
]}
317-
/>
289+
<Nav className="card-header-pills" itemMode="pills">
290+
<NavLink active>Active</NavLink>
291+
<NavLink>Link</NavLink>
292+
<NavLink disabled>Disabled</NavLink>
293+
</Nav>
318294
}
319295
title="Special title treatment"
320296
text="With supporting text below as a natural lead-in to additional content."
@@ -326,26 +302,18 @@ render(
326302
```TSX
327303
import { render, createCell } from 'web-cell';
328304
import { Card } from 'boot-cell/source/Content/Card';
329-
import { Nav } from 'boot-cell/source/Navigator/Nav';
305+
import { Nav, NavLink } from 'boot-cell/source/Navigator/Nav';
330306
import { Button } from 'boot-cell/source/Form/Button';
331307

332308
render(
333309
<Card
334310
className="text-center"
335311
header={
336-
<Nav
337-
className="card-header-pills"
338-
itemMode="pills"
339-
list={[
340-
{ title: 'Active', href: 'javascript: void;' },
341-
{ title: 'Link', href: 'javascript: void;' },
342-
{
343-
title: 'Disabled',
344-
href: 'javascript: void;',
345-
disabled: true
346-
}
347-
]}
348-
/>
312+
<Nav className="card-header-pills" itemMode="pills">
313+
<NavLink active>Active</NavLink>
314+
<NavLink>Link</NavLink>
315+
<NavLink disabled>Disabled</NavLink>
316+
</Nav>
349317
}
350318
title="Special title treatment"
351319
text="With supporting text below as a natural lead-in to additional content."

document/source/components/CountDown.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: docs
3-
title: CountDown
3+
title: Count down
44
description:
55
group: Components
66
---

0 commit comments

Comments
 (0)