@tonycodes-ui/mortar 0.23.0 → 0.25.0
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 +2 -2
- package/DESIGN.md +2 -0
- package/catalog.json +299 -297
- package/cli/audit.mjs +302 -4
- package/cli/migrations.mjs +5 -0
- package/dist/agent-data.json +1 -1
- package/dist/auth.d.ts +2 -0
- package/dist/feedback.d.ts +1 -0
- package/docs/agents.md +26 -23
- package/docs/auth-flows.md +1 -1
- package/package.json +1 -1
- package/src/auth.tsx +2 -0
- package/src/feedback.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Mortar follows [semantic versioning](https://semver.org/). Before 1.0, a minor release may contain breaking changes, and it says so. Each release is published from its `v<version>` tag to [npmjs.com](https://www.npmjs.com/package/@tonycodes-ui/mortar) with npm provenance. Its GitHub release carries the exact archive and a `provenance.json` with the commit and SHA-512 integrity.
|
|
4
4
|
|
|
5
|
-
## 0.
|
|
5
|
+
## 0.25.0 (2026-11-09)
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
9
|
-
- **`mortar audit`
|
|
9
|
+
- **`mortar audit` flags mis-migrated Input adornments** (`input-static-action`, `input-absolute-adornment`, [#104](https://github.com/tonycodes/mortar/issues/104)). Static text in `Input` `action` should be `prefix`/`suffix`; an absolutely positioned decorative sibling next to a labeled `Input` should be `leadingIcon`/`trailingIcon`. The Input contract and DESIGN.md document that `action` is for an attached control, not generic end content. A browser fixture checks that icons and suffixes align with the text box, not the label.
|
|
10
10
|
|
|
11
11
|
## 0.11.0 (2026-10-20)
|
|
12
12
|
|
package/DESIGN.md
CHANGED
|
@@ -45,6 +45,8 @@ Every component follows these rules. New props must fit them, and the code revie
|
|
|
45
45
|
- **Component marker.** The root element of every exported component carries `data-m-component="<ExportName>"`, set through `componentRoot()` in `src/internal.tsx`. The root is the outermost element the component renders. A dialog marks its dialog root, which is portalled to the document body and exists only while open. A component that renders sibling elements marks the first one it always renders (SaveBar's status message). When one component renders another as its root, the root carries the outer name (SearchDialog, not CommandPalette). ThemeProvider marks its wrapper only with `scope="container"`; with the default document scope it renders no element of its own. Nested components keep their own markers. The marker is for tests and consumers to find components, never for consumer styles. Its one selector in the kit is internal: Prose styles stop at a nested component root, so a utility class such as `m-4` inside prose keeps its prose styles.
|
|
46
46
|
- **Data attributes.** A boolean attribute appears only when true (`data-x="true"`). An enum attribute is omitted for the default value. Styles select on these attributes, never on text or `aria-label`.
|
|
47
47
|
- **Icons and decoration.** Shared icons come from `src/icons.tsx` and are `aria-hidden`. Decorative glyphs such as arrows are hidden from assistive technology, and their meaning is carried by text.
|
|
48
|
+
- **Input adornments.** `prefix` and `suffix` are static strings beside the value. `leadingIcon` and `trailingIcon` are decorative icons inside the text box. `action` is an attached control at the end of the field (a Button or menu such as Sort or Copy), not generic end content: put units and symbols in `suffix`/`prefix`. When migrating an unlabeled native `<input>`, do not keep an absolutely positioned icon sibling or wrap a labeled `Input` in `relative`/`absolute` chrome; those centres against the whole field (including the label). `mortar audit` reports the obvious cases (`input-static-action`, `input-absolute-adornment`).
|
|
49
|
+
- **Phrasing slots.** Some props are rendered inside a `<p>` and accept phrasing content only (text, links, emphasis): `Banner` `children` and `AuthLayout` `description`. Block elements (`div`, nested `p`, headings, lists) are invalid HTML there. Contracts list these as `phrasingSlots`; `mortar audit` reports obvious block JSX in them (`invalid-phrasing`). For a full section, use `Section` instead of stuffing blocks into a banner.
|
|
48
50
|
|
|
49
51
|
## Composing flows
|
|
50
52
|
|