@soroush.tech/styled-system 5.1.6 → 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.
- package/README.md +2 -2
- package/dist/background.d.cts +3 -2
- package/dist/background.d.mts +3 -2
- package/dist/border.d.cts +3 -2
- package/dist/border.d.mts +3 -2
- package/dist/color.d.cts +3 -2
- package/dist/color.d.mts +3 -2
- package/dist/core.cjs +19 -11
- package/dist/core.d.cts +1 -1
- package/dist/core.d.mts +1 -1
- package/dist/core.mjs +19 -11
- package/dist/{css-nzeM_Xnf.cjs → css-BQ6QmZDs.cjs} +3 -3
- package/dist/{css-rLZ9Oeye.mjs → css-DPyZNAmX.mjs} +3 -3
- package/dist/css.cjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/flexbox.d.cts +3 -2
- package/dist/flexbox.d.mts +3 -2
- package/dist/grid.d.cts +3 -2
- package/dist/grid.d.mts +3 -2
- package/dist/{index-C3_fScux.d.mts → index--0QXsrzB.d.mts} +1 -2
- package/dist/{index-BBTVE4EM.d.mts → index-5FNmSnEI.d.cts} +1 -2
- package/dist/{index-50KH4Mo7.d.cts → index-B4DiqzRr.d.cts} +1 -2
- package/dist/{index-9ZhIewzy.d.mts → index-BDKAW1u8.d.mts} +1 -2
- package/dist/{index-DZaFk5pk.d.cts → index-BFzj-f22.d.cts} +1 -2
- package/dist/{index-Nc-10syf.d.cts → index-BPHA_boa.d.mts} +1 -2
- package/dist/{index-CX2jWEGJ.d.mts → index-Bd7E_7bm.d.cts} +1 -2
- package/dist/{index-C13YRARN.d.mts → index-BrXslH97.d.cts} +1 -2
- package/dist/index-BvNoOnuk.d.mts +5 -0
- package/dist/{index-D8EyRZ5p.d.cts → index-C6pWum7i.d.cts} +1 -1
- package/dist/{index-D8EyRZ5p.d.mts → index-C6pWum7i.d.mts} +1 -1
- package/dist/index-CTguR0fU.d.cts +6 -0
- package/dist/index-C_ikENGU.d.mts +6 -0
- package/dist/{index-8PSQ0vkP.d.cts → index-CeQ5ox80.d.mts} +1 -2
- package/dist/{index-CrUx2vIP.d.mts → index-Cq-vX0It.d.mts} +1 -2
- package/dist/{index-CsS_gcI9.d.mts → index-CuQx9h4Q.d.cts} +1 -2
- package/dist/{index-DPWkvooj.d.mts → index-CvbdNFVK.d.cts} +1 -2
- package/dist/{index-BS9GuhQN.d.cts → index-D7-Ctdwn.d.mts} +1 -2
- package/dist/index-D9W3cc9s.d.mts +5 -0
- package/dist/{index-Bx7IxKu-.d.mts → index-DLcnFzWU.d.mts} +1 -2
- package/dist/{index-z86wOHTb.d.cts → index-DS-HZ740.d.cts} +1 -2
- package/dist/index-Dxn97XnB.d.cts +5 -0
- package/dist/{index-BoMacn6F.d.cts → index-Dz8xde7b.d.cts} +1 -2
- package/dist/{index-CarHCWLQ.d.cts → index-DzPnzx9p.d.mts} +1 -2
- package/dist/{index-DVR6hZCd.d.cts → index-F79chYlR.d.mts} +1 -2
- package/dist/index-HNU5ME-U.d.cts +5 -0
- package/dist/index.cjs +5 -3
- package/dist/index.d.cts +15 -196
- package/dist/index.d.mts +15 -196
- package/dist/index.mjs +5 -4
- package/dist/{layout-TqD8vcEl.mjs → layout-Dx0Un_6l.mjs} +1 -1
- package/dist/{layout-B1-2dfQ9.cjs → layout-JlwVxg8y.cjs} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +3 -2
- package/dist/layout.d.mts +3 -2
- package/dist/layout.mjs +1 -1
- package/dist/position.d.cts +3 -2
- package/dist/position.d.mts +3 -2
- package/dist/{presets-DlUVOAIL.cjs → presets-BgKBhlRl.cjs} +3 -3
- package/dist/{presets-DjaCx0dm.mjs → presets-CcKoA0BA.mjs} +3 -3
- package/dist/props.cjs +4 -4
- package/dist/props.mjs +4 -4
- package/dist/shadow.d.cts +3 -2
- package/dist/shadow.d.mts +3 -2
- package/dist/should-forward-prop.cjs +3 -3
- package/dist/should-forward-prop.mjs +3 -3
- package/dist/{space-C14uiNpw.cjs → space-CAX_62yL.cjs} +1 -1
- package/dist/{space-CNrX-zoo.mjs → space-DEf9-0r9.mjs} +1 -1
- package/dist/space.cjs +1 -1
- package/dist/space.d.cts +3 -2
- package/dist/space.d.mts +3 -2
- package/dist/space.mjs +1 -1
- package/dist/theme-get-CwPt9eDy.mjs +5 -0
- package/dist/theme-get-D0fH7Jrd.cjs +10 -0
- package/dist/theme-get.cjs +3 -6
- package/dist/theme-get.d.cts +1 -5
- package/dist/theme-get.d.mts +1 -5
- package/dist/theme-get.mjs +1 -4
- package/dist/types-CCujn9-2.d.cts +304 -0
- package/dist/types-CCujn9-2.d.mts +304 -0
- package/dist/typography.d.cts +3 -2
- package/dist/typography.d.mts +3 -2
- package/dist/{variant-ChsBzwrI.cjs → variant-C7vPzZHo.cjs} +1 -1
- package/dist/{variant-CWUfe1Cc.mjs → variant-DQA9pqwW.mjs} +1 -1
- package/dist/variant.cjs +1 -1
- package/dist/variant.d.cts +3 -2
- package/dist/variant.d.mts +3 -2
- package/dist/variant.mjs +1 -1
- package/package.json +186 -207
- package/dist/index-Ce09s0FQ.d.cts +0 -6
- package/dist/index-D3t1Lyte.d.mts +0 -6
- package/dist/index-J3PebPto.d.mts +0 -6
- package/dist/index-j3E1mxCg.d.cts +0 -6
package/README.md
CHANGED
|
@@ -143,8 +143,8 @@ Full docs live in [`docs/`](./docs/README.md):
|
|
|
143
143
|
- [TypeScript](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/typescript.md)
|
|
144
144
|
- [Guides](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/docs/guides/index.md)
|
|
145
145
|
|
|
146
|
-
Runnable demos live in [`examples/styled-system/`](
|
|
146
|
+
Runnable demos live in [`examples/styled-system/`](https://github.com/soroush-tech/soroush.tech/tree/main/examples/styled-system).
|
|
147
147
|
|
|
148
148
|
## License
|
|
149
149
|
|
|
150
|
-
MIT — a rewrite of styled-system (© 2017–2021 Brent Jackson), see [`LICENSE`](
|
|
150
|
+
MIT — a rewrite of styled-system (© 2017–2021 Brent Jackson), see [`LICENSE`](https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system/LICENSE).
|
package/dist/background.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { t as background } from "./index-
|
|
2
|
-
|
|
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 };
|
package/dist/background.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { t as background } from "./index-
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
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.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/core/core.ts
|
|
3
3
|
const merge = (a, b) => {
|
|
4
|
-
const result =
|
|
4
|
+
const result = {
|
|
5
|
+
...a,
|
|
6
|
+
...b
|
|
7
|
+
};
|
|
5
8
|
for (const key in a) {
|
|
6
9
|
if (!a[key] || typeof b[key] !== "object") continue;
|
|
7
10
|
Object.assign(result, { [key]: Object.assign(a[key], b[key]) });
|
|
@@ -25,10 +28,10 @@ const defaults = { breakpoints: [
|
|
|
25
28
|
].map((n) => n + "em") };
|
|
26
29
|
const createMediaQuery = (n) => `@media screen and (min-width: ${n})`;
|
|
27
30
|
const getValue = (n, scale) => get(scale, n, n);
|
|
28
|
-
const get = (obj, key, def, p, undef) => {
|
|
31
|
+
const get = (obj, key, def, p = 0, undef) => {
|
|
29
32
|
const path = typeof key === "string" ? key.split(".") : [key];
|
|
30
33
|
let value = obj;
|
|
31
|
-
for (
|
|
34
|
+
for (; p < path.length; p++) value = value ? value[path[p]] : undef;
|
|
32
35
|
return value === undef ? def : value;
|
|
33
36
|
};
|
|
34
37
|
const parseResponsiveStyle = (mediaQueries, sx, scale, raw, props) => {
|
|
@@ -36,8 +39,11 @@ const parseResponsiveStyle = (mediaQueries, sx, scale, raw, props) => {
|
|
|
36
39
|
raw.slice(0, mediaQueries.length).forEach((value, i) => {
|
|
37
40
|
const media = mediaQueries[i];
|
|
38
41
|
const style = sx(value, scale, props);
|
|
39
|
-
if (
|
|
40
|
-
|
|
42
|
+
if (media) Object.assign(styles, { [media]: {
|
|
43
|
+
...styles[media],
|
|
44
|
+
...style
|
|
45
|
+
} });
|
|
46
|
+
else Object.assign(styles, style);
|
|
41
47
|
});
|
|
42
48
|
return styles;
|
|
43
49
|
};
|
|
@@ -47,11 +53,13 @@ const parseResponsiveObject = (breakpoints, sx, scale, raw, props) => {
|
|
|
47
53
|
const breakpoint = breakpoints[key];
|
|
48
54
|
const value = raw[key];
|
|
49
55
|
const style = sx(value, scale, props);
|
|
50
|
-
if (
|
|
51
|
-
else {
|
|
56
|
+
if (breakpoint) {
|
|
52
57
|
const media = createMediaQuery(breakpoint);
|
|
53
|
-
Object.assign(styles, { [media]:
|
|
54
|
-
|
|
58
|
+
Object.assign(styles, { [media]: {
|
|
59
|
+
...styles[media],
|
|
60
|
+
...style
|
|
61
|
+
} });
|
|
62
|
+
} else Object.assign(styles, style);
|
|
55
63
|
}
|
|
56
64
|
return styles;
|
|
57
65
|
};
|
|
@@ -60,7 +68,7 @@ const createParser = (config) => {
|
|
|
60
68
|
const parse = ((props) => {
|
|
61
69
|
let styles = {};
|
|
62
70
|
let shouldSort = false;
|
|
63
|
-
const isCacheDisabled = props.theme
|
|
71
|
+
const isCacheDisabled = props.theme?.disableStyledSystemCache;
|
|
64
72
|
for (const key in props) {
|
|
65
73
|
if (!config[key]) continue;
|
|
66
74
|
const sx = config[key];
|
|
@@ -130,7 +138,7 @@ const system = (args = {}) => {
|
|
|
130
138
|
const compose = (...parsers) => {
|
|
131
139
|
const config = {};
|
|
132
140
|
parsers.forEach((parser) => {
|
|
133
|
-
if (!parser
|
|
141
|
+
if (!parser?.config) return;
|
|
134
142
|
Object.assign(config, parser.config);
|
|
135
143
|
});
|
|
136
144
|
return createParser(config);
|
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-
|
|
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-
|
|
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 };
|
package/dist/core.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
//#region src/core/core.ts
|
|
2
2
|
const merge = (a, b) => {
|
|
3
|
-
const result =
|
|
3
|
+
const result = {
|
|
4
|
+
...a,
|
|
5
|
+
...b
|
|
6
|
+
};
|
|
4
7
|
for (const key in a) {
|
|
5
8
|
if (!a[key] || typeof b[key] !== "object") continue;
|
|
6
9
|
Object.assign(result, { [key]: Object.assign(a[key], b[key]) });
|
|
@@ -24,10 +27,10 @@ const defaults = { breakpoints: [
|
|
|
24
27
|
].map((n) => n + "em") };
|
|
25
28
|
const createMediaQuery = (n) => `@media screen and (min-width: ${n})`;
|
|
26
29
|
const getValue = (n, scale) => get(scale, n, n);
|
|
27
|
-
const get = (obj, key, def, p, undef) => {
|
|
30
|
+
const get = (obj, key, def, p = 0, undef) => {
|
|
28
31
|
const path = typeof key === "string" ? key.split(".") : [key];
|
|
29
32
|
let value = obj;
|
|
30
|
-
for (
|
|
33
|
+
for (; p < path.length; p++) value = value ? value[path[p]] : undef;
|
|
31
34
|
return value === undef ? def : value;
|
|
32
35
|
};
|
|
33
36
|
const parseResponsiveStyle = (mediaQueries, sx, scale, raw, props) => {
|
|
@@ -35,8 +38,11 @@ const parseResponsiveStyle = (mediaQueries, sx, scale, raw, props) => {
|
|
|
35
38
|
raw.slice(0, mediaQueries.length).forEach((value, i) => {
|
|
36
39
|
const media = mediaQueries[i];
|
|
37
40
|
const style = sx(value, scale, props);
|
|
38
|
-
if (
|
|
39
|
-
|
|
41
|
+
if (media) Object.assign(styles, { [media]: {
|
|
42
|
+
...styles[media],
|
|
43
|
+
...style
|
|
44
|
+
} });
|
|
45
|
+
else Object.assign(styles, style);
|
|
40
46
|
});
|
|
41
47
|
return styles;
|
|
42
48
|
};
|
|
@@ -46,11 +52,13 @@ const parseResponsiveObject = (breakpoints, sx, scale, raw, props) => {
|
|
|
46
52
|
const breakpoint = breakpoints[key];
|
|
47
53
|
const value = raw[key];
|
|
48
54
|
const style = sx(value, scale, props);
|
|
49
|
-
if (
|
|
50
|
-
else {
|
|
55
|
+
if (breakpoint) {
|
|
51
56
|
const media = createMediaQuery(breakpoint);
|
|
52
|
-
Object.assign(styles, { [media]:
|
|
53
|
-
|
|
57
|
+
Object.assign(styles, { [media]: {
|
|
58
|
+
...styles[media],
|
|
59
|
+
...style
|
|
60
|
+
} });
|
|
61
|
+
} else Object.assign(styles, style);
|
|
54
62
|
}
|
|
55
63
|
return styles;
|
|
56
64
|
};
|
|
@@ -59,7 +67,7 @@ const createParser = (config) => {
|
|
|
59
67
|
const parse = ((props) => {
|
|
60
68
|
let styles = {};
|
|
61
69
|
let shouldSort = false;
|
|
62
|
-
const isCacheDisabled = props.theme
|
|
70
|
+
const isCacheDisabled = props.theme?.disableStyledSystemCache;
|
|
63
71
|
for (const key in props) {
|
|
64
72
|
if (!config[key]) continue;
|
|
65
73
|
const sx = config[key];
|
|
@@ -129,7 +137,7 @@ const system = (args = {}) => {
|
|
|
129
137
|
const compose = (...parsers) => {
|
|
130
138
|
const config = {};
|
|
131
139
|
parsers.forEach((parser) => {
|
|
132
|
-
if (!parser
|
|
140
|
+
if (!parser?.config) return;
|
|
133
141
|
Object.assign(config, parser.config);
|
|
134
142
|
});
|
|
135
143
|
return createParser(config);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/css/css.ts
|
|
2
|
-
const get = (obj, key, def, p, undef) => {
|
|
2
|
+
const get = (obj, key, def, p = 0, undef) => {
|
|
3
3
|
const path = typeof key === "string" ? key.split(".") : [key];
|
|
4
4
|
let value = obj;
|
|
5
|
-
for (
|
|
5
|
+
for (; p < path.length; p++) value = value ? value[path[p]] : undef;
|
|
6
6
|
return value === undef ? def : value;
|
|
7
7
|
};
|
|
8
8
|
const defaultBreakpoints = [
|
|
@@ -205,7 +205,7 @@ const css = (args) => (props = {}) => {
|
|
|
205
205
|
const value = get(transforms, prop, get)(scale, val, val);
|
|
206
206
|
if (multiples[prop]) {
|
|
207
207
|
const dirs = multiples[prop];
|
|
208
|
-
for (
|
|
208
|
+
for (const dir of dirs) result[dir] = value;
|
|
209
209
|
} else result[prop] = value;
|
|
210
210
|
}
|
|
211
211
|
return result;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/css/css.ts
|
|
2
|
-
const get = (obj, key, def, p, undef) => {
|
|
2
|
+
const get = (obj, key, def, p = 0, undef) => {
|
|
3
3
|
const path = typeof key === "string" ? key.split(".") : [key];
|
|
4
4
|
let value = obj;
|
|
5
|
-
for (
|
|
5
|
+
for (; p < path.length; p++) value = value ? value[path[p]] : undef;
|
|
6
6
|
return value === undef ? def : value;
|
|
7
7
|
};
|
|
8
8
|
const defaultBreakpoints = [
|
|
@@ -205,7 +205,7 @@ const css = (args) => (props = {}) => {
|
|
|
205
205
|
const value = get(transforms, prop, get)(scale, val, val);
|
|
206
206
|
if (multiples[prop]) {
|
|
207
207
|
const dirs = multiples[prop];
|
|
208
|
-
for (
|
|
208
|
+
for (const dir of dirs) result[dir] = value;
|
|
209
209
|
} else result[prop] = value;
|
|
210
210
|
}
|
|
211
211
|
return result;
|
package/dist/css.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_css = require("./css-
|
|
5
|
+
const require_css = require("./css-BQ6QmZDs.cjs");
|
|
6
6
|
exports.css = require_css.css;
|
|
7
7
|
exports.default = require_css.css;
|
|
8
8
|
exports.get = require_css.get;
|
package/dist/css.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as get, r as responsive, t as css } from "./css-
|
|
1
|
+
import { n as get, r as responsive, t as css } from "./css-DPyZNAmX.mjs";
|
|
2
2
|
export { css, css as default, get, responsive };
|
package/dist/flexbox.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
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 };
|
package/dist/flexbox.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
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 };
|
|
@@ -21,7 +21,7 @@ interface Props {
|
|
|
21
21
|
theme?: Theme;
|
|
22
22
|
[key: string]: unknown;
|
|
23
23
|
}
|
|
24
|
-
type Transform = (value:
|
|
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:
|
|
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;
|
package/dist/index.cjs
CHANGED
|
@@ -5,12 +5,13 @@ const require_border = require("./border-UuT-fTpy.cjs");
|
|
|
5
5
|
const require_color = require("./color-BNs17Gw-.cjs");
|
|
6
6
|
const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
|
|
7
7
|
const require_grid = require("./grid-CpvRIng4.cjs");
|
|
8
|
-
const require_layout = require("./layout-
|
|
8
|
+
const require_layout = require("./layout-JlwVxg8y.cjs");
|
|
9
9
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
10
10
|
const require_typography = require("./typography-DD_eWLLx.cjs");
|
|
11
|
-
const require_space = require("./space-
|
|
11
|
+
const require_space = require("./space-CAX_62yL.cjs");
|
|
12
12
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
13
|
-
const require_variant = require("./variant-
|
|
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;
|