@thi.ng/meta-css 0.10.3 → 0.11.0

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-04-08T14:59:30Z
3
+ - **Last updated**: 2024-04-11T12:32:44Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ## [0.11.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/meta-css@0.11.0) (2024-04-11)
13
+
14
+ #### 🚀 Features
15
+
16
+ - add/update CSS rule specs ([dfab906](https://github.com/thi-ng/umbrella/commit/dfab906))
17
+
12
18
  ### [0.10.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/meta-css@0.10.3) (2024-04-08)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 191 standalone projects, maintained as part
10
+ > This is one of 192 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -99,7 +99,9 @@
99
99
  - [Color definitions](#color-definitions)
100
100
  - [Dimensions](#dimensions)
101
101
  - [Font families](#font-families)
102
+ - [Fx](#fx)
102
103
  - [Grid layout](#grid-layout)
104
+ - [Layout](#layout)
103
105
  - [Margin](#margin)
104
106
  - [Mask](#mask)
105
107
  - [Padding](#padding)
@@ -1109,7 +1111,7 @@ These are readily usable (and used by a growing number of example projects in
1109
1111
  this repo), but also are provided as starting point to define your own custom
1110
1112
  framework(s)...
1111
1113
 
1112
- Currently, there are 935 CSS utility classes (incl. 62 templates) defined in "MetaCSS base" (v0.9.0):
1114
+ Currently, there are 937 CSS utility classes (incl. 64 templates) defined in "MetaCSS base" (v0.9.0):
1113
1115
 
1114
1116
  ### Classes by category
1115
1117
 
@@ -2345,12 +2347,6 @@ Sets aspect ratio of background. Use with `bg-aspect-ratio-object` on child elem
2345
2347
 
2346
2348
  #### Background
2347
2349
 
2348
- <details><summary>4 items:</summary>
2349
-
2350
- ##### `bg-blur(radius)`
2351
-
2352
- - **radius**: incl. units
2353
-
2354
2350
  ##### `bg-image(url)`
2355
2351
 
2356
2352
  - **url**: image URL
@@ -2363,8 +2359,6 @@ Sets aspect ratio of background. Use with `bg-aspect-ratio-object` on child elem
2363
2359
 
2364
2360
  - **body**: CSS value/definition
2365
2361
 
2366
- </details>
2367
-
2368
2362
  #### Background color
2369
2363
 
2370
2364
  ##### `bg-color(name)`
@@ -2521,6 +2515,16 @@ Sets width to given value
2521
2515
 
2522
2516
  - **body**: CSS value/definition
2523
2517
 
2518
+ #### Fx
2519
+
2520
+ ##### `bg-blur(radius)`
2521
+
2522
+ - **radius**: incl. units
2523
+
2524
+ ##### `blur(radius)`
2525
+
2526
+ - **radius**: incl. units
2527
+
2524
2528
  #### Grid layout
2525
2529
 
2526
2530
  ##### `grid-cols(cols)`
@@ -2531,6 +2535,12 @@ Sets width to given value
2531
2535
 
2532
2536
  - **rows**: CSS rows definitions
2533
2537
 
2538
+ #### Layout
2539
+
2540
+ ##### `columns(num)`
2541
+
2542
+ - **num**: column count
2543
+
2534
2544
  #### Margin
2535
2545
 
2536
2546
  <details><summary>7 items:</summary>
@@ -2735,7 +2745,10 @@ directory are using this package:
2735
2745
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/blurhash.jpg" width="240"/> | Interactive & reactive image blurhash generator | [Demo](https://demo.thi.ng/umbrella/blurhash/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/blurhash) |
2736
2746
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/layout-gridgen.png" width="240"/> | Randomized space-filling, nested grid layout generator | [Demo](https://demo.thi.ng/umbrella/layout-gridgen/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/layout-gridgen) |
2737
2747
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/meta-css-basics.png" width="240"/> | Basic thi.ng/meta-css usage & testbed | [Demo](https://demo.thi.ng/umbrella/meta-css-basics/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/meta-css-basics) |
2748
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/procedural-text.jpg" width="240"/> | Procedural stochastic text generation via custom DSL, parse grammar & AST transformation | [Demo](https://demo.thi.ng/umbrella/procedural-text/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/procedural-text) |
2738
2749
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/ramp-scroll-anim.png" width="240"/> | Scroll-based, reactive, multi-param CSS animation basics | [Demo](https://demo.thi.ng/umbrella/ramp-scroll-anim/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/ramp-scroll-anim) |
2750
+ | | Demonstates various rdom usage patterns | [Demo](https://demo.thi.ng/umbrella/rdom-basics/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-basics) |
2751
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-delayed-update.jpg" width="240"/> | Dynamically loaded images w/ preloader state | [Demo](https://demo.thi.ng/umbrella/rdom-delayed-update/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-delayed-update) |
2739
2752
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-dnd.png" width="240"/> | rdom drag & drop example | [Demo](https://demo.thi.ng/umbrella/rdom-dnd/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-dnd) |
2740
2753
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-formgen.jpg" width="240"/> | Basic usage of the declarative rdom-forms generator | [Demo](https://demo.thi.ng/umbrella/rdom-formgen/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-formgen) |
2741
2754
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-lazy-load.png" width="240"/> | Lazy loading components via @thi.ng/rdom | [Demo](https://demo.thi.ng/umbrella/rdom-lazy-load/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-lazy-load) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/meta-css",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "description": "Data-driven CSS framework codegen, transpiler & bundler",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,20 +41,20 @@
41
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@thi.ng/api": "^8.10.0",
45
- "@thi.ng/args": "^2.3.29",
46
- "@thi.ng/arrays": "^2.9.2",
47
- "@thi.ng/checks": "^3.6.0",
48
- "@thi.ng/compare": "^2.3.1",
49
- "@thi.ng/errors": "^2.5.3",
50
- "@thi.ng/file-io": "^2.0.1",
51
- "@thi.ng/hiccup-css": "^2.7.4",
52
- "@thi.ng/logger": "^3.0.8",
53
- "@thi.ng/memoize": "^3.3.0",
54
- "@thi.ng/rstream": "^8.3.20",
55
- "@thi.ng/strings": "^3.7.29",
56
- "@thi.ng/text-format": "^2.2.1",
57
- "@thi.ng/transducers": "^9.0.0"
44
+ "@thi.ng/api": "^8.10.1",
45
+ "@thi.ng/args": "^2.3.30",
46
+ "@thi.ng/arrays": "^2.9.3",
47
+ "@thi.ng/checks": "^3.6.1",
48
+ "@thi.ng/compare": "^2.3.2",
49
+ "@thi.ng/errors": "^2.5.4",
50
+ "@thi.ng/file-io": "^2.0.2",
51
+ "@thi.ng/hiccup-css": "^2.7.5",
52
+ "@thi.ng/logger": "^3.0.9",
53
+ "@thi.ng/memoize": "^3.3.1",
54
+ "@thi.ng/rstream": "^8.4.0",
55
+ "@thi.ng/strings": "^3.7.30",
56
+ "@thi.ng/text-format": "^2.2.2",
57
+ "@thi.ng/transducers": "^9.0.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@microsoft/api-extractor": "^7.43.0",
@@ -111,5 +111,5 @@
111
111
  "status": "alpha",
112
112
  "year": 2023
113
113
  },
114
- "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
114
+ "gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
115
115
  }
@@ -58,14 +58,6 @@
58
58
  },
59
59
  "name": "bg-size",
60
60
  "props": "background-size"
61
- },
62
- {
63
- "doc": { "group": "background", "args": ["radius: incl. units"] },
64
- "name": "bg-blur",
65
- "props": {
66
- "backdrop-filter": "blur({0})",
67
- "-webkit-backdrop-filter": "blur({0})"
68
- }
69
61
  }
70
62
  ]
71
63
  }
@@ -24,5 +24,12 @@
24
24
  "props": { "visibility": "<v> !important" },
25
25
  "values": ["hidden", "visible", "collapse"]
26
26
  }
27
+ ],
28
+ "templates": [
29
+ {
30
+ "doc": { "group": "layout", "args": ["num: column count"] },
31
+ "name": "columns",
32
+ "props": "column-count"
33
+ }
27
34
  ]
28
35
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "templates": [
3
+ {
4
+ "doc": { "group": "fx", "args": ["radius: incl. units"] },
5
+ "name": "blur",
6
+ "props": {
7
+ "filter": "blur({0})"
8
+ }
9
+ },
10
+ {
11
+ "doc": { "group": "fx", "args": ["radius: incl. units"] },
12
+ "name": "bg-blur",
13
+ "props": {
14
+ "backdrop-filter": "blur({0})",
15
+ "-webkit-backdrop-filter": "blur({0})"
16
+ }
17
+ }
18
+ ]
19
+ }