mirror of
https://github.com/maputnik/editor.git
synced 2026-08-29 16:37:25 +00:00
Fixed more input accessibility issues, also
- Added searchParams based router for easier testing - Added more stories to the storybook
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
import React from 'react';
|
||||
import LayerList from '../src/components/LayerList';
|
||||
import {action} from '@storybook/addon-actions';
|
||||
import {Wrapper} from './ui';
|
||||
import {withA11y} from '@storybook/addon-a11y';
|
||||
|
||||
|
||||
export default {
|
||||
title: 'LayerList',
|
||||
component: LayerList,
|
||||
decorators: [withA11y],
|
||||
};
|
||||
|
||||
export const Basic = () => (
|
||||
<Wrapper>
|
||||
<div style={{width: "200px"}}>
|
||||
<LayerList
|
||||
layers={[
|
||||
{
|
||||
id: "background",
|
||||
type: "background",
|
||||
},
|
||||
{
|
||||
id: "water",
|
||||
type: "fill",
|
||||
source: "openmaptiles"
|
||||
},
|
||||
{
|
||||
id: "road_trunk",
|
||||
type: "line",
|
||||
source: "openmaptiles"
|
||||
},
|
||||
{
|
||||
id: "road_minor",
|
||||
type: "line",
|
||||
source: "openmaptiles"
|
||||
},
|
||||
{
|
||||
id: "building",
|
||||
type: "fill",
|
||||
source: "openmaptiles"
|
||||
},
|
||||
]}
|
||||
selectedLayerIndex={0}
|
||||
onLayersChange={() => {}}
|
||||
onLayerSelect={() => {}}
|
||||
onLayerDestroy={() => {}}
|
||||
onLayerCopy={() => {}}
|
||||
onLayerVisibilityToggle={() => {}}
|
||||
onMoveLayer={() => {}}
|
||||
sources={{}}
|
||||
errors={[]}
|
||||
/>
|
||||
</div>
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user