@soroush.tech/styled-system 5.2.0 → 5.3.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 (67) hide show
  1. package/dist/background.d.cts +3 -2
  2. package/dist/background.d.mts +3 -2
  3. package/dist/border.d.cts +3 -2
  4. package/dist/border.d.mts +3 -2
  5. package/dist/color.d.cts +3 -2
  6. package/dist/color.d.mts +3 -2
  7. package/dist/core.d.cts +1 -1
  8. package/dist/core.d.mts +1 -1
  9. package/dist/flexbox.d.cts +3 -2
  10. package/dist/flexbox.d.mts +3 -2
  11. package/dist/grid.d.cts +3 -2
  12. package/dist/grid.d.mts +3 -2
  13. package/dist/{index-50KH4Mo7.d.cts → index--0QXsrzB.d.mts} +1 -2
  14. package/dist/{index-8PSQ0vkP.d.cts → index-5FNmSnEI.d.cts} +1 -2
  15. package/dist/{index-C3_fScux.d.mts → index-B4DiqzRr.d.cts} +1 -2
  16. package/dist/{index-DZaFk5pk.d.cts → index-BDKAW1u8.d.mts} +1 -2
  17. package/dist/{index-9ZhIewzy.d.mts → index-BFzj-f22.d.cts} +1 -2
  18. package/dist/{index-Nc-10syf.d.cts → index-BPHA_boa.d.mts} +1 -2
  19. package/dist/{index-BS9GuhQN.d.cts → index-Bd7E_7bm.d.cts} +1 -2
  20. package/dist/{index-CarHCWLQ.d.cts → index-BrXslH97.d.cts} +1 -2
  21. package/dist/index-BvNoOnuk.d.mts +5 -0
  22. package/dist/{index-D8EyRZ5p.d.cts → index-C6pWum7i.d.cts} +1 -1
  23. package/dist/{index-D8EyRZ5p.d.mts → index-C6pWum7i.d.mts} +1 -1
  24. package/dist/index-CTguR0fU.d.cts +6 -0
  25. package/dist/index-C_ikENGU.d.mts +6 -0
  26. package/dist/{index-BBTVE4EM.d.mts → index-CeQ5ox80.d.mts} +1 -2
  27. package/dist/{index-CrUx2vIP.d.mts → index-Cq-vX0It.d.mts} +1 -2
  28. package/dist/{index-CsS_gcI9.d.mts → index-CuQx9h4Q.d.cts} +1 -2
  29. package/dist/{index-DPWkvooj.d.mts → index-CvbdNFVK.d.cts} +1 -2
  30. package/dist/{index-CX2jWEGJ.d.mts → index-D7-Ctdwn.d.mts} +1 -2
  31. package/dist/index-D9W3cc9s.d.mts +5 -0
  32. package/dist/{index-Bx7IxKu-.d.mts → index-DLcnFzWU.d.mts} +1 -2
  33. package/dist/{index-z86wOHTb.d.cts → index-DS-HZ740.d.cts} +1 -2
  34. package/dist/index-Dxn97XnB.d.cts +5 -0
  35. package/dist/{index-BoMacn6F.d.cts → index-Dz8xde7b.d.cts} +1 -2
  36. package/dist/{index-C13YRARN.d.mts → index-DzPnzx9p.d.mts} +1 -2
  37. package/dist/{index-DVR6hZCd.d.cts → index-F79chYlR.d.mts} +1 -2
  38. package/dist/index-HNU5ME-U.d.cts +5 -0
  39. package/dist/index.cjs +2 -0
  40. package/dist/index.d.cts +15 -166
  41. package/dist/index.d.mts +15 -166
  42. package/dist/index.mjs +2 -1
  43. package/dist/layout.d.cts +3 -2
  44. package/dist/layout.d.mts +3 -2
  45. package/dist/position.d.cts +3 -2
  46. package/dist/position.d.mts +3 -2
  47. package/dist/shadow.d.cts +3 -2
  48. package/dist/shadow.d.mts +3 -2
  49. package/dist/space.d.cts +3 -2
  50. package/dist/space.d.mts +3 -2
  51. package/dist/theme-get-CwPt9eDy.mjs +5 -0
  52. package/dist/theme-get-D0fH7Jrd.cjs +10 -0
  53. package/dist/theme-get.cjs +3 -6
  54. package/dist/theme-get.d.cts +1 -5
  55. package/dist/theme-get.d.mts +1 -5
  56. package/dist/theme-get.mjs +1 -4
  57. package/dist/types-CCujn9-2.d.cts +304 -0
  58. package/dist/types-CCujn9-2.d.mts +304 -0
  59. package/dist/typography.d.cts +3 -2
  60. package/dist/typography.d.mts +3 -2
  61. package/dist/variant.d.cts +3 -2
  62. package/dist/variant.d.mts +3 -2
  63. package/package.json +1 -1
  64. package/dist/index-Ce09s0FQ.d.cts +0 -6
  65. package/dist/index-D3t1Lyte.d.mts +0 -6
  66. package/dist/index-J3PebPto.d.mts +0 -6
  67. package/dist/index-j3E1mxCg.d.cts +0 -6
@@ -1,2 +1,3 @@
1
- import { t as background } from "./index-DZaFk5pk.cjs";
2
- export { background, background as default };
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";
3
+ export { type BackgroundImageProps, type BackgroundPositionProps, type BackgroundProps, type BackgroundRepeatProps, type BackgroundSizeProps, background, background as default };
@@ -1,2 +1,3 @@
1
- import { t as background } from "./index-9ZhIewzy.mjs";
2
- export { background, background as default };
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";
3
+ export { type BackgroundImageProps, type BackgroundPositionProps, type BackgroundProps, type BackgroundRepeatProps, type BackgroundSizeProps, background, background as default };
package/dist/border.d.cts CHANGED
@@ -1,2 +1,3 @@
1
- import { t as border } from "./index-BoMacn6F.cjs";
2
- export { border, border as default };
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";
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,2 +1,3 @@
1
- import { t as border } from "./index-Bx7IxKu-.mjs";
2
- export { border, border as default };
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";
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,2 +1,3 @@
1
- import { t as color } from "./index-j3E1mxCg.cjs";
2
- export { color, color as default };
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";
3
+ export { type BackgroundColorProps, type ColorProps, type OpacityProps, type TextColorProps, color, color as default };
package/dist/color.d.mts CHANGED
@@ -1,2 +1,3 @@
1
- import { t as color } from "./index-D3t1Lyte.mjs";
2
- export { color, color as default };
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";
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-D8EyRZ5p.cjs";
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
2
  export { CSSObject, ConfigStyle, Parser, ParserConfig, Props, StyleFn, StyleObject, SystemConfig, Theme, Transform, compose, createParser, createStyleFunction, get, merge, 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-D8EyRZ5p.mjs";
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
2
  export { CSSObject, ConfigStyle, Parser, ParserConfig, Props, StyleFn, StyleObject, SystemConfig, Theme, Transform, compose, createParser, createStyleFunction, get, merge, system };
@@ -1,2 +1,3 @@
1
- import { t as flexbox } from "./index-BS9GuhQN.cjs";
2
- export { flexbox as default, flexbox };
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";
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,2 +1,3 @@
1
- import { t as flexbox } from "./index-CX2jWEGJ.mjs";
2
- export { flexbox as default, flexbox };
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";
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,2 +1,3 @@
1
- import { t as grid } from "./index-Ce09s0FQ.cjs";
2
- export { grid as default, grid };
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";
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,2 +1,3 @@
1
- import { t as grid } from "./index-J3PebPto.mjs";
2
- export { grid as default, grid };
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";
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,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/space/space.d.ts
4
3
  declare const margin: Parser;
5
4
  declare const padding: Parser;
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/variant/variant.d.ts
4
3
  interface VariantOptions {
5
4
  scale?: string;
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/space/space.d.ts
4
3
  declare const margin: Parser;
5
4
  declare const padding: Parser;
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/background/background.d.ts
4
3
  declare const background: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/background/background.d.ts
4
3
  declare const background: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/layout/layout.d.ts
4
3
  declare const layout: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/flexbox/flexbox.d.ts
4
3
  declare const flexbox: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/typography/typography.d.ts
4
3
  declare const typography: Parser;
5
4
  //#endregion
@@ -0,0 +1,5 @@
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 };
@@ -21,7 +21,7 @@ interface Props {
21
21
  theme?: Theme;
22
22
  [key: string]: unknown;
23
23
  }
24
- type Transform = (value: unknown, scale?: unknown, props?: Props) => unknown;
24
+ type Transform = (value: any, scale?: any, props?: Props) => any;
25
25
  interface StyleFn {
26
26
  (value: unknown, scale?: unknown, props?: Props): StyleObject | undefined;
27
27
  scale?: string;
@@ -21,7 +21,7 @@ interface Props {
21
21
  theme?: Theme;
22
22
  [key: string]: unknown;
23
23
  }
24
- type Transform = (value: unknown, scale?: unknown, props?: Props) => unknown;
24
+ type Transform = (value: any, scale?: any, props?: Props) => any;
25
25
  interface StyleFn {
26
26
  (value: unknown, scale?: unknown, props?: Props): StyleObject | undefined;
27
27
  scale?: string;
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,6 @@
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 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/variant/variant.d.ts
4
3
  interface VariantOptions {
5
4
  scale?: string;
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/position/position.d.ts
4
3
  declare const position: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/layout/layout.d.ts
4
3
  declare const layout: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/shadow/shadow.d.ts
4
3
  declare const shadow: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/flexbox/flexbox.d.ts
4
3
  declare const flexbox: Parser;
5
4
  //#endregion
@@ -0,0 +1,5 @@
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 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/border/border.d.ts
4
3
  declare const border: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/position/position.d.ts
4
3
  declare const position: Parser;
5
4
  //#endregion
@@ -0,0 +1,5 @@
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 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.cjs";
3
2
  //#region src/border/border.d.ts
4
3
  declare const border: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/typography/typography.d.ts
4
3
  declare const typography: Parser;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
1
+ import { r as Parser } from "./index-C6pWum7i.mjs";
3
2
  //#region src/shadow/shadow.d.ts
4
3
  declare const shadow: Parser;
5
4
  //#endregion
@@ -0,0 +1,5 @@
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 };
package/dist/index.cjs CHANGED
@@ -11,6 +11,7 @@ const require_typography = require("./typography-DD_eWLLx.cjs");
11
11
  const require_space = require("./space-CAX_62yL.cjs");
12
12
  const require_shadow = require("./shadow-BrDnaQQl.cjs");
13
13
  const require_variant = require("./variant-C7vPzZHo.cjs");
14
+ const require_theme_get = require("./theme-get-D0fH7Jrd.cjs");
14
15
  //#region src/style/style.ts
15
16
  const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
16
17
  const config = {};
@@ -177,6 +178,7 @@ exports.system = require_core.system;
177
178
  exports.textAlign = textAlign;
178
179
  exports.textShadow = require_shadow.shadow;
179
180
  exports.textStyle = require_variant.textStyle;
181
+ exports.themeGet = require_theme_get.themeGet;
180
182
  exports.top = top;
181
183
  exports.typography = require_typography.typography;
182
184
  exports.variant = require_variant.variant;
package/dist/index.d.cts CHANGED
@@ -1,16 +1,17 @@
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-D8EyRZ5p.cjs";
2
- import { t as background } from "./index-DZaFk5pk.cjs";
3
- import { t as border } from "./index-BoMacn6F.cjs";
4
- import { t as color } from "./index-j3E1mxCg.cjs";
5
- import { t as flexbox } from "./index-BS9GuhQN.cjs";
6
- import { t as grid } from "./index-Ce09s0FQ.cjs";
7
- import { n as padding, r as space, t as margin } from "./index-50KH4Mo7.cjs";
8
- import { t as layout } from "./index-Nc-10syf.cjs";
9
- import { t as typography } from "./index-CarHCWLQ.cjs";
10
- import { t as position } from "./index-z86wOHTb.cjs";
11
- import { t as shadow } from "./index-DVR6hZCd.cjs";
12
- import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle } from "./index-8PSQ0vkP.cjs";
13
- import * as CSS from "csstype";
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";
14
15
 
15
16
  //#region src/style/style.d.ts
16
17
  interface StyleOptions {
@@ -32,158 +33,6 @@ declare const style: ({
32
33
  properties
33
34
  }: StyleOptions) => Parser;
34
35
  //#endregion
35
- //#region src/types.d.ts
36
- type ObjectOrArray<T, K extends keyof never = keyof never> = T[] | Record<K, T | Record<K, T> | T[]>;
37
- type Scale = ObjectOrArray<number | string>;
38
- type TLengthStyledSystem = string | number;
39
- interface Theme<TLength = TLengthStyledSystem> {
40
- breakpoints?: ObjectOrArray<number | string | symbol>;
41
- mediaQueries?: {
42
- [size: string]: string;
43
- };
44
- space?: ObjectOrArray<CSS.Property.Margin<number | string>>;
45
- fontSizes?: ObjectOrArray<CSS.Property.FontSize<number>>;
46
- colors?: ObjectOrArray<CSS.Property.Color>;
47
- fonts?: ObjectOrArray<CSS.Property.FontFamily>;
48
- fontWeights?: ObjectOrArray<CSS.Property.FontWeight>;
49
- lineHeights?: ObjectOrArray<CSS.Property.LineHeight<TLength>>;
50
- letterSpacings?: ObjectOrArray<CSS.Property.LetterSpacing<TLength>>;
51
- sizes?: ObjectOrArray<CSS.Property.Height<object> | CSS.Property.Width<object>>;
52
- borders?: ObjectOrArray<CSS.Property.Border<object>>;
53
- borderStyles?: ObjectOrArray<CSS.Property.Border<object>>;
54
- borderWidths?: ObjectOrArray<CSS.Property.BorderWidth<TLength>>;
55
- radii?: ObjectOrArray<CSS.Property.BorderRadius<TLength>>;
56
- shadows?: ObjectOrArray<CSS.Property.BoxShadow>;
57
- zIndices?: ObjectOrArray<CSS.Property.ZIndex>;
58
- buttons?: ObjectOrArray<CSS.StandardProperties>;
59
- colorStyles?: ObjectOrArray<CSS.StandardProperties>;
60
- textStyles?: ObjectOrArray<CSS.StandardProperties>;
61
- }
62
- type RequiredTheme = Required<Theme>;
63
- 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;
64
- type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T };
65
- interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> extends MarginProps<ThemeType, TVal>, PaddingProps<ThemeType, TVal> {}
66
- interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
67
- m?: ResponsiveValue<TVal, ThemeType>;
68
- margin?: ResponsiveValue<TVal, ThemeType>;
69
- mt?: ResponsiveValue<TVal, ThemeType>;
70
- marginTop?: ResponsiveValue<TVal, ThemeType>;
71
- mr?: ResponsiveValue<TVal, ThemeType>;
72
- marginRight?: ResponsiveValue<TVal, ThemeType>;
73
- mb?: ResponsiveValue<TVal, ThemeType>;
74
- marginBottom?: ResponsiveValue<TVal, ThemeType>;
75
- ml?: ResponsiveValue<TVal, ThemeType>;
76
- marginLeft?: ResponsiveValue<TVal, ThemeType>;
77
- mx?: ResponsiveValue<TVal, ThemeType>;
78
- marginX?: ResponsiveValue<TVal, ThemeType>;
79
- my?: ResponsiveValue<TVal, ThemeType>;
80
- marginY?: ResponsiveValue<TVal, ThemeType>;
81
- }
82
- interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
83
- p?: ResponsiveValue<TVal, ThemeType>;
84
- padding?: ResponsiveValue<TVal, ThemeType>;
85
- pt?: ResponsiveValue<TVal, ThemeType>;
86
- paddingTop?: ResponsiveValue<TVal, ThemeType>;
87
- pr?: ResponsiveValue<TVal, ThemeType>;
88
- paddingRight?: ResponsiveValue<TVal, ThemeType>;
89
- pb?: ResponsiveValue<TVal, ThemeType>;
90
- paddingBottom?: ResponsiveValue<TVal, ThemeType>;
91
- pl?: ResponsiveValue<TVal, ThemeType>;
92
- paddingLeft?: ResponsiveValue<TVal, ThemeType>;
93
- px?: ResponsiveValue<TVal, ThemeType>;
94
- paddingX?: ResponsiveValue<TVal, ThemeType>;
95
- py?: ResponsiveValue<TVal, ThemeType>;
96
- paddingY?: ResponsiveValue<TVal, ThemeType>;
97
- }
98
- interface LayoutProps<ThemeType extends Theme = RequiredTheme> {
99
- width?: ResponsiveValue<CSS.Property.Width<TLengthStyledSystem>, ThemeType>;
100
- height?: ResponsiveValue<CSS.Property.Height<TLengthStyledSystem>, ThemeType>;
101
- minWidth?: ResponsiveValue<CSS.Property.MinWidth<TLengthStyledSystem>, ThemeType>;
102
- minHeight?: ResponsiveValue<CSS.Property.MinHeight<TLengthStyledSystem>, ThemeType>;
103
- maxWidth?: ResponsiveValue<CSS.Property.MaxWidth<TLengthStyledSystem>, ThemeType>;
104
- maxHeight?: ResponsiveValue<CSS.Property.MaxHeight<TLengthStyledSystem>, ThemeType>;
105
- size?: ResponsiveValue<CSS.Property.Width<TLengthStyledSystem>, ThemeType>;
106
- overflow?: ResponsiveValue<CSS.Property.Overflow, ThemeType>;
107
- overflowX?: ResponsiveValue<CSS.Property.OverflowX, ThemeType>;
108
- overflowY?: ResponsiveValue<CSS.Property.OverflowY, ThemeType>;
109
- display?: ResponsiveValue<CSS.Property.Display, ThemeType>;
110
- verticalAlign?: ResponsiveValue<CSS.Property.VerticalAlign<TLengthStyledSystem>, ThemeType>;
111
- }
112
- interface TypographyProps<ThemeType extends Theme = RequiredTheme> {
113
- fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
114
- fontSize?: ResponsiveValue<ThemeValue<'fontSizes', ThemeType>, ThemeType>;
115
- fontWeight?: ResponsiveValue<ThemeValue<'fontWeights', ThemeType> | string, ThemeType>;
116
- lineHeight?: ResponsiveValue<ThemeValue<'lineHeights', ThemeType>, ThemeType>;
117
- letterSpacing?: ResponsiveValue<CSS.Property.LetterSpacing<TLengthStyledSystem>, ThemeType>;
118
- textAlign?: ResponsiveValue<CSS.Property.TextAlign, ThemeType>;
119
- fontStyle?: ResponsiveValue<CSS.Property.FontStyle, ThemeType>;
120
- }
121
- interface FlexboxProps<ThemeType extends Theme = RequiredTheme> {
122
- alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType>;
123
- alignContent?: ResponsiveValue<CSS.Property.AlignContent, ThemeType>;
124
- justifyItems?: ResponsiveValue<CSS.Property.JustifyItems, ThemeType>;
125
- justifyContent?: ResponsiveValue<CSS.Property.JustifyContent, ThemeType>;
126
- flexWrap?: ResponsiveValue<CSS.Property.FlexWrap, ThemeType>;
127
- flexDirection?: ResponsiveValue<CSS.Property.FlexDirection, ThemeType>;
128
- flex?: ResponsiveValue<CSS.Property.Flex<TLengthStyledSystem>, ThemeType>;
129
- flexGrow?: ResponsiveValue<CSS.Property.FlexGrow, ThemeType>;
130
- flexShrink?: ResponsiveValue<CSS.Property.FlexShrink, ThemeType>;
131
- flexBasis?: ResponsiveValue<CSS.Property.FlexBasis<TLengthStyledSystem>, ThemeType>;
132
- justifySelf?: ResponsiveValue<CSS.Property.JustifySelf, ThemeType>;
133
- alignSelf?: ResponsiveValue<CSS.Property.AlignSelf, ThemeType>;
134
- order?: ResponsiveValue<CSS.Property.Order, ThemeType>;
135
- }
136
- interface PositionProps<ThemeType extends Theme = RequiredTheme> {
137
- position?: ResponsiveValue<CSS.Property.Position, ThemeType>;
138
- zIndex?: ResponsiveValue<CSS.Property.ZIndex, ThemeType>;
139
- top?: ResponsiveValue<CSS.Property.Top<TLengthStyledSystem>, ThemeType>;
140
- right?: ResponsiveValue<CSS.Property.Right<TLengthStyledSystem>, ThemeType>;
141
- bottom?: ResponsiveValue<CSS.Property.Bottom<TLengthStyledSystem>, ThemeType>;
142
- left?: ResponsiveValue<CSS.Property.Left<TLengthStyledSystem>, ThemeType>;
143
- }
144
- interface ColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
145
- color?: ResponsiveValue<TVal, ThemeType>;
146
- backgroundColor?: ResponsiveValue<TVal, ThemeType>;
147
- bg?: ResponsiveValue<TVal, ThemeType>;
148
- opacity?: ResponsiveValue<CSS.Property.Opacity, ThemeType>;
149
- }
150
- interface BorderProps<ThemeType extends Theme = RequiredTheme> {
151
- border?: ResponsiveValue<CSS.Property.Border<TLengthStyledSystem>, ThemeType>;
152
- borderWidth?: ResponsiveValue<CSS.Property.BorderWidth<TLengthStyledSystem>, ThemeType>;
153
- borderStyle?: ResponsiveValue<CSS.Property.BorderStyle, ThemeType>;
154
- borderColor?: ResponsiveValue<ThemeValue<'colors', ThemeType>, ThemeType>;
155
- borderRadius?: ResponsiveValue<ThemeValue<'radii', ThemeType>, ThemeType>;
156
- borderTop?: ResponsiveValue<CSS.Property.BorderTop<TLengthStyledSystem>, ThemeType>;
157
- borderRight?: ResponsiveValue<CSS.Property.BorderRight<TLengthStyledSystem>, ThemeType>;
158
- borderBottom?: ResponsiveValue<CSS.Property.BorderBottom<TLengthStyledSystem>, ThemeType>;
159
- borderLeft?: ResponsiveValue<CSS.Property.BorderLeft<TLengthStyledSystem>, ThemeType>;
160
- }
161
- interface BackgroundProps<ThemeType extends Theme = RequiredTheme> {
162
- background?: ResponsiveValue<CSS.Property.Background<TLengthStyledSystem>, ThemeType>;
163
- backgroundImage?: ResponsiveValue<CSS.Property.BackgroundImage, ThemeType>;
164
- backgroundSize?: ResponsiveValue<CSS.Property.BackgroundSize<TLengthStyledSystem>, ThemeType>;
165
- backgroundPosition?: ResponsiveValue<CSS.Property.BackgroundPosition<TLengthStyledSystem>, ThemeType>;
166
- backgroundRepeat?: ResponsiveValue<CSS.Property.BackgroundRepeat, ThemeType>;
167
- }
168
- interface GridProps<ThemeType extends Theme = RequiredTheme> {
169
- gridGap?: ResponsiveValue<CSS.Property.GridGap<TLengthStyledSystem>, ThemeType>;
170
- gridColumnGap?: ResponsiveValue<CSS.Property.GridColumnGap<TLengthStyledSystem>, ThemeType>;
171
- gridRowGap?: ResponsiveValue<CSS.Property.GridRowGap<TLengthStyledSystem>, ThemeType>;
172
- gridColumn?: ResponsiveValue<CSS.Property.GridColumn, ThemeType>;
173
- gridRow?: ResponsiveValue<CSS.Property.GridRow, ThemeType>;
174
- gridAutoFlow?: ResponsiveValue<CSS.Property.GridAutoFlow, ThemeType>;
175
- gridAutoColumns?: ResponsiveValue<CSS.Property.GridAutoColumns<TLengthStyledSystem>, ThemeType>;
176
- gridAutoRows?: ResponsiveValue<CSS.Property.GridAutoRows<TLengthStyledSystem>, ThemeType>;
177
- gridTemplateColumns?: ResponsiveValue<CSS.Property.GridTemplateColumns<TLengthStyledSystem>, ThemeType>;
178
- gridTemplateRows?: ResponsiveValue<CSS.Property.GridTemplateRows<TLengthStyledSystem>, ThemeType>;
179
- gridTemplateAreas?: ResponsiveValue<CSS.Property.GridTemplateAreas, ThemeType>;
180
- gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
181
- }
182
- interface ShadowProps<ThemeType extends Theme = RequiredTheme> {
183
- boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string, ThemeType>;
184
- textShadow?: ResponsiveValue<CSS.Property.TextShadow | string, ThemeType>;
185
- }
186
- //#endregion
187
36
  //#region src/index.d.ts
188
37
  declare const width: Parser;
189
38
  declare const height: Parser;
@@ -248,4 +97,4 @@ declare const right: Parser;
248
97
  declare const bottom: Parser;
249
98
  declare const left: Parser;
250
99
  //#endregion
251
- export { BackgroundProps, BorderProps, ColorProps, type ConfigStyle, FlexboxProps, GridProps, LayoutProps, MarginProps, ObjectOrArray, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, Scale, ShadowProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, Theme, ThemeValue, type Transform, TypographyProps, 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 };
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, 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, themeGet, top, typography, variant, verticalAlign, width, zIndex };