@thi.ng/hdom-components 5.1.101 → 5.1.103

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-25T14:07:53Z
3
+ - **Last updated**: 2024-03-02T14:05:52Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,16 +1,5 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
  <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- > [!IMPORTANT]
4
- > ‼️ Announcing the thi.ng user survey 2024 📋
5
- >
6
- > [Please participate in the survey here!](https://forms.gle/XacbSDEmQMPZg8197)\
7
- > (open until end of February)
8
- >
9
- > **To achieve a better sample size, I'd highly appreciate if you could
10
- > circulate the link to this survey in your own networks.**
11
- >
12
- > [Discussion](https://github.com/thi-ng/umbrella/discussions/447)
13
-
14
3
  # ![@thi.ng/hdom-components](https://media.thi.ng/umbrella/banners-20230807/thing-hdom-components.svg?8d5cc6b2)
15
4
 
16
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/hdom-components.svg)](https://www.npmjs.com/package/@thi.ng/hdom-components)
@@ -22,7 +11,7 @@
22
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
12
  > and anti-framework.
24
13
  >
25
- > 🚀 Help me to work full-time on these projects by [sponsoring me on
14
+ > 🚀 Please help me to work full-time on these projects by [sponsoring me on
26
15
  > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
27
16
 
28
17
  - [About](#about)
package/button-group.d.ts CHANGED
@@ -39,7 +39,7 @@ export interface ButtonGroupArgs {
39
39
  /**
40
40
  * Argument type for a single button in the group, e.g.
41
41
  *
42
- * ```
42
+ * ```ts
43
43
  * [{onclick: () => alert("foo") }, ["i.fas.fa-check"], "foo"]
44
44
  * ```
45
45
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom-components",
3
- "version": "5.1.101",
3
+ "version": "5.1.103",
4
4
  "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,12 +35,12 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.26",
39
- "@thi.ng/canvas": "^0.2.7",
40
- "@thi.ng/checks": "^3.5.0",
41
- "@thi.ng/math": "^5.10.3",
42
- "@thi.ng/transducers": "^8.9.7",
43
- "@thi.ng/transducers-stats": "^2.1.101"
38
+ "@thi.ng/api": "^8.9.27",
39
+ "@thi.ng/canvas": "^0.2.8",
40
+ "@thi.ng/checks": "^3.5.1",
41
+ "@thi.ng/math": "^5.10.4",
42
+ "@thi.ng/transducers": "^8.9.9",
43
+ "@thi.ng/transducers-stats": "^2.1.103"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.40.1",
@@ -110,5 +110,5 @@
110
110
  "status": "beta",
111
111
  "year": 2018
112
112
  },
113
- "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
113
+ "gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
114
114
  }
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
  *