Commit Graph

10 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
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
2fa6859035
Support rest of form components in pc.form (#1070) 2023-05-24 10:34:22 -07:00
Nikhil Rao
948ec90fc4
Add pc.form component (#929) 2023-05-14 22:34:10 -07:00
Nikhil Rao
f7138bd53f
Add upload component (#622) 2023-03-03 19:38:58 -08:00
Nikhil Rao
8c8b2396fc
Add password component (#519) 2023-02-12 09:57:42 -08:00
Dong-hyeon Shin
526e417e8f
Add copy to clipboard component (#380) 2023-01-29 11:19:20 -08:00
Nikhil Rao
e8e8eaa010 Initial commit. 2022-11-18 12:44:06 -08:00