Baptiste de Montangon
487fdce9a9
fixed some warnings and an error with a untyped into
2024-08-22 22:49:30 +02:00
Maccesch
eb73bff3cd
merged changes from Baptiste
...
Closes #156
2024-08-22 17:47:06 +01:00
Maccesch
f44ef05466
merged main
2024-08-22 17:08:21 +01:00
Maccesch
52d3bf33f8
Merge branch 'main' into leptos-0.7
...
# Conflicts:
# Cargo.toml
# src/core/storage.rs
# src/lib.rs
# src/use_clipboard.rs
# src/use_cookie.rs
# src/use_mouse.rs
# src/use_mouse_in_element.rs
# src/use_preferred_dark.rs
# src/use_timeout_fn.rs
2024-08-22 13:45:56 +01:00
Maccesch
b07b6b7cfd
added features for every function.
...
fixes #152
2024-08-22 13:37:32 +01:00
Hector Candelaria
4ff32e7dce
Docs: Correct default value for silent
field
...
- Updated comments to reflect that the default value for `silent` is
`null`, not `false`.
2024-08-21 21:54:03 -04:00
Hector Candelaria
9cb0e386aa
Feat: Add vibrate
field to use_web_notification
...
- Implemented `vibrate` option in `UseWebNotificationOptions` and
`ShowOptions` structures allowing specifying vibration patterns for
notifications.
2024-08-21 21:54:03 -04:00
Marc-Stefan Cassola
480b1fa4ee
Merge pull request #88 from luckynumberke7in/main
...
Add methods to UseDocument
2024-08-21 22:03:11 +01:00
Ke7in
44cab1027d
fix cargo fmt issues
...
Forgot to set up "cargo fmt" on save --new system.
2024-08-21 16:41:04 -04:00
Ke7in
09b08f64f5
Update "hidden" in use_document
...
Changed to hide elements by default on server.
2024-08-20 21:40:23 -04:00
Marc-Stefan Cassola
9874f80c84
Merge pull request #153 from hcandelaria/use_prefers_reduced_motion
...
Feat: Add prefers-reduced-motion API implementation
2024-08-19 11:35:11 +01:00
Hector Candelaria
9f8adfc1f1
Chore: Apply cargo fmt
to ensure code formatting compliance
...
Reformatted the code to pass `cargo fmt --check`
2024-08-18 18:57:04 -04:00
Hector Candelaria
0021e4aed5
Docs: Add BooleanDisplay
import to demo
...
Included the `BooleanDisplay` import in the demo.
2024-08-18 18:43:35 -04:00
Hector Candelaria
f5a37f6c7f
Docs: Update See also references in media query functions
...
- Added `use_prefers_reduced_motion` in the documentation for
`use_media_query`, `use_preferred_contrast`, and `use_preferred_dark`
functions to include links to related functions.
2024-08-18 17:19:50 -04:00
Hector Candelaria
6d57bdf7f5
Feat: Add prefers-reduced-motion
API implementation
...
Implemented the `use_prefers_reduced_motion` function to create a
reactive interface for detecting the user's reduced motion preference
via the `prefers-reduced-motion` media query.
2024-08-18 17:17:06 -04:00
Maccesch
8324c70742
release 0.12.0
2024-08-14 03:43:00 +01:00
Marc-Stefan Cassola
30e6c9351b
Merge pull request #146 from carloskiki/mouse-coord-type
...
Rework of `UseMouseCoordType`
2024-08-14 03:31:46 +01:00
Marc-Stefan Cassola
ee7934fd7d
Merge branch 'main' into mouse-coord-type
2024-08-14 03:26:14 +01:00
Charles Edward Gagnon
f245bf07d0
fix some clippy lints
2024-08-13 22:11:43 -04:00
Maccesch
d2e968249b
updated changelog
2024-08-13 18:36:18 +01:00
Maccesch
16a65b100d
fixed the codecs chapter in the book to refer to crate codee
2024-08-13 18:32:50 +01:00
Maccesch
26a2dc0e4b
added support for Sec-CH-Prefers-Color-Scheme header.
...
Fixes #101
Relates to #121
2024-08-13 16:19:19 +01:00
Maccesch
b1367a9f0b
chore: clippy
2024-08-13 13:56:13 +01:00
Marc-Stefan Cassola
2a1f532b0b
Merge branch 'main' into mouse-coord-type
2024-08-13 13:50:16 +01:00
Maccesch
61c112c140
typo
2024-08-13 13:47:07 +01:00
Maccesch
d4330c9fb1
use_local now uses LanguageIdentifier and proper matching.
...
Also removed a bunch of deprecated warnings.
Closes #144
2024-08-13 13:45:36 +01:00
Maccesch
1c9bbb6b08
clipboard is no longer behind unstable flags
2024-08-13 02:17:50 +01:00
Maccesch
294cbaf222
updated to latest version of web_sys
2024-08-13 02:10:35 +01:00
Marc-Stefan Cassola
5d1d8ad28f
Merge pull request #147 from Baptistemontan/fix_non_exhaustive
...
fixed an error for a match on a non exhaustive enum
2024-08-13 01:55:48 +01:00
Baptiste
6d0e946b5a
fixed a error for a match on a non exhaustive enum
2024-08-13 02:40:46 +02:00
Charles Edward Gagnon
72cc82713d
remove useless code churn
...
remove useless type
2024-08-12 20:39:46 -04:00
Charles Edward Gagnon
5d6d55dd89
update changelog
2024-08-12 20:35:51 -04:00
Charles Edward Gagnon
cb889066ce
fix build issues
2024-08-12 20:34:11 -04:00
Charles Edward Gagnon
31f019a944
make it take Some again
2024-08-12 20:27:04 -04:00
Charles Edward Gagnon
0b7e8af995
chore: fmt;
2024-08-12 20:01:53 -04:00
Charles Edward Gagnon
fe7d51c70f
fix building issues
2024-08-12 20:01:08 -04:00
Charles Edward Gagnon
e795c1f8f3
make UseMouseEventExtractor
not return an option
...
This makes it so that `Movement` always returns (0., 0.)
2024-08-12 19:55:33 -04:00
Maccesch
bca46e8256
updated leptos dependencies to master
2024-08-12 21:59:19 +01:00
Maccesch
cef0e68121
added assign_ltr and assign_rtl to sync_signal
2024-08-12 12:25:07 +01:00
Marc-Stefan Cassola
ceab77dba2
Merge pull request #145 from Upbolt/leptos-0.7
...
fix: include missing `send_wrapper` import in `use_device_orientation.rs`
2024-08-06 13:23:44 +01:00
Upbolt
9f622b6b72
include missing send_wrapper import in use_device_orientation
2024-08-06 05:20:06 -07:00
Maccesch
c42605c1ad
removed a bunch of warnings and test compile errors
2024-08-04 21:13:30 +01:00
Marc-Stefan Cassola
3e8fd64aa5
Merge pull request #143 from CorvusPrudens/leptos-0.7
...
`LocalStorage` integration
2024-08-04 20:44:28 +01:00
CorvusPrudens
204c5e10b6
Fixed up import order
2024-08-03 23:49:16 -06:00
CorvusPrudens
bbe4e66648
Added newer spawn paths
2024-08-03 23:44:56 -06:00
CorvusPrudens
08884d75e0
Merge remote-tracking branch 'upstream/leptos-0.7' into leptos-0.7
2024-08-03 23:41:08 -06:00
CorvusPrudens
feb585362e
Removed all trivial SendWrappers
2024-08-03 23:28:09 -06:00
Maccesch
d32d725731
updated changelog
2024-08-01 16:16:26 +01:00
Marc-Stefan Cassola
8d8169861c
Merge pull request #142 from hcandelaria/use_web_notification
...
Feat: Enhance `UseWebNotificationOptions` and `ShowOptions` with additional fields
2024-08-01 16:08:38 +01:00
Hector Candelaria
2a8a2b81e4
Doc: fixed typo
2024-08-01 01:15:37 -04:00