@mittwald/flow-react-components 0.2.0-alpha.1014 → 0.2.0-alpha.1016
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/AGENTS.md +10 -0
- package/CHANGELOG.md +8 -0
- package/dist/assets/doc-properties.json +25943 -25943
- package/package.json +9 -9
package/AGENTS.md
CHANGED
|
@@ -15,6 +15,7 @@ Definition of Done, workflow).
|
|
|
15
15
|
src/components/Button/
|
|
16
16
|
├── Button.tsx # implementation (hand-written)
|
|
17
17
|
├── Button.module.scss # styles (hand-written)
|
|
18
|
+
├── Button.module.d.scss.ts # GENERATED — CSS-module class-name types
|
|
18
19
|
├── index.ts # barrel (hand-written)
|
|
19
20
|
├── view.ts # GENERATED — remote view declaration (@flr-generate only)
|
|
20
21
|
├── stories/
|
|
@@ -188,6 +189,15 @@ if ("action" in props) {
|
|
|
188
189
|
match prop values (`.size-s`, `.primary`).
|
|
189
190
|
- Class composition with `clsx`, consumer `className` appended last:
|
|
190
191
|
`clsx(styles.button, styles[size], styles[color], className)`.
|
|
192
|
+
- **`styles` is precisely typed** by generated `*.module.d.scss.ts` stubs (a
|
|
193
|
+
committed generated artifact — see the root
|
|
194
|
+
[Generated code](../../AGENTS.md#generated-code--must-be-committed) table,
|
|
195
|
+
`pnpm nx build:scss-types components`). A narrow-union index (`styles[color]`,
|
|
196
|
+
`styles[`size-${size}`]`) stays type-safe as-is; a `string`-typed or runtime
|
|
197
|
+
index needs a helper from `@/lib/scss/selectors` — **not** an
|
|
198
|
+
`as keyof typeof styles` cast, which hides missing classes:
|
|
199
|
+
`prefixedStyleClassname(styles, "size-", size)` for a `` `prefix-${x}` `` key (guard out a no-class default so the value matches a real suffix), or `styleClassname(styles,
|
|
200
|
+
key)`(returns`string | undefined`) for a bare key.
|
|
191
201
|
- **Use design-token CSS variables** — global (`--font-size-text--m`) or
|
|
192
202
|
component-namespaced (`--button--corner-radius`). No hard-coded colors, sizes,
|
|
193
203
|
radii.
|
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.1016](https://github.com/mittwald/flow/compare/0.2.0-alpha.1015...0.2.0-alpha.1016) (2026-08-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @mittwald/flow-react-components
|
|
9
|
+
|
|
10
|
+
# [0.2.0-alpha.1015](https://github.com/mittwald/flow/compare/0.2.0-alpha.1014...0.2.0-alpha.1015) (2026-08-07)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @mittwald/flow-react-components
|
|
13
|
+
|
|
6
14
|
# [0.2.0-alpha.1014](https://github.com/mittwald/flow/compare/0.2.0-alpha.1013...0.2.0-alpha.1014) (2026-08-07)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|