@soroush.tech/styled-system 6.0.0-alpha.3 → 6.0.0-alpha.4

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.
@@ -47,9 +47,11 @@ const spaceValue = (theme, value) => {
47
47
  const frameDeclarations = (theme, { margin, mode, maxWidth }) => {
48
48
  const width = mode === "fixed" && maxWidth !== void 0 ? spaceValue(theme, maxWidth) : void 0;
49
49
  return {
50
+ boxSizing: "border-box",
51
+ width: "100%",
50
52
  paddingInline: margin === void 0 ? void 0 : spaceValue(theme, margin),
51
53
  maxWidth: width ?? "none",
52
- marginInline: width === void 0 ? 0 : `max(0px, calc((100% - ${width}) / 2))`
54
+ marginInline: width === void 0 ? 0 : "auto"
53
55
  };
54
56
  };
55
57
  const gridDeclarations = (theme, { columns, gutter }) => ({
@@ -48,9 +48,11 @@ const spaceValue = (theme, value) => {
48
48
  const frameDeclarations = (theme, { margin, mode, maxWidth }) => {
49
49
  const width = mode === "fixed" && maxWidth !== void 0 ? spaceValue(theme, maxWidth) : void 0;
50
50
  return {
51
+ boxSizing: "border-box",
52
+ width: "100%",
51
53
  paddingInline: margin === void 0 ? void 0 : spaceValue(theme, margin),
52
54
  maxWidth: width ?? "none",
53
- marginInline: width === void 0 ? 0 : `max(0px, calc((100% - ${width}) / 2))`
55
+ marginInline: width === void 0 ? 0 : "auto"
54
56
  };
55
57
  };
56
58
  const gridDeclarations = (theme, { columns, gutter }) => ({
package/dist/grid.cjs CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_grid = require("./grid-CvJv0uga.cjs");
5
+ const require_grid = require("./grid-NyoJxJGh.cjs");
6
6
  exports.default = require_grid.grid;
7
7
  exports.grid = require_grid.grid;
8
8
  exports.layoutFrame = require_grid.layoutFrame;
package/dist/grid.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as grid, i as span, n as layoutGrid, r as layoutGridStyles, t as layoutFrame } from "./grid-Du9HrjII.mjs";
1
+ import { a as grid, i as span, n as layoutGrid, r as layoutGridStyles, t as layoutFrame } from "./grid-D6l0ftY0.mjs";
2
2
  export { grid as default, grid, layoutFrame, layoutGrid, layoutGridStyles, span };
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@ const require_background = require("./background-wugr6cG7.cjs");
5
5
  const require_border = require("./border-UuT-fTpy.cjs");
6
6
  const require_color = require("./color-BNs17Gw-.cjs");
7
7
  const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
8
- const require_grid = require("./grid-CvJv0uga.cjs");
8
+ const require_grid = require("./grid-NyoJxJGh.cjs");
9
9
  const require_layout = require("./layout-D3pG7vBp.cjs");
10
10
  const require_position = require("./position-zWvCE4hD.cjs");
11
11
  const require_typography = require("./typography-7jHZXqtc.cjs");
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import { t as background } from "./background-B-jql3jb.mjs";
4
4
  import { t as border } from "./border-Dder4Dhp.mjs";
5
5
  import { t as color } from "./color-CGmMe8yP.mjs";
6
6
  import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
7
- import { a as grid, i as span, n as layoutGrid, r as layoutGridStyles, t as layoutFrame } from "./grid-Du9HrjII.mjs";
7
+ import { a as grid, i as span, n as layoutGrid, r as layoutGridStyles, t as layoutFrame } from "./grid-D6l0ftY0.mjs";
8
8
  import { t as layout } from "./layout-DF83ooFn.mjs";
9
9
  import { t as position } from "./position-jf6VlRyR.mjs";
10
10
  import { t as typography } from "./typography-p6qWP6Px.mjs";
@@ -3,7 +3,7 @@ import { t as background } from "./background-B-jql3jb.mjs";
3
3
  import { t as border } from "./border-Dder4Dhp.mjs";
4
4
  import { t as color } from "./color-CGmMe8yP.mjs";
5
5
  import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
6
- import { a as grid, i as span } from "./grid-Du9HrjII.mjs";
6
+ import { a as grid, i as span } from "./grid-D6l0ftY0.mjs";
7
7
  import { t as layout } from "./layout-DF83ooFn.mjs";
8
8
  import { t as position } from "./position-jf6VlRyR.mjs";
9
9
  import { t as typography } from "./typography-p6qWP6Px.mjs";
@@ -3,7 +3,7 @@ const require_background = require("./background-wugr6cG7.cjs");
3
3
  const require_border = require("./border-UuT-fTpy.cjs");
4
4
  const require_color = require("./color-BNs17Gw-.cjs");
5
5
  const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
6
- const require_grid = require("./grid-CvJv0uga.cjs");
6
+ const require_grid = require("./grid-NyoJxJGh.cjs");
7
7
  const require_layout = require("./layout-D3pG7vBp.cjs");
8
8
  const require_position = require("./position-zWvCE4hD.cjs");
9
9
  const require_typography = require("./typography-7jHZXqtc.cjs");
@@ -7,7 +7,7 @@ const require_background = require("./background-wugr6cG7.cjs");
7
7
  const require_border = require("./border-UuT-fTpy.cjs");
8
8
  const require_color = require("./color-BNs17Gw-.cjs");
9
9
  const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
10
- const require_grid = require("./grid-CvJv0uga.cjs");
10
+ const require_grid = require("./grid-NyoJxJGh.cjs");
11
11
  const require_layout = require("./layout-D3pG7vBp.cjs");
12
12
  const require_position = require("./position-zWvCE4hD.cjs");
13
13
  const require_typography = require("./typography-7jHZXqtc.cjs");
@@ -2,7 +2,7 @@ import { t as background } from "./background-B-jql3jb.mjs";
2
2
  import { t as border } from "./border-Dder4Dhp.mjs";
3
3
  import { t as color } from "./color-CGmMe8yP.mjs";
4
4
  import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
5
- import { a as grid } from "./grid-Du9HrjII.mjs";
5
+ import { a as grid } from "./grid-D6l0ftY0.mjs";
6
6
  import { t as layout } from "./layout-DF83ooFn.mjs";
7
7
  import { t as position } from "./position-jf6VlRyR.mjs";
8
8
  import { t as typography } from "./typography-p6qWP6Px.mjs";
package/dist/props.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_presets = require("./presets-mePesdYM.cjs");
2
+ const require_presets = require("./presets-DNjUFNNu.cjs");
3
3
  //#region src/props/props.ts
4
4
  const styledSystemProps = new Set(require_presets.all.propNames);
5
5
  const omit = (props) => {
package/dist/props.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as all } from "./presets-Cxa2Xoxa.mjs";
1
+ import { t as all } from "./presets-CrIKAUbJ.mjs";
2
2
  //#region src/props/props.ts
3
3
  const styledSystemProps = new Set(all.propNames);
4
4
  const omit = (props) => {
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
6
- const require_presets = require("./presets-mePesdYM.cjs");
6
+ const require_presets = require("./presets-DNjUFNNu.cjs");
7
7
  let _emotion_is_prop_valid = require("@emotion/is-prop-valid");
8
8
  _emotion_is_prop_valid = require_rolldown_runtime.__toESM(_emotion_is_prop_valid, 1);
9
9
  //#region src/should-forward-prop/should-forward-prop.ts
@@ -1,4 +1,4 @@
1
- import { t as all } from "./presets-Cxa2Xoxa.mjs";
1
+ import { t as all } from "./presets-CrIKAUbJ.mjs";
2
2
  import isPropValid from "@emotion/is-prop-valid";
3
3
  //#region src/should-forward-prop/should-forward-prop.ts
4
4
  const memoize = (fn) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soroush.tech/styled-system",
3
- "version": "6.0.0-alpha.3",
3
+ "version": "6.0.0-alpha.4",
4
4
  "description": "Maintained, first-class-TypeScript rewrite of styled-system - responsive, theme-aware style props for CSS-in-JS. Drop-in replacement for styled-system v5.",
5
5
  "keywords": [
6
6
  "styled-system",