@mittwald/flow-react-components 0.2.0-alpha.1044 → 0.2.0-alpha.1046

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.
Files changed (31) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +8 -0
  3. package/MIGRATION.md +45 -0
  4. package/dist/assets/doc-properties.json +30121 -30121
  5. package/dist/css/all-layered.css +1 -1
  6. package/dist/css/all.css +1 -1
  7. package/dist/js/packages/components/src/components/ActionGroup/lib/getActionGroupSlot.mjs +1 -1
  8. package/dist/js/packages/components/src/components/ActionGroup/lib/getActionGroupSlot.mjs.map +1 -1
  9. package/dist/js/packages/components/src/components/Button/Button.mjs +5 -1
  10. package/dist/js/packages/components/src/components/Button/Button.mjs.map +1 -1
  11. package/dist/js/packages/components/src/components/Button/Button.module.mjs +3 -3
  12. package/dist/js/packages/components/src/components/Button/Button.module.mjs.map +1 -1
  13. package/dist/js/packages/components/src/components/Chat/Chat.mjs +1 -1
  14. package/dist/js/packages/components/src/components/Chat/Chat.mjs.map +1 -1
  15. package/dist/js/packages/components/src/components/Chat/Chat.module.mjs +3 -3
  16. package/dist/js/packages/components/src/components/Chat/Chat.module.mjs.map +1 -1
  17. package/dist/js/packages/components/src/integrations/react-hook-form/components/SubmitButton/SubmitButton.mjs +1 -1
  18. package/dist/js/packages/components/src/integrations/react-hook-form/components/SubmitButton/SubmitButton.mjs.map +1 -1
  19. package/dist/js/packages/design-tokens/dist/json/all-dark.mjs +1 -1
  20. package/dist/js/packages/design-tokens/dist/json/all-dark.mjs.map +1 -1
  21. package/dist/js/packages/design-tokens/dist/json/all-light.mjs +1 -1
  22. package/dist/js/packages/design-tokens/dist/json/all-light.mjs.map +1 -1
  23. package/dist/types/components/ActionGroup/lib/getActionGroupSlot.d.ts.map +1 -1
  24. package/dist/types/components/Button/Button.browser.test.d.ts +2 -0
  25. package/dist/types/components/Button/Button.browser.test.d.ts.map +1 -0
  26. package/dist/types/components/Button/Button.d.ts +1 -1
  27. package/dist/types/components/Button/Button.d.ts.map +1 -1
  28. package/dist/types/components/Button/stories/lib.d.ts.map +1 -1
  29. package/dist/types/components/Chat/Chat.d.ts.map +1 -1
  30. package/dist/types/lib/theming/hooks/useDesignTokens.d.ts +9 -9
  31. package/package.json +9 -9
package/AGENTS.md CHANGED
@@ -56,7 +56,7 @@ export interface ButtonProps
56
56
  PropsWithChildren<Omit<Aria.ButtonProps, "children">>,
57
57
  FlowComponentProps<HTMLButtonElement> {
58
58
  /** The color of the button. @default "primary" */
59
- color?: "primary" | "accent" | "secondary" | "danger";
59
+ color?: "primary" | "success" | "secondary" | "danger";
60
60
  }
61
61
 
62
62
  /** @flr-generate all */
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.1046](https://github.com/mittwald/flow/compare/0.2.0-alpha.1045...0.2.0-alpha.1046) (2026-08-24)
7
+
8
+ **Note:** Version bump only for package @mittwald/flow-react-components
9
+
10
+ # [0.2.0-alpha.1045](https://github.com/mittwald/flow/compare/0.2.0-alpha.1044...0.2.0-alpha.1045) (2026-08-24)
11
+
12
+ **Note:** Version bump only for package @mittwald/flow-react-components
13
+
6
14
  # [0.2.0-alpha.1044](https://github.com/mittwald/flow/compare/0.2.0-alpha.1043...0.2.0-alpha.1044) (2026-08-24)
7
15
 
8
16
  **Note:** Version bump only for package @mittwald/flow-react-components
package/MIGRATION.md CHANGED
@@ -2,6 +2,51 @@
2
2
 
3
3
  ---
4
4
 
5
+ ## From version `0.2.0-alpha.1045` to `>=0.2.0-alpha.1046`
6
+
7
+ ### Button: color `accent` renamed to `success`
8
+
9
+ The button color `accent` is now called `success` — the name says what the color
10
+ means instead of how it looks.
11
+
12
+ ```diff
13
+ - <Button color="accent">Speichern</Button>
14
+ + <Button color="success">Speichern</Button>
15
+ ```
16
+
17
+ `color="accent"` keeps working and logs a deprecation warning, but will be
18
+ removed in a future release. A codemod rewrites it on `Button` and
19
+ `SubmitButton`:
20
+
21
+ ```shell
22
+ npx jscodeshift \
23
+ -t https://raw.githubusercontent.com/mittwald/flow/refs/heads/main/packages/codemods/src/transforms/flowAlphaButtonColorAccentToSuccess.ts \
24
+ --parser tsx \
25
+ src
26
+ ```
27
+
28
+ Replace `src` with your sources folder.
29
+
30
+ The CSS class and the design tokens are renamed **without** a fallback — update
31
+ them by hand if you use `@mittwald/flow-stylesheet` or the token CSS variables
32
+ directly:
33
+
34
+ ```diff
35
+ - <button class="flow--button flow--button--accent">
36
+ + <button class="flow--button flow--button--success">
37
+ ```
38
+
39
+ ```diff
40
+ - var(--button--accent-solid-background-color--default)
41
+ + var(--button--success-solid-background-color--default)
42
+ ```
43
+
44
+ The same rename applies to every `--button--accent-{solid,plain,soft,outline}-*`
45
+ variable. `Chat`'s internal class `flow--chat--accent-button` became
46
+ `flow--chat--success-button`.
47
+
48
+ ---
49
+
5
50
  ## From version `0.2.0-alpha.1007` to `>=0.2.0-alpha.1016`
6
51
 
7
52
  ### TooltipTrigger changed delay type