@tonycodes-ui/mortar 0.16.0 → 0.16.2
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 -9
- package/catalog.json +360 -360
- package/dist/agent-data.json +1 -1
- package/dist/colour.d.ts +7 -0
- package/dist/colour.js +100 -0
- package/dist/display.d.ts +3 -1
- package/dist/display.js +5 -2
- package/dist/ecommerce.d.ts +2 -1
- package/dist/ecommerce.js +5 -4
- package/dist/email-theme.js +1 -95
- package/dist/icons.d.ts +4 -0
- package/dist/icons.js +4 -0
- package/dist/image.d.ts +32 -0
- package/dist/image.js +42 -0
- package/dist/marketing.js +7 -1
- package/dist/native-theme.d.ts +128 -0
- package/dist/native-theme.js +178 -0
- package/docs/native.md +36 -0
- package/package.json +2 -1
- package/src/colour.ts +115 -0
- package/src/display.tsx +13 -4
- package/src/ecommerce.tsx +8 -15
- package/src/email-theme.ts +1 -112
- package/src/foundation.css +16 -0
- package/src/icons.tsx +11 -0
- package/src/image.tsx +79 -0
- package/src/marketing.tsx +11 -5
- package/src/native-theme.ts +256 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,18 +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.16.
|
|
5
|
+
## 0.16.2 (2026-11-07)
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- `emailTheme(brand?)` resolves a `BrandDefinition` to literal light-appearance colours and font stacks, as `tokens.css` does. Derived tints are computed in JS, and `oklch()`, `oklab()`, `hsl()` and `rgb()` convert to hex.
|
|
11
|
-
- `EmailShell`, `EmailHeading`, `EmailText`, `EmailButton`, `EmailLink` and `EmailCode` lay out in tables, with spacing on cells so Outlook for Windows keeps it.
|
|
12
|
-
- `renderEmail` returns the HTML and its plain-text alternative.
|
|
13
|
-
- `EmailCallout` (Mortar's tones), `EmailDivider` and `EmailSummary` (receipt items, cost lines and total, read as rows in plain text). The callout and summary follow the shell's `dir`.
|
|
14
|
-
- Templates: `VerifyEmail` (a code, a link or both), `MagicLink`, `PasswordReset`, `Invite`, `Receipt` and `Notification`. Each says why it was sent. See [Transactional email](docs/email.md).
|
|
15
|
-
- Agents: `get_guide email`. A build packet for a brief about emails (receipt, invite, password reset emails…) adds the guide and an `email` section with the import and install. `mortar audit` treats `@tonycodes-ui/mortar/email` as public, checks its named imports, and adds `email-app-import` (an app component or `styles.css` in an email, naming the email component to use) and `email-peer-missing` (no `@react-email/components`). Raw tables in emails are not reported, and an email-only service isn't asked for app styles or a ThemeProvider.
|
|
16
|
-
- Visual baselines for every template at 375 and 600px.
|
|
9
|
+
- **Native tokens** for the coming SwiftUI and Jetpack Compose libraries ([#95](https://github.com/tonycodes/mortar/issues/95)). `MortarTokens.swift` and `MortarTokens.kt` hold the neutral light and dark palettes, densities and scales, generated from `tokens.css` by `npm run native:tokens`, and a test fails when they drift. Nothing changes in the npm package's API. See [Native apps](docs/native.md).
|
|
17
10
|
|
|
18
11
|
## 0.11.0 (2026-10-20)
|
|
19
12
|
|