@mittwald/flow-react-components 0.2.0-alpha.1057 → 0.2.0-alpha.1058

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.0-alpha.1058](https://github.com/mittwald/flow/compare/0.2.0-alpha.1057...0.2.0-alpha.1058) (2026-08-26)
7
+
8
+ ### Features
9
+
10
+ * **SegmentedControl:** deprecate in favor of Tabs and RadioGroup ([#2903](https://github.com/mittwald/flow/issues/2903)) ([3f65b46](https://github.com/mittwald/flow/commit/3f65b46c638be332bebb686cdd3e151cd0b63939))
11
+
6
12
  ## [0.2.0-alpha.1057](https://github.com/mittwald/flow/compare/0.2.0-alpha.1056...0.2.0-alpha.1057) (2026-08-26)
7
13
 
8
14
  **Note:** Version bump only for package @mittwald/flow-react-components
package/MIGRATION.md CHANGED
@@ -23,6 +23,69 @@ separately, and only when coming from `0.1.0`.
23
23
 
24
24
  ---
25
25
 
26
+ ## From version `0.2.0-alpha.1055` to `>=0.2.0-alpha.1056`
27
+
28
+ ### SegmentedControl deprecated
29
+
30
+ `SegmentedControl` and `Segment` are deprecated. The component covered two
31
+ different jobs, and each already has its own component in Flow. Which
32
+ replacement is right depends on what the control does at that place.
33
+
34
+ **Switching content.** The selection swaps what is shown below it — a content
35
+ switcher. That is what `Tabs` are for: each `Segment` becomes a `Tab` with its
36
+ title in `TabTitle` and its content inside the tab. The label and the state that
37
+ tracked the selection both go away.
38
+
39
+ ```diff
40
+ - <SegmentedControl defaultValue="app">
41
+ - <Label>Verbindung</Label>
42
+ - <Segment value="app">Mit App verbinden</Segment>
43
+ - <Segment value="container">Mit Container verbinden</Segment>
44
+ - </SegmentedControl>
45
+ - {connection === "app" ? <AppSettings /> : <ContainerSettings />}
46
+ + <Tabs>
47
+ + <Tab>
48
+ + <TabTitle>Mit App verbinden</TabTitle>
49
+ + <AppSettings />
50
+ + </Tab>
51
+ + <Tab>
52
+ + <TabTitle>Mit Container verbinden</TabTitle>
53
+ + <ContainerSettings />
54
+ + </Tab>
55
+ + </Tabs>
56
+ ```
57
+
58
+ **Setting a value.** The selection feeds a form or a setting. Use a
59
+ `RadioGroup`: each `Segment` becomes a `Radio`, everything else — `Label`,
60
+ `FieldDescription`, `FieldError`, the React Hook Form binding — stays as it is.
61
+
62
+ ```diff
63
+ - <SegmentedControl defaultValue="debit">
64
+ + <RadioGroup defaultValue="debit">
65
+ <Label>Zahlungsart</Label>
66
+ - <Segment value="debit">Lastschrift</Segment>
67
+ - <Segment value="invoice">Rechnung</Segment>
68
+ + <Radio value="debit">Lastschrift</Radio>
69
+ + <Radio value="invoice">Rechnung</Radio>
70
+ <FieldDescription>Jederzeit änderbar</FieldDescription>
71
+ - </SegmentedControl>
72
+ + </RadioGroup>
73
+ ```
74
+
75
+ There is no codemod. Both replacements change the structure, and picking the
76
+ right one is a decision per usage, not a rename.
77
+
78
+ `SegmentedControl` and `Segment` (and the `flr-segmented-control` /
79
+ `flr-segment` remote elements) keep working unchanged and will be removed in a
80
+ future major version. `SegmentedControl` logs a deprecation warning at runtime;
81
+ `Segment` relies on it, since it only renders inside a `SegmentedControl`.
82
+
83
+ The `containerBreakpointSize` property has no counterpart: `Tabs` collapse on
84
+ their own when the available width runs out, and a `RadioGroup` stacks its
85
+ options anyway.
86
+
87
+ ---
88
+
26
89
  ## From version `0.2.0-alpha.1046` to `>=0.2.0-alpha.1047`
27
90
 
28
91
  ### Align renamed to Combine