Skip to content

Commit f89aff8

Browse files
committed
Merge branch 'main' into pr/f67d5120-add-autofocus-support
2 parents 191391c + 1374b01 commit f89aff8

File tree

112 files changed

+1493
-593
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1493
-593
lines changed

.github/workflows/backend-checks-linux.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ on:
88
branches: [main, master]
99
jobs:
1010
backend-checks:
11-
strategy:
12-
matrix:
13-
os: [ubuntu-latest, ubuntu-24.04-arm64]
14-
runs-on: ${{ matrix.os }}
11+
runs-on: ubuntu-latest
1512
defaults:
1613
run:
1714
working-directory: src

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Layout.Vertical()
106106
| new Badge("Bottom");
107107

108108
// Nested layouts with alignment
109-
Layout.Vertical().Align(Align.Center)
109+
Layout.Vertical().AlignContent(Align.Center)
110110
| Text.Label("Header")
111111
| (Layout.Horizontal()
112112
| new Button("Previous")

src/.releases/Ivy-Framework

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 143a471e94462e94f0a636e6f55403118b9ef709
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Rename Align → AlignContent / AlignSelf
2+
3+
## Summary
4+
5+
The `Align` property on StackLayout, TableCell, and FloatingPanel has been renamed to clarify intent:
6+
- `AlignContent` — aligns children within the container (StackLayout, TableCell)
7+
- `AlignSelf` — positions the widget within its parent (FloatingPanel)
8+
9+
## What Changed
10+
11+
### Backend (C#)
12+
13+
- `StackLayout.Align``StackLayout.AlignContent`
14+
- `TableCell.Align``TableCell.AlignContent`
15+
- `FloatingPanel.Align``FloatingPanel.AlignSelf`
16+
- Extension methods `.Align()` renamed accordingly
17+
18+
### Frontend (TypeScript)
19+
20+
- `align` prop → `alignContent` on StackLayout and TableCell widgets
21+
- `align` prop → `alignSelf` on FloatingPanel widget
22+
23+
## Before
24+
25+
new StackLayout() { Align = Align.Center }
26+
new TableCell().Align(Align.Left)
27+
new FloatingPanel(align: Align.BottomRight)
28+
29+
## After
30+
31+
new StackLayout() { AlignContent = Align.Center }
32+
new TableCell().AlignContent(Align.Left)
33+
new FloatingPanel(alignSelf: Align.BottomRight)
34+
35+
## Migration Path
36+
37+
1. Replace `.Align(` with `.AlignContent(` on StackLayout and TableCell
38+
2. Replace `.Align(` with `.AlignSelf(` on FloatingPanel
39+
3. Replace property initializer `Align =` with `AlignContent =` / `AlignSelf =`
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Rename CardHoverVariant → HoverEffect
2+
3+
## Summary
4+
5+
`CardHoverVariant` has been renamed to `HoverEffect` and moved from `Card.cs` to `Ivy.Shared`. This enum is now used by Card, Box, and Image widgets.
6+
7+
## What Changed
8+
9+
### Backend (C#)
10+
11+
- `CardHoverVariant``HoverEffect`
12+
- Enum moved from `Ivy.Widgets.Card` namespace scope to `Ivy` namespace (in `Shared/HoverEffect.cs`)
13+
- Extension method signatures unchanged (`.Hover(HoverEffect variant)`)
14+
15+
### Frontend (TypeScript)
16+
17+
- `BoxHoverVariant` type → `HoverEffect` type
18+
19+
## Before
20+
21+
box.Hover(CardHoverVariant.Shadow)
22+
image.Hover(CardHoverVariant.Pointer)
23+
24+
## After
25+
26+
box.Hover(HoverEffect.Shadow)
27+
image.Hover(HoverEffect.Pointer)
28+
29+
## Migration Path
30+
31+
1. Replace all `CardHoverVariant` with `HoverEffect` in C# code
32+
2. No namespace change needed (both are in `Ivy` namespace)

src/.releases/weekly-notes-2026-03-13.md renamed to src/.releases/weekly-notes-archive/weekly-notes-2026-03-13.md

File renamed without changes.

src/.releases/weekly-notes-2026-03-16.md renamed to src/.releases/weekly-notes-archive/weekly-notes-2026-03-16.md

File renamed without changes.

src/Ivy.Docs.Shared/Docs/01_Onboarding/01_GettingStarted/03_Basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class CounterApp : ViewBase
7575
public override object? Build()
7676
{
7777
var counter = UseState(0);
78-
return Layout.Horizontal().Align(Align.Left)
78+
return Layout.Horizontal().AlignContent(Align.Left)
7979
| new Button("+1", onClick: _ => counter.Set(counter.Value+1))
8080
| new Button("-1", onClick: _ => counter.Set(counter.Value-1))
8181
| counter;
@@ -91,7 +91,7 @@ public class CounterApp : ViewBase
9191
public override object? Build()
9292
{
9393
var counter = UseState(0);
94-
return Layout.Horizontal().Align(Align.Left)
94+
return Layout.Horizontal().AlignContent(Align.Left)
9595
| new Button("+1", onClick: _ => counter.Set(counter.Value+1))
9696
| new Button("-1", onClick: _ => counter.Set(counter.Value-1))
9797
| counter;

src/Ivy.Docs.Shared/Docs/01_Onboarding/01_GettingStarted/05_TodoTutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public class TodoItem(Todo todo, Action deleteTodo, Action toggleTodo) : ViewBas
114114
public override object? Build()
115115
{
116116
return Layout.Vertical()
117-
| (Layout.Horizontal().Align(Align.Center).Width(Size.Full())
117+
| (Layout.Horizontal().AlignContent(Align.Center).Width(Size.Full())
118118
| todo.Done.ToBoolInput().OnChange(_ =>
119119
{
120120
toggleTodo();

src/Ivy.Docs.Shared/Docs/01_Onboarding/02_Concepts/02_Views.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public class CounterView : ViewBase
7272
var count = UseState(0);
7373

7474
return new Card(
75-
Layout.Vertical().Align(Align.Center).Gap(4)
75+
Layout.Vertical().AlignContent(Align.Center).Gap(4)
7676
| Text.P($"{count.Value}")
77-
| (Layout.Horizontal().Gap(2).Align(Align.Center)
77+
| (Layout.Horizontal().Gap(2).AlignContent(Align.Center)
7878
| new Button("-", onClick: _ => count.Set(count.Value - 1))
7979
| new Button("Reset", onClick: _ => count.Set(0))
8080
| new Button("+", onClick: _ => count.Set(count.Value + 1)))

0 commit comments

Comments
 (0)