@mittwald/flow-react-components 0.2.0-alpha.1056 → 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 +10 -0
- package/MIGRATION.md +63 -0
- package/dist/assets/doc-properties.json +58167 -57711
- package/dist/css/all-layered.css +1 -1
- package/dist/css/all.css +1 -1
- package/dist/js/packages/components/src/components/AccentBox/AccentBox.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Action/models/ActionState.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Button/Button.mjs.map +1 -1
- package/dist/js/packages/components/src/components/CartesianChart/components/Area/Area.mjs.map +1 -1
- package/dist/js/packages/components/src/components/ContextMenu/lib.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/model/List.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Navigation/Navigation.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/PasswordCreationField/lib/getStateFromLatestPolicyValidationResult.mjs.map +1 -1
- package/dist/js/packages/components/src/components/SegmentedControl/SegmentedControl.mjs +6 -1
- package/dist/js/packages/components/src/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/dist/js/packages/components/src/components/SegmentedControl/components/Segment/Segment.mjs +4 -1
- package/dist/js/packages/components/src/components/SegmentedControl/components/Segment/Segment.mjs.map +1 -1
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs +2 -2
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs.map +1 -1
- package/dist/js/packages/components/src/lib/controller/overlay/OverlayController.mjs.map +1 -1
- package/dist/js/packages/components/src/lib/react/deepFindOfType.mjs.map +1 -1
- package/dist/js/packages/components/src/status/component-status.mjs +3 -2
- package/dist/js/packages/components/src/status/component-status.mjs.map +1 -1
- package/dist/types/components/AccentBox/AccentBox.d.ts.map +1 -1
- package/dist/types/components/Action/models/ActionState.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/CartesianChart/components/Area/Area.d.ts.map +1 -1
- package/dist/types/components/ContextMenu/lib.d.ts.map +1 -1
- package/dist/types/components/List/model/List.d.ts.map +1 -1
- package/dist/types/components/List/typedList.d.ts +3 -4
- package/dist/types/components/List/typedList.d.ts.map +1 -1
- package/dist/types/components/PasswordCreationField/lib/getStateFromLatestPolicyValidationResult.d.ts.map +1 -1
- package/dist/types/components/SegmentedControl/SegmentedControl.d.ts +4 -1
- package/dist/types/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/types/components/SegmentedControl/components/Segment/Segment.d.ts +4 -1
- package/dist/types/components/SegmentedControl/components/Segment/Segment.d.ts.map +1 -1
- package/dist/types/components/SettingsProvider/backends/types.d.ts.map +1 -1
- package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts.map +1 -1
- package/dist/types/lib/controller/overlay/OverlayController.d.ts.map +1 -1
- package/dist/types/lib/propsContext/types.d.ts.map +1 -1
- package/dist/types/lib/react/deepFindOfType.d.ts.map +1 -1
- package/dist/types/status/component-status.json.d.ts +3 -2
- package/package.json +47 -47
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
|
|
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)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @mittwald/flow-react-components
|
|
15
|
+
|
|
6
16
|
## [0.2.0-alpha.1056](https://github.com/mittwald/flow/compare/0.2.0-alpha.1055...0.2.0-alpha.1056) (2026-08-26)
|
|
7
17
|
|
|
8
18
|
**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
|