@thi.ng/hdom-components 5.1.102 → 5.1.104
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/CHANGELOG.md +1 -1
- package/button-group.d.ts +1 -1
- package/package.json +10 -9
- package/pager.d.ts +5 -3
package/CHANGELOG.md
CHANGED
package/button-group.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hdom-components",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.104",
|
|
4
4
|
"description": "Raw, skinnable UI & SVG components for @thi.ng/hdom",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -32,15 +32,16 @@
|
|
|
32
32
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
33
33
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
34
34
|
"pub": "yarn npm publish --access public",
|
|
35
|
-
"test": "bun test"
|
|
35
|
+
"test": "bun test",
|
|
36
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/canvas": "^0.2.
|
|
40
|
-
"@thi.ng/checks": "^3.5.
|
|
41
|
-
"@thi.ng/math": "^5.10.
|
|
42
|
-
"@thi.ng/transducers": "^8.9.
|
|
43
|
-
"@thi.ng/transducers-stats": "^2.1.
|
|
39
|
+
"@thi.ng/api": "^8.9.28",
|
|
40
|
+
"@thi.ng/canvas": "^0.2.9",
|
|
41
|
+
"@thi.ng/checks": "^3.5.2",
|
|
42
|
+
"@thi.ng/math": "^5.10.5",
|
|
43
|
+
"@thi.ng/transducers": "^8.9.10",
|
|
44
|
+
"@thi.ng/transducers-stats": "^2.1.104"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@microsoft/api-extractor": "^7.40.1",
|
|
@@ -110,5 +111,5 @@
|
|
|
110
111
|
"status": "beta",
|
|
111
112
|
"year": 2018
|
|
112
113
|
},
|
|
113
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "a421058a65ba76608d94129ac29451bfedaf201c\n"
|
|
114
115
|
}
|
package/pager.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export interface PagerOpts {
|
|
|
86
86
|
* buttons then the pager will look like this (the `|` character here
|
|
87
87
|
* indicates button group boundaries):
|
|
88
88
|
*
|
|
89
|
-
* ```
|
|
89
|
+
* ```text
|
|
90
90
|
* << < | 4 5 6 | > >>
|
|
91
91
|
* ```
|
|
92
92
|
*
|
|
@@ -100,14 +100,16 @@ export interface PagerOpts {
|
|
|
100
100
|
* last nav buttons are paired within inner `div` elements (one per
|
|
101
101
|
* pair) and can be styled (or hidden) separately.
|
|
102
102
|
*
|
|
103
|
-
* ```
|
|
103
|
+
* ```ts
|
|
104
|
+
* import { pager } from "@thi.ng/hdom-components";
|
|
105
|
+
*
|
|
104
106
|
* // initialization
|
|
105
107
|
* const mypager = pager({
|
|
106
108
|
* button: (i, curr, max, label, disabled) =>
|
|
107
109
|
* ["a", {href: `/page/${i}`, disabled}, label]
|
|
108
110
|
* });
|
|
109
111
|
*
|
|
110
|
-
* // usage
|
|
112
|
+
* // hdom usage
|
|
111
113
|
* [mypager, currPage, currNumItems, 10, 5]
|
|
112
114
|
* ```
|
|
113
115
|
*
|