@wix/himalaya-cli 0.1242.0 → 0.1243.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/tokens.d.ts +94 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +40 -6
- package/dist/cli.mjs +363 -226
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/tokens.md +28 -0
- package/package.json +2 -2
|
Binary file
|
package/guides/tokens.md
CHANGED
|
@@ -21,6 +21,7 @@ one registry, mirrored byte-for-byte by the iOS + Android decoders.
|
|
|
21
21
|
| `kit` | { material?, variant?, density?, motion? } | optional — the active design kit |
|
|
22
22
|
| `contentMaxWidth` | { base, medium?, expanded? } | optional |
|
|
23
23
|
| `elevations` | name → { level?, tint?, shadow?, border? } | optional — a Card wears `card` |
|
|
24
|
+
| `controls` | { button?: { sm?, md?, lg?, variants? } } | optional — every Button's size and paint |
|
|
24
25
|
|
|
25
26
|
## ⚠️ Typography requires `size`, `weight`, AND `line`
|
|
26
27
|
|
|
@@ -96,3 +97,30 @@ by copying its `tokens` into tokens.json; the active kit's app-wide axes
|
|
|
96
97
|
is a hairline inside the edge (default 0.5). Declare none and Cards stay flat. To look native on
|
|
97
98
|
each platform, declare `"card": {}` and let the idiom overlays fill it: `material` a `level`,
|
|
98
99
|
`ios` a `border` + `shadow`.
|
|
100
|
+
|
|
101
|
+
## Buttons (`controls.button`)
|
|
102
|
+
|
|
103
|
+
Restyle every `Button` of one size or one style from the design system — no per-screen props:
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
"controls": {
|
|
107
|
+
"button": {
|
|
108
|
+
"sm": { "height": 36, "paddingH": 13, "paddingV": 6, "text": "bodyEmphasis", "icon": 14 },
|
|
109
|
+
"variants": { "secondary": { "radius": 4, "borderWidth": 1 }, "primary": { "fill": "brand" } }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
- **Per size** (`sm` / `md` / `lg`): `height` (the VISIBLE minimum height), `paddingH`,
|
|
115
|
+
`paddingV`, `text` (a `typography` token), `icon` (glyph size), `radius`.
|
|
116
|
+
- **Per variant** (`variants.<style>`, e.g. `primary`, `secondary`, `tertiary`, `destructive`):
|
|
117
|
+
`fill`, `label`, `border` (colour tokens or `#hex`), `borderWidth` (0 = no outline), `radius`
|
|
118
|
+
(wins over the size's).
|
|
119
|
+
- Every field is optional. An absent field keeps the built-in Button, so a tokens.json without
|
|
120
|
+
`controls` renders exactly as before. `Button.cornerRadius` / `Button.minHeight` on a node
|
|
121
|
+
still win over the tokens.
|
|
122
|
+
- The **44pt tap target stays**: a `height` under 44 gets a transparent hit area above and below
|
|
123
|
+
(web: a hit band, React Native: `hitSlop`, iOS/macOS: a padded content shape, Android: Material
|
|
124
|
+
3's 48dp touch target), so a 36px `sm` button still passes accessibility.
|
|
125
|
+
- `himi validate` errors when `text` names no `typography` token, or a colour names no
|
|
126
|
+
`colors` token.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1243.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"artifactId": "himalaya-cli"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"falconPackageHash": "
|
|
70
|
+
"falconPackageHash": "7334685c40352434e2281db8d3506edef751ff4142ca450fc5c38c3d"
|
|
71
71
|
}
|