@tonycodes-ui/mortar 0.19.0 → 0.19.1

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/native.md CHANGED
@@ -49,16 +49,16 @@ Button("Cancel", action: cancel).buttonStyle(.mortar(.ghost))
49
49
 
50
50
  A brand is a `MortarTheme`: its light and dark `MortarPalette`s, font family names (registered by the app) and density. Every component reads the palette that matches the colour scheme, and scales its text with Dynamic Type.
51
51
 
52
- | Component | Web equivalent | Notes |
53
- | ---------------------------------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
54
- | `MortarButton`, `.buttonStyle(.mortar(_:size:isLoading:))` | Button | `primary`, `secondary`, `ghost`, `danger`, `accent`; `sm`, `md`, `lg`; loading; SF Symbol, icon-only with the title as its accessible name. Medium is at least 44pt tall. |
55
- | `MortarBadge` | Badge | Tones `neutral`, `info`, `success`, `warning`, `danger`. |
56
- | `MortarCard` | Card | Title, description, header actions, footer, `compact` or `none` padding, `muted` tone. |
57
- | `MortarTextField` | Input | Label, prompt, hint, error, required marker, secure entry. VoiceOver reads the label as its name, then "required", the error and the hint. |
58
- | `MortarSwitch`, `.toggleStyle(.mortar)` | Switch | The whole row toggles; VoiceOver sees a standard switch. |
59
- | `MortarAvatar` | Avatar | Image URL with initials while loading or on failure, five sizes, circle or square, online or offline status, decorative. |
60
- | `MortarNotice` | Notice | Tone, message, actions, dismiss button, VoiceOver announcement. |
61
- | `MortarEmptyState` | EmptyState | SF Symbol, description, action, dashed, centred or leading. |
52
+ | Component | Web equivalent | Notes |
53
+ | ---------------------------------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
54
+ | `MortarButton`, `.buttonStyle(.mortar(_:size:isLoading:))` | Button | `primary` (the default, as on the web), `secondary`, `ghost`, `danger`, `accent`; `sm`, `md`, `lg`; loading; SF Symbol, icon-only with the title as its accessible name. Medium is at least 44pt tall. |
55
+ | `MortarBadge` | Badge | Tones `neutral`, `info`, `success`, `warning`, `danger`. |
56
+ | `MortarCard` | Card | Title, description, header actions, footer, `compact` or `none` padding, `muted` tone. |
57
+ | `MortarTextField` | Input | Label, prompt, hint, error, required marker, secure entry. VoiceOver reads the label as its name, then "required", the error and the hint. |
58
+ | `MortarSwitch`, `.toggleStyle(.mortar)` | Switch | The whole row toggles; VoiceOver sees a standard switch. |
59
+ | `MortarAvatar` | Avatar | Image URL with initials while loading or on failure, five sizes, circle or square, online or offline status, decorative. |
60
+ | `MortarNotice` | Notice | Tone, message, actions, dismiss button, VoiceOver announcement. |
61
+ | `MortarEmptyState` | EmptyState | SF Symbol, description, action, dashed, centred or leading. |
62
62
 
63
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
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonycodes-ui/mortar",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "Mortar: a shared design foundation, application and marketing UI for React and Tailwind.",
5
5
  "type": "module",
6
6
  "files": [