@pandacss/preset-base 0.0.0-dev-20230704200435 → 0.0.0-dev-20230704200504
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/dist/index.js +15 -14
- package/dist/index.mjs +15 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1687,6 +1687,19 @@ var tables = {
|
|
|
1687
1687
|
};
|
|
1688
1688
|
|
|
1689
1689
|
// src/utilities/transforms.ts
|
|
1690
|
+
var positiveFractions = {
|
|
1691
|
+
"1/2": "50%",
|
|
1692
|
+
"1/3": "33.333333%",
|
|
1693
|
+
"2/3": "66.666667%",
|
|
1694
|
+
"1/4": "25%",
|
|
1695
|
+
"2/4": "50%",
|
|
1696
|
+
"3/4": "75%",
|
|
1697
|
+
full: "100%"
|
|
1698
|
+
};
|
|
1699
|
+
var negativeFractions = Object.fromEntries(
|
|
1700
|
+
Object.entries(positiveFractions).map(([key, value]) => [`-${key}`, `-${value}`])
|
|
1701
|
+
);
|
|
1702
|
+
var fractions = { ...positiveFractions, ...negativeFractions };
|
|
1690
1703
|
var transforms = {
|
|
1691
1704
|
transformOrigin: {
|
|
1692
1705
|
className: "origin"
|
|
@@ -1727,13 +1740,7 @@ var transforms = {
|
|
|
1727
1740
|
values(theme) {
|
|
1728
1741
|
return {
|
|
1729
1742
|
...theme("spacing"),
|
|
1730
|
-
|
|
1731
|
-
"1/3": "33.333333%",
|
|
1732
|
-
"2/3": "66.666667%",
|
|
1733
|
-
"1/4": "25%",
|
|
1734
|
-
"2/4": "50%",
|
|
1735
|
-
"3/4": "75%",
|
|
1736
|
-
full: "100%"
|
|
1743
|
+
...fractions
|
|
1737
1744
|
};
|
|
1738
1745
|
},
|
|
1739
1746
|
transform(value) {
|
|
@@ -1748,13 +1755,7 @@ var transforms = {
|
|
|
1748
1755
|
values(theme) {
|
|
1749
1756
|
return {
|
|
1750
1757
|
...theme("spacing"),
|
|
1751
|
-
|
|
1752
|
-
"1/3": "33.333333%",
|
|
1753
|
-
"2/3": "66.666667%",
|
|
1754
|
-
"1/4": "25%",
|
|
1755
|
-
"2/4": "50%",
|
|
1756
|
-
"3/4": "75%",
|
|
1757
|
-
full: "100%"
|
|
1758
|
+
...fractions
|
|
1758
1759
|
};
|
|
1759
1760
|
},
|
|
1760
1761
|
transform(value) {
|
package/dist/index.mjs
CHANGED
|
@@ -1660,6 +1660,19 @@ var tables = {
|
|
|
1660
1660
|
};
|
|
1661
1661
|
|
|
1662
1662
|
// src/utilities/transforms.ts
|
|
1663
|
+
var positiveFractions = {
|
|
1664
|
+
"1/2": "50%",
|
|
1665
|
+
"1/3": "33.333333%",
|
|
1666
|
+
"2/3": "66.666667%",
|
|
1667
|
+
"1/4": "25%",
|
|
1668
|
+
"2/4": "50%",
|
|
1669
|
+
"3/4": "75%",
|
|
1670
|
+
full: "100%"
|
|
1671
|
+
};
|
|
1672
|
+
var negativeFractions = Object.fromEntries(
|
|
1673
|
+
Object.entries(positiveFractions).map(([key, value]) => [`-${key}`, `-${value}`])
|
|
1674
|
+
);
|
|
1675
|
+
var fractions = { ...positiveFractions, ...negativeFractions };
|
|
1663
1676
|
var transforms = {
|
|
1664
1677
|
transformOrigin: {
|
|
1665
1678
|
className: "origin"
|
|
@@ -1700,13 +1713,7 @@ var transforms = {
|
|
|
1700
1713
|
values(theme) {
|
|
1701
1714
|
return {
|
|
1702
1715
|
...theme("spacing"),
|
|
1703
|
-
|
|
1704
|
-
"1/3": "33.333333%",
|
|
1705
|
-
"2/3": "66.666667%",
|
|
1706
|
-
"1/4": "25%",
|
|
1707
|
-
"2/4": "50%",
|
|
1708
|
-
"3/4": "75%",
|
|
1709
|
-
full: "100%"
|
|
1716
|
+
...fractions
|
|
1710
1717
|
};
|
|
1711
1718
|
},
|
|
1712
1719
|
transform(value) {
|
|
@@ -1721,13 +1728,7 @@ var transforms = {
|
|
|
1721
1728
|
values(theme) {
|
|
1722
1729
|
return {
|
|
1723
1730
|
...theme("spacing"),
|
|
1724
|
-
|
|
1725
|
-
"1/3": "33.333333%",
|
|
1726
|
-
"2/3": "66.666667%",
|
|
1727
|
-
"1/4": "25%",
|
|
1728
|
-
"2/4": "50%",
|
|
1729
|
-
"3/4": "75%",
|
|
1730
|
-
full: "100%"
|
|
1731
|
+
...fractions
|
|
1731
1732
|
};
|
|
1732
1733
|
},
|
|
1733
1734
|
transform(value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/preset-base",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230704200504",
|
|
4
4
|
"description": "The base preset for Panda CSS that contains the conditions and utilities",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pandacss/types": "0.0.0-dev-
|
|
17
|
+
"@pandacss/types": "0.0.0-dev-20230704200504"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|