Skip to content

Commit

Permalink
Added missing information in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mil4n0r committed Jun 26, 2024
1 parent 5a7a613 commit c1d7659
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import TableCode, { ExtendedTableCode } from "@/common/TableCode";
import basicUsage from "./examples/basicUsage";
import nextJS from "./examples/nextJS";
import StatusBadge from "@/common/StatusBadge";

const itemTypeString = `{
href?: string;
Expand Down Expand Up @@ -45,7 +46,12 @@ const sections = [
</td>
</tr>
<tr>
<td>items</td>
<td>
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
<StatusBadge status="required" />
items
</DxcFlex>
</td>
<td>
<TableCode>Item[]</TableCode>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import basicUsage from "./examples/basicUsage";
import nestedList from "./examples/nestedList";
import TableCode from "@/common/TableCode";
import StatusBadge from "@/common/StatusBadge";

const sections = [
{
Expand Down Expand Up @@ -84,7 +85,16 @@ const sections = [
</thead>
<tbody>
<tr>
<td>children</td>
<td>
<DxcFlex
direction="column"
gap="0.25rem"
alignItems="baseline"
>
<StatusBadge status="required" />
children
</DxcFlex>
</td>
<td>
<TableCode>React.ReactNode</TableCode>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Example from "@/common/example/Example";
import { DxcFlex, DxcTable } from "@dxc-technology/halstack-react";
import actionMenu from "./examples/actionMenu";
import navigationMenu from "./examples/navigationMenu";
import StatusBadge from "@/common/StatusBadge";

const itemTypeString = `{
badge?: React.ReactElement;
Expand Down Expand Up @@ -40,7 +41,12 @@ const sections = [
<th>Default</th>
</tr>
<tr>
<td>items</td>
<td>
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
<StatusBadge status="required" />
items
</DxcFlex>
</td>
<td>
<TableCode style={{ fontSize: "0.875rem" }}>
(Item | GroupItem)[] | Section[]
Expand Down
2 changes: 1 addition & 1 deletion website/screens/components/flex/code/FlexCodePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const sections = [
<td>
<TableCode>
'flex-start' | 'flex-end' | 'start' | 'end' | 'left' | 'right' |
'center' | 'space-between' | 'space-around' | 'space-evenly
'center' | 'space-between' | 'space-around' | 'space-evenly'
</TableCode>
</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DxcFlex, DxcTable } from "@dxc-technology/halstack-react";
import basicUsage from "./examples/basicUsage";
import multipleParagraphs from "./examples/multipleParagraphs";
import TableCode from "@/common/TableCode";
import StatusBadge from "@/common/StatusBadge";

const sections = [
{
Expand All @@ -19,7 +20,12 @@ const sections = [
<th>Default</th>
</tr>
<tr>
<td>children</td>
<td>
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
<StatusBadge status="required" />
children
</DxcFlex>
</td>
<td>
<TableCode>React.ReactNode</TableCode>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Example from "@/common/example/Example";
import quickNav from "./examples/quickNav";
import withContent from "./examples/withContent";
import TableCode from "@/common/TableCode";
import StatusBadge from "@/common/StatusBadge";

const sections = [
{
Expand All @@ -30,7 +31,12 @@ const sections = [
<td>-</td>
</tr>
<tr>
<td>links</td>
<td>
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
<StatusBadge status="required" />
links
</DxcFlex>
</td>
<td>
<TableCode>{"{ label: string; links?: Link[]; }[]"}</TableCode>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import DocFooter from "@/common/DocFooter";
import TableCode from "@/common/TableCode";
import Example from "@/common/example/Example";
import basicUsage from "./examples/basicUsage";
import StatusBadge from "@/common/StatusBadge";

const sections = [
{
Expand Down Expand Up @@ -36,7 +37,12 @@ const sections = [
</td>
</tr>
<tr>
<td>label</td>
<td>
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
<StatusBadge status="required" />
label
</DxcFlex>
</td>
<td>
<TableCode>string</TableCode>
</td>
Expand Down

0 comments on commit c1d7659

Please sign in to comment.