EQWorks / widget-studio

Widget-creating tool for charts, maps, tables, stats
https://eqworks.github.io/widget-studio/
2 stars 3 forks source link

[G2M] Widget/UI modes #32

Closed vxsl closed 2 years ago

vxsl commented 2 years ago

Preparing to implement the new design, the Widget component now accepts a mode string prop that determines which parts of the UI will be rendered. Previously there was a boolean editor prop that achieved a similar effect but obviously could not accommodate the three desired modes: view-only (view), QL preview (ql), and advanced editor (editor).

On this branch, each mode is of course not fully implemented. This PR is more to establish the structure for fully implementing the different modes. So currently, view is simply a subset of ql which is simply a subset of editor.

The Storybook has been revised to match this change, along with a general reorganization of stories for greater clarity.

github-actions[bot] commented 2 years ago

📚 Storybook preview (updated to 3965d68491969f09509c4c8e30fae6b43356372f)