-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #754 from lumapps/docs/list
docs(list): updated documentations
- Loading branch information
Showing
7 changed files
with
130 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "0.1.0", | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "prettier eslint", | ||
"type": "shell", | ||
"command": "node", | ||
"isShellCommand": true, | ||
"showOutput": "always", | ||
"isBuildCommand": true, | ||
"taskName": "prettier eslint", | ||
"args": ["./node_modules/.bin/prettier-eslint", "--write", "--prettier-last", "${file}"] | ||
"args": [ | ||
"./node_modules/.bin/prettier-eslint", | ||
"--write", | ||
"--prettier-last", | ||
"${file}" | ||
], | ||
"problemMatcher": [], | ||
"group": { | ||
"_id": "build", | ||
"isDefault": false | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "0.1.0", | ||
"tasks": [ | ||
{ | ||
"command": "node", | ||
"isShellCommand": true, | ||
"showOutput": "always", | ||
"isBuildCommand": true, | ||
"taskName": "prettier eslint", | ||
"args": ["./node_modules/.bin/prettier-eslint", "--write", "--prettier-last", "${file}"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../../site-demo/content/product/components/list/react/paddings.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/site-demo/content/product/components/list/react/clickable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { List, ListItem, ListSubheader, Size } from '@lumx/react'; | ||
import React from 'react'; | ||
|
||
export const App = () => ( | ||
<List> | ||
<ListItem linkProps={{ href: '#' }}>Clickable list item</ListItem> | ||
<ListItem linkProps={{ href: '#' }} isDisabled> | ||
Disabled clickable list item | ||
</ListItem> | ||
<ListItem linkProps={{ href: '#' }} isHighlighted> | ||
Highlighted clickable list item | ||
</ListItem> | ||
<ListItem linkProps={{ href: '#' }} isSelected> | ||
Selected clickable list item | ||
</ListItem> | ||
</List> | ||
); |
46 changes: 46 additions & 0 deletions
46
packages/site-demo/content/product/components/list/react/paddings.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { List, ListItem, ListSubheader, Size } from '@lumx/react'; | ||
import React from 'react'; | ||
|
||
export const App = () => ( | ||
<div> | ||
<List> | ||
<ListSubheader>Default</ListSubheader> | ||
|
||
<ListItem size={Size.big} className="lumx-color-background-dark-L6"> | ||
<div> | ||
<span>Two-line item</span> | ||
</div> | ||
|
||
<div> | ||
<span className="lumx-color-font-dark-L2">Secondary text</span> | ||
</div> | ||
</ListItem> | ||
</List> | ||
<List itemPadding={Size.big}> | ||
<ListSubheader>Big padding</ListSubheader> | ||
|
||
<ListItem size={Size.big} className="lumx-color-background-dark-L6"> | ||
<div> | ||
<span>Two-line item</span> | ||
</div> | ||
|
||
<div> | ||
<span className="lumx-color-font-dark-L2">Secondary text</span> | ||
</div> | ||
</ListItem> | ||
</List> | ||
<List itemPadding={Size.huge}> | ||
<ListSubheader>Huge padding</ListSubheader> | ||
|
||
<ListItem size={Size.big} className="lumx-color-background-dark-L6"> | ||
<div> | ||
<span>Two-line item</span> | ||
</div> | ||
|
||
<div> | ||
<span className="lumx-color-font-dark-L2">Secondary text</span> | ||
</div> | ||
</ListItem> | ||
</List> | ||
</div> | ||
); |