Commit graph

58 commits

Author SHA1 Message Date
Gustav Hansen
0e00f43356 Upgrade react-reconciler to support hooks, run prettier Fixes #200 2019-02-16 13:45:02 -05:00
Niklas Mischkulnig
6d2d32f6fc More Area features (#168)
* Add scrolling area

* Gradients

* Fix typo and add scrolling to area docs

* Implement imperative gradient api

As per discussion in #130

* Fix links in area documentation

* Update example for area gradients

* Add docs for new gradient api

* Format all docs with prettier

* Really fix docs hyperlinks

* Added to docs: ignore ...opacity for gradients
2018-11-08 18:04:32 -08:00
Niklas Mischkulnig
2cce542067 Remove old code in Window (#176)
There is no UiWindow.center() function in libui-node anymore and the centered prop wasn't documented in proton-native.
2018-09-17 17:53:07 -04:00
Maciej Sopyło
20819de675 feat: add size getters to the Area component (#174)
* feat: add `onSizeChanged` event to the Area component

* Remove area exposure and fix area example

* Update documentation
2018-09-06 12:50:55 -07:00
Niklas Mischkulnig
ca789cbc00 Fix updating of AreaText/-Group children (#172)
* Fix conditional rendering of children in Area

* Fix updating of Area.Text

Closes #171

* Add Demo.js to prettier script

* Fixup for AreaText
2018-09-01 09:54:43 -04:00
Gustav Hansen
b30c828b95
Make hotloading and forceUpdate work (#164) 2018-07-27 19:09:10 -04:00
kusti8
77da61bb19 Render child after reparent. Fixes #161 2018-07-07 09:54:58 -04:00
Niklas Mischkulnig
178c0903b3 Font fixes (#155)
* Fix AreaText crash

* Add x and y to AreaText doc
2018-06-09 16:35:36 -04:00
Niklas Mischkulnig
06ee92d1f7 Add styled text (#141)
* Proof of concept fonts

* Inheirit font style

* Use style prop

* More font attributes

* Reset demo

* Fixes

* Font example

* Text transforms, integrate FontButton

* Add docs

* Add StyledText

* Update package lock

* Add StyledText to prop checking

* Update documentation for StyledText

* Add markdown prettier

* Change default font size
2018-06-09 14:04:49 -04:00
kusti8
995314ff22 Add insertBefore and fix RadioButton.Item handling Fixes #152 and #148 2018-06-01 18:37:23 -04:00
Gustav Hansen
c8b00d9ae4
Add min and max for slider (#133)
* Add min max support for slider

* Reset demo

* Don't destroy children elements for slider

* Prevent slider from resetting when recreated

* Reset value for slider when beyond max or min. Cleanup code

* Add to documentation
2018-05-21 16:35:23 -04:00
Niklas Mischkulnig
02b9bb3e81 Area fixup (#126)
* Area fixup

* Translate key event paramters

* More fixups

* Add count to mousedown
2018-05-18 18:48:27 -04:00
Niklas Mischkulnig
52b2ebe8fb Fix ColorButton color format (#136)
* Fix ColorButton onChange (closes #135)

* Make RGB integers
2018-05-18 18:47:24 -04:00
kusti8
d8530c7f76 If statement allowed color to keep on being set. Fixes #132 2018-05-16 18:19:11 -04:00
devin.zhang
686e77e52e Message bug fixed for Dialog component (#121) 2018-05-11 18:18:14 -04:00
Niklas Mischkulnig
b43fb50bec Devtools (#112)
* Fix devtools

* Refactor

* Quit properly with devtools
2018-05-07 17:57:46 -04:00
Vincenzo Ciaccio
d56eca7207 - propTypes fixes (#110)
- adding .idea/ to gitignore
2018-05-06 13:17:34 -04:00
Niklas Mischkulnig
6cdae1a4e3 Fix ColorButton (#107) 2018-05-06 13:01:06 -04:00
kusti8
51e28c1c08 Add about page. Fixes #98 2018-05-04 15:54:52 -04:00
kusti8
d0152ca07e If the closed prop is triggered, check if we can quit. Fixes #85 2018-05-02 19:57:58 -04:00
kusti8
fecf817fa4 Passed incorect thing to child render. Fixed #86 2018-05-02 19:20:19 -04:00
Niklas Mischkulnig
7bb6fa589f Area (#78)
* Area

* Update, percentages as values, transforms!

* Rename Area elements, Circle, CSS colors

* Transform: matrix, skew

* Add Path

* Add fill & stroke options, fix transforms

* Inheriting props

* Fix area events, start on documentation

* Complete documentation

* Properly apply transforms, complete sidebar

* Use dot for Area components, fix Circle

* Add held buttons for onMouseMove

* Fix transform=scale for now

* Fill mode for Area.Path

* Fixes for windows

* Complete area_props list

* Throw on unimplement path commands

* More sophisticated path example

* Cleanup

* More helpful error message
2018-05-02 19:05:27 -04:00
kusti8
6801d2da7a Add support for deleting window. Fixes #73 2018-03-30 10:54:23 -04:00
kusti8
2e9ffb56b9 Add warning for more than one child in Window and Group. Fixes #66 2018-03-30 10:38:44 -04:00
kusti8
53a82c3380 Override update for onShouldQuit. Fixes #72 2018-03-30 10:21:48 -04:00
Niklas Mischkulnig
c3a528945a Update for libui-node 0.1.0 (#57)
* Update for libui-node 0_1_0

- Use native eventloop
- position got removed

* Update libui-node version to 0.1.0

* babel rebuild

* Cleanup

* Fix non-check menu items

* Make quit menu work

* Add onShouldQuit to App and expose to user

* Remove bin
2018-03-22 09:48:12 -04:00
Gustav Hansen
cf1c9c2d3c Remove JSX from src/ 2018-03-21 09:43:09 -04:00
Niklas Mischkulnig
57896ffed9 Fix crash with Quit menu item on Windows (#56)
* Fix crash with Quit menu item on Windows

* Bump version
2018-03-18 09:59:28 -04:00
Alejandro Ñáñez Ortiz
1def07691d prettier + improve early returns (#52) 2018-03-17 13:16:11 -04:00
Alejandro Ñáñez Ortiz
7741dd2fcc Add types constants. (#50)
* Add types constants.
Remove extra space in documentation

* remove unnecesary file
2018-03-07 18:37:44 -05:00
Alejandro Ñáñez Ortiz
453f4ab9fc code cleanup (#44) 2018-03-06 15:50:28 -05:00
Alejandro Ñáñez Ortiz
14997b2875 Refactor components props (#38) 2018-03-02 19:08:47 -05:00
Alejandro Ñáñez Ortiz
a73f131f07 remove multiple if statements from Dialog component (#25)
* remove multiple if statements from Dialog component

* update typo

* add return statement
2018-02-25 22:28:07 -05:00
liuyanghejerry
d9c89ac30c Making setInterval imported from timers (#30) 2018-02-25 22:24:57 -05:00
kusti8
291ad2bfcf Move to react naming conventions. Fixes #9 2018-02-22 22:54:39 -05:00
kusti8
e7966e6fcb Add notes example. Fixes #1 2018-02-15 21:45:02 -05:00
kusti8
1b3de3278c Add own custom event_loop. Fixes #5 2018-02-15 20:55:26 -05:00
kusti8
593b04889d Forgot to build 2018-02-14 18:36:00 -05:00
kusti8
e10f481861 Add Dialog docs. Docs are finished 2018-02-14 16:40:14 -05:00
kusti8
700addc379 [WIP] add docs and unfinished tab doc 2018-02-13 23:07:58 -05:00
kusti8
e77d3aa927 Fix stretchy not working 2018-02-11 20:08:44 -05:00
kusti8
f42f4dddd6 Fix children default and add some docs 2018-02-10 23:42:41 -05:00
kusti8
584e22daa7 Remove print statements 2018-02-10 22:30:39 -05:00
kusti8
0b6072827f Add font button 2018-02-10 22:21:27 -05:00
kusti8
86fdbf4853 Add menu 2018-02-10 12:17:10 -05:00
kusti8
415cabc7a7 Add bin and docs 2018-02-10 09:47:50 -05:00
kusti8
5afef7fe2a Add combobox and radiobox 2018-02-09 23:47:47 -05:00
kusti8
56ffca255a Add checkbox, grid, slider, and spinbox 2018-02-07 21:49:52 -05:00
kusti8
fad4b90e7a Pretty everything up 2018-02-06 21:42:28 -05:00
kusti8
48e1e62f54 Add universal props 2018-02-06 21:38:11 -05:00