@decantr/css 2.0.0 → 3.0.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/README.md +4 -0
- package/dist/index.js +17 -15
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -134,6 +134,10 @@ import './styles/treatments.css';
|
|
|
134
134
|
import './styles/decorators.css';
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
+
## Security And Permissions
|
|
138
|
+
|
|
139
|
+
`@decantr/css` is a CSS atom runtime. It does not inspect projects, read or write files, call the network, spawn processes, emit telemetry, or upload source. See [security permissions](https://decantr.ai/reference/security-permissions.md).
|
|
140
|
+
|
|
137
141
|
## License
|
|
138
142
|
|
|
139
143
|
MIT
|
package/dist/index.js
CHANGED
|
@@ -542,7 +542,7 @@ var TAILWIND_DIRECT = {
|
|
|
542
542
|
"-translate-y-1/2": "translate:0 -50%",
|
|
543
543
|
jcs: "justify-content:flex-start",
|
|
544
544
|
jce: "justify-content:flex-end",
|
|
545
|
-
|
|
545
|
+
border: "border:1px solid var(--d-border)",
|
|
546
546
|
"border-t": "border-top:1px solid var(--d-border)",
|
|
547
547
|
"border-r": "border-right:1px solid var(--d-border)",
|
|
548
548
|
"border-b": "border-bottom:1px solid var(--d-border)",
|
|
@@ -574,7 +574,7 @@ var TAILWIND_DIRECT = {
|
|
|
574
574
|
"backdrop-blur-sm": "backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)",
|
|
575
575
|
"backdrop-blur-md": "backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)",
|
|
576
576
|
"backdrop-blur-lg": "backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)",
|
|
577
|
-
|
|
577
|
+
transition: "transition:all 0.15s ease",
|
|
578
578
|
"transition-all": "transition:all 0.15s ease",
|
|
579
579
|
"transition-colors": "transition:color,background-color,border-color 0.15s ease",
|
|
580
580
|
"scroll-smooth": "scroll-behavior:smooth",
|
|
@@ -643,19 +643,19 @@ var TAILWIND_ARBITRARY_PROPS = {
|
|
|
643
643
|
"grid-rows": "grid-template-rows",
|
|
644
644
|
gc: "grid-template-columns",
|
|
645
645
|
gr: "grid-template-rows",
|
|
646
|
-
|
|
646
|
+
border: "border",
|
|
647
647
|
bb: "border-bottom",
|
|
648
648
|
bt: "border-top",
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
649
|
+
rounded: "border-radius",
|
|
650
|
+
text: "text-align",
|
|
651
|
+
bg: "background",
|
|
652
|
+
z: "z-index",
|
|
653
|
+
top: "top",
|
|
654
|
+
right: "right",
|
|
655
|
+
bottom: "bottom",
|
|
656
|
+
left: "left",
|
|
657
|
+
inset: "inset",
|
|
658
|
+
aspect: "aspect-ratio"
|
|
659
659
|
};
|
|
660
660
|
var TAILWIND_SPACING_PROPS = {
|
|
661
661
|
p: "padding",
|
|
@@ -934,12 +934,14 @@ function resolveTailwindishDecl(name) {
|
|
|
934
934
|
if (side === "r") return `border-top-right-radius:${value};border-bottom-right-radius:${value}`;
|
|
935
935
|
if (side === "l") return `border-top-left-radius:${value};border-bottom-left-radius:${value}`;
|
|
936
936
|
if (side === "t") return `border-top-left-radius:${value};border-top-right-radius:${value}`;
|
|
937
|
-
if (side === "b")
|
|
937
|
+
if (side === "b")
|
|
938
|
+
return `border-bottom-left-radius:${value};border-bottom-right-radius:${value}`;
|
|
938
939
|
}
|
|
939
940
|
const fontMatch = name.match(/^font-(.+)$/);
|
|
940
941
|
if (fontMatch && FONT_WEIGHTS[fontMatch[1]]) return `font-weight:${FONT_WEIGHTS[fontMatch[1]]}`;
|
|
941
942
|
const leadingMatch = name.match(/^leading-(.+)$/);
|
|
942
|
-
if (leadingMatch && LINE_HEIGHTS[leadingMatch[1]])
|
|
943
|
+
if (leadingMatch && LINE_HEIGHTS[leadingMatch[1]])
|
|
944
|
+
return `line-height:${LINE_HEIGHTS[leadingMatch[1]]}`;
|
|
943
945
|
const trackingMatch = name.match(/^tracking-(.+)$/);
|
|
944
946
|
if (trackingMatch && LETTER_SPACING[trackingMatch[1]]) {
|
|
945
947
|
return `letter-spacing:${LETTER_SPACING[trackingMatch[1]]}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decantr/css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Framework-agnostic CSS atom runtime for Decantr projects",
|
|
5
5
|
"author": "Decantr AI",
|
|
6
6
|
"bugs": {
|
|
@@ -25,24 +25,28 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=20"
|
|
28
|
+
"node": ">=20.19.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"keywords": [
|
|
34
34
|
"decantr",
|
|
35
|
+
"decantr-ai",
|
|
35
36
|
"css",
|
|
36
37
|
"atoms",
|
|
37
38
|
"utility-css",
|
|
38
|
-
"design-intelligence"
|
|
39
|
+
"design-intelligence",
|
|
40
|
+
"design-system",
|
|
41
|
+
"design-tokens",
|
|
42
|
+
"ai-frontend-governance"
|
|
39
43
|
],
|
|
40
44
|
"license": "MIT",
|
|
41
45
|
"devDependencies": {
|
|
42
46
|
"jsdom": "^29.1.1",
|
|
43
47
|
"tsup": "^8.0.0",
|
|
44
48
|
"typescript": "^6.0.3",
|
|
45
|
-
"vitest": "^4.1.
|
|
49
|
+
"vitest": "^4.1.7"
|
|
46
50
|
},
|
|
47
51
|
"scripts": {
|
|
48
52
|
"build": "tsup src/index.ts --format esm --dts",
|