@soroush.tech/styled-system 5.5.0 → 5.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.
Files changed (63) hide show
  1. package/dist/background.d.cts +2 -2
  2. package/dist/background.d.mts +2 -2
  3. package/dist/border.d.cts +2 -2
  4. package/dist/border.d.mts +2 -2
  5. package/dist/color.d.cts +2 -2
  6. package/dist/color.d.mts +2 -2
  7. package/dist/core.d.cts +2 -2
  8. package/dist/core.d.mts +2 -2
  9. package/dist/css.d.cts +5 -5
  10. package/dist/css.d.mts +5 -5
  11. package/dist/flexbox.d.cts +2 -2
  12. package/dist/flexbox.d.mts +2 -2
  13. package/dist/grid.d.cts +2 -2
  14. package/dist/grid.d.mts +2 -2
  15. package/dist/{index-CeQ5ox80.d.mts → index-3ARRkYzk.d.cts} +4 -2
  16. package/dist/{index-BrXslH97.d.cts → index-5Dg1n1IR.d.mts} +1 -1
  17. package/dist/index-9XAypLoH.d.cts +5 -0
  18. package/dist/{index-F79chYlR.d.mts → index-BG0pPPzE.d.cts} +1 -1
  19. package/dist/index-BNjbPqRC.d.mts +5 -0
  20. package/dist/{index-5FNmSnEI.d.cts → index-BPJls8qs.d.mts} +4 -2
  21. package/dist/{index-DS-HZ740.d.cts → index-BTrJCMxb.d.mts} +1 -1
  22. package/dist/{index-BPHA_boa.d.mts → index-Bbzsc0fR.d.mts} +1 -1
  23. package/dist/{index-D7-Ctdwn.d.mts → index-CRGalTX2.d.mts} +1 -1
  24. package/dist/{index-DLcnFzWU.d.mts → index-CdED1s71.d.mts} +1 -1
  25. package/dist/{index-CuQx9h4Q.d.cts → index-CglXC0Pa.d.cts} +1 -1
  26. package/dist/{index-Bd7E_7bm.d.cts → index-CoMWxd1i.d.cts} +1 -1
  27. package/dist/{index-C6pWum7i.d.cts → index-D4Btc5H8.d.cts} +11 -8
  28. package/dist/{index-C6pWum7i.d.mts → index-D4Btc5H8.d.mts} +11 -8
  29. package/dist/{index--0QXsrzB.d.mts → index-DLVfllTy.d.mts} +1 -1
  30. package/dist/{index-DzPnzx9p.d.mts → index-DP4kqDsJ.d.cts} +1 -1
  31. package/dist/{index-CvbdNFVK.d.cts → index-DQKgrHjA.d.mts} +1 -1
  32. package/dist/{index-Cq-vX0It.d.mts → index-DSKs82W7.d.cts} +1 -1
  33. package/dist/{index-BFzj-f22.d.cts → index-DuGi82Ma.d.cts} +1 -1
  34. package/dist/{index-BDKAW1u8.d.mts → index-HQb_WHtN.d.mts} +1 -1
  35. package/dist/{index-B4DiqzRr.d.cts → index-JB48cMyT.d.cts} +1 -1
  36. package/dist/index-XUBjyEVU.d.mts +5 -0
  37. package/dist/{index-Dz8xde7b.d.cts → index-hBpseU4Y.d.cts} +1 -1
  38. package/dist/index-yk0Zqc7v.d.cts +5 -0
  39. package/dist/index.d.cts +16 -14
  40. package/dist/index.d.mts +16 -14
  41. package/dist/layout.d.cts +2 -2
  42. package/dist/layout.d.mts +2 -2
  43. package/dist/position.d.cts +2 -2
  44. package/dist/position.d.mts +2 -2
  45. package/dist/shadow.d.cts +2 -2
  46. package/dist/shadow.d.mts +2 -2
  47. package/dist/space.d.cts +2 -2
  48. package/dist/space.d.mts +2 -2
  49. package/dist/theme-get.cjs +1 -1
  50. package/dist/theme-get.d.cts +1 -3
  51. package/dist/theme-get.d.mts +1 -3
  52. package/dist/theme-get.mjs +1 -1
  53. package/dist/{types-CCujn9-2.d.cts → types-CkHJArGA.d.cts} +5 -5
  54. package/dist/{types-CCujn9-2.d.mts → types-CkHJArGA.d.mts} +5 -5
  55. package/dist/typography.d.cts +2 -2
  56. package/dist/typography.d.mts +2 -2
  57. package/dist/variant.d.cts +3 -3
  58. package/dist/variant.d.mts +3 -3
  59. package/package.json +4 -1
  60. package/dist/index-BvNoOnuk.d.mts +0 -5
  61. package/dist/index-D9W3cc9s.d.mts +0 -5
  62. package/dist/index-Dxn97XnB.d.cts +0 -5
  63. package/dist/index-HNU5ME-U.d.cts +0 -5
@@ -1,3 +1,3 @@
1
- import { t as background } from "./index-BFzj-f22.cjs";
2
- import { a as BackgroundImageProps, c as BackgroundRepeatProps, l as BackgroundSizeProps, o as BackgroundPositionProps, s as BackgroundProps } from "./types-CCujn9-2.cjs";
1
+ import { t as background } from "./index-DuGi82Ma.cjs";
2
+ import { a as BackgroundImageProps, c as BackgroundRepeatProps, l as BackgroundSizeProps, o as BackgroundPositionProps, s as BackgroundProps } from "./types-CkHJArGA.cjs";
3
3
  export { type BackgroundImageProps, type BackgroundPositionProps, type BackgroundProps, type BackgroundRepeatProps, type BackgroundSizeProps, background, background as default };
@@ -1,3 +1,3 @@
1
- import { t as background } from "./index-BDKAW1u8.mjs";
2
- import { a as BackgroundImageProps, c as BackgroundRepeatProps, l as BackgroundSizeProps, o as BackgroundPositionProps, s as BackgroundProps } from "./types-CCujn9-2.mjs";
1
+ import { t as background } from "./index-HQb_WHtN.mjs";
2
+ import { a as BackgroundImageProps, c as BackgroundRepeatProps, l as BackgroundSizeProps, o as BackgroundPositionProps, s as BackgroundProps } from "./types-CkHJArGA.mjs";
3
3
  export { type BackgroundImageProps, type BackgroundPositionProps, type BackgroundProps, type BackgroundRepeatProps, type BackgroundSizeProps, background, background as default };
package/dist/border.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as BorderTopProps, d as BorderColorProps, f as BorderLeftProps, g as BorderStyleProps, h as BorderRightProps, m as BorderRadiusProps, p as BorderProps, u as BorderBottomProps, v as BorderWidthProps } from "./types-CCujn9-2.cjs";
2
- import { t as border } from "./index-Dz8xde7b.cjs";
1
+ import { _ as BorderTopProps, d as BorderColorProps, f as BorderLeftProps, g as BorderStyleProps, h as BorderRightProps, m as BorderRadiusProps, p as BorderProps, u as BorderBottomProps, v as BorderWidthProps } from "./types-CkHJArGA.cjs";
2
+ import { t as border } from "./index-hBpseU4Y.cjs";
3
3
  export { type BorderBottomProps, type BorderColorProps, type BorderLeftProps, type BorderProps, type BorderRadiusProps, type BorderRightProps, type BorderStyleProps, type BorderTopProps, type BorderWidthProps, border, border as default };
package/dist/border.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as BorderTopProps, d as BorderColorProps, f as BorderLeftProps, g as BorderStyleProps, h as BorderRightProps, m as BorderRadiusProps, p as BorderProps, u as BorderBottomProps, v as BorderWidthProps } from "./types-CCujn9-2.mjs";
2
- import { t as border } from "./index-DLcnFzWU.mjs";
1
+ import { _ as BorderTopProps, d as BorderColorProps, f as BorderLeftProps, g as BorderStyleProps, h as BorderRightProps, m as BorderRadiusProps, p as BorderProps, u as BorderBottomProps, v as BorderWidthProps } from "./types-CkHJArGA.mjs";
2
+ import { t as border } from "./index-CdED1s71.mjs";
3
3
  export { type BorderBottomProps, type BorderColorProps, type BorderLeftProps, type BorderProps, type BorderRadiusProps, type BorderRightProps, type BorderStyleProps, type BorderTopProps, type BorderWidthProps, border, border as default };
package/dist/color.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { Ct as TextColorProps, S as ColorProps, i as BackgroundColorProps, lt as OpacityProps } from "./types-CCujn9-2.cjs";
2
- import { t as color } from "./index-Dxn97XnB.cjs";
1
+ import { Ct as TextColorProps, S as ColorProps, i as BackgroundColorProps, lt as OpacityProps } from "./types-CkHJArGA.cjs";
2
+ import { t as color } from "./index-9XAypLoH.cjs";
3
3
  export { type BackgroundColorProps, type ColorProps, type OpacityProps, type TextColorProps, color, color as default };
package/dist/color.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { Ct as TextColorProps, S as ColorProps, i as BackgroundColorProps, lt as OpacityProps } from "./types-CCujn9-2.mjs";
2
- import { t as color } from "./index-D9W3cc9s.mjs";
1
+ import { Ct as TextColorProps, S as ColorProps, i as BackgroundColorProps, lt as OpacityProps } from "./types-CkHJArGA.mjs";
2
+ import { t as color } from "./index-BNjbPqRC.mjs";
3
3
  export { type BackgroundColorProps, type ColorProps, type OpacityProps, type TextColorProps, color, color as default };
package/dist/core.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, h as merge, i as ParserConfig, l as Theme, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, t as CSSObject, u as Transform } from "./index-C6pWum7i.cjs";
2
- export { CSSObject, ConfigStyle, Parser, ParserConfig, Props, StyleFn, StyleObject, SystemConfig, Theme, Transform, compose, createParser, createStyleFunction, get, merge, system };
1
+ import { _ as merge, a as Parser, c as StyleFn, d as Theme, f as Transform, g as get, h as createStyleFunction, i as ConfigStyle, l as StyleObject, m as createParser, n as Config, o as ParserConfig, p as compose, r as ConfigFunction, s as Props, t as CSSObject, u as SystemConfig, v as styleFn, y as system } from "./index-D4Btc5H8.cjs";
2
+ export { CSSObject, Config, ConfigFunction, ConfigStyle, Parser, ParserConfig, Props, StyleFn, StyleObject, SystemConfig, Theme, Transform, compose, createParser, createStyleFunction, get, merge, styleFn, system };
package/dist/core.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, h as merge, i as ParserConfig, l as Theme, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, t as CSSObject, u as Transform } from "./index-C6pWum7i.mjs";
2
- export { CSSObject, ConfigStyle, Parser, ParserConfig, Props, StyleFn, StyleObject, SystemConfig, Theme, Transform, compose, createParser, createStyleFunction, get, merge, system };
1
+ import { _ as merge, a as Parser, c as StyleFn, d as Theme, f as Transform, g as get, h as createStyleFunction, i as ConfigStyle, l as StyleObject, m as createParser, n as Config, o as ParserConfig, p as compose, r as ConfigFunction, s as Props, t as CSSObject, u as SystemConfig, v as styleFn, y as system } from "./index-D4Btc5H8.mjs";
2
+ export { CSSObject, Config, ConfigFunction, ConfigStyle, Parser, ParserConfig, Props, StyleFn, StyleObject, SystemConfig, Theme, Transform, compose, createParser, createStyleFunction, get, merge, styleFn, system };
package/dist/css.d.cts CHANGED
@@ -1,12 +1,12 @@
1
1
  //#region src/css/css.d.ts
2
- type CssObject = Record<string, unknown>;
2
+ type CSSObject = Record<string, unknown>;
3
3
  interface CssTheme {
4
4
  breakpoints?: (string | number)[];
5
5
  [key: string]: unknown;
6
6
  }
7
- type CssArg = CssObject | ((theme: CssTheme) => CssObject);
7
+ type CssArg = CSSObject | ((theme: CssTheme) => CSSObject);
8
8
  declare const get: (obj: unknown, key?: string | number, def?: unknown, p?: number, undef?: unknown) => unknown;
9
- declare const responsive: (styles: CssObject) => (theme: CssTheme) => CssObject;
10
- declare const css: (args: CssArg) => (props?: Record<string, unknown>) => CssObject;
9
+ declare const responsive: (styles: CSSObject) => (theme: CssTheme) => CSSObject;
10
+ declare const css: (args: CssArg) => (props?: Record<string, unknown>) => CSSObject;
11
11
  //#endregion
12
- export { CssObject, CssTheme, css, css as default, get, responsive };
12
+ export { CSSObject, CssTheme, css, css as default, get, responsive };
package/dist/css.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  //#region src/css/css.d.ts
2
- type CssObject = Record<string, unknown>;
2
+ type CSSObject = Record<string, unknown>;
3
3
  interface CssTheme {
4
4
  breakpoints?: (string | number)[];
5
5
  [key: string]: unknown;
6
6
  }
7
- type CssArg = CssObject | ((theme: CssTheme) => CssObject);
7
+ type CssArg = CSSObject | ((theme: CssTheme) => CSSObject);
8
8
  declare const get: (obj: unknown, key?: string | number, def?: unknown, p?: number, undef?: unknown) => unknown;
9
- declare const responsive: (styles: CssObject) => (theme: CssTheme) => CssObject;
10
- declare const css: (args: CssArg) => (props?: Record<string, unknown>) => CssObject;
9
+ declare const responsive: (styles: CSSObject) => (theme: CssTheme) => CSSObject;
10
+ declare const css: (args: CssArg) => (props?: Record<string, unknown>) => CSSObject;
11
11
  //#endregion
12
- export { CssObject, CssTheme, css, css as default, get, responsive };
12
+ export { CSSObject, CssTheme, css, css as default, get, responsive };
@@ -1,3 +1,3 @@
1
- import { A as FlexWrapProps, D as FlexGrowProps, E as FlexDirectionProps, O as FlexProps, Q as JustifySelfProps, T as FlexBasisProps, X as JustifyContentProps, Z as JustifyItemsProps, j as FlexboxProps, k as FlexShrinkProps, n as AlignItemsProps, r as AlignSelfProps, t as AlignContentProps, ut as OrderProps } from "./types-CCujn9-2.cjs";
2
- import { t as flexbox } from "./index-Bd7E_7bm.cjs";
1
+ import { A as FlexWrapProps, D as FlexGrowProps, E as FlexDirectionProps, O as FlexProps, Q as JustifySelfProps, T as FlexBasisProps, X as JustifyContentProps, Z as JustifyItemsProps, j as FlexboxProps, k as FlexShrinkProps, n as AlignItemsProps, r as AlignSelfProps, t as AlignContentProps, ut as OrderProps } from "./types-CkHJArGA.cjs";
2
+ import { t as flexbox } from "./index-CoMWxd1i.cjs";
3
3
  export { type AlignContentProps, type AlignItemsProps, type AlignSelfProps, type FlexBasisProps, type FlexDirectionProps, type FlexGrowProps, type FlexProps, type FlexShrinkProps, type FlexWrapProps, type FlexboxProps, type JustifyContentProps, type JustifyItemsProps, type JustifySelfProps, type OrderProps, flexbox as default, flexbox };
@@ -1,3 +1,3 @@
1
- import { A as FlexWrapProps, D as FlexGrowProps, E as FlexDirectionProps, O as FlexProps, Q as JustifySelfProps, T as FlexBasisProps, X as JustifyContentProps, Z as JustifyItemsProps, j as FlexboxProps, k as FlexShrinkProps, n as AlignItemsProps, r as AlignSelfProps, t as AlignContentProps, ut as OrderProps } from "./types-CCujn9-2.mjs";
2
- import { t as flexbox } from "./index-D7-Ctdwn.mjs";
1
+ import { A as FlexWrapProps, D as FlexGrowProps, E as FlexDirectionProps, O as FlexProps, Q as JustifySelfProps, T as FlexBasisProps, X as JustifyContentProps, Z as JustifyItemsProps, j as FlexboxProps, k as FlexShrinkProps, n as AlignItemsProps, r as AlignSelfProps, t as AlignContentProps, ut as OrderProps } from "./types-CkHJArGA.mjs";
2
+ import { t as flexbox } from "./index-CRGalTX2.mjs";
3
3
  export { type AlignContentProps, type AlignItemsProps, type AlignSelfProps, type FlexBasisProps, type FlexDirectionProps, type FlexGrowProps, type FlexProps, type FlexShrinkProps, type FlexWrapProps, type FlexboxProps, type JustifyContentProps, type JustifyItemsProps, type JustifySelfProps, type OrderProps, flexbox as default, flexbox };
package/dist/grid.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { B as GridColumnGapProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, R as GridAutoFlowProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, q as GridTemplateColumnsProps, z as GridAutoRowsProps } from "./types-CCujn9-2.cjs";
2
- import { t as grid } from "./index-HNU5ME-U.cjs";
1
+ import { B as GridColumnGapProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, R as GridAutoFlowProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, q as GridTemplateColumnsProps, z as GridAutoRowsProps } from "./types-CkHJArGA.cjs";
2
+ import { t as grid } from "./index-yk0Zqc7v.cjs";
3
3
  export { type GridAreaProps, type GridAutoColumnsProps, type GridAutoFlowProps, type GridAutoRowsProps, type GridColumnGapProps, type GridColumnProps, type GridGapProps, type GridProps, type GridRowGapProps, type GridRowProps, type GridTemplateAreasProps, type GridTemplateColumnsProps, type GridTemplateRowsProps, grid as default, grid };
package/dist/grid.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { B as GridColumnGapProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, R as GridAutoFlowProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, q as GridTemplateColumnsProps, z as GridAutoRowsProps } from "./types-CCujn9-2.mjs";
2
- import { t as grid } from "./index-BvNoOnuk.mjs";
1
+ import { B as GridColumnGapProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, R as GridAutoFlowProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, q as GridTemplateColumnsProps, z as GridAutoRowsProps } from "./types-CkHJArGA.mjs";
2
+ import { t as grid } from "./index-XUBjyEVU.mjs";
3
3
  export { type GridAreaProps, type GridAutoColumnsProps, type GridAutoFlowProps, type GridAutoRowsProps, type GridColumnGapProps, type GridColumnProps, type GridGapProps, type GridProps, type GridRowGapProps, type GridRowProps, type GridTemplateAreasProps, type GridTemplateColumnsProps, type GridTemplateRowsProps, grid as default, grid };
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/variant/variant.d.ts
3
3
  interface VariantOptions {
4
4
  scale?: string;
@@ -6,9 +6,11 @@ interface VariantOptions {
6
6
  variants?: Record<string, unknown>;
7
7
  key?: string;
8
8
  }
9
+ /** Upstream `@types/styled-system` name for {@link VariantOptions}. */
10
+ type VariantArgs = VariantOptions;
9
11
  declare const variant: (options?: VariantOptions) => Parser;
10
12
  declare const buttonStyle: Parser;
11
13
  declare const textStyle: Parser;
12
14
  declare const colorStyle: Parser;
13
15
  //#endregion
14
- export { variant as a, textStyle as i, buttonStyle as n, colorStyle as r, VariantOptions as t };
16
+ export { textStyle as a, colorStyle as i, VariantOptions as n, variant as o, buttonStyle as r, VariantArgs as t };
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/typography/typography.d.ts
3
3
  declare const typography: Parser;
4
4
  //#endregion
@@ -0,0 +1,5 @@
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
+ //#region src/color/color.d.ts
3
+ declare const color: Parser;
4
+ //#endregion
5
+ export { color as t };
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/shadow/shadow.d.ts
3
3
  declare const shadow: Parser;
4
4
  //#endregion
@@ -0,0 +1,5 @@
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
+ //#region src/color/color.d.ts
3
+ declare const color: Parser;
4
+ //#endregion
5
+ export { color as t };
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/variant/variant.d.ts
3
3
  interface VariantOptions {
4
4
  scale?: string;
@@ -6,9 +6,11 @@ interface VariantOptions {
6
6
  variants?: Record<string, unknown>;
7
7
  key?: string;
8
8
  }
9
+ /** Upstream `@types/styled-system` name for {@link VariantOptions}. */
10
+ type VariantArgs = VariantOptions;
9
11
  declare const variant: (options?: VariantOptions) => Parser;
10
12
  declare const buttonStyle: Parser;
11
13
  declare const textStyle: Parser;
12
14
  declare const colorStyle: Parser;
13
15
  //#endregion
14
- export { variant as a, textStyle as i, buttonStyle as n, colorStyle as r, VariantOptions as t };
16
+ export { textStyle as a, colorStyle as i, VariantOptions as n, variant as o, buttonStyle as r, VariantArgs as t };
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/position/position.d.ts
3
3
  declare const position: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/layout/layout.d.ts
3
3
  declare const layout: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/flexbox/flexbox.d.ts
3
3
  declare const flexbox: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/border/border.d.ts
3
3
  declare const border: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/layout/layout.d.ts
3
3
  declare const layout: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/flexbox/flexbox.d.ts
3
3
  declare const flexbox: Parser;
4
4
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import * as CSS from "csstype";
2
2
 
3
3
  //#region src/core/core.d.ts
4
- type StyleObject = Record<string, unknown>;
4
+ type StyleObject = Record<string, any>;
5
5
  type CSSLength = string | number;
6
6
  /**
7
7
  * A CSS-in-JS style object: typed CSS properties plus nested selectors, at-rules
@@ -15,27 +15,30 @@ interface CSSObject extends CSS.Properties<CSSLength>, CSS.PropertiesHyphen<CSSL
15
15
  interface Theme {
16
16
  breakpoints?: readonly (string | number)[] | Record<string, string | number>;
17
17
  disableStyledSystemCache?: boolean;
18
- [key: string]: unknown;
18
+ [key: string]: any;
19
19
  }
20
20
  interface Props {
21
21
  theme?: Theme;
22
- [key: string]: unknown;
22
+ [key: string]: any;
23
23
  }
24
- type Transform = (value: any, scale?: any, props?: Props) => any;
24
+ type Transform = (value: any, scale?: any, props?: any) => any;
25
25
  interface StyleFn {
26
- (value: unknown, scale?: unknown, props?: Props): StyleObject | undefined;
26
+ (value: any, scale?: any, props?: any): StyleObject | undefined;
27
27
  scale?: string;
28
- defaults?: unknown;
28
+ defaults?: any;
29
29
  }
30
30
  interface ConfigStyle {
31
31
  property?: string;
32
32
  properties?: string[];
33
33
  scale?: string;
34
34
  transform?: Transform;
35
- defaultScale?: unknown;
35
+ defaultScale?: any;
36
36
  }
37
37
  type SystemConfig = Record<string, boolean | StyleFn | ConfigStyle>;
38
38
  type ParserConfig = Record<string, StyleFn>;
39
+ type styleFn = Parser;
40
+ type Config = SystemConfig;
41
+ type ConfigFunction = StyleFn;
39
42
  interface ParserCache {
40
43
  breakpoints?: readonly (string | number)[] | Record<string, string | number>;
41
44
  media?: (string | null)[];
@@ -59,4 +62,4 @@ declare const createStyleFunction: ({
59
62
  declare const system: (args?: SystemConfig) => Parser;
60
63
  declare const compose: (...parsers: (Parser | undefined)[]) => Parser;
61
64
  //#endregion
62
- export { Props as a, SystemConfig as c, compose as d, createParser as f, system as g, merge as h, ParserConfig as i, Theme as l, get as m, ConfigStyle as n, StyleFn as o, createStyleFunction as p, Parser as r, StyleObject as s, CSSObject as t, Transform as u };
65
+ export { merge as _, Parser as a, StyleFn as c, Theme as d, Transform as f, get as g, createStyleFunction as h, ConfigStyle as i, StyleObject as l, createParser as m, Config as n, ParserConfig as o, compose as p, ConfigFunction as r, Props as s, CSSObject as t, SystemConfig as u, styleFn as v, system as y };
@@ -1,7 +1,7 @@
1
1
  import * as CSS from "csstype";
2
2
 
3
3
  //#region src/core/core.d.ts
4
- type StyleObject = Record<string, unknown>;
4
+ type StyleObject = Record<string, any>;
5
5
  type CSSLength = string | number;
6
6
  /**
7
7
  * A CSS-in-JS style object: typed CSS properties plus nested selectors, at-rules
@@ -15,27 +15,30 @@ interface CSSObject extends CSS.Properties<CSSLength>, CSS.PropertiesHyphen<CSSL
15
15
  interface Theme {
16
16
  breakpoints?: readonly (string | number)[] | Record<string, string | number>;
17
17
  disableStyledSystemCache?: boolean;
18
- [key: string]: unknown;
18
+ [key: string]: any;
19
19
  }
20
20
  interface Props {
21
21
  theme?: Theme;
22
- [key: string]: unknown;
22
+ [key: string]: any;
23
23
  }
24
- type Transform = (value: any, scale?: any, props?: Props) => any;
24
+ type Transform = (value: any, scale?: any, props?: any) => any;
25
25
  interface StyleFn {
26
- (value: unknown, scale?: unknown, props?: Props): StyleObject | undefined;
26
+ (value: any, scale?: any, props?: any): StyleObject | undefined;
27
27
  scale?: string;
28
- defaults?: unknown;
28
+ defaults?: any;
29
29
  }
30
30
  interface ConfigStyle {
31
31
  property?: string;
32
32
  properties?: string[];
33
33
  scale?: string;
34
34
  transform?: Transform;
35
- defaultScale?: unknown;
35
+ defaultScale?: any;
36
36
  }
37
37
  type SystemConfig = Record<string, boolean | StyleFn | ConfigStyle>;
38
38
  type ParserConfig = Record<string, StyleFn>;
39
+ type styleFn = Parser;
40
+ type Config = SystemConfig;
41
+ type ConfigFunction = StyleFn;
39
42
  interface ParserCache {
40
43
  breakpoints?: readonly (string | number)[] | Record<string, string | number>;
41
44
  media?: (string | null)[];
@@ -59,4 +62,4 @@ declare const createStyleFunction: ({
59
62
  declare const system: (args?: SystemConfig) => Parser;
60
63
  declare const compose: (...parsers: (Parser | undefined)[]) => Parser;
61
64
  //#endregion
62
- export { Props as a, SystemConfig as c, compose as d, createParser as f, system as g, merge as h, ParserConfig as i, Theme as l, get as m, ConfigStyle as n, StyleFn as o, createStyleFunction as p, Parser as r, StyleObject as s, CSSObject as t, Transform as u };
65
+ export { merge as _, Parser as a, StyleFn as c, Theme as d, Transform as f, get as g, createStyleFunction as h, ConfigStyle as i, StyleObject as l, createParser as m, Config as n, ParserConfig as o, compose as p, ConfigFunction as r, Props as s, CSSObject as t, SystemConfig as u, styleFn as v, system as y };
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/space/space.d.ts
3
3
  declare const margin: Parser;
4
4
  declare const padding: Parser;
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/typography/typography.d.ts
3
3
  declare const typography: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/shadow/shadow.d.ts
3
3
  declare const shadow: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/position/position.d.ts
3
3
  declare const position: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/background/background.d.ts
3
3
  declare const background: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
2
  //#region src/background/background.d.ts
3
3
  declare const background: Parser;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/space/space.d.ts
3
3
  declare const margin: Parser;
4
4
  declare const padding: Parser;
@@ -0,0 +1,5 @@
1
+ import { a as Parser } from "./index-D4Btc5H8.mjs";
2
+ //#region src/grid/grid.d.ts
3
+ declare const grid: Parser;
4
+ //#endregion
5
+ export { grid as t };
@@ -1,4 +1,4 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
2
  //#region src/border/border.d.ts
3
3
  declare const border: Parser;
4
4
  //#endregion
@@ -0,0 +1,5 @@
1
+ import { a as Parser } from "./index-D4Btc5H8.cjs";
2
+ //#region src/grid/grid.d.ts
3
+ declare const grid: Parser;
4
+ //#endregion
5
+ export { grid as t };
package/dist/index.d.cts CHANGED
@@ -1,16 +1,16 @@
1
- import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, i as ParserConfig, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, u as Transform } from "./index-C6pWum7i.cjs";
2
- import { t as background } from "./index-BFzj-f22.cjs";
3
- import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CCujn9-2.cjs";
4
- import { t as border } from "./index-Dz8xde7b.cjs";
5
- import { t as color } from "./index-Dxn97XnB.cjs";
6
- import { t as flexbox } from "./index-Bd7E_7bm.cjs";
7
- import { t as grid } from "./index-HNU5ME-U.cjs";
8
- import { n as padding, r as space, t as margin } from "./index-B4DiqzRr.cjs";
9
- import { t as layout } from "./index-CuQx9h4Q.cjs";
10
- import { t as typography } from "./index-BrXslH97.cjs";
11
- import { t as position } from "./index-DS-HZ740.cjs";
12
- import { t as shadow } from "./index-CvbdNFVK.cjs";
13
- import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle } from "./index-5FNmSnEI.cjs";
1
+ import { a as Parser, c as StyleFn, f as Transform, g as get, h as createStyleFunction, i as ConfigStyle, l as StyleObject, m as createParser, n as Config, o as ParserConfig, p as compose, r as ConfigFunction, s as Props, u as SystemConfig, v as styleFn, y as system } from "./index-D4Btc5H8.cjs";
2
+ import { t as background } from "./index-DuGi82Ma.cjs";
3
+ import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CkHJArGA.cjs";
4
+ import { t as border } from "./index-hBpseU4Y.cjs";
5
+ import { t as color } from "./index-9XAypLoH.cjs";
6
+ import { t as flexbox } from "./index-CoMWxd1i.cjs";
7
+ import { t as grid } from "./index-yk0Zqc7v.cjs";
8
+ import { n as padding, r as space, t as margin } from "./index-JB48cMyT.cjs";
9
+ import { t as layout } from "./index-CglXC0Pa.cjs";
10
+ import { t as typography } from "./index-DP4kqDsJ.cjs";
11
+ import { t as position } from "./index-DSKs82W7.cjs";
12
+ import { t as shadow } from "./index-BG0pPPzE.cjs";
13
+ import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-3ARRkYzk.cjs";
14
14
 
15
15
  //#region src/style/style.d.ts
16
16
  interface StyleOptions {
@@ -22,6 +22,8 @@ interface StyleOptions {
22
22
  scale?: unknown;
23
23
  properties?: string[];
24
24
  }
25
+ /** Upstream `@types/styled-system` name for {@link StyleOptions}. */
26
+ type LowLevelStyleFunctionArguments = StyleOptions;
25
27
  declare const style: ({
26
28
  prop,
27
29
  cssProperty,
@@ -96,4 +98,4 @@ declare const right: Parser;
96
98
  declare const bottom: Parser;
97
99
  declare const left: Parser;
98
100
  //#endregion
99
- export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
101
+ export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type Config, type ConfigFunction, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, type LowLevelStyleFunctionArguments, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type StyleOptions, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, type VariantArgs, type VariantOptions, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, type styleFn, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
package/dist/index.d.mts CHANGED
@@ -1,16 +1,16 @@
1
- import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, i as ParserConfig, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, u as Transform } from "./index-C6pWum7i.mjs";
2
- import { t as background } from "./index-BDKAW1u8.mjs";
3
- import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CCujn9-2.mjs";
4
- import { t as border } from "./index-DLcnFzWU.mjs";
5
- import { t as color } from "./index-D9W3cc9s.mjs";
6
- import { t as flexbox } from "./index-D7-Ctdwn.mjs";
7
- import { t as grid } from "./index-BvNoOnuk.mjs";
8
- import { n as padding, r as space, t as margin } from "./index--0QXsrzB.mjs";
9
- import { t as layout } from "./index-BPHA_boa.mjs";
10
- import { t as typography } from "./index-DzPnzx9p.mjs";
11
- import { t as position } from "./index-Cq-vX0It.mjs";
12
- import { t as shadow } from "./index-F79chYlR.mjs";
13
- import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle } from "./index-CeQ5ox80.mjs";
1
+ import { a as Parser, c as StyleFn, f as Transform, g as get, h as createStyleFunction, i as ConfigStyle, l as StyleObject, m as createParser, n as Config, o as ParserConfig, p as compose, r as ConfigFunction, s as Props, u as SystemConfig, v as styleFn, y as system } from "./index-D4Btc5H8.mjs";
2
+ import { t as background } from "./index-HQb_WHtN.mjs";
3
+ import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CkHJArGA.mjs";
4
+ import { t as border } from "./index-CdED1s71.mjs";
5
+ import { t as color } from "./index-BNjbPqRC.mjs";
6
+ import { t as flexbox } from "./index-CRGalTX2.mjs";
7
+ import { t as grid } from "./index-XUBjyEVU.mjs";
8
+ import { n as padding, r as space, t as margin } from "./index-DLVfllTy.mjs";
9
+ import { t as layout } from "./index-Bbzsc0fR.mjs";
10
+ import { t as typography } from "./index-5Dg1n1IR.mjs";
11
+ import { t as position } from "./index-BTrJCMxb.mjs";
12
+ import { t as shadow } from "./index-DQKgrHjA.mjs";
13
+ import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BPJls8qs.mjs";
14
14
 
15
15
  //#region src/style/style.d.ts
16
16
  interface StyleOptions {
@@ -22,6 +22,8 @@ interface StyleOptions {
22
22
  scale?: unknown;
23
23
  properties?: string[];
24
24
  }
25
+ /** Upstream `@types/styled-system` name for {@link StyleOptions}. */
26
+ type LowLevelStyleFunctionArguments = StyleOptions;
25
27
  declare const style: ({
26
28
  prop,
27
29
  cssProperty,
@@ -96,4 +98,4 @@ declare const right: Parser;
96
98
  declare const bottom: Parser;
97
99
  declare const left: Parser;
98
100
  //#endregion
99
- export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
101
+ export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type Config, type ConfigFunction, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, type LowLevelStyleFunctionArguments, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type StyleOptions, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, type VariantArgs, type VariantOptions, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, type styleFn, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
package/dist/layout.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as LayoutProps, At as VerticalAlignProps, Y as HeightProps, at as MaxWidthProps, dt as OverflowProps, it as MaxHeightProps, jt as WidthProps, ot as MinHeightProps, st as MinWidthProps, w as DisplayProps, yt as SizeProps } from "./types-CCujn9-2.cjs";
2
- import { t as layout } from "./index-CuQx9h4Q.cjs";
1
+ import { $ as LayoutProps, At as VerticalAlignProps, Y as HeightProps, at as MaxWidthProps, dt as OverflowProps, it as MaxHeightProps, jt as WidthProps, ot as MinHeightProps, st as MinWidthProps, w as DisplayProps, yt as SizeProps } from "./types-CkHJArGA.cjs";
2
+ import { t as layout } from "./index-CglXC0Pa.cjs";
3
3
  export { type DisplayProps, type HeightProps, type LayoutProps, type MaxHeightProps, type MaxWidthProps, type MinHeightProps, type MinWidthProps, type OverflowProps, type SizeProps, type VerticalAlignProps, type WidthProps, layout as default, layout };
package/dist/layout.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as LayoutProps, At as VerticalAlignProps, Y as HeightProps, at as MaxWidthProps, dt as OverflowProps, it as MaxHeightProps, jt as WidthProps, ot as MinHeightProps, st as MinWidthProps, w as DisplayProps, yt as SizeProps } from "./types-CCujn9-2.mjs";
2
- import { t as layout } from "./index-BPHA_boa.mjs";
1
+ import { $ as LayoutProps, At as VerticalAlignProps, Y as HeightProps, at as MaxWidthProps, dt as OverflowProps, it as MaxHeightProps, jt as WidthProps, ot as MinHeightProps, st as MinWidthProps, w as DisplayProps, yt as SizeProps } from "./types-CkHJArGA.mjs";
2
+ import { t as layout } from "./index-Bbzsc0fR.mjs";
3
3
  export { type DisplayProps, type HeightProps, type LayoutProps, type MaxHeightProps, type MaxWidthProps, type MinHeightProps, type MinWidthProps, type OverflowProps, type SizeProps, type VerticalAlignProps, type WidthProps, layout as default, layout };
@@ -1,3 +1,3 @@
1
- import { Mt as ZIndexProps, Ot as TopProps, et as LeftProps, gt as RightProps, pt as PositionProps, y as BottomProps } from "./types-CCujn9-2.cjs";
2
- import { t as position } from "./index-DS-HZ740.cjs";
1
+ import { Mt as ZIndexProps, Ot as TopProps, et as LeftProps, gt as RightProps, pt as PositionProps, y as BottomProps } from "./types-CkHJArGA.cjs";
2
+ import { t as position } from "./index-DSKs82W7.cjs";
3
3
  export { type BottomProps, type LeftProps, type PositionProps, type RightProps, type TopProps, type ZIndexProps, position as default, position };
@@ -1,3 +1,3 @@
1
- import { Mt as ZIndexProps, Ot as TopProps, et as LeftProps, gt as RightProps, pt as PositionProps, y as BottomProps } from "./types-CCujn9-2.mjs";
2
- import { t as position } from "./index-Cq-vX0It.mjs";
1
+ import { Mt as ZIndexProps, Ot as TopProps, et as LeftProps, gt as RightProps, pt as PositionProps, y as BottomProps } from "./types-CkHJArGA.mjs";
2
+ import { t as position } from "./index-BTrJCMxb.mjs";
3
3
  export { type BottomProps, type LeftProps, type PositionProps, type RightProps, type TopProps, type ZIndexProps, position as default, position };
package/dist/shadow.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { b as BoxShadowProps, vt as ShadowProps, wt as TextShadowProps } from "./types-CCujn9-2.cjs";
2
- import { t as shadow } from "./index-CvbdNFVK.cjs";
1
+ import { b as BoxShadowProps, vt as ShadowProps, wt as TextShadowProps } from "./types-CkHJArGA.cjs";
2
+ import { t as shadow } from "./index-BG0pPPzE.cjs";
3
3
  export { type BoxShadowProps, type ShadowProps, type TextShadowProps, shadow as default, shadow };
package/dist/shadow.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { b as BoxShadowProps, vt as ShadowProps, wt as TextShadowProps } from "./types-CCujn9-2.mjs";
2
- import { t as shadow } from "./index-F79chYlR.mjs";
1
+ import { b as BoxShadowProps, vt as ShadowProps, wt as TextShadowProps } from "./types-CkHJArGA.mjs";
2
+ import { t as shadow } from "./index-DQKgrHjA.mjs";
3
3
  export { type BoxShadowProps, type ShadowProps, type TextShadowProps, shadow as default, shadow };
package/dist/space.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { bt as SpaceProps, ft as PaddingProps, rt as MarginProps } from "./types-CCujn9-2.cjs";
2
- import { n as padding, r as space, t as margin } from "./index-B4DiqzRr.cjs";
1
+ import { bt as SpaceProps, ft as PaddingProps, rt as MarginProps } from "./types-CkHJArGA.cjs";
2
+ import { n as padding, r as space, t as margin } from "./index-JB48cMyT.cjs";
3
3
  export { type MarginProps, type PaddingProps, type SpaceProps, space as default, space, margin, padding };
package/dist/space.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { bt as SpaceProps, ft as PaddingProps, rt as MarginProps } from "./types-CCujn9-2.mjs";
2
- import { n as padding, r as space, t as margin } from "./index--0QXsrzB.mjs";
1
+ import { bt as SpaceProps, ft as PaddingProps, rt as MarginProps } from "./types-CkHJArGA.mjs";
2
+ import { n as padding, r as space, t as margin } from "./index-DLVfllTy.mjs";
3
3
  export { type MarginProps, type PaddingProps, type SpaceProps, space as default, space, margin, padding };
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
4
4
  });
5
5
  const require_core = require("./core.cjs");
6
6
  //#region src/theme-get/theme-get.ts
7
- const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, path, fallback);
7
+ const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, Array.isArray(path) ? path.join(".") : path, fallback);
8
8
  //#endregion
9
9
  exports.default = themeGet;
10
10
  exports.themeGet = themeGet;
@@ -1,6 +1,4 @@
1
- import { a as Props } from "./index-C6pWum7i.cjs";
2
-
3
1
  //#region src/theme-get/theme-get.d.ts
4
- declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
2
+ declare const themeGet: (path: string | Array<string | number>, fallback?: any) => (props: any) => any;
5
3
  //#endregion
6
4
  export { themeGet as default, themeGet };
@@ -1,6 +1,4 @@
1
- import { a as Props } from "./index-C6pWum7i.mjs";
2
-
3
1
  //#region src/theme-get/theme-get.d.ts
4
- declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
2
+ declare const themeGet: (path: string | Array<string | number>, fallback?: any) => (props: any) => any;
5
3
  //#endregion
6
4
  export { themeGet as default, themeGet };
@@ -1,5 +1,5 @@
1
1
  import { get } from "./core.mjs";
2
2
  //#region src/theme-get/theme-get.ts
3
- const themeGet = (path, fallback = null) => (props) => get(props.theme, path, fallback);
3
+ const themeGet = (path, fallback = null) => (props) => get(props.theme, Array.isArray(path) ? path.join(".") : path, fallback);
4
4
  //#endregion
5
5
  export { themeGet as default, themeGet };
@@ -1,7 +1,7 @@
1
1
  import * as CSS from "csstype";
2
2
 
3
3
  //#region src/types.d.ts
4
- type ObjectOrArray<T, K extends keyof never = keyof never> = T[] | Record<K, T | Record<K, T> | T[]>;
4
+ type ObjectOrArray<T, K extends keyof any = keyof any> = T[] | Record<K, T | Record<K, T> | T[]>;
5
5
  type Scale = ObjectOrArray<number | string>;
6
6
  type TLengthStyledSystem = string | number;
7
7
  interface Theme<TLength = TLengthStyledSystem> {
@@ -28,7 +28,7 @@ interface Theme<TLength = TLengthStyledSystem> {
28
28
  textStyles?: ObjectOrArray<CSS.StandardProperties>;
29
29
  }
30
30
  type RequiredTheme = Required<Theme>;
31
- type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = unknown> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
31
+ type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
32
32
  type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T };
33
33
  interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
34
34
  m?: ResponsiveValue<TVal, ThemeType>;
@@ -102,7 +102,7 @@ interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
102
102
  interface FontSizeProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontSizes', ThemeType>> {
103
103
  fontSize?: ResponsiveValue<TVal, ThemeType>;
104
104
  }
105
- interface FontWeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontWeights', ThemeType> | string> {
105
+ interface FontWeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontWeights', ThemeType> | string | number> {
106
106
  fontWeight?: ResponsiveValue<TVal, ThemeType>;
107
107
  }
108
108
  interface LineHeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'lineHeights', ThemeType>> {
@@ -285,10 +285,10 @@ interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
285
285
  }
286
286
  interface GridProps<ThemeType extends Theme = RequiredTheme> extends GridGapProps<ThemeType>, GridColumnGapProps<ThemeType>, GridRowGapProps<ThemeType>, GridColumnProps<ThemeType>, GridRowProps<ThemeType>, GridAutoFlowProps<ThemeType>, GridAutoColumnsProps<ThemeType>, GridAutoRowsProps<ThemeType>, GridTemplateColumnsProps<ThemeType>, GridTemplateRowsProps<ThemeType>, GridTemplateAreasProps<ThemeType>, GridAreaProps<ThemeType> {}
287
287
  interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
288
- boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string, ThemeType>;
288
+ boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string | number, ThemeType>;
289
289
  }
290
290
  interface TextShadowProps<ThemeType extends Theme = RequiredTheme> {
291
- textShadow?: ResponsiveValue<CSS.Property.TextShadow | string, ThemeType>;
291
+ textShadow?: ResponsiveValue<CSS.Property.TextShadow | string | number, ThemeType>;
292
292
  }
293
293
  interface ShadowProps<ThemeType extends Theme = RequiredTheme> extends BoxShadowProps<ThemeType>, TextShadowProps<ThemeType> {}
294
294
  interface TextStyleProps<ThemeType extends Theme = RequiredTheme> {
@@ -1,7 +1,7 @@
1
1
  import * as CSS from "csstype";
2
2
 
3
3
  //#region src/types.d.ts
4
- type ObjectOrArray<T, K extends keyof never = keyof never> = T[] | Record<K, T | Record<K, T> | T[]>;
4
+ type ObjectOrArray<T, K extends keyof any = keyof any> = T[] | Record<K, T | Record<K, T> | T[]>;
5
5
  type Scale = ObjectOrArray<number | string>;
6
6
  type TLengthStyledSystem = string | number;
7
7
  interface Theme<TLength = TLengthStyledSystem> {
@@ -28,7 +28,7 @@ interface Theme<TLength = TLengthStyledSystem> {
28
28
  textStyles?: ObjectOrArray<CSS.StandardProperties>;
29
29
  }
30
30
  type RequiredTheme = Required<Theme>;
31
- type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = unknown> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
31
+ type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
32
32
  type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T };
33
33
  interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
34
34
  m?: ResponsiveValue<TVal, ThemeType>;
@@ -102,7 +102,7 @@ interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
102
102
  interface FontSizeProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontSizes', ThemeType>> {
103
103
  fontSize?: ResponsiveValue<TVal, ThemeType>;
104
104
  }
105
- interface FontWeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontWeights', ThemeType> | string> {
105
+ interface FontWeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontWeights', ThemeType> | string | number> {
106
106
  fontWeight?: ResponsiveValue<TVal, ThemeType>;
107
107
  }
108
108
  interface LineHeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'lineHeights', ThemeType>> {
@@ -285,10 +285,10 @@ interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
285
285
  }
286
286
  interface GridProps<ThemeType extends Theme = RequiredTheme> extends GridGapProps<ThemeType>, GridColumnGapProps<ThemeType>, GridRowGapProps<ThemeType>, GridColumnProps<ThemeType>, GridRowProps<ThemeType>, GridAutoFlowProps<ThemeType>, GridAutoColumnsProps<ThemeType>, GridAutoRowsProps<ThemeType>, GridTemplateColumnsProps<ThemeType>, GridTemplateRowsProps<ThemeType>, GridTemplateAreasProps<ThemeType>, GridAreaProps<ThemeType> {}
287
287
  interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
288
- boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string, ThemeType>;
288
+ boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string | number, ThemeType>;
289
289
  }
290
290
  interface TextShadowProps<ThemeType extends Theme = RequiredTheme> {
291
- textShadow?: ResponsiveValue<CSS.Property.TextShadow | string, ThemeType>;
291
+ textShadow?: ResponsiveValue<CSS.Property.TextShadow | string | number, ThemeType>;
292
292
  }
293
293
  interface ShadowProps<ThemeType extends Theme = RequiredTheme> extends BoxShadowProps<ThemeType>, TextShadowProps<ThemeType> {}
294
294
  interface TextStyleProps<ThemeType extends Theme = RequiredTheme> {
@@ -1,3 +1,3 @@
1
- import { F as FontWeightProps, M as FontFamilyProps, N as FontSizeProps, P as FontStyleProps, St as TextAlignProps, kt as TypographyProps, nt as LineHeightProps, tt as LetterSpacingProps } from "./types-CCujn9-2.cjs";
2
- import { t as typography } from "./index-BrXslH97.cjs";
1
+ import { F as FontWeightProps, M as FontFamilyProps, N as FontSizeProps, P as FontStyleProps, St as TextAlignProps, kt as TypographyProps, nt as LineHeightProps, tt as LetterSpacingProps } from "./types-CkHJArGA.cjs";
2
+ import { t as typography } from "./index-DP4kqDsJ.cjs";
3
3
  export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TypographyProps, typography as default, typography };
@@ -1,3 +1,3 @@
1
- import { F as FontWeightProps, M as FontFamilyProps, N as FontSizeProps, P as FontStyleProps, St as TextAlignProps, kt as TypographyProps, nt as LineHeightProps, tt as LetterSpacingProps } from "./types-CCujn9-2.mjs";
2
- import { t as typography } from "./index-DzPnzx9p.mjs";
1
+ import { F as FontWeightProps, M as FontFamilyProps, N as FontSizeProps, P as FontStyleProps, St as TextAlignProps, kt as TypographyProps, nt as LineHeightProps, tt as LetterSpacingProps } from "./types-CkHJArGA.mjs";
2
+ import { t as typography } from "./index-5Dg1n1IR.mjs";
3
3
  export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TypographyProps, typography as default, typography };
@@ -1,3 +1,3 @@
1
- import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-CCujn9-2.cjs";
2
- import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle, t as VariantOptions } from "./index-5FNmSnEI.cjs";
3
- export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
1
+ import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-CkHJArGA.cjs";
2
+ import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-3ARRkYzk.cjs";
3
+ export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantArgs, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
@@ -1,3 +1,3 @@
1
- import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-CCujn9-2.mjs";
2
- import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle, t as VariantOptions } from "./index-CeQ5ox80.mjs";
3
- export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
1
+ import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-CkHJArGA.mjs";
2
+ import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BPJls8qs.mjs";
3
+ export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantArgs, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soroush.tech/styled-system",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
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",
@@ -224,6 +224,9 @@
224
224
  "prop-types": "^15.8.1"
225
225
  },
226
226
  "peerDependenciesMeta": {
227
+ "@emotion/is-prop-valid": {
228
+ "optional": true
229
+ },
227
230
  "prop-types": {
228
231
  "optional": true
229
232
  }
@@ -1,5 +0,0 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
2
- //#region src/grid/grid.d.ts
3
- declare const grid: Parser;
4
- //#endregion
5
- export { grid as t };
@@ -1,5 +0,0 @@
1
- import { r as Parser } from "./index-C6pWum7i.mjs";
2
- //#region src/color/color.d.ts
3
- declare const color: Parser;
4
- //#endregion
5
- export { color as t };
@@ -1,5 +0,0 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
2
- //#region src/color/color.d.ts
3
- declare const color: Parser;
4
- //#endregion
5
- export { color as t };
@@ -1,5 +0,0 @@
1
- import { r as Parser } from "./index-C6pWum7i.cjs";
2
- //#region src/grid/grid.d.ts
3
- declare const grid: Parser;
4
- //#endregion
5
- export { grid as t };