@soroush.tech/styled-system 5.4.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 (70) hide show
  1. package/README.md +13 -6
  2. package/dist/background.d.cts +2 -2
  3. package/dist/background.d.mts +2 -2
  4. package/dist/border.d.cts +2 -2
  5. package/dist/border.d.mts +2 -2
  6. package/dist/color.d.cts +2 -2
  7. package/dist/color.d.mts +2 -2
  8. package/dist/core.d.cts +2 -2
  9. package/dist/core.d.mts +2 -2
  10. package/dist/css.d.cts +5 -5
  11. package/dist/css.d.mts +5 -5
  12. package/dist/flexbox.d.cts +2 -2
  13. package/dist/flexbox.d.mts +2 -2
  14. package/dist/grid.d.cts +2 -2
  15. package/dist/grid.d.mts +2 -2
  16. package/dist/{index-CeQ5ox80.d.mts → index-3ARRkYzk.d.cts} +4 -2
  17. package/dist/{index-BrXslH97.d.cts → index-5Dg1n1IR.d.mts} +1 -1
  18. package/dist/index-9XAypLoH.d.cts +5 -0
  19. package/dist/{index-F79chYlR.d.mts → index-BG0pPPzE.d.cts} +1 -1
  20. package/dist/index-BNjbPqRC.d.mts +5 -0
  21. package/dist/{index-5FNmSnEI.d.cts → index-BPJls8qs.d.mts} +4 -2
  22. package/dist/{index-DS-HZ740.d.cts → index-BTrJCMxb.d.mts} +1 -1
  23. package/dist/{index-BPHA_boa.d.mts → index-Bbzsc0fR.d.mts} +1 -1
  24. package/dist/{index-D7-Ctdwn.d.mts → index-CRGalTX2.d.mts} +1 -1
  25. package/dist/{index-DLcnFzWU.d.mts → index-CdED1s71.d.mts} +1 -1
  26. package/dist/{index-CuQx9h4Q.d.cts → index-CglXC0Pa.d.cts} +1 -1
  27. package/dist/{index-Bd7E_7bm.d.cts → index-CoMWxd1i.d.cts} +1 -1
  28. package/dist/{index-C6pWum7i.d.cts → index-D4Btc5H8.d.cts} +11 -8
  29. package/dist/{index-C6pWum7i.d.mts → index-D4Btc5H8.d.mts} +11 -8
  30. package/dist/{index--0QXsrzB.d.mts → index-DLVfllTy.d.mts} +1 -1
  31. package/dist/{index-DzPnzx9p.d.mts → index-DP4kqDsJ.d.cts} +1 -1
  32. package/dist/{index-CvbdNFVK.d.cts → index-DQKgrHjA.d.mts} +1 -1
  33. package/dist/{index-Cq-vX0It.d.mts → index-DSKs82W7.d.cts} +1 -1
  34. package/dist/{index-BFzj-f22.d.cts → index-DuGi82Ma.d.cts} +1 -1
  35. package/dist/{index-BDKAW1u8.d.mts → index-HQb_WHtN.d.mts} +1 -1
  36. package/dist/{index-B4DiqzRr.d.cts → index-JB48cMyT.d.cts} +1 -1
  37. package/dist/index-XUBjyEVU.d.mts +5 -0
  38. package/dist/{index-Dz8xde7b.d.cts → index-hBpseU4Y.d.cts} +1 -1
  39. package/dist/index-yk0Zqc7v.d.cts +5 -0
  40. package/dist/index.cjs +1 -7
  41. package/dist/index.d.cts +16 -15
  42. package/dist/index.d.mts +16 -15
  43. package/dist/index.mjs +1 -2
  44. package/dist/layout.d.cts +2 -2
  45. package/dist/layout.d.mts +2 -2
  46. package/dist/position.d.cts +2 -2
  47. package/dist/position.d.mts +2 -2
  48. package/dist/shadow.d.cts +2 -2
  49. package/dist/shadow.d.mts +2 -2
  50. package/dist/space.d.cts +2 -2
  51. package/dist/space.d.mts +2 -2
  52. package/dist/theme-get.cjs +6 -3
  53. package/dist/theme-get.d.cts +3 -1
  54. package/dist/theme-get.d.mts +3 -1
  55. package/dist/theme-get.mjs +4 -1
  56. package/dist/{types-CCujn9-2.d.cts → types-CkHJArGA.d.cts} +5 -5
  57. package/dist/{types-CCujn9-2.d.mts → types-CkHJArGA.d.mts} +5 -5
  58. package/dist/typography.d.cts +2 -2
  59. package/dist/typography.d.mts +2 -2
  60. package/dist/variant.d.cts +3 -3
  61. package/dist/variant.d.mts +3 -3
  62. package/package.json +60 -2
  63. package/dist/index-BvNoOnuk.d.mts +0 -5
  64. package/dist/index-CTguR0fU.d.cts +0 -6
  65. package/dist/index-C_ikENGU.d.mts +0 -6
  66. package/dist/index-D9W3cc9s.d.mts +0 -5
  67. package/dist/index-Dxn97XnB.d.cts +0 -5
  68. package/dist/index-HNU5ME-U.d.cts +0 -5
  69. package/dist/theme-get-CwPt9eDy.mjs +0 -5
  70. package/dist/theme-get-D0fH7Jrd.cjs +0 -10
package/README.md CHANGED
@@ -117,9 +117,6 @@ import shouldForwardProp, {
117
117
  } from '@soroush.tech/styled-system/should-forward-prop'
118
118
  ```
119
119
 
120
- `themeGet` is also re-exported from the package root (as both a named and the default
121
- export), so `import { themeGet } from '@soroush.tech/styled-system'` works too.
122
-
123
120
  ## Drop-in via alias
124
121
 
125
122
  Existing `styled-system` users can swap with a package-manager alias — no code changes:
@@ -130,9 +127,19 @@ Existing `styled-system` users can swap with a package-manager alias — no code
130
127
  }
131
128
  ```
132
129
 
133
- Every `@styled-system/*` satellite maps 1:1 to the matching
134
- `@soroush.tech/styled-system/*` subpath — e.g. `@styled-system/should-forward-prop`,
135
- `@styled-system/prop-types`, `@styled-system/theme-get`, `@styled-system/css`.
130
+ The satellite `@styled-system/*` packages don't need separate aliases — import them as
131
+ subpaths off the aliased `styled-system` name, and they resolve through this package's
132
+ `exports`:
133
+
134
+ ```ts
135
+ import themeGet from 'styled-system/theme-get'
136
+ import propTypes from 'styled-system/prop-types'
137
+ import { css } from 'styled-system/css'
138
+ import shouldForwardProp from 'styled-system/should-forward-prop'
139
+ ```
140
+
141
+ Types resolve under both modern module resolution (`node16`/`nodenext`/`bundler`, via
142
+ `exports`) and classic `node` (via `typesVersions`).
136
143
 
137
144
  ## Documentation
138
145
 
@@ -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.cjs CHANGED
@@ -1,7 +1,4 @@
1
- Object.defineProperties(exports, {
2
- __esModule: { value: true },
3
- [Symbol.toStringTag]: { value: "Module" }
4
- });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
5
2
  const require_core = require("./core.cjs");
6
3
  const require_background = require("./background-wugr6cG7.cjs");
7
4
  const require_border = require("./border-UuT-fTpy.cjs");
@@ -14,7 +11,6 @@ const require_typography = require("./typography-DD_eWLLx.cjs");
14
11
  const require_space = require("./space-CAX_62yL.cjs");
15
12
  const require_shadow = require("./shadow-BrDnaQQl.cjs");
16
13
  const require_variant = require("./variant-C7vPzZHo.cjs");
17
- const require_theme_get = require("./theme-get-D0fH7Jrd.cjs");
18
14
  //#region src/style/style.ts
19
15
  const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
20
16
  const config = {};
@@ -126,7 +122,6 @@ exports.colorStyle = require_variant.colorStyle;
126
122
  exports.compose = require_core.compose;
127
123
  exports.createParser = require_core.createParser;
128
124
  exports.createStyleFunction = require_core.createStyleFunction;
129
- exports.default = require_theme_get.themeGet;
130
125
  exports.display = display;
131
126
  exports.flex = flex;
132
127
  exports.flexBasis = flexBasis;
@@ -182,7 +177,6 @@ exports.system = require_core.system;
182
177
  exports.textAlign = textAlign;
183
178
  exports.textShadow = require_shadow.shadow;
184
179
  exports.textStyle = require_variant.textStyle;
185
- exports.themeGet = require_theme_get.themeGet;
186
180
  exports.top = top;
187
181
  exports.typography = require_typography.typography;
188
182
  exports.variant = require_variant.variant;
package/dist/index.d.cts CHANGED
@@ -1,17 +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";
14
- import { t as themeGet } from "./index-CTguR0fU.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";
15
14
 
16
15
  //#region src/style/style.d.ts
17
16
  interface StyleOptions {
@@ -23,6 +22,8 @@ interface StyleOptions {
23
22
  scale?: unknown;
24
23
  properties?: string[];
25
24
  }
25
+ /** Upstream `@types/styled-system` name for {@link StyleOptions}. */
26
+ type LowLevelStyleFunctionArguments = StyleOptions;
26
27
  declare const style: ({
27
28
  prop,
28
29
  cssProperty,
@@ -97,4 +98,4 @@ declare const right: Parser;
97
98
  declare const bottom: Parser;
98
99
  declare const left: Parser;
99
100
  //#endregion
100
- 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, themeGet as default, themeGet, 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,17 +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";
14
- import { t as themeGet } from "./index-C_ikENGU.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";
15
14
 
16
15
  //#region src/style/style.d.ts
17
16
  interface StyleOptions {
@@ -23,6 +22,8 @@ interface StyleOptions {
23
22
  scale?: unknown;
24
23
  properties?: string[];
25
24
  }
25
+ /** Upstream `@types/styled-system` name for {@link StyleOptions}. */
26
+ type LowLevelStyleFunctionArguments = StyleOptions;
26
27
  declare const style: ({
27
28
  prop,
28
29
  cssProperty,
@@ -97,4 +98,4 @@ declare const right: Parser;
97
98
  declare const bottom: Parser;
98
99
  declare const left: Parser;
99
100
  //#endregion
100
- 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, themeGet as default, themeGet, 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.mjs CHANGED
@@ -10,7 +10,6 @@ import { t as typography } from "./typography-CptBXSy0.mjs";
10
10
  import { n as padding, r as space, t as margin } from "./space-DEf9-0r9.mjs";
11
11
  import { t as shadow } from "./shadow-Bp7lx_41.mjs";
12
12
  import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DQA9pqwW.mjs";
13
- import { t as themeGet } from "./theme-get-CwPt9eDy.mjs";
14
13
  //#region src/style/style.ts
15
14
  const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
16
15
  const config = {};
@@ -96,4 +95,4 @@ const right = positionFns.right;
96
95
  const bottom = positionFns.bottom;
97
96
  const left = positionFns.left;
98
97
  //#endregion
99
- export { 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, themeGet as default, themeGet, 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 };
98
+ export { 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 };
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 };
@@ -2,6 +2,9 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_theme_get = require("./theme-get-D0fH7Jrd.cjs");
6
- exports.default = require_theme_get.themeGet;
7
- exports.themeGet = require_theme_get.themeGet;
5
+ const require_core = require("./core.cjs");
6
+ //#region src/theme-get/theme-get.ts
7
+ const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, Array.isArray(path) ? path.join(".") : path, fallback);
8
+ //#endregion
9
+ exports.default = themeGet;
10
+ exports.themeGet = themeGet;
@@ -1,2 +1,4 @@
1
- import { t as themeGet } from "./index-CTguR0fU.cjs";
1
+ //#region src/theme-get/theme-get.d.ts
2
+ declare const themeGet: (path: string | Array<string | number>, fallback?: any) => (props: any) => any;
3
+ //#endregion
2
4
  export { themeGet as default, themeGet };
@@ -1,2 +1,4 @@
1
- import { t as themeGet } from "./index-C_ikENGU.mjs";
1
+ //#region src/theme-get/theme-get.d.ts
2
+ declare const themeGet: (path: string | Array<string | number>, fallback?: any) => (props: any) => any;
3
+ //#endregion
2
4
  export { themeGet as default, themeGet };
@@ -1,2 +1,5 @@
1
- import { t as themeGet } from "./theme-get-CwPt9eDy.mjs";
1
+ import { get } from "./core.mjs";
2
+ //#region src/theme-get/theme-get.ts
3
+ const themeGet = (path, fallback = null) => (props) => get(props.theme, Array.isArray(path) ? path.join(".") : path, fallback);
4
+ //#endregion
2
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.4.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
  }
@@ -248,5 +251,60 @@
248
251
  "test:coverage": "vitest run --coverage"
249
252
  },
250
253
  "main": "./dist/index.cjs",
251
- "module": "./dist/index.mjs"
254
+ "module": "./dist/index.mjs",
255
+ "typesVersions": {
256
+ "*": {
257
+ "core": [
258
+ "./dist/core.d.cts"
259
+ ],
260
+ "space": [
261
+ "./dist/space.d.cts"
262
+ ],
263
+ "color": [
264
+ "./dist/color.d.cts"
265
+ ],
266
+ "layout": [
267
+ "./dist/layout.d.cts"
268
+ ],
269
+ "typography": [
270
+ "./dist/typography.d.cts"
271
+ ],
272
+ "flexbox": [
273
+ "./dist/flexbox.d.cts"
274
+ ],
275
+ "grid": [
276
+ "./dist/grid.d.cts"
277
+ ],
278
+ "background": [
279
+ "./dist/background.d.cts"
280
+ ],
281
+ "border": [
282
+ "./dist/border.d.cts"
283
+ ],
284
+ "position": [
285
+ "./dist/position.d.cts"
286
+ ],
287
+ "shadow": [
288
+ "./dist/shadow.d.cts"
289
+ ],
290
+ "variant": [
291
+ "./dist/variant.d.cts"
292
+ ],
293
+ "css": [
294
+ "./dist/css.d.cts"
295
+ ],
296
+ "theme-get": [
297
+ "./dist/theme-get.d.cts"
298
+ ],
299
+ "props": [
300
+ "./dist/props.d.cts"
301
+ ],
302
+ "prop-types": [
303
+ "./dist/prop-types.d.cts"
304
+ ],
305
+ "should-forward-prop": [
306
+ "./dist/should-forward-prop.d.cts"
307
+ ]
308
+ }
309
+ }
252
310
  }
@@ -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,6 +0,0 @@
1
- import { a as Props } from "./index-C6pWum7i.cjs";
2
-
3
- //#region src/theme-get/theme-get.d.ts
4
- declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
5
- //#endregion
6
- export { themeGet as t };
@@ -1,6 +0,0 @@
1
- import { a as Props } from "./index-C6pWum7i.mjs";
2
-
3
- //#region src/theme-get/theme-get.d.ts
4
- declare const themeGet: (path: string, fallback?: unknown) => (props: Props) => unknown;
5
- //#endregion
6
- export { themeGet 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 };
@@ -1,5 +0,0 @@
1
- import { get } from "./core.mjs";
2
- //#region src/theme-get/theme-get.ts
3
- const themeGet = (path, fallback = null) => (props) => get(props.theme, path, fallback);
4
- //#endregion
5
- export { themeGet as t };
@@ -1,10 +0,0 @@
1
- const require_core = require("./core.cjs");
2
- //#region src/theme-get/theme-get.ts
3
- const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, path, fallback);
4
- //#endregion
5
- Object.defineProperty(exports, "themeGet", {
6
- enumerable: true,
7
- get: function() {
8
- return themeGet;
9
- }
10
- });