Skip to content

Commit

Permalink
♻️ Rename files.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Oct 26, 2024
1 parent 564ba2d commit c341c3f
Show file tree
Hide file tree
Showing 130 changed files with 462 additions and 333 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/container/layout/aside.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct AsideLayoutProps {
pub struct Props {
#[prop_or(256)]
pub width: u32,

Expand All @@ -11,7 +11,7 @@ pub struct AsideLayoutProps {
}

#[styled_component]
pub fn AsideLayout(props: &AsideLayoutProps) -> Html {
pub fn AsideLayout(props: &Props) -> Html {
html! {
<aside
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/layout/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ impl Into<Html> for ContainerLayoutVariant {
}

#[derive(Properties, Debug, PartialEq)]
pub struct ContainerLayoutProps {
pub struct Props {
#[prop_or_default]
pub children: ChildrenRenderer<ContainerLayoutVariant>,
}

#[styled_component]
pub fn ContainerLayout(props: &ContainerLayoutProps) -> Html {
pub fn ContainerLayout(props: &Props) -> Html {
let is_vertical = if props.children.iter().any(|child| {
matches!(
child,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/layout/footer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct FooterLayoutProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn FooterLayout(props: &FooterLayoutProps) -> Html {
pub fn FooterLayout(props: &Props) -> Html {
html! {
<header
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/layout/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct HeaderLayoutProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn HeaderLayout(props: &HeaderLayoutProps) -> Html {
pub fn HeaderLayout(props: &Props) -> Html {
html! {
<header
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/layout/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct MainLayoutProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn MainLayout(props: &MainLayoutProps) -> Html {
pub fn MainLayout(props: &Props) -> Html {
html! {
<main
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/place/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct ColumnProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Column(props: &ColumnProps) -> Html {
pub fn Column(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/place/divider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct DividerProps {
pub struct Props {
#[prop_or(false)]
pub is_vertical: bool,

Expand All @@ -11,7 +11,7 @@ pub struct DividerProps {
}

#[styled_component]
pub fn Divider(props: &DividerProps) -> Html {
pub fn Divider(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/place/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct GridProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Grid(props: &GridProps) -> Html {
pub fn Grid(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/place/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct RowProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Row(props: &RowProps) -> Html {
pub fn Row(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/place/skeleton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct SkeletonProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Skeleton(props: &SkeletonProps) -> Html {
pub fn Skeleton(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/place/space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct SpaceProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Space(props: &SpaceProps) -> Html {
pub fn Space(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/system/draggable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct DraggableProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Draggable(props: &DraggableProps) -> Html {
pub fn Draggable(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/system/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct ModalProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Modal(props: &ModalProps) -> Html {
pub fn Modal(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/system/resizable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct ResizableProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Resizable(props: &ResizableProps) -> Html {
pub fn Resizable(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/container/system/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct ScrollableProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Scrollable(props: &ScrollableProps) -> Html {
pub fn Scrollable(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/data/block/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct CardProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Card(props: &CardProps) -> Html {
pub fn Card(props: &Props) -> Html {
html! {
<button
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/data/block/carousel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct CarouselProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Carousel(props: &CarouselProps) -> Html {
pub fn Carousel(props: &Props) -> Html {
html! {
<button
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/data/block/collapse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct CollapseProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Collapse(props: &CollapseProps) -> Html {
pub fn Collapse(props: &Props) -> Html {
html! {
<button
class={css!(r#"
Expand Down
44 changes: 0 additions & 44 deletions packages/components/src/data/block/list.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct TypographyProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Typography(props: &TypographyProps) -> Html {
pub fn ListItem(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
pub mod item;

use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct LinearProgressProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn LinearProgress(props: &LinearProgressProps) -> Html {
pub fn List(props: &Props) -> Html {
html! {
<div
class={css!(r#"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/data/block/masonry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use stylist::yew::styled_component;
use yew::prelude::*;

#[derive(Properties, Debug, PartialEq)]
pub struct MasonryProps {
pub struct Props {
#[prop_or_default]
pub children: Children,
}

#[styled_component]
pub fn Masonry(props: &MasonryProps) -> Html {
pub fn Masonry(props: &Props) -> Html {
html! {
<button
class={css!(r#"
Expand Down
Loading

0 comments on commit c341c3f

Please sign in to comment.