@aleph-alpha/config-css 0.12.0 → 0.12.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 +20 -0
- package/dist/index.js +9 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 0.12.2 (2025-05-09)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **deps:** update unocss monorepo to v66.1.1
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Renovatebot
|
|
10
|
+
|
|
11
|
+
## 0.12.1 (2025-05-04)
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- **deps:** update unocss monorepo to v66.1.0
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- Renovatebot
|
|
20
|
+
|
|
1
21
|
## 0.12.0 (2025-05-02)
|
|
2
22
|
|
|
3
23
|
### 🚀 Features
|
package/dist/index.js
CHANGED
|
@@ -107,7 +107,7 @@ const z = [
|
|
|
107
107
|
"revert",
|
|
108
108
|
"revert-layer",
|
|
109
109
|
"unset"
|
|
110
|
-
],
|
|
110
|
+
], p = /^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i, E = /^(-?\d*(?:\.\d+)?)$/, W = /^(px|[sld]?v[wh])$/i, U = {
|
|
111
111
|
px: 1,
|
|
112
112
|
vw: 100,
|
|
113
113
|
vh: 100,
|
|
@@ -181,7 +181,7 @@ function c(e) {
|
|
|
181
181
|
return +e.toFixed(10);
|
|
182
182
|
}
|
|
183
183
|
function k(e) {
|
|
184
|
-
const i = e.match(
|
|
184
|
+
const i = e.match(p);
|
|
185
185
|
if (!i)
|
|
186
186
|
return;
|
|
187
187
|
const [, r, t] = i, a = Number.parseFloat(r);
|
|
@@ -197,7 +197,7 @@ function B(e) {
|
|
|
197
197
|
return;
|
|
198
198
|
if (W.test(e))
|
|
199
199
|
return `${U[e]}${e}`;
|
|
200
|
-
const i = e.match(
|
|
200
|
+
const i = e.match(p);
|
|
201
201
|
if (!i)
|
|
202
202
|
return;
|
|
203
203
|
const [, r, t] = i, a = Number.parseFloat(r);
|
|
@@ -207,7 +207,7 @@ function B(e) {
|
|
|
207
207
|
function G(e) {
|
|
208
208
|
if (W.test(e))
|
|
209
209
|
return `${U[e]}${e}`;
|
|
210
|
-
const i = e.match(
|
|
210
|
+
const i = e.match(p);
|
|
211
211
|
if (!i)
|
|
212
212
|
return;
|
|
213
213
|
const [, r, t] = i, a = Number.parseFloat(r);
|
|
@@ -260,7 +260,7 @@ function A(e, i) {
|
|
|
260
260
|
}
|
|
261
261
|
return r.replace(/(url\(.*?\))/g, (f) => f.replace(/_/g, "\\_")).replace(/(^|[^\\])_/g, "$1 ").replace(/\\_/g, "_").replace(/(?:calc|clamp|max|min)\((.*)/g, (f) => {
|
|
262
262
|
const s = [];
|
|
263
|
-
return f.replace(/var\((--.+?)[,)]/g, (S,
|
|
263
|
+
return f.replace(/var\((--.+?)[,)]/g, (S, u) => (s.push(u), S.replace(u, "--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ").replace(/--un-calc/g, () => s.shift());
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
}
|
|
@@ -509,7 +509,7 @@ function be(e) {
|
|
|
509
509
|
return o && f.push(o), `${r}(${f.filter(Boolean).join(", ")})`;
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
|
-
const
|
|
512
|
+
const pe = (e = {}) => {
|
|
513
513
|
const {
|
|
514
514
|
commaStyleColorFunction: i = !1,
|
|
515
515
|
legacyColorSpace: r = !1
|
|
@@ -523,9 +523,9 @@ const ue = (e = {}) => {
|
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
|
-
},
|
|
526
|
+
}, ue = "0px 1px 6px 0px #0000001f", ve = {
|
|
527
527
|
"pop-ups-and-modals": "0px 1px 20px 0px #0000001f",
|
|
528
|
-
dropdowns:
|
|
528
|
+
dropdowns: ue,
|
|
529
529
|
"banner-and-snackbars": "0px 4px 24px 0px #00000033",
|
|
530
530
|
"left-elevated-card": "5px 5px 6px 0px #0000001f",
|
|
531
531
|
"right-elevated-card": "-5px 5px 6px 0px #0000001f"
|
|
@@ -939,7 +939,7 @@ const ue = (e = {}) => {
|
|
|
939
939
|
}
|
|
940
940
|
})
|
|
941
941
|
), e.push(
|
|
942
|
-
|
|
942
|
+
pe({
|
|
943
943
|
legacyColorSpace: !0
|
|
944
944
|
})
|
|
945
945
|
), e;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleph-alpha/config-css",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"prettier": "@aleph-alpha/prettier-config-frontend",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@tokens-studio/sd-transforms": "1.3.0",
|
|
18
|
-
"@unocss/preset-legacy-compat": "66.1.
|
|
18
|
+
"@unocss/preset-legacy-compat": "66.1.1",
|
|
19
19
|
"token-transformer": "0.0.33",
|
|
20
20
|
"unocss": "^66.0.0",
|
|
21
21
|
"unocss-preset-animations": "1.2.1",
|