Commit Graph

39 Commits

Author SHA1 Message Date
Masen Furer
aa2a1df201
Add vars and components for working with color_mode (#1132)
* `pc.color_mode`: a BaseVar that accesses colorMode on the frontend
* `pc.color_mode_cond`: a `pc.cond` wrapper that conditionally renders
  components or props based on the value of `color_mode`
* `pc.color_mode_icon`: by default "sun" if light mode, "moon" if dark mode
* `pc.color_mode_switch`: a Switch component where is_checked depends on the
  color_mode and changing the value calls toggle_color_mode
* `pc.color_mode_button`: a Button component that calls toggle_color_mode on click

The default template has been updated to include a color_mode_button with
color_mode_icon for toggling light/dark mode. The inline hover style has also
been updated to use color_mode_cond to show a different highlight color based
on the color_mode.
2023-06-11 23:28:33 -07:00
Elijah Ahianyo
76a64bce1a
Component props docs update (#1176) 2023-06-09 12:10:25 -07:00
Aidan Rauscher
9812ab2a58
Add Date and DateTime Pickers (#1126) 2023-06-04 18:17:26 -07:00
Elijah Ahianyo
45ca318eb2
revert pc select to original (#1123) 2023-06-02 12:34:48 -07:00
Christopher Terrazas
1de615c4b6
Add email component (#1093) 2023-05-27 23:11:01 -07:00
Nikhil Rao
9485127c1c
Handle multi-select (#1082) 2023-05-26 10:50:16 -07:00
Thomas Brandého
e9ca1fd03b
add missing comment form (#1081) 2023-05-25 09:52:57 -07:00
Nikhil Rao
3d8694cc26
Fix pc.select on change handler (#1080) 2023-05-24 16:36:01 -07:00
iron3oxide
706abbc756
Replace Select component with a better one (#1043) 2023-05-24 13:19:07 -07:00
Nikhil Rao
2fa6859035
Support rest of form components in pc.form (#1070) 2023-05-24 10:34:22 -07:00
Nikhil Rao
e6a679d3a3
Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
Nikhil Rao
948ec90fc4
Add pc.form component (#929) 2023-05-14 22:34:10 -07:00
Sheldon
928501662e
move add ref to component level render (#1019) 2023-05-14 19:01:23 -07:00
Alek Petuskey
1aa8501473
Added some more props to components (#953) 2023-05-11 18:55:36 -07:00
Unknown6334
6c60295ba1
Add color_scheme prop to pc.switch (#990) 2023-05-11 17:12:50 -07:00
iron3oxide
32f3a387ae
Rename var module to vars (#983) 2023-05-09 23:01:25 -07:00
Alek Petuskey
272dfc2d7e
Added default val radio group (#961) 2023-05-06 23:07:57 -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
Elijah Ahianyo
3be43bdab1
update checkbox docstring (#850)
added more description to color-scheme docs
2023-04-21 15:04:12 -06:00
Elijah Ahianyo
945ac53dd0
Update upload docstring (#848) 2023-04-19 11:08:31 -07:00
Elijah Ahianyo
e193dd6663
Update button docstring (#849) 2023-04-19 10:58:11 -07:00
Elijah Ahianyo
64d5212f0b
File upload accept types format (#816) 2023-04-13 09:38:31 -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
35ed2839fd
Fix responsive component import errors (#629) 2023-03-04 14:12:47 -08:00
Nikhil Rao
f7138bd53f
Add upload component (#622) 2023-03-03 19:38:58 -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
Nikhil Rao
8c8b2396fc
Add password component (#519) 2023-02-12 09:57:42 -08:00
叶子
1529a23c1b
Switch linter to ruff (#450) 2023-02-09 11:33:18 -08:00
Thomas Brandého
0b2f1369a6
Provide high-level API for most components (#451) 2023-02-05 16:02:21 -08:00
Dong-hyeon Shin
526e417e8f
Add copy to clipboard component (#380) 2023-01-29 11:19:20 -08:00
Dong-hyeon Shin
5aae6a122d
Fix typos (#368) 2023-01-28 09:26:25 -08:00
Atharva Shah
2ccbfff223
General code cleanup (#312) 2023-01-22 10:58:07 -08:00
Kabir Goel
9c3b81ff82
Add size to Input (#143) 2022-12-19 20:33:46 -08:00
Nikhil Rao
622a8ef3c2
Support vars for select and radio (#107) 2022-12-15 00:22:13 -08:00
Nikhil Rao
7ec4b3f8fe
Improve component docs (#35)
* Update component docstrings
* Remove transitions libs
* Add span component
* Add lock files
2022-12-07 15:04:49 -08:00
Nikhil Rao
e8e8eaa010 Initial commit. 2022-11-18 12:44:06 -08:00