@thi.ng/rdom-components 1.0.65 → 1.0.67

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 (3) hide show
  1. package/package.json +9 -9
  2. package/ruler.js +7 -4
  3. package/tabs.js +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rdom-components",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "description": "Collection of unstyled, customizable components for @thi.ng/rdom",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,13 +40,13 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.12.16",
44
- "@thi.ng/hiccup-html": "^2.7.48",
45
- "@thi.ng/object-utils": "^1.3.8",
46
- "@thi.ng/rdom": "^1.7.81",
47
- "@thi.ng/rstream": "^9.4.0",
48
- "@thi.ng/strings": "^3.10.0",
49
- "@thi.ng/transducers": "^9.6.29"
43
+ "@thi.ng/api": "^8.12.17",
44
+ "@thi.ng/hiccup-html": "^2.7.49",
45
+ "@thi.ng/object-utils": "^1.3.9",
46
+ "@thi.ng/rdom": "^1.7.83",
47
+ "@thi.ng/rstream": "^9.4.1",
48
+ "@thi.ng/strings": "^3.11.0",
49
+ "@thi.ng/transducers": "^9.6.30"
50
50
  },
51
51
  "devDependencies": {
52
52
  "esbuild": "^0.27.2",
@@ -112,5 +112,5 @@
112
112
  "status": "alpha",
113
113
  "year": 2020
114
114
  },
115
- "gitHead": "18e5911e6d52c86190706438b753de415379d3fa\n"
115
+ "gitHead": "d46ec975b426bb2ceb137cab734395c97436d59b\n"
116
116
  }
package/ruler.js CHANGED
@@ -6,10 +6,13 @@ const verticalRuler = (attribs = {}, numSteps = 4) => table(
6
6
  attribs,
7
7
  tbody(
8
8
  {},
9
- ...map((x) => {
10
- const id = `${x * 100 | 0}%`;
11
- return tr({}, td({ id }, anchor({ href: `#${id}` }, id)));
12
- }, normRange(numSteps, false))
9
+ ...map(
10
+ (x) => {
11
+ const id = `${x * 100 | 0}%`;
12
+ return tr({}, td({ id }, anchor({ href: `#${id}` }, id)));
13
+ },
14
+ normRange(numSteps, false)
15
+ )
13
16
  )
14
17
  );
15
18
  export {
package/tabs.js CHANGED
@@ -21,10 +21,13 @@ const tabs = (src, opts) => {
21
21
  $switch(
22
22
  src.transform(dedupe()),
23
23
  identity,
24
- sections.reduce((acc, { content }, i) => {
25
- acc[i] = async (i2) => section(attribs.content, await content(i2));
26
- return acc;
27
- }, {})
24
+ sections.reduce(
25
+ (acc, { content }, i) => {
26
+ acc[i] = async (i2) => section(attribs.content, await content(i2));
27
+ return acc;
28
+ },
29
+ {}
30
+ )
28
31
  )
29
32
  );
30
33
  };