Commit Graph

166 Commits

Author SHA1 Message Date
Masen Furer
2392c52928
Implement on_mount and on_unmount for all components. (#1636) 2023-08-30 09:50:39 -07:00
Martin Xu
82dc237f44
Revert "Use DebounceInput wrapper for fully controlled Editable" (#1670) 2023-08-23 17:16:03 -07:00
Elijah Ahianyo
217a5806ee
Validate component children (#1647) 2023-08-23 15:56:27 -07:00
Martin Xu
d884b7ba96
Use DebounceInput wrapper for fully controlled Editable (#1650) 2023-08-21 14:25:56 -07:00
Masen Furer
042710ca91
Handle file uploads with component-local state (#1616) 2023-08-18 13:12:17 -07:00
Masen Furer
26e45c1f18
format_dict: only unescape quotes when removing outer quotes (#1609) 2023-08-17 09:45:25 -07:00
Nikhil Rao
6d15326abf
Support f-strings in component children and non-style props (#1575) 2023-08-14 11:33:16 -07:00
Masen Furer
4a658ef9be
Wrap Input and TextArea with DebounceInput for full control (#1484) 2023-08-07 14:27:42 -07:00
Elijah Ahianyo
d4abf5ff2b
Update tests for Foreach (#1394) 2023-07-21 11:49:55 -07:00
Masen Furer
bfec196d84
Expose Script component from next/script (#1355) 2023-07-18 18:57:50 -07:00
Nikhil Rao
139ce38df1
Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
TaiJuWu
0531d611dc
feature: support custom attribute for components (#1085) 2023-05-26 11:49:57 -07:00
Nikhil Rao
9485127c1c
Handle multi-select (#1082) 2023-05-26 10:50:16 -07:00
Elijah Ahianyo
368b79f160
pc table validation (#1075) 2023-05-24 13:14:27 -07:00
Elijah Ahianyo
bb1cf4322e
Foreach support for other data structures(dict, set, tuple) (#1029) 2023-05-17 16:11:41 -07:00
Elijah Ahianyo
0c33ad19f6
bugfix for upload event (#1042) 2023-05-17 10:08:11 -07:00
Alek Petuskey
4a580b54ff
Visual CLI improvements (#1032) 2023-05-16 20:42:53 -07:00
Nikhil Rao
e6a679d3a3
Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
Nikhil Rao
98f1b30735
Fix event default call (#1031) 2023-05-15 21:10:42 -07:00
Nikhil Rao
948ec90fc4
Add pc.form component (#929) 2023-05-14 22:34:10 -07:00
Elijah Ahianyo
139e4cf05b
Update upload event to use queue (#1005) 2023-05-12 16:44:16 -07:00
iron3oxide
32f3a387ae
Rename var module to vars (#983) 2023-05-09 23:01:25 -07:00
PeterYusuke
3b88e7c329
[Fix 477] Use jinja2 for templating (#915) 2023-05-09 14:34:47 -07:00
Thomas Brandého
893c0b132e
Make argument optional for event handlers (#950) 2023-05-06 13:10:35 -07:00
Elijah Ahianyo
18c715670a
Revamp Imports (#926) 2023-05-04 22:11:01 -07:00
Nikhil Rao
1a254aca8e
Add pc.set_value (#835) 2023-04-29 19:01:37 -07:00
Nikhil Rao
60323a3aec
Revert fstrings change (#895) 2023-04-27 14:36:20 -07:00
Nikhil Rao
23a23d437c
Fix f-strings in props (#891) 2023-04-26 21:20:40 -07:00
Nikhil Rao
f0346506d7
Allow fstrings as component children (#890) 2023-04-26 19:32:51 -07:00
Nikhil Rao
e03e5f8033
Use Python truthiness in pc.cond (#889) 2023-04-26 17:16:38 -07:00
Elijah Ahianyo
29945504bc
Dynamic vars initialization unit tests(#880) 2023-04-26 14:41:47 -07:00
Elijah Ahianyo
a52145e52a
Python 3.10 tag issubclass bug: (#832) 2023-04-17 10:08:43 -07:00
Masen Furer
c3148d348c
component.get_hooks: inject hook code into component func (#810) 2023-04-15 22:10:17 -07:00
Elijah Ahianyo
e8387c8e26
Fix Event chaining in the on_load event handler return not working (#773)
* Fix Event chaining in the on_load event handler return not working

* added async tests

* addressed comments
2023-04-06 22:26:43 -07:00
Nikhil Rao
8eea6ac822
Add component memoization (#770) 2023-04-03 17:38:56 -07:00
Elijah Ahianyo
50cdfac24c
bugfix/723: pc.data_table not working well with pandas as computed vars (#745)
* bugfix/723: pc.data_table not working well with pandas as computed vars

Turns out this isnt really a bug. You need to specify an annotation for the computed var to work. This Pr adds a check for annotations on computed vars for data tables

* added more validation for column field
2023-04-02 16:49:50 -07:00
Elijah Ahianyo
1fdc01fa56
Bugfix: 719-File-upload-props-not-working (#738) 2023-03-29 18:26:02 -07:00
iron3oxide
7067baf176
Refactor utils module (#666) 2023-03-16 14:59:27 -07:00
Nikhil Rao
2ee8c73d5a
Add error message for invalid var ops (#664) 2023-03-11 21:11:59 -08:00
Elijah Ahianyo
e106b7aedf
Bugfix for properly rendering datatables (#638) 2023-03-07 13:50:04 -08:00
Nikhil Rao
3491955995
Fix format dict props (#641) 2023-03-06 17:38:21 -08:00
Nikhil Rao
d74efb9bff
Fix cond component render (#639) 2023-03-06 16:45:10 -08:00
Nikhil Rao
8ba22ed92d
Factor out responsive helpers (#624) 2023-03-03 13:29:17 -08:00
Xiaojing Chen
37edaa2f6b
[Fix: issue 582] Icon tag should work despite case sensitivity. (#588) 2023-02-21 17:32:34 -08:00
Nikhil Rao
f88d4ce4b4
Add tests for pc.icon (#562) 2023-02-17 12:01:30 -08:00
Nikhil Rao
47eebe0ea5
Clean up cond vars (#536) 2023-02-13 15:27:03 -08:00
Nikhil Rao
0bd8f6acfc
Add keypress event handlers (#523) 2023-02-12 13:12:57 -08:00
叶子
1529a23c1b
Switch linter to ruff (#450) 2023-02-09 11:33:18 -08:00
Nikhil Rao
eb723b6ebe
Add compile error for invalid event handlers (#482) 2023-02-08 16:27:13 -08:00
Robert Neumann
fdf0e9ea6b
Add --no-zip pc CLI Parameter (#479) 2023-02-08 14:39:38 -08:00
Nikhil Rao
8958f14778
Allow pc.cond without else case (#453) 2023-02-05 17:50:34 -08:00
Elijah Ahianyo
00479362df
Allow conditional props (#359) 2023-02-02 00:22:44 -08:00
Tommy Dew
f7e35771e9
Relax type requirement on pc.cond (#323) 2023-01-23 20:20:19 -08:00
Nikhil Rao
d376d2972b
Support dataframes as state vars (#324) 2023-01-23 18:47:21 -08:00
Atharva Shah
2ccbfff223
General code cleanup (#312) 2023-01-22 10:58:07 -08:00
Nikhil Rao
7f0aa4f5c4
Fix custom component imports (#246) 2023-01-11 11:34:46 -08:00
Alek Petuskey
876cf13344
Updated Victory Group/Stack (#231) 2023-01-08 23:36:51 -08:00
Alek Petuskey
2d5cb4a561
Added victory graphs. (#214) 2023-01-05 17:38:54 -08:00
Nikhil Rao
3f27ce3442
Fix component decorator bugs (#203) 2023-01-04 15:20:33 -08:00
Nikhil Rao
d93e2cec00
Add decorator for custom components (#193) 2023-01-02 16:08:00 -08:00
Nikhil Rao
9ecadcc646
Improve prop error messages (#84)
* Add better error messages for component props
2022-12-13 11:31:57 -08:00
Nikhil Rao
dd26dd044b
Add style for code blocks. (#32)
* Rename github actions file
* Update custom code
* Add theme for code blocks
2022-12-06 01:22:57 -08:00
Nikhil Rao
c4b1f2c669
Create Github Action for pytest (#12) 2022-11-21 18:50:59 -08:00
Nikhil Rao
29e37350e5
Add basic unit tests (#7)
* Unit tests for components, state, and utils
2022-11-20 14:34:25 -08:00
Nikhil Rao
2008417bd7 Clean up tags. 2022-11-18 17:48:51 -08:00
Nikhil Rao
e8e8eaa010 Initial commit. 2022-11-18 12:44:06 -08:00