@pandacss/preset-base 1.11.3 → 2.0.0-beta.1

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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Segun Adebayo
3
+ Copyright (c) 2023 Chakra Systems Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @pandacss/preset-base
2
+
3
+ The base preset for [Panda CSS](https://panda-css.com) — the built-in conditions and utilities. Included by default in
4
+ every Panda project.
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ npm install -D @pandacss/preset-base
10
+ ```
11
+
12
+ ## Documentation
13
+
14
+ Visit the [Panda CSS documentation](https://panda-css.com) to learn more.
15
+
16
+ ## License
17
+
18
+ MIT © [Chakra Systems Inc.](https://github.com/chakra-ui)
package/dist/index.js CHANGED
@@ -623,13 +623,11 @@ var patterns = {
623
623
  };
624
624
 
625
625
  // src/color-mix-transform.ts
626
- var createColorMixTransform = (prop) => (value, args) => {
627
- const mix = args.utils.colorMix(value);
628
- if (mix.invalid) return { [prop]: value };
629
- const cssVar = "--mix-" + prop;
630
- return {
631
- [cssVar]: mix.value,
632
- [prop]: `var(${cssVar}, ${mix.color})`
626
+ var createColorMixTransform = (prop) => {
627
+ return (value, args) => {
628
+ const mix = args.utils.colorMix(value);
629
+ if (mix.invalid) return { [prop]: value };
630
+ return { [prop]: mix.value };
633
631
  };
634
632
  };
635
633
 
@@ -1578,16 +1576,7 @@ var focusRing = {
1578
1576
  className: "focus-ring-c",
1579
1577
  values: "colors",
1580
1578
  group: "Focus Ring",
1581
- transform(value, { utils }) {
1582
- const prop = "--focus-ring-color-prop";
1583
- const mix = utils.colorMix(value);
1584
- if (mix.invalid) return { [prop]: value };
1585
- const cssVar = "--mix-" + prop;
1586
- return {
1587
- [cssVar]: mix.value,
1588
- [prop]: `var(${cssVar}, ${mix.color})`
1589
- };
1590
- }
1579
+ transform: createColorMixTransform("--focus-ring-color-prop")
1591
1580
  },
1592
1581
  focusRingOffset: {
1593
1582
  className: "focus-ring-o",
package/dist/index.mjs CHANGED
@@ -596,13 +596,11 @@ var patterns = {
596
596
  };
597
597
 
598
598
  // src/color-mix-transform.ts
599
- var createColorMixTransform = (prop) => (value, args) => {
600
- const mix = args.utils.colorMix(value);
601
- if (mix.invalid) return { [prop]: value };
602
- const cssVar = "--mix-" + prop;
603
- return {
604
- [cssVar]: mix.value,
605
- [prop]: `var(${cssVar}, ${mix.color})`
599
+ var createColorMixTransform = (prop) => {
600
+ return (value, args) => {
601
+ const mix = args.utils.colorMix(value);
602
+ if (mix.invalid) return { [prop]: value };
603
+ return { [prop]: mix.value };
606
604
  };
607
605
  };
608
606
 
@@ -1551,16 +1549,7 @@ var focusRing = {
1551
1549
  className: "focus-ring-c",
1552
1550
  values: "colors",
1553
1551
  group: "Focus Ring",
1554
- transform(value, { utils }) {
1555
- const prop = "--focus-ring-color-prop";
1556
- const mix = utils.colorMix(value);
1557
- if (mix.invalid) return { [prop]: value };
1558
- const cssVar = "--mix-" + prop;
1559
- return {
1560
- [cssVar]: mix.value,
1561
- [prop]: `var(${cssVar}, ${mix.color})`
1562
- };
1563
- }
1552
+ transform: createColorMixTransform("--focus-ring-color-prop")
1564
1553
  },
1565
1554
  focusRingOffset: {
1566
1555
  className: "focus-ring-o",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/preset-base",
3
- "version": "1.11.3",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "The base preset for Panda CSS that contains the conditions and utilities",
5
5
  "author": "Segun Adebayo <joseshegs@gmail.com>",
6
6
  "license": "MIT",
@@ -33,14 +33,11 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@pandacss/types": "1.11.3"
37
- },
38
- "engines": {
39
- "node": ">=20"
36
+ "@pandacss/types": "2.0.0-beta.1"
40
37
  },
41
38
  "scripts": {
42
39
  "build": "tsup src/index.ts --format=esm,cjs --dts",
43
- "build-fast": "tsup src/index.ts --format=esm,cjs --no-dts",
44
- "dev": "pnpm build-fast --watch"
40
+ "build:fast": "tsup src/index.ts --format=esm,cjs --no-dts",
41
+ "dev": "pnpm build:fast --watch"
45
42
  }
46
43
  }