aliascss 1.5.0 → 1.5.2
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 +47 -0
- package/dist/aliascss.js +1 -1
- package/jestconfig.json +1 -3
- package/lib/build/index.js +136 -19
- package/lib/classPrinter.d.ts +1 -1
- package/lib/classPrinter.js +28 -18
- package/lib/compilers/border.js +106 -27
- package/lib/compilers/clipPath.js +79 -6
- package/lib/compilers/color.js +150 -21
- package/lib/compilers/filter.js +90 -3
- package/lib/compilers/font.js +39 -11
- package/lib/compilers/gradient.js +43 -27
- package/lib/compilers/length.js +34 -9
- package/lib/compilers/shadow.js +60 -26
- package/lib/compilers/stringAndContent.js +39 -2
- package/lib/compilers/timingFunction.js +57 -6
- package/lib/compilers/transform.js +118 -48
- package/lib/compilers/transition.js +79 -11
- package/lib/compilers/url.js +53 -3
- package/lib/css-properties-all.js +17 -9
- package/lib/index.d.ts +9 -9
- package/lib/node/compileFile.js +38 -11
- package/lib/returnPropertyAndValue-bk-301026.d.ts +30 -0
- package/lib/returnPropertyAndValue-bk-301026.js +219 -0
- package/lib/returnPropertyAndValue.js +26 -25
- package/lib/returnStatement.js +24 -6
- package/lib/utils/cssFunc.js +2 -0
- package/lib/utils/helper.js +16 -2
- package/lib/x-classes/x-form-components.js +2 -1
- package/llms.txt +326 -0
- package/package.json +3 -1
- package/tsconfig.json +1 -0
- package/tsconfig.test.json +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
## 1.5.2
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- grid-column / grid-row: a negative number after "/" is kept (`gc-1/-1` → `grid-column: 1 / -1`; it compiled to `1 / 1`).
|
|
5
|
+
- grid-template-columns / grid-auto-columns: decimal values compile correctly.
|
|
6
|
+
- Keyframes (browser runtime): each @keyframes rule is written once, instead of again on every re-print.
|
|
7
|
+
- Keyframes: names keep working when HTML lower-cases the attribute; the CLI lower-cases names to match.
|
|
8
|
+
- Keyframes: a single stop accepts an optional dash and %, and empty rules are skipped.
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `w-var(--x-width)` and other `-var(…)` values are accepted (same as `w--x-width`).
|
|
12
|
+
- `display-webkit-box`.
|
|
13
|
+
- `cursor-grab` (and other cursor keywords that didn't compile).
|
|
14
|
+
|
|
15
|
+
### Unchanged by design
|
|
16
|
+
- Multi-stop keyframes use `@[0,25,50][…]` only; the colon form is not supported.
|
|
17
|
+
- `--s-` and `--sb-` stay selector aliases, so variables must start with `--x-`.
|
|
18
|
+
|
|
19
|
+
## AliasCSS 1.5.1
|
|
20
|
+
|
|
21
|
+
A reliability release: fewer surprises in the browser, quieter consoles and correct negative values everywhere.
|
|
22
|
+
|
|
23
|
+
### Fixes
|
|
24
|
+
|
|
25
|
+
- **Negative values after `:`**
|
|
26
|
+
`--gap:-8px` and fallbacks like `m--gap:-8px` lost their minus sign and compiled to `8px`. They now compile to `-8px`, the same as `m--8px`. `:--8px` still works too.
|
|
27
|
+
```html
|
|
28
|
+
<div class="--x-offset:-8px m--x-offset:-4px"></div>
|
|
29
|
+
<!-- --x-offset: -8px; margin: var(--x-offset, -4px) -->
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- **Script no longer needs `defer`**
|
|
33
|
+
Loading `aliascss.js` in `<head>` without `defer` threw `Failed to execute 'observe' on 'MutationObserver'` and stopped styling new content. The script now waits for the page, with or without `defer`.
|
|
34
|
+
|
|
35
|
+
- **`hidden` always hides**
|
|
36
|
+
`<div hidden class="x-stack">` stayed visible, because any class that sets `display` beats the browser's built-in `[hidden]` style. AliasCSS now adds one rule to the `reset` layer, so `hidden` wins over every display class. `hidden="until-found"` keeps its normal behaviour. This applies to the browser script and to the CLI output.
|
|
37
|
+
|
|
38
|
+
- **Wrong CSS for values that can't be compiled**
|
|
39
|
+
A typo such as `bgc-slateTheme13` produced `.bgc-slateTheme13{slateTheme13}`, with the property missing. It now produces `background-color: slateTheme13` and one clear warning.
|
|
40
|
+
|
|
41
|
+
- **`x-button-icon` with `x-button-sm`**
|
|
42
|
+
Icon buttons combined with a size modifier could shrink to a few pixels wide. They now stay square, and icons inside any `x-button` no longer shrink.
|
|
43
|
+
|
|
44
|
+
### Improvements
|
|
45
|
+
|
|
46
|
+
- **Quieter console**
|
|
47
|
+
Plain class names that aren't AliasCSS (`card-title`, `active`, export names) are no longer reported. Previously each one logged two messages. Classes that look like AliasCSS but fail still get exactly one warning:
|
|
1
48
|
1.5.0
|
|
2
49
|
New
|
|
3
50
|
- _.(class-name) for class names with "-" after combinators
|