zero-hour 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -117,7 +117,6 @@ el?.start();
117
117
  | Option (attribute) | Type | Default | Description |
118
118
  |:--------------------:|:-----------------------:|:------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------|
119
119
  | `digits-url` | `string` | — | URL to the digits sprite sheet. **Required** for the graphical display (otherwise only a text fallback is updated in the a11y layer). |
120
- | `digits-layout` | `"vertical" \| "horizontal"` | `"vertical"` | Digits sprite layout. Default expects frames stacked vertically; set to `"horizontal"` for left-to-right sprites. |
121
120
  | `separator-url` | `string` | `null` | URL to the separator sprite (e.g. a colon). If omitted, separators are hidden. |
122
121
  | `autostart` | `boolean` | `true` | Auto-start on connect. Can be a boolean attribute (`autostart`) or a string (`autostart="false"`). |
123
122
  | `date` | `YYYY-MM-DD` | — | Target date. Without `date` the timer resolves to zero. |
@@ -146,6 +145,7 @@ el?.start();
146
145
  - Days render as **two digits** and are capped at **99**.
147
146
  - `units` controls which groups (d/h/m/s) are visible. Separators are auto-hidden when `separator-url` is not set, or when a separator is not needed between visible groups.
148
147
  - The `done` event fires once per run (after `reset()` it can fire again).
148
+ - Digit sprite must be horizontal, frames left-to-right: `0,1,2,3,4,5,6,7,8,9`. The frame index equals the digit.
149
149
 
150
150
  <br>
151
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zero-hour",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Tiny countdown Web Component. Registers <countdown-timer> that renders a configurable DD:HH:MM:SS countdown to a target date/time (optional UTC offset) and fires a done event at zero.",
5
5
  "author": "ux-ui.pro",
6
6
  "license": "MIT",