Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(docs): add search capability #1682

Merged
merged 34 commits into from
Aug 1, 2019
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f716411
initial implementation of docs search
lucivpav Jul 17, 2019
6c96ff7
open all sections on search
lucivpav Jul 18, 2019
af6cf7b
clean search query on item click
lucivpav Jul 18, 2019
85eaeba
open appropriate section after search item selected
lucivpav Jul 18, 2019
a8a0079
Merge branch 'master' into docs/search
lucivpav Jul 18, 2019
fcd1dfb
update changelog
lucivpav Jul 18, 2019
7d44e61
fix issue with active category
lucivpav Jul 18, 2019
fbd1d58
enable search without search input focused; remove irrelevant comment…
lucivpav Jul 19, 2019
912d665
fix icon padding
lucivpav Jul 19, 2019
36d04ee
Merge branch 'master' into docs/search
alinais Jul 22, 2019
b08da23
small fix and improvements
lucivpav Jul 26, 2019
46473ad
Merge branch 'docs/search' of github.com:stardust-ui/react into docs/…
lucivpav Jul 26, 2019
e7e8482
Merge branch 'master' into docs/search
lucivpav Jul 26, 2019
d1b0124
hide empty sections upon search
lucivpav Jul 26, 2019
cb38e2d
Merge branch 'master' into docs/search
lucivpav Jul 26, 2019
b4a6c9c
respond to comments
lucivpav Jul 26, 2019
1f40d36
Merge branch 'docs/search' of github.com:stardust-ui/react into docs/…
lucivpav Jul 26, 2019
5bd681e
Merge branch 'master' into docs/search
lucivpav Jul 26, 2019
64bdd1c
fix search not getting focused when typing
lucivpav Jul 29, 2019
e6f8f5a
use onActiveIndexChange() instead of reference
lucivpav Jul 29, 2019
57d76ae
use (e,props) when handling event
lucivpav Jul 29, 2019
1f0ccc7
add onActiveIndexChange event to Tree component
lucivpav Jul 29, 2019
328a110
use margin, move icon to the right, fix problem with icon click
lucivpav Jul 29, 2019
bd8117b
remove unnecessary type
lucivpav Jul 29, 2019
2461735
Merge branch 'master' into docs/search
lucivpav Jul 29, 2019
ab6477e
Fix changelog change
lucivpav Jul 29, 2019
a330028
Merge branch 'master' into docs/search
lucivpav Jul 30, 2019
66560ca
small improvements
lucivpav Jul 31, 2019
a5c623a
Merge branch 'master' into docs/search
lucivpav Jul 31, 2019
c9a6101
remove cruft
layershifter Jul 31, 2019
8b7aafd
remove type to avoid any
layershifter Jul 31, 2019
19f5330
improve types
layershifter Jul 31, 2019
a5d3eb5
update styles
layershifter Jul 31, 2019
405cdd5
improve types
layershifter Jul 31, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

### Documentation
- Fix code in changing component variables section of theming examples @lucivpav ([#1626](https://github.com/stardust-ui/react/pull/1626))
- Add search capability @lucivpav ([#1682](https://github.com/stardust-ui/react/pull/1682))

<!--------------------------------[ v0.35.0 ]------------------------------- -->
## [v0.35.0](https://github.com/stardust-ui/react/tree/v0.35.0) (2019-07-26)
Expand Down
8 changes: 4 additions & 4 deletions docs/src/components/DocsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class DocsLayout extends React.Component<any, any> {

renderChildren() {
const { children, render } = this.props
const sidebarWidth = '270px'
const sidebarWidth = '270'

const treeSectionStyle = {
fontWeight: 700,
Expand All @@ -83,7 +83,7 @@ class DocsLayout extends React.Component<any, any> {
textDecoration: 'none',
fontSize: '0.85714286em',
fontWeight: 400,
color: '#ffffff80',
color: 'white',

'& .active': {
fontWeight: 'bold',
Expand Down Expand Up @@ -124,9 +124,9 @@ class DocsLayout extends React.Component<any, any> {
},
})}
>
<Sidebar width={sidebarWidth} />
<Sidebar width={sidebarWidth} treeItemStyle={treeItemStyle} />
</Provider>
<div role="main" style={{ marginLeft: sidebarWidth }}>
<div role="main" style={{ marginLeft: `${sidebarWidth}px` }}>
{render ? render() : children}
</div>
</>
Expand Down
Loading