Files
OpenNoodl/packages/noodl-core-ui/src/components/property-panel
Michael Cartner b9c60b07dc Initial commit
Co-Authored-By: Eric Tuvesson <eric.tuvesson@gmail.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: Anders Larsson <64838990+anders-topp@users.noreply.github.com>
Co-Authored-By: Johan  <4934465+joolsus@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: victoratndl <99176179+victoratndl@users.noreply.github.com>
2024-01-26 11:52:55 +01:00
..
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00
2024-01-26 11:52:55 +01:00

Components are very basic at the moment, bnut here is the philosophy

  • everything is not properly styled yet, and not all components are built, but at least its a start :D
  • components are isoloated from rest of design system and are not using any components outside of components/property-panel. this is so that we can bundle them separately for the future editor SDK. maybe this has to be rethought in the future.
  • PropertyPanelInput takes a config object and returns the type of input specified
  • all components are controlled
  • value is sent through value prop, other details are sent with the properties prop
  • the typable inputs save the value in a displayedInputValue state to allow for a decoupling of updating the value and showing it. this is done to allow manipulating the value before storing it. storing is done on enter press or blur.