@pandacss/preset-base 0.5.1 → 0.6.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/dist/index.d.mts CHANGED
@@ -364,7 +364,9 @@ declare const preset: {
364
364
  transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>, { map }: _pandacss_types.PatternHelpers): {
365
365
  gridColumn: any;
366
366
  gridRow: any;
367
+ gridColumnStart: any;
367
368
  gridColumnEnd: any;
369
+ gridRowStart: any;
368
370
  gridRowEnd: any;
369
371
  };
370
372
  };
package/dist/index.d.ts CHANGED
@@ -364,7 +364,9 @@ declare const preset: {
364
364
  transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>, { map }: _pandacss_types.PatternHelpers): {
365
365
  gridColumn: any;
366
366
  gridRow: any;
367
+ gridColumnStart: any;
367
368
  gridColumnEnd: any;
369
+ gridRowStart: any;
368
370
  gridRowEnd: any;
369
371
  };
370
372
  };
package/dist/index.js CHANGED
@@ -53,8 +53,8 @@ var conditions = {
53
53
  first: "&:first-child",
54
54
  last: "&:last-child",
55
55
  only: "&:only-child",
56
- even: "&:even",
57
- odd: "&:odd",
56
+ even: "&:nth-child(even)",
57
+ odd: "&:nth-child(odd)",
58
58
  firstOfType: "&:first-of-type",
59
59
  lastOfType: "&:last-of-type",
60
60
  onlyOfType: "&:only-of-type",
@@ -840,7 +840,7 @@ var flexGrid = {
840
840
  }
841
841
  },
842
842
  gridTemplateRows: {
843
- className: "grid-cols",
843
+ className: "grid-rows",
844
844
  values: {
845
845
  "1": "repeat(1, minmax(0, 1fr))",
846
846
  "2": "repeat(2, minmax(0, 1fr))",
@@ -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
- "1/2": "50%",
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
- "1/2": "50%",
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) {
@@ -2173,7 +2174,9 @@ var gridItem = definePattern({
2173
2174
  return {
2174
2175
  gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
2175
2176
  gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
2177
+ gridColumnStart: colStart,
2176
2178
  gridColumnEnd: colEnd,
2179
+ gridRowStart: rowStart,
2177
2180
  gridRowEnd: rowEnd,
2178
2181
  ...rest
2179
2182
  };
package/dist/index.mjs CHANGED
@@ -26,8 +26,8 @@ var conditions = {
26
26
  first: "&:first-child",
27
27
  last: "&:last-child",
28
28
  only: "&:only-child",
29
- even: "&:even",
30
- odd: "&:odd",
29
+ even: "&:nth-child(even)",
30
+ odd: "&:nth-child(odd)",
31
31
  firstOfType: "&:first-of-type",
32
32
  lastOfType: "&:last-of-type",
33
33
  onlyOfType: "&:only-of-type",
@@ -813,7 +813,7 @@ var flexGrid = {
813
813
  }
814
814
  },
815
815
  gridTemplateRows: {
816
- className: "grid-cols",
816
+ className: "grid-rows",
817
817
  values: {
818
818
  "1": "repeat(1, minmax(0, 1fr))",
819
819
  "2": "repeat(2, minmax(0, 1fr))",
@@ -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
- "1/2": "50%",
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
- "1/2": "50%",
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) {
@@ -2146,7 +2147,9 @@ var gridItem = definePattern({
2146
2147
  return {
2147
2148
  gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
2148
2149
  gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
2150
+ gridColumnStart: colStart,
2149
2151
  gridColumnEnd: colEnd,
2152
+ gridRowStart: rowStart,
2150
2153
  gridRowEnd: rowEnd,
2151
2154
  ...rest
2152
2155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/preset-base",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
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.5.1"
17
+ "@pandacss/types": "0.6.0"
18
18
  },
19
19
  "scripts": {
20
20
  "build": "tsup src/index.ts --format=esm,cjs --dts",