@decantr/css 3.0.0-next.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.
Files changed (2) hide show
  1. package/dist/index.js +17 -15
  2. package/package.json +3 -3
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
- "border": "border:1px solid var(--d-border)",
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
- "transition": "transition:all 0.15s ease",
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
- "border": "border",
646
+ border: "border",
647
647
  bb: "border-bottom",
648
648
  bt: "border-top",
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"
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") return `border-bottom-left-radius:${value};border-bottom-right-radius:${value}`;
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]]) return `line-height:${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.0.0-next.0",
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,7 +25,7 @@
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"
@@ -46,7 +46,7 @@
46
46
  "jsdom": "^29.1.1",
47
47
  "tsup": "^8.0.0",
48
48
  "typescript": "^6.0.3",
49
- "vitest": "^4.1.5"
49
+ "vitest": "^4.1.7"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup src/index.ts --format esm --dts",