@tonycodes-ui/mortar 0.18.0 → 0.19.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/docs/email.md CHANGED
@@ -104,6 +104,8 @@ Every template takes `productName`, and optionally `theme`, `logo`, `footer` (re
104
104
  | `Receipt` | An order confirmation or receipt | `orderNumber`, `date`, `items`, `total`; optional `lines`, `paymentMethod`, `href` ("View order"), `title` |
105
105
  | `Notification` | A product notification | `title`, `children` (a string becomes a paragraph); optional `action` (`{ label, href }`), `preview`, `preferencesHref` |
106
106
 
107
+ To see every template rendered, at phone and desktop widths and in three brands, with its plain-text part, open the playground's **Email preview** (`?page=email`).
108
+
107
109
  Send a password reset only to an address that has an account, and show the same "check your email" page either way, so the form never reveals whether an account exists.
108
110
 
109
111
  ## Rules
package/docs/native.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Mortar is coming to iPhone, iPad and Android as a SwiftUI package and a Jetpack Compose library, tracked in [#95](https://github.com/tonycodes/mortar/issues/95). This page covers what exists so far: the design tokens both libraries are built on, and the first SwiftUI and Jetpack Compose components.
4
4
 
5
+ The playground's **Native gallery** (`?page=native`) shows each component on the web beside its SwiftUI and Compose snapshot references, in light, dark and large text.
6
+
5
7
  ## Tokens
6
8
 
7
9
  SwiftUI and Compose cannot read `tokens.css`, so each library gets its tokens as literal values in a generated file:
@@ -58,6 +60,8 @@ A brand is a `MortarTheme`: its light and dark `MortarPalette`s, font family nam
58
60
  | `MortarNotice` | Notice | Tone, message, actions, dismiss button, VoiceOver announcement. |
59
61
  | `MortarEmptyState` | EmptyState | SF Symbol, description, action, dashed, centred or leading. |
60
62
 
63
+ On both platforms the switch sits at the end of its row, after the label, as in iOS and Android settings; on the web it comes first.
64
+
61
65
  ### Snapshot tests
62
66
 
63
67
  `native/apple/Tests/MortarTests` renders each component on an iPhone simulator in light, dark and a large accessibility text size, and a branded screen on iPad, with [swift-snapshot-testing](https://github.com/pointfreeco/swift-snapshot-testing). The **Mortar for SwiftUI** workflow runs them on macOS on every change to `Package.swift` or `native/apple`, and builds the package for Mac.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonycodes-ui/mortar",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Mortar: a shared design foundation, application and marketing UI for React and Tailwind.",
5
5
  "type": "module",
6
6
  "files": [