@soroush.tech/styled-system 5.1.6

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 (121) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +150 -0
  3. package/dist/background-B-jql3jb.mjs +16 -0
  4. package/dist/background-wugr6cG7.cjs +21 -0
  5. package/dist/background.cjs +7 -0
  6. package/dist/background.d.cts +2 -0
  7. package/dist/background.d.mts +2 -0
  8. package/dist/background.mjs +2 -0
  9. package/dist/border-Dder4Dhp.mjs +131 -0
  10. package/dist/border-UuT-fTpy.cjs +136 -0
  11. package/dist/border.cjs +7 -0
  12. package/dist/border.d.cts +2 -0
  13. package/dist/border.d.mts +2 -0
  14. package/dist/border.mjs +2 -0
  15. package/dist/color-BNs17Gw-.cjs +22 -0
  16. package/dist/color-CGmMe8yP.mjs +17 -0
  17. package/dist/color.cjs +7 -0
  18. package/dist/color.d.cts +2 -0
  19. package/dist/color.d.mts +2 -0
  20. package/dist/color.mjs +2 -0
  21. package/dist/core.cjs +144 -0
  22. package/dist/core.d.cts +2 -0
  23. package/dist/core.d.mts +2 -0
  24. package/dist/core.mjs +138 -0
  25. package/dist/css-nzeM_Xnf.cjs +231 -0
  26. package/dist/css-rLZ9Oeye.mjs +214 -0
  27. package/dist/css.cjs +9 -0
  28. package/dist/css.d.cts +12 -0
  29. package/dist/css.d.mts +12 -0
  30. package/dist/css.mjs +2 -0
  31. package/dist/flexbox-CFkO6PrP.cjs +22 -0
  32. package/dist/flexbox-XQnlnfa4.mjs +18 -0
  33. package/dist/flexbox.cjs +7 -0
  34. package/dist/flexbox.d.cts +2 -0
  35. package/dist/flexbox.d.mts +2 -0
  36. package/dist/flexbox.mjs +2 -0
  37. package/dist/grid-Bpk-QjhF.mjs +41 -0
  38. package/dist/grid-CpvRIng4.cjs +47 -0
  39. package/dist/grid.cjs +7 -0
  40. package/dist/grid.d.cts +2 -0
  41. package/dist/grid.d.mts +2 -0
  42. package/dist/grid.mjs +2 -0
  43. package/dist/index-50KH4Mo7.d.cts +8 -0
  44. package/dist/index-8PSQ0vkP.d.cts +15 -0
  45. package/dist/index-9ZhIewzy.d.mts +6 -0
  46. package/dist/index-BBTVE4EM.d.mts +15 -0
  47. package/dist/index-BS9GuhQN.d.cts +6 -0
  48. package/dist/index-BoMacn6F.d.cts +6 -0
  49. package/dist/index-Bx7IxKu-.d.mts +6 -0
  50. package/dist/index-C13YRARN.d.mts +6 -0
  51. package/dist/index-C3_fScux.d.mts +8 -0
  52. package/dist/index-CX2jWEGJ.d.mts +6 -0
  53. package/dist/index-CarHCWLQ.d.cts +6 -0
  54. package/dist/index-Ce09s0FQ.d.cts +6 -0
  55. package/dist/index-CrUx2vIP.d.mts +6 -0
  56. package/dist/index-CsS_gcI9.d.mts +6 -0
  57. package/dist/index-D3t1Lyte.d.mts +6 -0
  58. package/dist/index-D8EyRZ5p.d.cts +62 -0
  59. package/dist/index-D8EyRZ5p.d.mts +62 -0
  60. package/dist/index-DPWkvooj.d.mts +6 -0
  61. package/dist/index-DVR6hZCd.d.cts +6 -0
  62. package/dist/index-DZaFk5pk.d.cts +6 -0
  63. package/dist/index-J3PebPto.d.mts +6 -0
  64. package/dist/index-Nc-10syf.d.cts +6 -0
  65. package/dist/index-j3E1mxCg.d.cts +6 -0
  66. package/dist/index-z86wOHTb.d.cts +6 -0
  67. package/dist/index.cjs +185 -0
  68. package/dist/index.d.cts +281 -0
  69. package/dist/index.d.mts +281 -0
  70. package/dist/index.mjs +98 -0
  71. package/dist/layout-B1-2dfQ9.cjs +48 -0
  72. package/dist/layout-TqD8vcEl.mjs +42 -0
  73. package/dist/layout.cjs +7 -0
  74. package/dist/layout.d.cts +2 -0
  75. package/dist/layout.d.mts +2 -0
  76. package/dist/layout.mjs +2 -0
  77. package/dist/position-jf6VlRyR.mjs +42 -0
  78. package/dist/position-zWvCE4hD.cjs +48 -0
  79. package/dist/position.cjs +7 -0
  80. package/dist/position.d.cts +2 -0
  81. package/dist/position.d.mts +2 -0
  82. package/dist/position.mjs +2 -0
  83. package/dist/presets-DjaCx0dm.mjs +16 -0
  84. package/dist/presets-DlUVOAIL.cjs +21 -0
  85. package/dist/props.cjs +23 -0
  86. package/dist/props.d.cts +5 -0
  87. package/dist/props.d.mts +5 -0
  88. package/dist/props.mjs +21 -0
  89. package/dist/shadow-Bp7lx_41.mjs +14 -0
  90. package/dist/shadow-BrDnaQQl.cjs +18 -0
  91. package/dist/shadow.cjs +7 -0
  92. package/dist/shadow.d.cts +2 -0
  93. package/dist/shadow.d.mts +2 -0
  94. package/dist/shadow.mjs +2 -0
  95. package/dist/should-forward-prop.cjs +47 -0
  96. package/dist/should-forward-prop.d.cts +6 -0
  97. package/dist/should-forward-prop.d.mts +6 -0
  98. package/dist/should-forward-prop.mjs +18 -0
  99. package/dist/space-C14uiNpw.cjs +139 -0
  100. package/dist/space-CNrX-zoo.mjs +122 -0
  101. package/dist/space.cjs +9 -0
  102. package/dist/space.d.cts +2 -0
  103. package/dist/space.d.mts +2 -0
  104. package/dist/space.mjs +2 -0
  105. package/dist/theme-get.cjs +10 -0
  106. package/dist/theme-get.d.cts +6 -0
  107. package/dist/theme-get.d.mts +6 -0
  108. package/dist/theme-get.mjs +5 -0
  109. package/dist/typography-CptBXSy0.mjs +38 -0
  110. package/dist/typography-DD_eWLLx.cjs +42 -0
  111. package/dist/typography.cjs +7 -0
  112. package/dist/typography.d.cts +2 -0
  113. package/dist/typography.d.mts +2 -0
  114. package/dist/typography.mjs +2 -0
  115. package/dist/variant-CWUfe1Cc.mjs +22 -0
  116. package/dist/variant-ChsBzwrI.cjs +45 -0
  117. package/dist/variant.cjs +10 -0
  118. package/dist/variant.d.cts +2 -0
  119. package/dist/variant.d.mts +2 -0
  120. package/dist/variant.mjs +2 -0
  121. package/package.json +255 -0
@@ -0,0 +1,214 @@
1
+ //#region src/css/css.ts
2
+ const get = (obj, key, def, p, undef) => {
3
+ const path = typeof key === "string" ? key.split(".") : [key];
4
+ let value = obj;
5
+ for (p = 0; p < path.length; p++) value = value ? value[path[p]] : undef;
6
+ return value === undef ? def : value;
7
+ };
8
+ const defaultBreakpoints = [
9
+ 40,
10
+ 52,
11
+ 64
12
+ ].map((n) => n + "em");
13
+ const defaultTheme = {
14
+ space: [
15
+ 0,
16
+ 4,
17
+ 8,
18
+ 16,
19
+ 32,
20
+ 64,
21
+ 128,
22
+ 256,
23
+ 512
24
+ ],
25
+ fontSizes: [
26
+ 12,
27
+ 14,
28
+ 16,
29
+ 20,
30
+ 24,
31
+ 32,
32
+ 48,
33
+ 64,
34
+ 72
35
+ ]
36
+ };
37
+ const aliases = {
38
+ bg: "backgroundColor",
39
+ m: "margin",
40
+ mt: "marginTop",
41
+ mr: "marginRight",
42
+ mb: "marginBottom",
43
+ ml: "marginLeft",
44
+ mx: "marginX",
45
+ my: "marginY",
46
+ p: "padding",
47
+ pt: "paddingTop",
48
+ pr: "paddingRight",
49
+ pb: "paddingBottom",
50
+ pl: "paddingLeft",
51
+ px: "paddingX",
52
+ py: "paddingY"
53
+ };
54
+ const multiples = {
55
+ marginX: ["marginLeft", "marginRight"],
56
+ marginY: ["marginTop", "marginBottom"],
57
+ paddingX: ["paddingLeft", "paddingRight"],
58
+ paddingY: ["paddingTop", "paddingBottom"],
59
+ size: ["width", "height"]
60
+ };
61
+ const scales = {
62
+ color: "colors",
63
+ backgroundColor: "colors",
64
+ borderColor: "colors",
65
+ margin: "space",
66
+ marginTop: "space",
67
+ marginRight: "space",
68
+ marginBottom: "space",
69
+ marginLeft: "space",
70
+ marginX: "space",
71
+ marginY: "space",
72
+ padding: "space",
73
+ paddingTop: "space",
74
+ paddingRight: "space",
75
+ paddingBottom: "space",
76
+ paddingLeft: "space",
77
+ paddingX: "space",
78
+ paddingY: "space",
79
+ top: "space",
80
+ right: "space",
81
+ bottom: "space",
82
+ left: "space",
83
+ gridGap: "space",
84
+ gridColumnGap: "space",
85
+ gridRowGap: "space",
86
+ gap: "space",
87
+ columnGap: "space",
88
+ rowGap: "space",
89
+ fontFamily: "fonts",
90
+ fontSize: "fontSizes",
91
+ fontWeight: "fontWeights",
92
+ lineHeight: "lineHeights",
93
+ letterSpacing: "letterSpacings",
94
+ border: "borders",
95
+ borderTop: "borders",
96
+ borderRight: "borders",
97
+ borderBottom: "borders",
98
+ borderLeft: "borders",
99
+ borderWidth: "borderWidths",
100
+ borderStyle: "borderStyles",
101
+ borderRadius: "radii",
102
+ borderTopRightRadius: "radii",
103
+ borderTopLeftRadius: "radii",
104
+ borderBottomRightRadius: "radii",
105
+ borderBottomLeftRadius: "radii",
106
+ borderTopWidth: "borderWidths",
107
+ borderTopColor: "colors",
108
+ borderTopStyle: "borderStyles",
109
+ borderBottomWidth: "borderWidths",
110
+ borderBottomColor: "colors",
111
+ borderBottomStyle: "borderStyles",
112
+ borderLeftWidth: "borderWidths",
113
+ borderLeftColor: "colors",
114
+ borderLeftStyle: "borderStyles",
115
+ borderRightWidth: "borderWidths",
116
+ borderRightColor: "colors",
117
+ borderRightStyle: "borderStyles",
118
+ outlineColor: "colors",
119
+ boxShadow: "shadows",
120
+ textShadow: "shadows",
121
+ zIndex: "zIndices",
122
+ width: "sizes",
123
+ minWidth: "sizes",
124
+ maxWidth: "sizes",
125
+ height: "sizes",
126
+ minHeight: "sizes",
127
+ maxHeight: "sizes",
128
+ flexBasis: "sizes",
129
+ size: "sizes",
130
+ fill: "colors",
131
+ stroke: "colors"
132
+ };
133
+ const positiveOrNegative = (scale, value) => {
134
+ if (typeof value !== "number" || value >= 0) return get(scale, value, value);
135
+ const absolute = Math.abs(value);
136
+ const n = get(scale, absolute, absolute);
137
+ if (typeof n === "string") return "-" + n;
138
+ return n * -1;
139
+ };
140
+ const transforms = [
141
+ "margin",
142
+ "marginTop",
143
+ "marginRight",
144
+ "marginBottom",
145
+ "marginLeft",
146
+ "marginX",
147
+ "marginY",
148
+ "top",
149
+ "bottom",
150
+ "left",
151
+ "right"
152
+ ].reduce((acc, curr) => ({
153
+ ...acc,
154
+ [curr]: positiveOrNegative
155
+ }), {});
156
+ const responsive = (styles) => (theme) => {
157
+ const next = {};
158
+ const mediaQueries = [null, ...get(theme, "breakpoints", defaultBreakpoints).map((n) => `@media screen and (min-width: ${n})`)];
159
+ for (const key in styles) {
160
+ const value = typeof styles[key] === "function" ? styles[key](theme) : styles[key];
161
+ if (value == null) continue;
162
+ if (!Array.isArray(value)) {
163
+ next[key] = value;
164
+ continue;
165
+ }
166
+ const slice = value.slice(0, mediaQueries.length);
167
+ for (let i = 0; i < slice.length; i++) {
168
+ const media = mediaQueries[i];
169
+ if (!media) {
170
+ next[key] = slice[i];
171
+ continue;
172
+ }
173
+ const block = next[media] || {};
174
+ next[media] = block;
175
+ if (slice[i] == null) continue;
176
+ block[key] = slice[i];
177
+ }
178
+ }
179
+ return next;
180
+ };
181
+ const css = (args) => (props = {}) => {
182
+ const theme = {
183
+ ...defaultTheme,
184
+ ...props.theme || props
185
+ };
186
+ let result = {};
187
+ const styles = responsive(typeof args === "function" ? args(theme) : args)(theme);
188
+ for (const key in styles) {
189
+ const x = styles[key];
190
+ const val = typeof x === "function" ? x(theme) : x;
191
+ if (key === "variant") {
192
+ const variant = css(get(theme, val))(theme);
193
+ result = {
194
+ ...result,
195
+ ...variant
196
+ };
197
+ continue;
198
+ }
199
+ if (val && typeof val === "object") {
200
+ result[key] = css(val)(theme);
201
+ continue;
202
+ }
203
+ const prop = get(aliases, key, key);
204
+ const scale = get(theme, get(scales, prop), get(theme, prop, {}));
205
+ const value = get(transforms, prop, get)(scale, val, val);
206
+ if (multiples[prop]) {
207
+ const dirs = multiples[prop];
208
+ for (let i = 0; i < dirs.length; i++) result[dirs[i]] = value;
209
+ } else result[prop] = value;
210
+ }
211
+ return result;
212
+ };
213
+ //#endregion
214
+ export { get as n, responsive as r, css as t };
package/dist/css.cjs ADDED
@@ -0,0 +1,9 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ const require_css = require("./css-nzeM_Xnf.cjs");
6
+ exports.css = require_css.css;
7
+ exports.default = require_css.css;
8
+ exports.get = require_css.get;
9
+ exports.responsive = require_css.responsive;
package/dist/css.d.cts ADDED
@@ -0,0 +1,12 @@
1
+ //#region src/css/css.d.ts
2
+ type CssObject = Record<string, unknown>;
3
+ interface CssTheme {
4
+ breakpoints?: (string | number)[];
5
+ [key: string]: unknown;
6
+ }
7
+ type CssArg = CssObject | ((theme: CssTheme) => CssObject);
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;
11
+ //#endregion
12
+ export { CssObject, CssTheme, css, css as default, get, responsive };
package/dist/css.d.mts ADDED
@@ -0,0 +1,12 @@
1
+ //#region src/css/css.d.ts
2
+ type CssObject = Record<string, unknown>;
3
+ interface CssTheme {
4
+ breakpoints?: (string | number)[];
5
+ [key: string]: unknown;
6
+ }
7
+ type CssArg = CssObject | ((theme: CssTheme) => CssObject);
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;
11
+ //#endregion
12
+ export { CssObject, CssTheme, css, css as default, get, responsive };
package/dist/css.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { n as get, r as responsive, t as css } from "./css-rLZ9Oeye.mjs";
2
+ export { css, css as default, get, responsive };
@@ -0,0 +1,22 @@
1
+ const flexbox = require("./core.cjs").system({
2
+ alignItems: true,
3
+ alignContent: true,
4
+ justifyItems: true,
5
+ justifyContent: true,
6
+ flexWrap: true,
7
+ flexDirection: true,
8
+ flex: true,
9
+ flexGrow: true,
10
+ flexShrink: true,
11
+ flexBasis: true,
12
+ justifySelf: true,
13
+ alignSelf: true,
14
+ order: true
15
+ });
16
+ //#endregion
17
+ Object.defineProperty(exports, "flexbox", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return flexbox;
21
+ }
22
+ });
@@ -0,0 +1,18 @@
1
+ import { system } from "./core.mjs";
2
+ const flexbox = system({
3
+ alignItems: true,
4
+ alignContent: true,
5
+ justifyItems: true,
6
+ justifyContent: true,
7
+ flexWrap: true,
8
+ flexDirection: true,
9
+ flex: true,
10
+ flexGrow: true,
11
+ flexShrink: true,
12
+ flexBasis: true,
13
+ justifySelf: true,
14
+ alignSelf: true,
15
+ order: true
16
+ });
17
+ //#endregion
18
+ export { flexbox as t };
@@ -0,0 +1,7 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
6
+ exports.default = require_flexbox.flexbox;
7
+ exports.flexbox = require_flexbox.flexbox;
@@ -0,0 +1,2 @@
1
+ import { t as flexbox } from "./index-BS9GuhQN.cjs";
2
+ export { flexbox as default, flexbox };
@@ -0,0 +1,2 @@
1
+ import { t as flexbox } from "./index-CX2jWEGJ.mjs";
2
+ export { flexbox as default, flexbox };
@@ -0,0 +1,2 @@
1
+ import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
2
+ export { flexbox as default, flexbox };
@@ -0,0 +1,41 @@
1
+ import { system } from "./core.mjs";
2
+ //#region src/grid/grid.ts
3
+ const spaceScale = [
4
+ 0,
5
+ 4,
6
+ 8,
7
+ 16,
8
+ 32,
9
+ 64,
10
+ 128,
11
+ 256,
12
+ 512
13
+ ];
14
+ const grid = system({
15
+ gridGap: {
16
+ property: "gridGap",
17
+ scale: "space",
18
+ defaultScale: spaceScale
19
+ },
20
+ gridColumnGap: {
21
+ property: "gridColumnGap",
22
+ scale: "space",
23
+ defaultScale: spaceScale
24
+ },
25
+ gridRowGap: {
26
+ property: "gridRowGap",
27
+ scale: "space",
28
+ defaultScale: spaceScale
29
+ },
30
+ gridColumn: true,
31
+ gridRow: true,
32
+ gridAutoFlow: true,
33
+ gridAutoColumns: true,
34
+ gridAutoRows: true,
35
+ gridTemplateColumns: true,
36
+ gridTemplateRows: true,
37
+ gridTemplateAreas: true,
38
+ gridArea: true
39
+ });
40
+ //#endregion
41
+ export { grid as t };
@@ -0,0 +1,47 @@
1
+ const require_core = require("./core.cjs");
2
+ //#region src/grid/grid.ts
3
+ const spaceScale = [
4
+ 0,
5
+ 4,
6
+ 8,
7
+ 16,
8
+ 32,
9
+ 64,
10
+ 128,
11
+ 256,
12
+ 512
13
+ ];
14
+ const config = {
15
+ gridGap: {
16
+ property: "gridGap",
17
+ scale: "space",
18
+ defaultScale: spaceScale
19
+ },
20
+ gridColumnGap: {
21
+ property: "gridColumnGap",
22
+ scale: "space",
23
+ defaultScale: spaceScale
24
+ },
25
+ gridRowGap: {
26
+ property: "gridRowGap",
27
+ scale: "space",
28
+ defaultScale: spaceScale
29
+ },
30
+ gridColumn: true,
31
+ gridRow: true,
32
+ gridAutoFlow: true,
33
+ gridAutoColumns: true,
34
+ gridAutoRows: true,
35
+ gridTemplateColumns: true,
36
+ gridTemplateRows: true,
37
+ gridTemplateAreas: true,
38
+ gridArea: true
39
+ };
40
+ const grid = require_core.system(config);
41
+ //#endregion
42
+ Object.defineProperty(exports, "grid", {
43
+ enumerable: true,
44
+ get: function() {
45
+ return grid;
46
+ }
47
+ });
package/dist/grid.cjs ADDED
@@ -0,0 +1,7 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ const require_grid = require("./grid-CpvRIng4.cjs");
6
+ exports.default = require_grid.grid;
7
+ exports.grid = require_grid.grid;
@@ -0,0 +1,2 @@
1
+ import { t as grid } from "./index-Ce09s0FQ.cjs";
2
+ export { grid as default, grid };
@@ -0,0 +1,2 @@
1
+ import { t as grid } from "./index-J3PebPto.mjs";
2
+ export { grid as default, grid };
package/dist/grid.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { t as grid } from "./grid-Bpk-QjhF.mjs";
2
+ export { grid as default, grid };
@@ -0,0 +1,8 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
+
3
+ //#region src/space/space.d.ts
4
+ declare const margin: Parser;
5
+ declare const padding: Parser;
6
+ declare const space: Parser;
7
+ //#endregion
8
+ export { padding as n, space as r, margin as t };
@@ -0,0 +1,15 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
+
3
+ //#region src/variant/variant.d.ts
4
+ interface VariantOptions {
5
+ scale?: string;
6
+ prop?: string;
7
+ variants?: Record<string, unknown>;
8
+ key?: string;
9
+ }
10
+ declare const variant: (options?: VariantOptions) => Parser;
11
+ declare const buttonStyle: Parser;
12
+ declare const textStyle: Parser;
13
+ declare const colorStyle: Parser;
14
+ //#endregion
15
+ export { variant as a, textStyle as i, buttonStyle as n, colorStyle as r, VariantOptions as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/background/background.d.ts
4
+ declare const background: Parser;
5
+ //#endregion
6
+ export { background as t };
@@ -0,0 +1,15 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/variant/variant.d.ts
4
+ interface VariantOptions {
5
+ scale?: string;
6
+ prop?: string;
7
+ variants?: Record<string, unknown>;
8
+ key?: string;
9
+ }
10
+ declare const variant: (options?: VariantOptions) => Parser;
11
+ declare const buttonStyle: Parser;
12
+ declare const textStyle: Parser;
13
+ declare const colorStyle: Parser;
14
+ //#endregion
15
+ export { variant as a, textStyle as i, buttonStyle as n, colorStyle as r, VariantOptions as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
+
3
+ //#region src/flexbox/flexbox.d.ts
4
+ declare const flexbox: Parser;
5
+ //#endregion
6
+ export { flexbox as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
+
3
+ //#region src/border/border.d.ts
4
+ declare const border: Parser;
5
+ //#endregion
6
+ export { border as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/border/border.d.ts
4
+ declare const border: Parser;
5
+ //#endregion
6
+ export { border as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/typography/typography.d.ts
4
+ declare const typography: Parser;
5
+ //#endregion
6
+ export { typography as t };
@@ -0,0 +1,8 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/space/space.d.ts
4
+ declare const margin: Parser;
5
+ declare const padding: Parser;
6
+ declare const space: Parser;
7
+ //#endregion
8
+ export { padding as n, space as r, margin as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/flexbox/flexbox.d.ts
4
+ declare const flexbox: Parser;
5
+ //#endregion
6
+ export { flexbox as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
+
3
+ //#region src/typography/typography.d.ts
4
+ declare const typography: Parser;
5
+ //#endregion
6
+ export { typography as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
+
3
+ //#region src/grid/grid.d.ts
4
+ declare const grid: Parser;
5
+ //#endregion
6
+ export { grid as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/position/position.d.ts
4
+ declare const position: Parser;
5
+ //#endregion
6
+ export { position as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/layout/layout.d.ts
4
+ declare const layout: Parser;
5
+ //#endregion
6
+ export { layout as t };
@@ -0,0 +1,6 @@
1
+ import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
+
3
+ //#region src/color/color.d.ts
4
+ declare const color: Parser;
5
+ //#endregion
6
+ export { color as t };
@@ -0,0 +1,62 @@
1
+ import * as CSS from "csstype";
2
+
3
+ //#region src/core/core.d.ts
4
+ type StyleObject = Record<string, unknown>;
5
+ type CSSLength = string | number;
6
+ /**
7
+ * A CSS-in-JS style object: typed CSS properties plus nested selectors, at-rules
8
+ * (media queries), and pseudo-classes. Structurally compatible with the `CSSObject`
9
+ * of Emotion and styled-components, so a {@link Parser} can be dropped straight into
10
+ * either engine's `styled()` as an interpolation.
11
+ */
12
+ interface CSSObject extends CSS.Properties<CSSLength>, CSS.PropertiesHyphen<CSSLength> {
13
+ [selectorOrAtRule: string]: CSSObject | string | number | undefined;
14
+ }
15
+ interface Theme {
16
+ breakpoints?: readonly (string | number)[] | Record<string, string | number>;
17
+ disableStyledSystemCache?: boolean;
18
+ [key: string]: unknown;
19
+ }
20
+ interface Props {
21
+ theme?: Theme;
22
+ [key: string]: unknown;
23
+ }
24
+ type Transform = (value: unknown, scale?: unknown, props?: Props) => unknown;
25
+ interface StyleFn {
26
+ (value: unknown, scale?: unknown, props?: Props): StyleObject | undefined;
27
+ scale?: string;
28
+ defaults?: unknown;
29
+ }
30
+ interface ConfigStyle {
31
+ property?: string;
32
+ properties?: string[];
33
+ scale?: string;
34
+ transform?: Transform;
35
+ defaultScale?: unknown;
36
+ }
37
+ type SystemConfig = Record<string, boolean | StyleFn | ConfigStyle>;
38
+ type ParserConfig = Record<string, StyleFn>;
39
+ interface ParserCache {
40
+ breakpoints?: readonly (string | number)[] | Record<string, string | number>;
41
+ media?: (string | null)[];
42
+ }
43
+ interface Parser {
44
+ (...args: any[]): any;
45
+ config: ParserConfig;
46
+ propNames: string[];
47
+ cache: ParserCache;
48
+ }
49
+ declare const merge: (a: StyleObject, b: StyleObject) => StyleObject;
50
+ declare const get: (obj: any, key?: string | number, def?: any, p?: number, undef?: any) => any;
51
+ declare const createParser: (config: ParserConfig) => Parser;
52
+ declare const createStyleFunction: ({
53
+ properties,
54
+ property,
55
+ scale,
56
+ transform,
57
+ defaultScale
58
+ }: ConfigStyle) => StyleFn;
59
+ declare const system: (args?: SystemConfig) => Parser;
60
+ declare const compose: (...parsers: (Parser | undefined)[]) => Parser;
61
+ //#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 };