@mndw/ui-svelte 0.1.1 → 0.1.3

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 +30 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @mndw/ui-svelte
2
+
3
+ Svelte table cell adapters for mndw UI.
4
+
5
+ ## Part of mndw
6
+
7
+ mndw is a modular web dashboard for Keenetic/Netcraze routers. Everything in it is a plugin: a dashboard widget or a full page. See [the plugin author site](https://eralde.github.io/mndw/).
8
+
9
+ ## Install
10
+
11
+ `mndw create` adds this adapter to `dependencies` for Svelte plugins. To add it by hand, install it in the plugin project; peer dependency: `svelte >=5.0.0`.
12
+
13
+ ```sh
14
+ npm i @mndw/ui-svelte
15
+ ```
16
+
17
+ ## Use
18
+
19
+ `svelteCell<Row, Value>()(Component)` adapts framework components or templates to the table cell lifecycle:
20
+
21
+ ```ts
22
+ import {svelteCell} from '@mndw/ui-svelte';
23
+ import NameCell from './NameCell.svelte';
24
+
25
+ const renderer = svelteCell<Row, string>()(NameCell);
26
+ ```
27
+
28
+ ## Read on
29
+
30
+ See the [table adapter guide](https://eralde.github.io/mndw/guides/ui-components#svelte) and [UI components overview](https://eralde.github.io/mndw/ui/).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mndw/ui-svelte",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "license": "MIT",
5
5
  "homepage": "https://eralde.github.io/mndw/",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "!dist/**/fixtures"
24
24
  ],
25
25
  "dependencies": {
26
- "@mndw/ui": "^0.1.1"
26
+ "@mndw/ui": "^0.1.3"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "svelte": ">=5.0.0"
@@ -37,6 +37,7 @@
37
37
  "typescript": "^5.7.0",
38
38
  "vitest": "^3.2.7"
39
39
  },
40
+ "description": "Svelte table cell adapters for mndw UI.",
40
41
  "scripts": {
41
42
  "build": "svelte-package -i src -o dist",
42
43
  "test": "vitest run",