Skip to content

Commit 9f048db

Browse files
docs: regenerate guide after Factories.Text strip and diagnostic rename
mur docs compile run picks up: - Text(...) unqualified in all 21 guide/*.md (from the Factories.Text strip in doc-app source) - REACTOR_A11Y_001/002/003 in guide/accessibility.md (from the template update in the diagnostic ID rename) A handful of PNGs are also re-captured (navigation, styling, readme, todo-app topics). Pipeline exit 0.
1 parent 55dc53f commit 9f048db

43 files changed

Lines changed: 228 additions & 228 deletions

Some content is hidden

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

docs/guide/accessibility.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class Tier1Demo : Component
1818
public override Element Render()
1919
{
2020
return VStack(12,
21-
Factories.Text("Account Settings")
21+
Text("Account Settings")
2222
.FontSize(24).Bold()
2323
.HeadingLevel(AutomationHeadingLevel.Level1),
24-
Factories.Text("Profile")
24+
Text("Profile")
2525
.FontSize(18).SemiBold()
2626
.HeadingLevel(AutomationHeadingLevel.Level2),
2727
TextField("", _ => { }, placeholder: "Display name")
@@ -68,13 +68,13 @@ class Tier2Demo : Component
6868
.HelpText("Type a product name or SKU to filter results")
6969
.Width(300),
7070
VStack(8,
71-
Factories.Text("Revenue by Region").Bold(),
72-
Factories.Text("Bar chart placeholder").Opacity(0.5)
71+
Text("Revenue by Region").Bold(),
72+
Text("Bar chart placeholder").Opacity(0.5)
7373
).FullDescription(
7474
"Bar chart showing Q1 revenue: East $4.2M, " +
7575
"West $3.8M, Central $2.1M")
7676
.Padding(16).Background("#f5f5f5").CornerRadius(8),
77-
Factories.Text("Decorative divider")
77+
Text("Decorative divider")
7878
.Opacity(0.2)
7979
.AccessibilityHidden()
8080
).Padding(24);
@@ -114,7 +114,7 @@ class AccessibleFormDemo : Component
114114
&& email.Contains('@') && agree;
115115

116116
return VStack(12,
117-
Factories.Text("Create Account").FontSize(24).Bold()
117+
Text("Create Account").FontSize(24).Bold()
118118
.HeadingLevel(AutomationHeadingLevel.Level1),
119119
TextField(name, setName, header: "Full Name")
120120
.AutomationName("Full name").Required().TabIndex(1),
@@ -157,10 +157,10 @@ class LandmarksDemo : Component
157157
.AutomationName("Main navigation"),
158158

159159
VStack(12,
160-
Factories.Text("Dashboard")
160+
Text("Dashboard")
161161
.FontSize(20).Bold()
162162
.HeadingLevel(AutomationHeadingLevel.Level1),
163-
Factories.Text("Welcome back. Here is your overview.")
163+
Text("Welcome back. Here is your overview.")
164164
).Landmark(AutomationLandmarkType.Main)
165165
.AutomationName("Main content"),
166166

@@ -190,20 +190,20 @@ class HeadingHierarchyDemo : Component
190190
public override Element Render()
191191
{
192192
return VStack(12,
193-
Factories.Text("Application Settings")
193+
Text("Application Settings")
194194
.FontSize(24).Bold()
195195
.HeadingLevel(AutomationHeadingLevel.Level1),
196-
Factories.Text("Appearance")
196+
Text("Appearance")
197197
.FontSize(18).SemiBold()
198198
.HeadingLevel(AutomationHeadingLevel.Level2),
199-
Factories.Text("Choose your preferred theme and font size."),
200-
Factories.Text("Notifications")
199+
Text("Choose your preferred theme and font size."),
200+
Text("Notifications")
201201
.FontSize(18).SemiBold()
202202
.HeadingLevel(AutomationHeadingLevel.Level2),
203-
Factories.Text("Email Alerts")
203+
Text("Email Alerts")
204204
.FontSize(15).SemiBold()
205205
.HeadingLevel(AutomationHeadingLevel.Level3),
206-
Factories.Text("Configure which emails you receive.")
206+
Text("Configure which emails you receive.")
207207
).Padding(24);
208208
}
209209
}
@@ -235,8 +235,8 @@ class FocusTrapDemo : Component
235235
When(showModal, () =>
236236
Border(
237237
VStack(12,
238-
Factories.Text("Modal Dialog").FontSize(18).Bold(),
239-
Factories.Text("Tab/Shift+Tab stays inside this panel."),
238+
Text("Modal Dialog").FontSize(18).Bold(),
239+
Text("Tab/Shift+Tab stays inside this panel."),
240240
TextField("", _ => { }, placeholder: "Name")
241241
.TabIndex(0),
242242
Button("Close", () => setShowModal(false))
@@ -284,7 +284,7 @@ class AnnouncementsDemo : Component
284284
}),
285285
Button("Error (Assertive)", () =>
286286
announce.Announce("Connection lost!", assertive: true)),
287-
Factories.Text($"Saves: {count}").Opacity(0.6),
287+
Text($"Saves: {count}").Opacity(0.6),
288288
announce.Region // invisible live region — must be in tree
289289
).Padding(24);
290290
}
@@ -328,7 +328,7 @@ class SemanticPanelDemo : Component
328328
role: "slider",
329329
value: $"{rating} of 5 stars",
330330
rangeMin: 1, rangeMax: 5, rangeValue: rating),
331-
Factories.Text($"Current: {rating}/5").Opacity(0.6)
331+
Text($"Current: {rating}/5").Opacity(0.6)
332332
).Padding(24);
333333
}
334334
}
@@ -392,9 +392,9 @@ as you type in your IDE:
392392

393393
| Diagnostic ID | Rule |
394394
|--------------|------|
395-
| `DUCT_A11Y_001` | Icon-only `Button(icon, action)` calls without `.AutomationName()` |
396-
| `DUCT_A11Y_002` | `Image()` without `.AutomationName()` or `.AccessibilityHidden()` |
397-
| `DUCT_A11Y_003` | `TextField`/`NumberBox`/`PasswordBox` without `header:` arg or label modifier |
395+
| `REACTOR_A11Y_001` | Icon-only `Button(icon, action)` calls without `.AutomationName()` |
396+
| `REACTOR_A11Y_002` | `Image()` without `.AutomationName()` or `.AccessibilityHidden()` |
397+
| `REACTOR_A11Y_003` | `TextField`/`NumberBox`/`PasswordBox` without `header:` arg or label modifier |
398398

399399
These analyzers run automatically when you reference the `Reactor.Analyzers`
400400
package. They complement the runtime `AccessibilityScanner` by catching the

docs/guide/advanced.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class ErrorBoundaryDemo : Component
2424
ErrorBoundary(
2525
Component<BuggyComponent>(),
2626
(Exception ex) => VStack(8,
27-
Factories.Text("Something went wrong").Bold()
27+
Text("Something went wrong").Bold()
2828
.Foreground("#d13438"),
29-
Factories.Text(ex.Message).FontSize(12).Opacity(0.7)
29+
Text(ex.Message).FontSize(12).Opacity(0.7)
3030
).Padding(12)
3131
.Background("#fde7e9")
3232
.CornerRadius(8)
@@ -69,15 +69,15 @@ class MemoSubtreeDemo : Component
6969

7070
return VStack(12,
7171
SubHeading("Memo"),
72-
Factories.Text($"Parent renders: click count = {count}"),
72+
Text($"Parent renders: click count = {count}"),
7373
Button("Increment", () => setCount(count + 1)),
7474
Memo(ctx =>
7575
{
7676
// This subtree only re-renders when label changes
7777
return Border(
7878
VStack(4,
79-
Factories.Text($"Memoized: {label}").Bold(),
80-
Factories.Text("Skips re-render when deps unchanged")
79+
Text($"Memoized: {label}").Bold(),
80+
Text("Skips re-render when deps unchanged")
8181
.FontSize(12).Opacity(0.6)
8282
).Padding(12)
8383
).Background("#f0f0f0").CornerRadius(8);
@@ -117,7 +117,7 @@ class SetEscapeHatchDemo : Component
117117
.SetToolTip(btn, "This is a native tooltip");
118118
btn.Padding = new Thickness(20, 10, 20, 10);
119119
}),
120-
Factories.Text("Styled via .Set()")
120+
Text("Styled via .Set()")
121121
.Set(tb =>
122122
{
123123
tb.TextWrapping = TextWrapping.WrapWholeWords;
@@ -192,7 +192,7 @@ class ObservableTreeDemo : Component
192192
ToggleSwitch(vm.DarkMode, v => vm.DarkMode = v,
193193
header: "Dark Mode"),
194194
Slider(vm.FontSize, 10, 32, v => vm.FontSize = (int)v),
195-
Factories.Text($"Preview: {vm.UserName}")
195+
Text($"Preview: {vm.UserName}")
196196
.FontSize(vm.FontSize).Bold()
197197
).Padding(24);
198198
}
@@ -234,10 +234,10 @@ class ObservableCollectionDemo : Component
234234
{ _tasks.Add(input.Trim()); setInput(""); }
235235
})
236236
),
237-
Factories.Text($"{tasks.Count} tasks:").SemiBold(),
237+
Text($"{tasks.Count} tasks:").SemiBold(),
238238
VStack(4, tasks.Select((task, i) =>
239239
HStack(8,
240-
Factories.Text($"{i + 1}. {task}"),
240+
Text($"{i + 1}. {task}"),
241241
Button("Remove", () => _tasks.RemoveAt(i))
242242
).WithKey($"task-{i}-{task}")
243243
).ToArray())

docs/guide/animation.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class OpacityDemo : Component
2222
SubHeading("Opacity Transition"),
2323
Button(visible ? "Fade Out" : "Fade In",
2424
() => setVisible(!visible)),
25-
Factories.Text("This text fades in and out")
25+
Text("This text fades in and out")
2626
.FontSize(18).Bold()
2727
.Opacity(visible ? 1.0 : 0.0)
2828
.OpacityTransition(TimeSpan.FromMilliseconds(500))
@@ -53,7 +53,7 @@ class ScaleDemo : Component
5353
Button(enlarged ? "Shrink" : "Enlarge",
5454
() => setEnlarged(!enlarged)),
5555
Border(
56-
Factories.Text("Scales up and down").FontSize(18).Bold()
56+
Text("Scales up and down").FontSize(18).Bold()
5757
).Padding(12)
5858
.CornerRadius(8)
5959
.Background("#e8e8e8")
@@ -85,7 +85,7 @@ class TranslationDemo : Component
8585
SubHeading("Translation Transition"),
8686
Button(moved ? "Slide Back" : "Slide Right",
8787
() => setMoved(!moved)),
88-
Factories.Text("Slides horizontally")
88+
Text("Slides horizontally")
8989
.FontSize(18).Bold()
9090
.Translation(moved ? 120f : 0f, 0f, 0f)
9191
.TranslationTransition()
@@ -117,7 +117,7 @@ class BackgroundDemo : Component
117117
Button(warm ? "Cool Colors" : "Warm Colors",
118118
() => setWarm(!warm)),
119119
VStack(8,
120-
Factories.Text("Background animates between colors")
120+
Text("Background animates between colors")
121121
.Foreground("#ffffff").Bold()
122122
).Padding(16)
123123
.CornerRadius(8)
@@ -151,7 +151,7 @@ class CombinedDemo : Component
151151
Button(active ? "Reset" : "Animate",
152152
() => setActive(!active)),
153153
Border(
154-
Factories.Text("All at once").FontSize(16).Bold()
154+
Text("All at once").FontSize(16).Bold()
155155
.Foreground("#ffffff")
156156
).Padding(16)
157157
.CornerRadius(8)
@@ -197,7 +197,7 @@ class LayoutAnimationDemo : Component
197197
l.Count > 0 ? l.Take(l.Count - 1).ToList() : l))
198198
),
199199
VStack(4, items.Select(item =>
200-
Factories.Text(item).Padding(8, 12).Background("#f0f0f0")
200+
Text(item).Padding(8, 12).Background("#f0f0f0")
201201
.CornerRadius(4).LayoutAnimation()
202202
.WithKey($"item-{item}")
203203
).ToArray())
@@ -232,7 +232,7 @@ class ConnectedAnimationDemo : Component
232232
if (selected is not null)
233233
return VStack(12,
234234
Button("Back to list", () => setSelected(null)),
235-
Factories.Text(selected)
235+
Text(selected)
236236
.FontSize(28).Bold()
237237
.ConnectedAnimation($"title-{selected}")
238238
).Padding(24);
@@ -281,7 +281,7 @@ class WithAnimationDemo : Component
281281
setOpacity(opacity > 0.5 ? 0.2 : 1.0);
282282
});
283283
}),
284-
Factories.Text("Compositor-animated via WithAnimation scope")
284+
Text("Compositor-animated via WithAnimation scope")
285285
.FontSize(18).Bold()
286286
.Opacity(opacity)
287287
).Padding(24);
@@ -313,7 +313,7 @@ class AnimateDemo : Component
313313
SubHeading(".Animate() Modifier"),
314314
Button(active ? "Reset" : "Animate", () => setActive(!active)),
315315
Border(
316-
Factories.Text("Spring-animated").FontSize(18).Bold()
316+
Text("Spring-animated").FontSize(18).Bold()
317317
).Padding(12).CornerRadius(8).Background("#e8e8e8")
318318
.Opacity(active ? 0.5 : 1.0)
319319
.Animate(Microsoft.UI.Reactor.Animation.Curve.Spring(0.65f))
@@ -341,17 +341,17 @@ class InteractionStatesDemo : Component
341341
{
342342
return VStack(12,
343343
SubHeading("InteractionStates"),
344-
Factories.Text("Hover and press — zero reconcile, compositor-driven."),
344+
Text("Hover and press — zero reconcile, compositor-driven."),
345345
HStack(12,
346346
Border(
347-
Factories.Text("Hover me").FontSize(16).Bold()
347+
Text("Hover me").FontSize(16).Bold()
348348
.HAlign(HorizontalAlignment.Center).VAlign(VerticalAlignment.Center)
349349
).Padding(16).CornerRadius(8).Size(150, 60).Background("#50C878")
350350
.InteractionStates(s => s
351351
.PointerOver(opacity: 0.85f, scale: 1.05f)
352352
.Pressed(scale: 0.95f, opacity: 0.7f)),
353353
Border(
354-
Factories.Text("Press me").FontSize(16).Bold()
354+
Text("Press me").FontSize(16).Bold()
355355
.HAlign(HorizontalAlignment.Center).VAlign(VerticalAlignment.Center)
356356
).Padding(16).CornerRadius(8).Size(150, 60).Background("#9B59B6")
357357
.InteractionStates(s => s
@@ -388,11 +388,11 @@ class TransitionDemo : Component
388388
Button(visible ? "Hide" : "Show", () => setVisible(!visible)),
389389
visible
390390
? Border(
391-
Factories.Text("Fade + Slide").FontSize(16).Bold()
391+
Text("Fade + Slide").FontSize(16).Bold()
392392
.HAlign(HorizontalAlignment.Center).VAlign(VerticalAlignment.Center)
393393
).Padding(12).CornerRadius(8).Size(200, 60).Background("#E74C3C")
394394
.Transition(Microsoft.UI.Reactor.Animation.Transition.Fade + Microsoft.UI.Reactor.Animation.Transition.Slide(Microsoft.UI.Reactor.Animation.Edge.Bottom))
395-
: (Element)Factories.Text("(removed from tree)")
395+
: (Element)Text("(removed from tree)")
396396
).Padding(24);
397397
}
398398
}
@@ -429,7 +429,7 @@ class StaggerDemo : Component
429429
SubHeading("Staggered Animation"),
430430
Button("Shuffle", () => setItems(items.OrderBy(_ => Random.Shared.Next()).ToArray())),
431431
VStack(4, items.Select(item =>
432-
Factories.Text(item).Padding(8, 12).Background("#f0f0f0")
432+
Text(item).Padding(8, 12).Background("#f0f0f0")
433433
.CornerRadius(4).LayoutAnimation()
434434
.WithKey(item)
435435
).ToArray()).Stagger(TimeSpan.FromMilliseconds(40))
@@ -461,7 +461,7 @@ class KeyframeDemo : Component
461461
SubHeading("Keyframe Animation"),
462462
Button("Pulse!", () => setCount(count + 1)),
463463
Border(
464-
Factories.Text("Pulse target").FontSize(16).Bold()
464+
Text("Pulse target").FontSize(16).Bold()
465465
.HAlign(HorizontalAlignment.Center).VAlign(VerticalAlignment.Center)
466466
).Padding(12).CornerRadius(8).Size(200, 60).Background("#9B59B6")
467467
.Keyframes("pulse", count, kf => kf
@@ -504,7 +504,7 @@ class ChoreographyDemo : Component
504504
await Microsoft.UI.Reactor.Animation.AnimationScope.WithAnimationAsync(
505505
Microsoft.UI.Reactor.Animation.Curve.Spring(0.7f), () => setPhase(2));
506506
}),
507-
Factories.Text($"Phase: {phase}").FontSize(18).Bold()
507+
Text($"Phase: {phase}").FontSize(18).Bold()
508508
.Opacity(phase == 0 ? 1.0 : phase == 1 ? 0.3 : 1.0)
509509
).Padding(24);
510510
}

0 commit comments

Comments
 (0)