mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 08:34:15 -05:00
feat: upgrade leptos to 0.5.0-beta2
This commit is contained in:
parent
9b09478665
commit
3e4e39a394
5 changed files with 15 additions and 27 deletions
|
@ -13,10 +13,10 @@ license = "MIT"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
leptos = { version = "0.5.0-beta", features = ["csr"] }
|
leptos = { version = "0.5.0-beta2", features = ["csr"] }
|
||||||
stylers = { git = "https://github.com/abishekatp/stylers", rev = "4bfd2df" }
|
stylers = { git = "https://github.com/abishekatp/stylers", rev = "4bfd2df" }
|
||||||
web-sys = { version = "0.3.62", features = ["DomRect"] }
|
web-sys = { version = "0.3.62", features = ["DomRect"] }
|
||||||
leptos_dom = { version = "0.5.0-beta" }
|
leptos_dom = { version = "0.5.0-beta2" }
|
||||||
wasm-bindgen = "0.2.85"
|
wasm-bindgen = "0.2.85"
|
||||||
icondata = { version = "0.0.7", features = [
|
icondata = { version = "0.0.7", features = [
|
||||||
"AiCloseOutlined",
|
"AiCloseOutlined",
|
||||||
|
|
|
@ -6,12 +6,12 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
leptos = { version = "0.5.0-beta", features = ["csr"] }
|
leptos = { version = "0.5.0-beta2", features = ["csr"] }
|
||||||
melt-ui = { path = "../" }
|
melt-ui = { path = "../" }
|
||||||
icondata = { version = "0.0.7", features = [
|
icondata = { version = "0.0.7", features = [
|
||||||
"AiCloseOutlined",
|
"AiCloseOutlined",
|
||||||
"AiCheckOutlined",
|
"AiCheckOutlined",
|
||||||
] }
|
] }
|
||||||
leptos_router = { version = "0.5.0-beta", features = ["csr"] }
|
leptos_router = { version = "0.5.0-beta2", features = ["csr"] }
|
||||||
indoc = "2.0.1"
|
indoc = "2.0.1"
|
||||||
regex = "1.8.2"
|
regex = "1.8.2"
|
||||||
|
|
|
@ -10,12 +10,6 @@ pub fn App() -> impl IntoView {
|
||||||
<Route path="/" view=move || view! {
|
<Route path="/" view=move || view! {
|
||||||
<Home />
|
<Home />
|
||||||
} />
|
} />
|
||||||
<Route path="/menu" view=move || view! {
|
|
||||||
<MenuPage />
|
|
||||||
} />
|
|
||||||
<Route path="/slider" view=move || view! {
|
|
||||||
<SliderPage />
|
|
||||||
} />
|
|
||||||
<Route path="/components" view=move || view! {
|
<Route path="/components" view=move || view! {
|
||||||
<ComponentsPage />
|
<ComponentsPage />
|
||||||
} >
|
} >
|
||||||
|
@ -56,15 +50,13 @@ pub fn App() -> impl IntoView {
|
||||||
<SelectPage />
|
<SelectPage />
|
||||||
} />
|
} />
|
||||||
</Route>
|
</Route>
|
||||||
</Routes>
|
<Route path="/mobile/tabbar" view=move || view! {
|
||||||
<Routes base="/melt-ui/mobile".to_string()>
|
|
||||||
<Route path="/tabbar" view=move || view! {
|
|
||||||
<TabbarPage />
|
<TabbarPage />
|
||||||
} />
|
} />
|
||||||
<Route path="/nav-bar" view=move || view! {
|
<Route path="/mobile/nav-bar" view=move || view! {
|
||||||
<NavBarPage />
|
<NavBarPage />
|
||||||
} />
|
} />
|
||||||
<Route path="/toast" view=move || view! {
|
<Route path="/mobile/toast" view=move || view! {
|
||||||
<ToastPage />
|
<ToastPage />
|
||||||
} />
|
} />
|
||||||
</Routes>
|
</Routes>
|
||||||
|
|
|
@ -45,19 +45,19 @@ pub fn Icon(
|
||||||
svg = svg.attr(
|
svg = svg.attr(
|
||||||
"width",
|
"width",
|
||||||
Attribute::String(match (width, icon.width) {
|
Attribute::String(match (width, icon.width) {
|
||||||
(Some(a), Some(_b)) => std::borrow::Cow::from(a.get()),
|
(Some(a), Some(_b)) => Oco::from(a.get()),
|
||||||
(Some(a), None) => std::borrow::Cow::from(a.get()),
|
(Some(a), None) => Oco::from(a.get()),
|
||||||
(None, Some(_b)) => std::borrow::Cow::from("1em"),
|
(None, Some(_b)) => Oco::from("1em"),
|
||||||
(None, None) => std::borrow::Cow::from("1em"),
|
(None, None) => Oco::from("1em"),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
svg = svg.attr(
|
svg = svg.attr(
|
||||||
"height",
|
"height",
|
||||||
Attribute::String(match (height, icon.height) {
|
Attribute::String(match (height, icon.height) {
|
||||||
(Some(a), Some(_b)) => std::borrow::Cow::from(a.get()),
|
(Some(a), Some(_b)) => Oco::from(a.get()),
|
||||||
(Some(a), None) => std::borrow::Cow::from(a.get()),
|
(Some(a), None) => Oco::from(a.get()),
|
||||||
(None, Some(_b)) => std::borrow::Cow::from("1em"),
|
(None, Some(_b)) => Oco::from("1em"),
|
||||||
(None, None) => std::borrow::Cow::from("1em"),
|
(None, None) => Oco::from("1em"),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
if let Some(view_box) = icon.view_box {
|
if let Some(view_box) = icon.view_box {
|
||||||
|
|
|
@ -31,24 +31,20 @@ impl CommonTheme {
|
||||||
fn common() -> Self {
|
fn common() -> Self {
|
||||||
Self {
|
Self {
|
||||||
font_family: "-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'".into(),
|
font_family: "-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'".into(),
|
||||||
|
|
||||||
color_primary: "".into(),
|
color_primary: "".into(),
|
||||||
color_success: "".into(),
|
color_success: "".into(),
|
||||||
color_warning: "".into(),
|
color_warning: "".into(),
|
||||||
color_error: "".into(),
|
color_error: "".into(),
|
||||||
|
|
||||||
font_size: "14px".into(),
|
font_size: "14px".into(),
|
||||||
font_size_small: "12px".into(),
|
font_size_small: "12px".into(),
|
||||||
font_size_medium: "16px".into(),
|
font_size_medium: "16px".into(),
|
||||||
font_size_large: "20px".into(),
|
font_size_large: "20px".into(),
|
||||||
font_size_huge: "24px".into(),
|
font_size_huge: "24px".into(),
|
||||||
|
|
||||||
line_height: "22px".into(),
|
line_height: "22px".into(),
|
||||||
line_height_small: "20px".into(),
|
line_height_small: "20px".into(),
|
||||||
line_height_medium: "24px".into(),
|
line_height_medium: "24px".into(),
|
||||||
line_height_large: "28px".into(),
|
line_height_large: "28px".into(),
|
||||||
line_height_huge: "32px".into(),
|
line_height_huge: "32px".into(),
|
||||||
|
|
||||||
border_radius: "3px".into(),
|
border_radius: "3px".into(),
|
||||||
border_radius_small: "2px".into(),
|
border_radius_small: "2px".into(),
|
||||||
border_radius_medium: "4px".into(),
|
border_radius_medium: "4px".into(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue