Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 5 additions & 122 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions crates/rustmotion-components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@ usvg = "0.44"
tiny-skia = "0.11"
qrcode = "0.14"
gif = "0.13"
syntect = { version = "5", default-features = false, features = ["default-fancy"] }
similar = "2"
thorvg = { version = "0.5", optional = true }
dashmap = { version = "6", optional = true }
7 changes: 7 additions & 0 deletions crates/rustmotion-components/src/avatar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ impl AvatarStatus {
}

#[derive(Debug, Serialize, Deserialize, JsonSchema)]
#[deprecated(
since = "0.7.1",
note = "`avatar` is a frozen composition (issue #333). Compose a circular avatar from a \
`shape` (`circle`) or a circle-clipped `image` instead — see \
crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; \
scheduled for removal in a future major version via `rustmotion migrate` (#335)."
)]
pub struct Avatar {
pub src: String,
#[serde(default = "default_avatar_size")]
Expand Down
8 changes: 8 additions & 0 deletions crates/rustmotion-components/src/avatar_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ pub struct AvatarGroupItem {
}

#[derive(Debug, Serialize, Deserialize, JsonSchema)]
#[deprecated(
since = "0.7.1",
note = "`avatar_group` is a frozen composition (issue #333). Compose a stacked group \
from repeated avatar `shape`s/`image`s in a row with negative `margin-left` \
overlap instead — see crates/rustmotion/skills/rules/composition-recipes.md. \
Kept for compatibility; scheduled for removal in a future major version via \
`rustmotion migrate` (#335)."
)]
pub struct AvatarGroup {
pub avatars: Vec<AvatarGroupItem>,
#[serde(default)]
Expand Down
8 changes: 8 additions & 0 deletions crates/rustmotion-components/src/badge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ impl BadgeSize {
}

#[derive(Debug, Serialize, Deserialize, JsonSchema)]
#[deprecated(
since = "0.7.1",
note = "`badge` is a frozen composition (issue #333). Compose a rounded `div`/`card` \
pill + `icon` + `text` instead — see \
crates/rustmotion/skills/rules/composition-recipes.md and \
examples/composition-pill-row.json. Kept for compatibility; scheduled for \
removal in a future major version via `rustmotion migrate` (#335)."
)]
pub struct Badge {
pub text: String,
#[serde(default)]
Expand Down
Loading
Loading