-
Notifications
You must be signed in to change notification settings - Fork 24
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 #3637 from grommet/add-filter-layer-guidance
add filter layer side drawer guidance
- Loading branch information
Showing
7 changed files
with
216 additions
and
193 deletions.
There are no files selected for viewing
32 changes: 20 additions & 12 deletions
32
aries-site/src/examples/components/button/ToolbarButtonExample.js
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,17 +1,25 @@ | ||
import React from 'react'; | ||
import { Menu } from 'grommet'; | ||
import { | ||
FilterControls, | ||
FiltersProvider, | ||
} from '../../templates/FilterControls'; | ||
Box, | ||
Data, | ||
Toolbar, | ||
DataSearch, | ||
DataFilters, | ||
Menu, | ||
DataSummary, | ||
} from 'grommet'; | ||
import applications from '../../../data/mockData/applications.json'; | ||
|
||
export const ToolbarButtonExample = () => ( | ||
<FiltersProvider> | ||
<FilterControls | ||
actions={<Menu label="Actions" kind="toolbar" />} | ||
data={[]} | ||
filters={[]} | ||
searchFilter={{ placeholder: 'Search' }} | ||
/> | ||
</FiltersProvider> | ||
<Box> | ||
<Data data={applications}> | ||
<Toolbar> | ||
<DataSearch /> | ||
<DataFilters layer /> | ||
<Box flex /> | ||
<Menu label="Actions" kind="toolbar" /> | ||
</Toolbar> | ||
<DataSummary /> | ||
</Data> | ||
</Box> | ||
); |
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
19 changes: 19 additions & 0 deletions
19
aries-site/src/examples/components/layer/DataFiltersAnatomy.js
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,19 @@ | ||
import React from 'react'; | ||
import { Data, DataFilters } from 'grommet'; | ||
import applications from '../../../data/mockData/applications.json'; | ||
|
||
export const DataFiltersAnatomy = () => { | ||
return ( | ||
<Data | ||
data={applications} | ||
properties={{ | ||
publisher: { label: 'Publisher ' }, | ||
pricing: { label: 'Pricing' }, | ||
delivery: { label: 'Delivery' }, | ||
rating: { label: 'Rating' }, | ||
}} | ||
> | ||
<DataFilters layer /> | ||
</Data> | ||
); | ||
}; |
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
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
Oops, something went wrong.