@foldjs/svelte 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # fold.js
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/foldjs?color=5b4bff)](https://www.npmjs.com/package/foldjs)
4
+ [![gzip size](https://img.shields.io/bundlejs/size/foldjs?label=gzip)](https://bundlejs.com/?q=foldjs)
5
+ [![license](https://img.shields.io/npm/l/foldjs)](LICENSE)
6
+
3
7
  **Make any web app foldable-ready.** Hinge-aware layouts for foldable phones — in React, Vue, Svelte, Solid, Angular… or plain HTML.
4
8
 
9
+ ### [▶ Live demo](https://christophe77.github.io/foldjs/) — no foldable needed, the simulator is built in.
10
+
11
+ ![fold.js switching between flat, book and tabletop postures](https://raw.githubusercontent.com/christophe77/foldjs/main/docs/demo.gif)
12
+
5
13
  - 🪟 **Two-pane layouts** that put each pane on its own side of the hinge
6
14
  - 📐 **Posture detection**: `flat`, `book`, `tabletop`, `folded`
7
15
  - 🧪 **Built-in foldable simulator** — no device, no DevTools setup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldjs/svelte",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Svelte bindings for Fold.js: a `fold` store and `use:twoPane` / `use:foldWhen` actions.",
5
5
  "license": "MIT",
6
6
  "author": "christophe77",
@@ -9,7 +9,7 @@
9
9
  "url": "git+https://github.com/christophe77/foldjs.git",
10
10
  "directory": "packages/svelte"
11
11
  },
12
- "homepage": "https://github.com/christophe77/foldjs#readme",
12
+ "homepage": "https://christophe77.github.io/foldjs/",
13
13
  "bugs": "https://github.com/christophe77/foldjs/issues",
14
14
  "type": "module",
15
15
  "main": "./dist/index.cjs",