@tonycodes-ui/mortar 0.25.0 → 0.27.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 CHANGED
@@ -2,11 +2,12 @@
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.25.0 (2026-11-09)
5
+ ## 0.27.0 (2026-11-09)
6
6
 
7
7
  ### Added
8
8
 
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.
9
+ - **`npm run check` validates manifest `platforms`** ([#95](https://github.com/tonycodes/mortar/issues/95)). Rule M011 rejects unknown platform keys and non-`Mortar…` type names, and, when `native/` is present, a declared SwiftUI or Compose type that the native sources do not define. `search_components` results include `platforms`.
10
+ - **Repository automation, slice 1 of [#62](https://github.com/tonycodes/mortar/issues/62).** Dependabot for npm and GitHub Actions (weekly, grouped; no auto-merge), issue forms for bug / component / theming / docs, CodeQL and dependency-review workflows, a weekly health check that opens an issue on failure, and proposed labels in `.github/LABELS.md`. Still open for a later slice: dependency auto-merge, release-please / Changesets, Claude Code Action, Scorecard, and the maintainer policy decisions listed on #62.
10
11
 
11
12
  ## 0.11.0 (2026-10-20)
12
13
 
package/DESIGN.md CHANGED
@@ -42,7 +42,7 @@ Every component follows these rules. New props must fit them, and the code revie
42
42
  - A visible heading prop is `title`, and an accessible name prop is `label`.
43
43
  - **Identity.** Every section-level component accepts `id` so in-page links can target it. Generated ids come from `useId`; ids are never hard-coded.
44
44
  - **className.** Every component accepts `className` on its root element, merged with the kit's classes. It is for layout such as margins or grid placement. Colour and type come from tokens and props, never consumer overrides (principle 4).
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.
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 by default and exists only while open. Modal and SlideOver accept `portal="contained"` to portal into the overlay host of the nearest `ThemeProvider scope="container"` instead, so an embedded widget keeps its overlay inside its bounds. 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
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`).
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "rules": {
5
5
  "M001": "Exports require unique manifests and preview fixtures",
6
6
  "M002": "Source and preview paths stay inside the repository",
@@ -11,6 +11,7 @@
11
11
  "M007": "Source and preview import-closure fingerprints must match; generated fields stay out of manifests",
12
12
  "M008": "Committed catalogue matches the manifests",
13
13
  "M009": "Brands declare only the --m-brand-* contract, and every appearance resolves the accent pair and its inverse",
14
- "M010": "Manifest dependencies match the catalogue components the source renders"
14
+ "M010": "Manifest dependencies match the catalogue components the source renders",
15
+ "M011": "Manifest platforms name SwiftUI and Compose counterparts that exist in native/"
15
16
  }
16
17
  }