Cecile Tonglet
848204863c
Card: should always use Option<Callback> and not just Callback
...
If you don't do this, the user can't pass an Option<Callback> at all.
2023-11-07 13:59:40 +01:00
Cecile Tonglet
b01e006371
Tree: fix node not visibly disabled
2023-11-07 10:46:55 +01:00
Cecile Tonglet
e5b5a5585a
Upgrade to Yew 0.21 ( #174 )
2023-10-08 14:34:16 +02:00
Cecile Tonglet
6061517742
Fix: do not auto-detect color scheme preference by default
2023-05-17 14:25:01 +02:00
Cecile Tonglet
ad55431263
Implement Dialog and Alert ( #172 )
2023-05-17 14:00:02 +02:00
Simon Bihel
31a3ba8946
Add grow_vertically to TextArea ( #171 )
...
This change replicates the behaviour on Blueprint.
Improvements could include:
1. adding support for the `value` property and generating the element
with the appropriate height; and
2. reduce the height when text is deleted.
Close #158
2023-04-24 09:57:21 +02:00
amos
071bbd6d06
Capture pointer synchronously ( #169 )
...
This was an attempt at addressing:
https://github.com/yewprint/yewprint/pull/168#issuecomment-1496578935
but it doesn't fully work around what I think is a Firefox bug (until
proven innocent).
Anyway it does simplify some bits of the code and it probably seems wise
to react to the DOM event before returning from the event listener (I'm
not sure how yew event dispatching works internally).
2023-04-05 14:16:33 +01:00
amos
bbd613206a
Make Slider component work on touch devices ( #168 )
...
blueprintjs, even on v4, apparently only works on desktop targets (it
uses mouse events), but I'm using yewprint for _something_ and I needed
it to work on mobile devices. It seems pointer events + pointer capture
is the way to go in 2023, so that's what this uses!
Tested on Chrome macOS, Firefox macOS, Safari macOS, and Chrome Android
and it works fine. You can drag starting from the handle or starting
from anywhere on the slider itself, you can still move the pointer
up/down outside the slider while holding it, focusing the handle + using
arrow keys still works as before.
I guess the only breaking change is that you can move the slider with a
secondary mouse button now, but since PointerEvent inherits from
MouseEvent it might be possible to re-add that restriction, if anyone
cares about it enough.
2023-04-04 20:34:33 +02:00
Cecile Tonglet
f91f5810be
HtmlSelect: fix handling of unchanged option selection ( #167 )
2023-03-01 15:50:38 +01:00
Cecile Tonglet
b71f69ade9
Use Cell instead of RefCell ( #166 )
2023-02-07 08:05:16 +01:00
Cecile Tonglet
f5fdb429b6
Implement Debug and ImplicitClone for TreeData ( #164 )
2023-02-01 10:17:54 +01:00
Cecile Tonglet
2edd2a02b3
HtmlSelect: make sure selection is updated after render ( #163 )
2023-01-30 15:52:58 +01:00
Cecile Tonglet
dc92f18b65
Allow ratio or percentage in <ProgressBar/> ( #162 )
2022-12-19 17:32:15 +01:00
Cecile Tonglet
ba9b1746f4
Add components Portal and Overlay ( #161 )
2022-12-19 16:49:06 +01:00
Cecile Tonglet
b6a6004fcf
Rewrite Icon API ( #160 )
2022-12-14 17:42:43 +01:00
Cecile Tonglet
933d4c569c
Version CSS again to prevent issues ( #159 )
2022-12-14 11:06:44 +01:00
Yohan Boogaert
3e58abab37
Update dependencies ( #154 )
...
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
2022-12-14 10:26:26 +01:00
Cecile Tonglet
70aa7a0736
Remove incorrect placeholder in class ( #157 )
2022-12-12 08:03:16 +01:00
Yohan Boogaert
c0e980e148
Add a way to search for icons ( #150 )
2022-11-22 13:06:39 +01:00
Cecile Tonglet
34ae2cb198
Collapse: fix class wrongly applied to body ( #149 )
2022-09-19 16:17:09 +02:00
Cecile Tonglet
90ce9a15a6
Fix HtmlSelect not resetting properly when value changed ( #145 )
2022-08-22 16:15:22 +02:00
Yohan Boogaert
b36ba41637
Fix routing issues ( #144 )
...
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
2022-07-14 23:41:38 +02:00
Forest Anderson
3f96db6a7e
Yewprint upgrade 0.19 ( #131 )
...
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
Co-authored-by: Francois Stephany <francois@tamere.eu>
2022-06-28 09:57:14 +01:00
Yohan Boogaert
25be039090
Replace wasm-run by xtask-wasm ( #138 )
2022-05-09 19:20:26 +02:00
Cecile Tonglet
b8358f3ceb
Fix CSS version to v3 ( #135 )
2022-04-04 18:23:59 +02:00
Cecile Tonglet
d6f41b0c1e
Clean-up & updates before publishing
2021-11-23 10:09:27 +01:00
Cecile Tonglet
1aae88fa40
Add command to update Blueprint CSS ( #111 )
...
* Add command to update Blueprint CSS
* Actually update CSS
2021-06-10 11:15:21 +02:00
Yohan Boogaert
fea5f0a000
Use wasm-run to build yewprint ( #104 )
2021-04-13 16:23:12 +02:00
Cecile Tonglet
bd1bb35d6e
Use docs-theme from blueprint ( #24 )
2020-09-27 14:49:05 +02:00
Cecile Tonglet
8a7c0ee6ff
Use classes within html ( #23 )
2020-09-27 11:37:03 +02:00
Cecile Tonglet
f5bc807ec2
Syntax color for examples ( #19 )
2020-09-25 21:47:11 +02:00
Cecile Tonglet
f150225017
Title, logo and netlify link ( #14 )
2020-09-24 18:05:00 +02:00
Yohan Boogaert
cdbd52cc17
Move docs to their own modules ( #11 )
2020-09-24 09:55:48 +02:00
Cecile Tonglet
ead6db471d
Macro to generate examples & fix CI ( #9 )
2020-09-23 18:33:41 +02:00
Cecile Tonglet
a4178c58f9
Revert "Added text component ( #7 )"
...
This reverts commit bd93ee3048
.
2020-09-23 18:15:19 +02:00
Valentine-mario
bd93ee3048
Added text component ( #7 )
2020-09-23 18:04:27 +02:00
Cecile Tonglet
768cb68384
Move menu to the left ( #8 )
2020-09-23 15:59:07 +02:00
Yohan Boogaert
be7614df9d
Split doc ( #6 )
...
* i have split the doc about collapse
* splited the doc about Switch
* splited doc about icon
* splited the doc about buttons
2020-09-21 18:59:46 +02:00
Cecile Tonglet
792c31ac86
Move Tree's doc to tree module
2020-09-21 17:07:46 +02:00
Cecile Tonglet
e7a1e9df78
Base for doc-like website to demo and help development
2020-09-20 19:02:25 +02:00
Cecile Tonglet
e0da08cf6a
Remove perf test tweaks
2020-09-19 14:26:19 +02:00
Cecile Tonglet
de2b121443
Tree: increase to 500**2 to test performance
2020-09-18 21:20:16 +02:00
Cecile Tonglet
eafd9bc339
CLEANUP
2020-09-16 18:39:38 +02:00
Cecile Tonglet
cf69038772
Real performance improvement
2020-09-16 18:24:02 +02:00
Cecile Tonglet
bf5f801fd1
Possible performance improvement
2020-09-14 22:25:16 +02:00
Cecile Tonglet
846c3896f5
Partially resolve performance issue
2020-09-14 22:05:50 +02:00
Cecile Tonglet
95763ad1e7
Tree: use iter syntax
2020-09-14 21:59:40 +02:00
Cecile Tonglet
48d477d61c
Tree: performance test
2020-09-14 21:53:02 +02:00
Cecile Tonglet
913798243d
Tree: NodeData impl Clone if possible
2020-09-14 21:35:48 +02:00
Cecile Tonglet
3c5a8af353
Tree: clean-up: less pubs, impl Default if possible
2020-09-14 21:32:08 +02:00