Implement error handling #41

Merged
BobdaFett merged 15 commits from feat/error-handling into main 2026-01-06 19:06:07 +00:00
9 changed files with 22 additions and 10 deletions
Showing only changes of commit f08fee1246 - Show all commits

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
mod multi;
mod single;
pub use {
multi::*, single::*
};
@@ -2,8 +2,8 @@ use crate::common::ValueType;
use crate::components::utils::create_unique_id; use crate::components::utils::create_unique_id;
use leptos::prelude::*; use leptos::prelude::*;
use std::collections::HashMap; use std::collections::HashMap;
use super::utils::use_selectable_list;
use crate::components::ValidationState; use crate::components::ValidationState;
use crate::components::lists::use_selectable_list;
/// # Checkbox Component /// # Checkbox Component
/// This component should only be used from within a [`CheckboxList`] component. /// This component should only be used from within a [`CheckboxList`] component.
@@ -81,8 +81,6 @@ pub fn Checkbox(
} }
} }
/// # Checkbox List Component /// # Checkbox List Component
/// This component creates a list of checkboxes, each with a specific value. The values are passed /// This component creates a list of checkboxes, each with a specific value. The values are passed
/// through a prop rather than manually creating children. /// through a prop rather than manually creating children.
@@ -3,7 +3,7 @@ use crate::components::utils::create_unique_id;
use leptos::prelude::*; use leptos::prelude::*;
use std::collections::HashMap; use std::collections::HashMap;
use crate::components::ValidationState; use crate::components::ValidationState;
use crate::components::lists::use_selectable_list; use super::utils::use_selectable_list;
/// # Chip Component /// # Chip Component
/// ///
+6
View File
@@ -0,0 +1,6 @@
mod utils;
mod checkbox;
mod chips;
pub use checkbox::*;
pub use chips::*;
File renamed without changes.
+5
View File
@@ -0,0 +1,5 @@
pub mod radio;
pub mod select;
pub use radio::*;
pub use select::*;
File renamed without changes.
File renamed without changes.
+3 -6
View File
@@ -1,20 +1,17 @@
mod action_button; mod action_button;
mod banner; mod banner;
mod checkbox;
mod chips;
mod dashboard_button; mod dashboard_button;
mod loading; mod loading;
mod multi_entry; mod multi_entry;
mod panel; mod panel;
mod radio;
mod row; mod row;
mod select;
mod text_field; mod text_field;
mod utils; mod utils;
mod validated_form; mod validated_form;
mod lists; mod lists;
pub use self::{ pub use self::{
action_button::*, banner::*, checkbox::*, chips::*, dashboard_button::*, loading::*, action_button::*, banner::*, dashboard_button::*, lists::*,
multi_entry::*, panel::*, radio::*, row::*, select::*, text_field::*, validated_form::* loading::*, multi_entry::*, panel::*, row::*, text_field::*,
validated_form::*
}; };