@thi.ng/hiccup-css 2.0.0 → 2.0.6
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 +48 -0
- package/README.md +3 -2
- package/animation.d.ts +1 -1
- package/animation.js +1 -1
- package/comment.d.ts +1 -1
- package/comment.js +1 -1
- package/conditional.d.ts +1 -1
- package/conditional.js +1 -1
- package/css.d.ts +1 -1
- package/css.js +2 -2
- package/impl.d.ts +1 -1
- package/import.d.ts +1 -1
- package/index.d.ts +14 -14
- package/index.js +14 -14
- package/keyframes.d.ts +1 -1
- package/keyframes.js +2 -2
- package/media.d.ts +1 -1
- package/media.js +1 -1
- package/namespace.d.ts +1 -1
- package/package.json +10 -7
- package/quoted-functions.d.ts +6 -6
- package/quoted-functions.js +6 -6
- package/supports.d.ts +1 -1
- package/supports.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,54 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.5...@thi.ng/hiccup-css@2.0.6) (2021-10-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @thi.ng/hiccup-css
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.4...@thi.ng/hiccup-css@2.0.5) (2021-10-28)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @thi.ng/hiccup-css
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.3...@thi.ng/hiccup-css@2.0.4) (2021-10-25)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @thi.ng/hiccup-css
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.2...@thi.ng/hiccup-css@2.0.3) (2021-10-15)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @thi.ng/hiccup-css
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.1...@thi.ng/hiccup-css@2.0.2) (2021-10-15)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @thi.ng/hiccup-css
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.0...@thi.ng/hiccup-css@2.0.1) (2021-10-13)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @thi.ng/hiccup-css
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
6
54
|
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.73...@thi.ng/hiccup-css@2.0.0) (2021-10-12)
|
|
7
55
|
|
|
8
56
|
|
package/README.md
CHANGED
|
@@ -110,10 +110,11 @@ ES module import:
|
|
|
110
110
|
|
|
111
111
|
[Skypack documentation](https://docs.skypack.dev/)
|
|
112
112
|
|
|
113
|
-
For
|
|
113
|
+
For Node.js REPL:
|
|
114
114
|
|
|
115
115
|
```text
|
|
116
|
-
|
|
116
|
+
# with flag only for < v16
|
|
117
|
+
node --experimental-repl-await
|
|
117
118
|
|
|
118
119
|
> const hiccupCss = await import("@thi.ng/hiccup-css");
|
|
119
120
|
```
|
package/animation.d.ts
CHANGED
|
@@ -45,5 +45,5 @@ export interface AnimationOpts {
|
|
|
45
45
|
* @param opts - animation config options
|
|
46
46
|
* @param keyframes - keyframes
|
|
47
47
|
*/
|
|
48
|
-
export declare const animation: (id: string, opts: Partial<AnimationOpts>, ...keyframes: any) => (any[] | import("./api").RuleFn)[];
|
|
48
|
+
export declare const animation: (id: string, opts: Partial<AnimationOpts>, ...keyframes: any) => (any[] | import("./api.js").RuleFn)[];
|
|
49
49
|
//# sourceMappingURL=animation.d.ts.map
|
package/animation.js
CHANGED
package/comment.d.ts
CHANGED
package/comment.js
CHANGED
package/conditional.d.ts
CHANGED
package/conditional.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isString } from "@thi.ng/checks/is-string";
|
|
2
|
-
import { expand, indent } from "./impl";
|
|
2
|
+
import { expand, indent } from "./impl.js";
|
|
3
3
|
export const conditional = (type, cond, rules) => (acc, opts) => {
|
|
4
4
|
const space = indent(opts);
|
|
5
5
|
acc.push(`${space}${type} ${formatCond(cond)}${opts.format.declStart}`);
|
package/css.d.ts
CHANGED
package/css.js
CHANGED
|
@@ -3,8 +3,8 @@ import { isFunction } from "@thi.ng/checks/is-function";
|
|
|
3
3
|
import { isNotStringAndIterable } from "@thi.ng/checks/is-not-string-iterable";
|
|
4
4
|
import { isPlainObject } from "@thi.ng/checks/is-plain-object";
|
|
5
5
|
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
|
|
6
|
-
import { COMPACT, DEFAULT_VENDORS } from "./api";
|
|
7
|
-
import { expand, formatDecls } from "./impl";
|
|
6
|
+
import { COMPACT, DEFAULT_VENDORS } from "./api.js";
|
|
7
|
+
import { expand, formatDecls } from "./impl.js";
|
|
8
8
|
export const css = (rules, opts) => {
|
|
9
9
|
opts = {
|
|
10
10
|
format: COMPACT,
|
package/impl.d.ts
CHANGED
package/import.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from "./api";
|
|
2
|
-
export * from "./animation";
|
|
3
|
-
export * from "./attribs";
|
|
4
|
-
export * from "./comment";
|
|
5
|
-
export * from "./conditional";
|
|
6
|
-
export * from "./css";
|
|
7
|
-
export * from "./import";
|
|
8
|
-
export * from "./inject";
|
|
9
|
-
export * from "./keyframes";
|
|
10
|
-
export * from "./media";
|
|
11
|
-
export * from "./namespace";
|
|
12
|
-
export * from "./quoted-functions";
|
|
13
|
-
export * from "./supports";
|
|
14
|
-
export * from "./units";
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./animation.js";
|
|
3
|
+
export * from "./attribs.js";
|
|
4
|
+
export * from "./comment.js";
|
|
5
|
+
export * from "./conditional.js";
|
|
6
|
+
export * from "./css.js";
|
|
7
|
+
export * from "./import.js";
|
|
8
|
+
export * from "./inject.js";
|
|
9
|
+
export * from "./keyframes.js";
|
|
10
|
+
export * from "./media.js";
|
|
11
|
+
export * from "./namespace.js";
|
|
12
|
+
export * from "./quoted-functions.js";
|
|
13
|
+
export * from "./supports.js";
|
|
14
|
+
export * from "./units.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./api";
|
|
2
|
-
export * from "./animation";
|
|
3
|
-
export * from "./attribs";
|
|
4
|
-
export * from "./comment";
|
|
5
|
-
export * from "./conditional";
|
|
6
|
-
export * from "./css";
|
|
7
|
-
export * from "./import";
|
|
8
|
-
export * from "./inject";
|
|
9
|
-
export * from "./keyframes";
|
|
10
|
-
export * from "./media";
|
|
11
|
-
export * from "./namespace";
|
|
12
|
-
export * from "./quoted-functions";
|
|
13
|
-
export * from "./supports";
|
|
14
|
-
export * from "./units";
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./animation.js";
|
|
3
|
+
export * from "./attribs.js";
|
|
4
|
+
export * from "./comment.js";
|
|
5
|
+
export * from "./conditional.js";
|
|
6
|
+
export * from "./css.js";
|
|
7
|
+
export * from "./import.js";
|
|
8
|
+
export * from "./inject.js";
|
|
9
|
+
export * from "./keyframes.js";
|
|
10
|
+
export * from "./media.js";
|
|
11
|
+
export * from "./namespace.js";
|
|
12
|
+
export * from "./quoted-functions.js";
|
|
13
|
+
export * from "./supports.js";
|
|
14
|
+
export * from "./units.js";
|
package/keyframes.d.ts
CHANGED
package/keyframes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formatDecls, indent } from "./impl";
|
|
2
|
-
import { percent } from "./units";
|
|
1
|
+
import { formatDecls, indent } from "./impl.js";
|
|
2
|
+
import { percent } from "./units.js";
|
|
3
3
|
export function at_keyframes(id, ...args) {
|
|
4
4
|
const stops = args.length === 1 ? args[0] : { 0: args[0], 100: args[1] };
|
|
5
5
|
return (acc, opts) => {
|
package/media.d.ts
CHANGED
package/media.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { conditional } from "./conditional";
|
|
1
|
+
import { conditional } from "./conditional.js";
|
|
2
2
|
export const at_media = (cond, rules) => conditional("@media", cond, rules);
|
package/namespace.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-css",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "CSS from nested JS data structures",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.0.
|
|
38
|
-
"@thi.ng/checks": "^3.0.
|
|
39
|
-
"@thi.ng/errors": "^2.0.
|
|
40
|
-
"@thi.ng/transducers": "^8.0.
|
|
37
|
+
"@thi.ng/api": "^8.0.6",
|
|
38
|
+
"@thi.ng/checks": "^3.0.6",
|
|
39
|
+
"@thi.ng/errors": "^2.0.6",
|
|
40
|
+
"@thi.ng/transducers": "^8.0.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@thi.ng/testament": "^0.1.
|
|
43
|
+
"@thi.ng/testament": "^0.1.6"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"array",
|
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=12.7"
|
|
65
|
+
},
|
|
63
66
|
"files": [
|
|
64
67
|
"*.js",
|
|
65
68
|
"*.d.ts"
|
|
@@ -119,5 +122,5 @@
|
|
|
119
122
|
],
|
|
120
123
|
"year": 2016
|
|
121
124
|
},
|
|
122
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
|
|
123
126
|
}
|
package/quoted-functions.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { at_keyframes } from "./keyframes";
|
|
2
|
-
import { at_namespace } from "./namespace";
|
|
1
|
+
import { at_keyframes } from "./keyframes.js";
|
|
2
|
+
import { at_namespace } from "./namespace.js";
|
|
3
3
|
/** @internal */
|
|
4
4
|
export declare const QUOTED_FNS: {
|
|
5
|
-
"@comment": (body: string, force?: boolean) => import("./api").RuleFn;
|
|
6
|
-
"@import": (url: string, ...queries: string[]) => import("./api").RuleFn;
|
|
5
|
+
"@comment": (body: string, force?: boolean) => import("./api.js").RuleFn;
|
|
6
|
+
"@import": (url: string, ...queries: string[]) => import("./api.js").RuleFn;
|
|
7
7
|
"@keyframes": typeof at_keyframes;
|
|
8
|
-
"@media": (cond: import("./api").Conditional, rules: any[]) => import("./api").RuleFn;
|
|
8
|
+
"@media": (cond: import("./api.js").Conditional, rules: any[]) => import("./api.js").RuleFn;
|
|
9
9
|
"@namespace": typeof at_namespace;
|
|
10
|
-
"@supports": (cond: import("./api").Conditional, rules: any[]) => import("./api").RuleFn;
|
|
10
|
+
"@supports": (cond: import("./api.js").Conditional, rules: any[]) => import("./api.js").RuleFn;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=quoted-functions.d.ts.map
|
package/quoted-functions.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { comment } from "./comment";
|
|
2
|
-
import { at_import } from "./import";
|
|
3
|
-
import { at_keyframes } from "./keyframes";
|
|
4
|
-
import { at_media } from "./media";
|
|
5
|
-
import { at_namespace } from "./namespace";
|
|
6
|
-
import { at_supports } from "./supports";
|
|
1
|
+
import { comment } from "./comment.js";
|
|
2
|
+
import { at_import } from "./import.js";
|
|
3
|
+
import { at_keyframes } from "./keyframes.js";
|
|
4
|
+
import { at_media } from "./media.js";
|
|
5
|
+
import { at_namespace } from "./namespace.js";
|
|
6
|
+
import { at_supports } from "./supports.js";
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const QUOTED_FNS = {
|
|
9
9
|
"@comment": comment,
|
package/supports.d.ts
CHANGED
package/supports.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { conditional } from "./conditional";
|
|
1
|
+
import { conditional } from "./conditional.js";
|
|
2
2
|
export const at_supports = (cond, rules) => conditional("@supports", cond, rules);
|