Skip to content

Commit

Permalink
docs: regenerate documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Escalle <[email protected]>
  • Loading branch information
neilime committed Nov 12, 2024
1 parent d642f8c commit b9b26b0
Show file tree
Hide file tree
Showing 21 changed files with 144 additions and 141 deletions.
4 changes: 2 additions & 2 deletions website/docs/usage/components/badges.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ echo $this->formButton()->renderSpec([
'positioned' => true,
'type' => 'pill',
'hidden_content' => 'unread messages',
]
],
],
'variant' => 'primary',
],
Expand All @@ -143,7 +143,7 @@ echo $this->formButton()->renderSpec([
'positioned' => true,
'type' => 'pill',
'hidden_content' => 'New alerts',
]
],
],
'variant' => 'primary',
],
Expand Down
2 changes: 1 addition & 1 deletion website/docs/usage/components/button-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ echo $this->buttonGroup(
'attributes' => [
'class' => 'active',
'aria-current' => 'page',
'href' => '#'
'href' => '#',
],
],
[
Expand Down
14 changes: 7 additions & 7 deletions website/docs/usage/components/card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ echo $this->card([
['label' => 'Active', 'uri' => '#', 'active' => true,],
['label' => 'Link', 'uri' => '#',],
['label' => 'Disabled', 'uri' => '#', 'visible' => false,],
]
],
],
'title' => 'Special title treatment',
'text' => 'With supporting text below as a natural lead-in to additional content.',
Expand Down Expand Up @@ -739,7 +739,7 @@ echo $this->card([
'text' => [
'This is a wider card with supporting text below as a natural lead-in to additional content. ' .
'This content is a little bit longer.',
'<small class="text-muted">Last updated 3 mins ago</small>'
'<small class="text-muted">Last updated 3 mins ago</small>',
],
'image_bottom' => ['/twbs-helper-module/img/docs/image-cap.svg', ['alt' => '...']],
]);
Expand Down Expand Up @@ -825,7 +825,7 @@ echo $this->card([
['alt' => '...', 'fluid' => true, 'rounded' => 'start'],
],
],
['column' => 'md-4']
['column' => 'md-4'],
],
[
[
Expand All @@ -840,7 +840,7 @@ echo $this->card([
],
],
['class' => 'g-0'],
]
],
], ['class' => 'mb-3', 'style' => 'max-width: 540px;']);
```

Expand Down Expand Up @@ -1218,7 +1218,7 @@ echo $this->cardGroup([
'title' => 'Card title',
'text' => [
'This card has supporting text below as a natural lead-in to additional content.',
'<small class="text-muted">Last updated 3 mins ago</small>'
'<small class="text-muted">Last updated 3 mins ago</small>',
],
],
[
Expand Down Expand Up @@ -1389,7 +1389,7 @@ echo $this->cardGrid(
'title' => 'Card title',
'text' => [
'This card has supporting text below as a natural lead-in to additional content.',
'<small class="text-muted">Last updated 3 mins ago</small>'
'<small class="text-muted">Last updated 3 mins ago</small>',
],
],
[
Expand Down Expand Up @@ -1433,7 +1433,7 @@ echo $this->cardGrid(
'title' => 'Card title',
'text' => [
'This card has supporting text below as a natural lead-in to additional content.',
'<small class="text-muted">Last updated 3 mins ago</small>'
'<small class="text-muted">Last updated 3 mins ago</small>',
],
],
[
Expand Down
2 changes: 1 addition & 1 deletion website/docs/usage/components/collapse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ echo $this->collapse(
'options' => [
'variant' => 'primary',
'label' => 'Link with href',
'tag' => 'a'
'tag' => 'a',
],
],
[
Expand Down
14 changes: 7 additions & 7 deletions website/docs/usage/components/dropdowns.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ echo $this->formButton()->renderSpec([
'Something else here',
'---',
'Separated link',
]
],
],
],
]);
Expand Down Expand Up @@ -762,7 +762,7 @@ echo $this->dropdown()->renderMenu([
'Dropdown item text' => \TwbsHelper\View\Helper\Dropdown::TYPE_ITEM_TEXT,
'Action',
'Another action',
'Something else here'
'Something else here',
]);
```

Expand Down Expand Up @@ -791,7 +791,7 @@ echo $this->dropdown()->renderMenu([
echo $this->dropdown()->renderMenu([
'Regular link',
'Active link' => ['active' => true],
'Another link'
'Another link',
]);
```

Expand Down Expand Up @@ -820,7 +820,7 @@ echo $this->dropdown()->renderMenu([
echo $this->dropdown()->renderMenu([
'Regular link',
'Disabled link' => ['disabled' => true],
'Another link'
'Another link',
]);
```

Expand Down Expand Up @@ -1155,7 +1155,7 @@ echo $this->dropdown()->renderMenu([
<HtmlCode bootstrapVersion="5.1">
<div dangerouslySetInnerHTML={{ __html: `<ul class="dropdown-menu">
<li>
<form action="" class="px-4 py-3" id="dropdown" method="POST" name="dropdown" role="form">
<form class="px-4 py-3" id="dropdown" method="POST" name="dropdown" role="form">
<div class="mb-3">
<label class="form-label" for="exampleDropdownFormEmail1">Email address</label>
<input class="form-control" id="exampleDropdownFormEmail1" name="email" placeholder="[email protected]" type="email" value="">
Expand All @@ -1178,7 +1178,7 @@ echo $this->dropdown()->renderMenu([
<li><a class="dropdown-item" href="#">Forgot password?</a></li>
</ul>
<br>
<form action="" class="dropdown-menu p-4" id="dropdown" method="POST" name="dropdown" role="form">
<form class="dropdown-menu p-4" id="dropdown" method="POST" name="dropdown" role="form">
<div class="mb-3">
<label class="form-label" for="exampleDropdownFormEmail1">Email address</label>
<input class="form-control" id="exampleDropdownFormEmail1" name="email" placeholder="[email protected]" type="email" value="">
Expand Down Expand Up @@ -1248,7 +1248,7 @@ $form = $factory->create([
'options' => ['label' => 'Sign in', 'variant' => 'primary'],
],
],
]
],
]);

echo $this->dropdown()->renderMenu([
Expand Down
8 changes: 4 additions & 4 deletions website/docs/usage/components/modal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ echo $this->modal([
],
],
],
]
],
]);
```

Expand Down Expand Up @@ -807,7 +807,7 @@ echo $this->modal(
],
],
],
]
],
],
],
],
Expand Down Expand Up @@ -867,7 +867,7 @@ echo $this->modal(
<button aria-label="Close" class="btn-close" data-bs-dismiss="modal" name="button" type="button" value=""></button>
</div>
<div class="modal-body">
<form action="" id="form" method="POST" name="form" role="form">
<form id="form" method="POST" name="form" role="form">
<div class="mb-3">
<label class="form-label" for="recipient-name">Recipient:</label>
<input class="form-control" id="recipient-name" name="recipient" type="text" value="">
Expand All @@ -885,7 +885,7 @@ echo $this->modal(
</div>
</div>
</div>
<script type="text/javascript"></script>` }}></div>
<script></script>` }}></div>
</HtmlCode>
</TabItem>
<TabItem value="source" label="Source">
Expand Down
32 changes: 16 additions & 16 deletions website/docs/usage/components/navbar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import HtmlCode from "../../../src/components/HtmlCode.tsx";
<a aria-disabled="true" class="disabled nav-link" href="#" tabindex="-1">Disabled</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
Expand Down Expand Up @@ -433,7 +433,7 @@ echo $this->navigation()->navbar()->render(
<HtmlCode bootstrapVersion="5.1">
<div dangerouslySetInnerHTML={{ __html: `<nav class="bg-light navbar navbar-light">
<div class="container-fluid">
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
Expand All @@ -443,15 +443,15 @@ echo $this->navigation()->navbar()->render(
<nav class="bg-light navbar navbar-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="element" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
</div>
</nav>
<br>
<nav class="bg-light navbar navbar-light">
<form action="" class="container-fluid" id="form" method="POST" name="form" role="form">
<form class="container-fluid" id="form" method="POST" name="form" role="form">
<div class="input-group">
<span class="input-group-text" id="basic-addon1">@</span>
<input aria-describedby="basic-addon1" aria-label="Username" class="form-control" name="element" placeholder="Username" type="text" value="">
Expand All @@ -460,7 +460,7 @@ echo $this->navigation()->navbar()->render(
</nav>
<br>
<nav class="bg-light navbar navbar-light">
<form action="" class="container-fluid justify-content-start" id="form" method="POST" name="form" role="form">
<form class="container-fluid justify-content-start" id="form" method="POST" name="form" role="form">
<button class="btn btn-outline-success me-2" name="main_button" type="button" value="">Main button</button>
<button class="btn btn-outline-secondary btn-sm" name="smaller_button" type="button" value="">Smaller button</button>
</form>
Expand Down Expand Up @@ -602,7 +602,7 @@ echo $this->navigation()->navbar()->render(
],
'attributes' => [
'class' => 'me-2',
]
],
],
],
[
Expand Down Expand Up @@ -731,7 +731,7 @@ echo $this->navigation()->navbar()->render(
<a class="nav-link" href="#">About</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-light" name="submit" type="submit" value="">Search</button>
</form>
Expand All @@ -758,7 +758,7 @@ echo $this->navigation()->navbar()->render(
<a class="nav-link" href="#">About</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-light" name="submit" type="submit" value="">Search</button>
</form>
Expand All @@ -785,7 +785,7 @@ echo $this->navigation()->navbar()->render(
<a class="nav-link" href="#">About</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-primary" name="submit" type="submit" value="">Search</button>
</form>
Expand Down Expand Up @@ -1019,7 +1019,7 @@ foreach (
<a aria-disabled="true" class="disabled nav-link" href="#" tabindex="-1">Link</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
Expand Down Expand Up @@ -1124,7 +1124,7 @@ echo $this->navigation()->navbar()->render(
<a aria-disabled="true" class="disabled nav-link" href="#" tabindex="-1">Disabled</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
Expand All @@ -1148,7 +1148,7 @@ echo $this->navigation()->navbar()->render(
<a aria-disabled="true" class="disabled nav-link" href="#" tabindex="-1">Disabled</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
Expand All @@ -1172,7 +1172,7 @@ echo $this->navigation()->navbar()->render(
<a aria-disabled="true" class="disabled nav-link" href="#" tabindex="-1">Disabled</a>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
Expand Down Expand Up @@ -1304,7 +1304,7 @@ echo $this->collapse([
'id' => 'navbarToggleExternalContent',
],
],
]
],
]);

echo $this->navigation()->navbar()->render(
Expand All @@ -1313,7 +1313,7 @@ echo $this->navigation()->navbar()->render(
'expand' => false,
'toggler' => [
'attributes' => [
'data-bs-target' => '#navbarToggleExternalContent'
'data-bs-target' => '#navbarToggleExternalContent',
],
],
'container' => 'fluid',
Expand Down Expand Up @@ -1360,7 +1360,7 @@ echo $this->navigation()->navbar()->render(
</ul>
</li>
</ul>
<form action="" class="d-flex" id="form" method="POST" name="form" role="form">
<form class="d-flex" id="form" method="POST" name="form" role="form">
<input aria-label="Search" class="form-control me-2" name="search" placeholder="Search" type="search" value="">
<button class="btn btn-outline-success" name="submit" type="submit" value="">Search</button>
</form>
Expand Down
2 changes: 1 addition & 1 deletion website/docs/usage/components/offcanvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ $this->formButton()->renderSpec([
'options' => [
'variant' => 'primary',
'label' => 'Link with href',
'tag' => 'a'
'tag' => 'a',
],
],
[
Expand Down
6 changes: 3 additions & 3 deletions website/docs/usage/components/scrollspy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ foreach (
'Second heading',
'Third heading',
'Fourth heading',
'Fifth heading'
'Fifth heading',
] as $key => $label
) {
echo ' <h4 id="scrollspyHeading' . ($key + 1) . '">' . $label . '</h4>' .
Expand Down Expand Up @@ -259,7 +259,7 @@ echo $this->gridRow([
PHP_EOL .
'</div>',
['column' => 8],
]
],
]);
```

Expand Down Expand Up @@ -346,7 +346,7 @@ echo $this->gridRow([
PHP_EOL .
'</div>',
['column' => 8],
]
],
]);
```

Expand Down
Loading

0 comments on commit b9b26b0

Please sign in to comment.