chore: update dependencies
This commit is contained in:
@@ -684,7 +684,6 @@ impl Render for WelcomePanel {
|
||||
|
||||
ScrollArea::new("welcome-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(
|
||||
v_flex()
|
||||
.gap_4()
|
||||
@@ -822,7 +821,7 @@ impl Render for ButtonDemo {
|
||||
("destructive", ButtonVariant::Destructive),
|
||||
];
|
||||
|
||||
ScrollArea::new("button-demo").size_full().p_4().child(
|
||||
ScrollArea::new("button-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_4()
|
||||
.child(demo_section(
|
||||
@@ -981,7 +980,7 @@ impl Render for InputDemo {
|
||||
fn render(&mut self, _window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
|
||||
let colors = cx.theme().colors;
|
||||
|
||||
ScrollArea::new("input-demo").size_full().p_4().child(
|
||||
ScrollArea::new("input-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(
|
||||
@@ -1070,7 +1069,6 @@ impl Render for FieldDemo {
|
||||
|
||||
ScrollArea::new("field-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"block",
|
||||
colors,
|
||||
@@ -1144,7 +1142,6 @@ impl Render for StatusDotDemo {
|
||||
|
||||
ScrollArea::new("status-dot-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"variants",
|
||||
colors,
|
||||
@@ -1320,7 +1317,6 @@ impl Render for ComboboxDemo {
|
||||
|
||||
ScrollArea::new("combobox-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"keep unmatched",
|
||||
colors,
|
||||
@@ -1380,7 +1376,6 @@ impl Render for CheckboxDemo {
|
||||
|
||||
ScrollArea::new("checkbox-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"states",
|
||||
colors,
|
||||
@@ -1423,7 +1418,6 @@ impl Render for RadioDemo {
|
||||
|
||||
ScrollArea::new("radio-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"plans",
|
||||
colors,
|
||||
@@ -1460,7 +1454,6 @@ impl Render for SwitchDemo {
|
||||
|
||||
ScrollArea::new("switch-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"states",
|
||||
colors,
|
||||
@@ -1503,7 +1496,6 @@ impl Render for ToggleDemo {
|
||||
|
||||
ScrollArea::new("toggle-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"states",
|
||||
colors,
|
||||
@@ -1539,7 +1531,7 @@ impl Render for SliderDemo {
|
||||
let view = cx.entity();
|
||||
let colors = cx.theme().colors;
|
||||
|
||||
ScrollArea::new("slider-demo").size_full().p_4().child(
|
||||
ScrollArea::new("slider-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -1578,7 +1570,7 @@ impl Render for SegmentedDemo {
|
||||
let view_large = view.clone();
|
||||
let colors = cx.theme().colors;
|
||||
|
||||
ScrollArea::new("segmented-demo").size_full().p_4().child(
|
||||
ScrollArea::new("segmented-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -1660,7 +1652,6 @@ impl Render for SelectDemo {
|
||||
|
||||
ScrollArea::new("select-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"options",
|
||||
colors,
|
||||
@@ -1707,7 +1698,7 @@ impl Render for LinkDemo {
|
||||
let view = cx.entity();
|
||||
let colors = cx.theme().colors;
|
||||
|
||||
ScrollArea::new("link-demo").size_full().p_4().child(
|
||||
ScrollArea::new("link-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -1756,7 +1747,6 @@ impl Render for ClipboardDemo {
|
||||
|
||||
ScrollArea::new("clipboard-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"sizes",
|
||||
colors,
|
||||
@@ -1791,7 +1781,6 @@ impl Render for SeparatorDemo {
|
||||
|
||||
ScrollArea::new("separator-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"horizontal",
|
||||
colors,
|
||||
@@ -1852,7 +1841,6 @@ impl Render for ResizableDemo {
|
||||
|
||||
ScrollArea::new("resizable-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"vertical",
|
||||
colors,
|
||||
@@ -1884,7 +1872,6 @@ impl Render for BadgeDemo {
|
||||
|
||||
ScrollArea::new("badge-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"variants",
|
||||
colors,
|
||||
@@ -1924,7 +1911,6 @@ impl Render for AvatarDemo {
|
||||
|
||||
ScrollArea::new("avatar-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"pictures, with a seeded pixel-art fallback",
|
||||
colors,
|
||||
@@ -1960,7 +1946,6 @@ impl Render for ProgressDemo {
|
||||
|
||||
ScrollArea::new("progress-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"determinite and indeterminate",
|
||||
colors,
|
||||
@@ -1986,7 +1971,6 @@ impl Render for SpinnerDemo {
|
||||
|
||||
ScrollArea::new("spinner-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"spinning and determinate",
|
||||
colors,
|
||||
@@ -2028,7 +2012,7 @@ impl Render for ListDemo {
|
||||
let view = cx.entity();
|
||||
let colors = cx.theme().colors;
|
||||
|
||||
ScrollArea::new("list-demo").size_full().p_4().child(
|
||||
ScrollArea::new("list-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -2209,7 +2193,6 @@ impl Render for TreeDemo {
|
||||
|
||||
ScrollArea::new("tree-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"outline",
|
||||
colors,
|
||||
@@ -2251,7 +2234,7 @@ impl Render for TabsDemo {
|
||||
let colors = cx.theme().colors;
|
||||
let pill_count = self.pill_tabs.len();
|
||||
|
||||
ScrollArea::new("tabs-demo").size_full().p_4().child(
|
||||
ScrollArea::new("tabs-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -2371,7 +2354,7 @@ impl Render for AlertDemo {
|
||||
let alerts_clear = self.alerts.clone();
|
||||
let colors = cx.theme().colors;
|
||||
|
||||
ScrollArea::new("alert-demo").size_full().p_4().child(
|
||||
ScrollArea::new("alert-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -2464,7 +2447,6 @@ impl Render for ToastDemo {
|
||||
|
||||
ScrollArea::new("toast-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"temporary, one at a time",
|
||||
colors,
|
||||
@@ -2534,7 +2516,6 @@ impl Render for DialogDemo {
|
||||
|
||||
ScrollArea::new("dialog-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"window-modal, mounted at the window root",
|
||||
colors,
|
||||
@@ -2614,7 +2595,6 @@ impl Render for CommandPaletteDemo {
|
||||
|
||||
ScrollArea::new("command-palette-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"window-modal, mounted at the window root",
|
||||
colors,
|
||||
@@ -2667,7 +2647,6 @@ impl Render for MenuDemo {
|
||||
|
||||
ScrollArea::new("menu-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"trigger and items",
|
||||
colors,
|
||||
@@ -2858,7 +2837,6 @@ impl Render for DropdownMenuDemo {
|
||||
|
||||
ScrollArea::new("dropdown-menu-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
@@ -2895,7 +2873,6 @@ impl Render for ContextMenuDemo {
|
||||
|
||||
ScrollArea::new("context-menu-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
@@ -2953,7 +2930,6 @@ impl Render for PopoverDemo {
|
||||
|
||||
ScrollArea::new("popover-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"anchored to its trigger",
|
||||
colors,
|
||||
@@ -2994,7 +2970,6 @@ impl Render for TooltipDemo {
|
||||
|
||||
ScrollArea::new("tooltip-demo")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.child(demo_section(
|
||||
"hover the buttons",
|
||||
colors,
|
||||
@@ -3040,7 +3015,7 @@ impl Render for EmptyStateDemo {
|
||||
let colors = theme.colors;
|
||||
let radius = theme.radius;
|
||||
|
||||
ScrollArea::new("empty-state-demo").size_full().p_4().child(
|
||||
ScrollArea::new("empty-state-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3104,7 +3079,7 @@ impl Render for ScrollAreaDemo {
|
||||
.child(format!("Wide row {row} — scroll right"))
|
||||
});
|
||||
|
||||
ScrollArea::new("scroll-area-demo").size_full().p_4().child(
|
||||
ScrollArea::new("scroll-area-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3171,7 +3146,7 @@ impl Render for ScrollbarDemo {
|
||||
let visibility = self.visibility;
|
||||
let view = cx.entity();
|
||||
|
||||
ScrollArea::new("scrollbar-demo").size_full().p_4().child(
|
||||
ScrollArea::new("scrollbar-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3378,7 +3353,7 @@ impl Render for CodeViewDemo {
|
||||
let view = cx.entity();
|
||||
let line_count = self.code.read(cx).code().lines.len();
|
||||
|
||||
ScrollArea::new("code-view-demo").size_full().p_4().child(
|
||||
ScrollArea::new("code-view-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3556,7 +3531,7 @@ impl Render for DiffViewDemo {
|
||||
.filter(|row| row.kind == DiffRowKind::Removed)
|
||||
.count();
|
||||
|
||||
ScrollArea::new("diff-view-demo").size_full().p_4().child(
|
||||
ScrollArea::new("diff-view-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3714,7 +3689,7 @@ impl Render for MarkdownViewDemo {
|
||||
.filter(|block| matches!(block, MarkdownBlock::Heading { .. }))
|
||||
.count();
|
||||
|
||||
ScrollArea::new("markdown-view-demo").size_full().p_4().child(
|
||||
ScrollArea::new("markdown-view-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3770,7 +3745,7 @@ impl Render for SidebarDemo {
|
||||
let colors = theme.colors;
|
||||
let radius = theme.radius;
|
||||
|
||||
ScrollArea::new("sidebar-demo").size_full().p_4().child(
|
||||
ScrollArea::new("sidebar-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3852,7 +3827,7 @@ impl Render for ResizeDemo {
|
||||
let radius = theme.radius;
|
||||
let width = self.width;
|
||||
|
||||
ScrollArea::new("resize-demo").size_full().p_4().child(
|
||||
ScrollArea::new("resize-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_3()
|
||||
.child(demo_section(
|
||||
@@ -3956,7 +3931,7 @@ impl Render for ThemeDemo {
|
||||
("subtle", theme.ramps.primary.subtle),
|
||||
];
|
||||
|
||||
ScrollArea::new("theme-demo").size_full().p_4().child(
|
||||
ScrollArea::new("theme-demo").size_full().child(
|
||||
v_flex()
|
||||
.gap_4()
|
||||
.child(demo_section(
|
||||
|
||||
Reference in New Issue
Block a user