@soroush.tech/styled-system 5.5.0 → 5.6.1
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 +12 -12
- package/dist/background.d.cts +2 -2
- package/dist/background.d.mts +2 -2
- package/dist/border.d.cts +2 -2
- package/dist/border.d.mts +2 -2
- package/dist/color.d.cts +2 -2
- package/dist/color.d.mts +2 -2
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/{css-DPyZNAmX.mjs → css-BQylBMEo.mjs} +4 -2
- package/dist/{css-BQ6QmZDs.cjs → css-KTNhyd0w.cjs} +4 -2
- package/dist/css.cjs +1 -1
- package/dist/css.d.cts +5 -5
- package/dist/css.d.mts +5 -5
- package/dist/css.mjs +1 -1
- package/dist/flexbox.d.cts +2 -2
- package/dist/flexbox.d.mts +2 -2
- package/dist/grid.d.cts +2 -2
- package/dist/grid.d.mts +2 -2
- package/dist/{index-CeQ5ox80.d.mts → index-3ARRkYzk.d.cts} +4 -2
- package/dist/{index-BrXslH97.d.cts → index-5Dg1n1IR.d.mts} +1 -1
- package/dist/index-9XAypLoH.d.cts +5 -0
- package/dist/{index-F79chYlR.d.mts → index-BG0pPPzE.d.cts} +1 -1
- package/dist/index-BNjbPqRC.d.mts +5 -0
- package/dist/{index-5FNmSnEI.d.cts → index-BPJls8qs.d.mts} +4 -2
- package/dist/{index-DS-HZ740.d.cts → index-BTrJCMxb.d.mts} +1 -1
- package/dist/{index-BPHA_boa.d.mts → index-Bbzsc0fR.d.mts} +1 -1
- package/dist/{index-D7-Ctdwn.d.mts → index-CRGalTX2.d.mts} +1 -1
- package/dist/{index-DLcnFzWU.d.mts → index-CdED1s71.d.mts} +1 -1
- package/dist/{index-CuQx9h4Q.d.cts → index-CglXC0Pa.d.cts} +1 -1
- package/dist/{index-Bd7E_7bm.d.cts → index-CoMWxd1i.d.cts} +1 -1
- package/dist/{index-C6pWum7i.d.cts → index-D4Btc5H8.d.cts} +11 -8
- package/dist/{index-C6pWum7i.d.mts → index-D4Btc5H8.d.mts} +11 -8
- package/dist/{index-B4DiqzRr.d.cts → index-DLVfllTy.d.mts} +1 -1
- package/dist/{index-DzPnzx9p.d.mts → index-DP4kqDsJ.d.cts} +1 -1
- package/dist/{index-CvbdNFVK.d.cts → index-DQKgrHjA.d.mts} +1 -1
- package/dist/{index-Cq-vX0It.d.mts → index-DSKs82W7.d.cts} +1 -1
- package/dist/{index-BDKAW1u8.d.mts → index-DuGi82Ma.d.cts} +1 -1
- package/dist/{index-BFzj-f22.d.cts → index-HQb_WHtN.d.mts} +1 -1
- package/dist/{index--0QXsrzB.d.mts → index-JB48cMyT.d.cts} +1 -1
- package/dist/index-XUBjyEVU.d.mts +5 -0
- package/dist/{index-Dz8xde7b.d.cts → index-hBpseU4Y.d.cts} +1 -1
- package/dist/index-yk0Zqc7v.d.cts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +16 -14
- package/dist/index.d.mts +16 -14
- package/dist/index.mjs +1 -1
- package/dist/layout.d.cts +2 -2
- package/dist/layout.d.mts +2 -2
- package/dist/position.d.cts +2 -2
- package/dist/position.d.mts +2 -2
- package/dist/{presets-CcKoA0BA.mjs → presets-BJo9-Lcu.mjs} +1 -1
- package/dist/{presets-BgKBhlRl.cjs → presets-Dj-syv_1.cjs} +1 -1
- package/dist/prop-types.cjs +1 -1
- package/dist/prop-types.mjs +1 -1
- package/dist/props.cjs +1 -1
- package/dist/props.mjs +1 -1
- package/dist/shadow.d.cts +2 -2
- package/dist/shadow.d.mts +2 -2
- package/dist/should-forward-prop.cjs +1 -1
- package/dist/should-forward-prop.mjs +1 -1
- package/dist/space.d.cts +2 -2
- package/dist/space.d.mts +2 -2
- package/dist/theme-get.cjs +1 -1
- package/dist/theme-get.d.cts +1 -3
- package/dist/theme-get.d.mts +1 -3
- package/dist/theme-get.mjs +1 -1
- package/dist/{types-CCujn9-2.d.cts → types-CkHJArGA.d.cts} +5 -5
- package/dist/{types-CCujn9-2.d.mts → types-CkHJArGA.d.mts} +5 -5
- package/dist/typography.d.cts +2 -2
- package/dist/typography.d.mts +2 -2
- package/dist/{variant-C7vPzZHo.cjs → variant-DE0Cwy7S.cjs} +1 -1
- package/dist/{variant-DQA9pqwW.mjs → variant-p-ooclB1.mjs} +1 -1
- package/dist/variant.cjs +1 -1
- package/dist/variant.d.cts +3 -3
- package/dist/variant.d.mts +3 -3
- package/dist/variant.mjs +1 -1
- package/package.json +10 -7
- package/dist/index-BvNoOnuk.d.mts +0 -5
- package/dist/index-D9W3cc9s.d.mts +0 -5
- package/dist/index-Dxn97XnB.d.cts +0 -5
- package/dist/index-HNU5ME-U.d.cts +0 -5
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
4
4
|
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
5
|
-
[](https://app.codecov.io/gh/soroush-tech/core?flags%5B0%5D=styled-system)
|
|
6
6
|
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
7
7
|
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
8
8
|
[](./LICENSE)
|
|
@@ -145,18 +145,18 @@ Types resolve under both modern module resolution (`node16`/`nodenext`/`bundler`
|
|
|
145
145
|
|
|
146
146
|
Full docs live in [`docs/`](./docs/README.md):
|
|
147
147
|
|
|
148
|
-
- [Getting Started](https://github.com/soroush-tech/
|
|
149
|
-
- [Responsive Styles](https://github.com/soroush-tech/
|
|
150
|
-
- [How it Works](https://github.com/soroush-tech/
|
|
151
|
-
- [Custom Props](https://github.com/soroush-tech/
|
|
152
|
-
- [Variants](https://github.com/soroush-tech/
|
|
153
|
-
- [API](https://github.com/soroush-tech/
|
|
154
|
-
- [Reference Table](https://github.com/soroush-tech/
|
|
155
|
-
- [TypeScript](https://github.com/soroush-tech/
|
|
156
|
-
- [Guides](https://github.com/soroush-tech/
|
|
148
|
+
- [Getting Started](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/getting-started.md)
|
|
149
|
+
- [Responsive Styles](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/responsive-styles.md)
|
|
150
|
+
- [How it Works](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/how-it-works.md)
|
|
151
|
+
- [Custom Props](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/custom-props.md)
|
|
152
|
+
- [Variants](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/variants.md)
|
|
153
|
+
- [API](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/api.md)
|
|
154
|
+
- [Reference Table](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/table.md)
|
|
155
|
+
- [TypeScript](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/typescript.md)
|
|
156
|
+
- [Guides](https://github.com/soroush-tech/core/tree/main/packages/styled-system/docs/guides/index.md)
|
|
157
157
|
|
|
158
|
-
Runnable demos live in [
|
|
158
|
+
Runnable demos live in the [examples repo](https://github.com/soroush-tech/examples/tree/main/styled-system).
|
|
159
159
|
|
|
160
160
|
## License
|
|
161
161
|
|
|
162
|
-
MIT — a rewrite of styled-system (© 2017–2021 Brent Jackson), see [`LICENSE`](https://github.com/soroush-tech/
|
|
162
|
+
MIT — a rewrite of styled-system (© 2017–2021 Brent Jackson), see [`LICENSE`](https://github.com/soroush-tech/core/tree/main/packages/styled-system/LICENSE).
|
package/dist/background.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as background } from "./index-
|
|
2
|
-
import { a as BackgroundImageProps, c as BackgroundRepeatProps, l as BackgroundSizeProps, o as BackgroundPositionProps, s as BackgroundProps } from "./types-
|
|
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 };
|
package/dist/background.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as background } from "./index-
|
|
2
|
-
import { a as BackgroundImageProps, c as BackgroundRepeatProps, l as BackgroundSizeProps, o as BackgroundPositionProps, s as BackgroundProps } from "./types-
|
|
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-
|
|
2
|
-
import { t as border } from "./index-
|
|
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-
|
|
2
|
-
import { t as border } from "./index-
|
|
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-
|
|
2
|
-
import { t as color } from "./index-
|
|
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-
|
|
2
|
-
import { t as color } from "./index-
|
|
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
|
|
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
|
|
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 };
|
|
@@ -184,7 +184,8 @@ const css = (args) => (props = {}) => {
|
|
|
184
184
|
...props.theme || props
|
|
185
185
|
};
|
|
186
186
|
let result = {};
|
|
187
|
-
const
|
|
187
|
+
const obj = typeof args === "function" ? args(theme) : args;
|
|
188
|
+
const styles = responsive(obj)(theme);
|
|
188
189
|
for (const key in styles) {
|
|
189
190
|
const x = styles[key];
|
|
190
191
|
const val = typeof x === "function" ? x(theme) : x;
|
|
@@ -201,7 +202,8 @@ const css = (args) => (props = {}) => {
|
|
|
201
202
|
continue;
|
|
202
203
|
}
|
|
203
204
|
const prop = get(aliases, key, key);
|
|
204
|
-
const
|
|
205
|
+
const scaleName = get(scales, prop);
|
|
206
|
+
const scale = get(theme, scaleName, get(theme, prop, {}));
|
|
205
207
|
const value = get(transforms, prop, get)(scale, val, val);
|
|
206
208
|
if (multiples[prop]) {
|
|
207
209
|
const dirs = multiples[prop];
|
|
@@ -184,7 +184,8 @@ const css = (args) => (props = {}) => {
|
|
|
184
184
|
...props.theme || props
|
|
185
185
|
};
|
|
186
186
|
let result = {};
|
|
187
|
-
const
|
|
187
|
+
const obj = typeof args === "function" ? args(theme) : args;
|
|
188
|
+
const styles = responsive(obj)(theme);
|
|
188
189
|
for (const key in styles) {
|
|
189
190
|
const x = styles[key];
|
|
190
191
|
const val = typeof x === "function" ? x(theme) : x;
|
|
@@ -201,7 +202,8 @@ const css = (args) => (props = {}) => {
|
|
|
201
202
|
continue;
|
|
202
203
|
}
|
|
203
204
|
const prop = get(aliases, key, key);
|
|
204
|
-
const
|
|
205
|
+
const scaleName = get(scales, prop);
|
|
206
|
+
const scale = get(theme, scaleName, get(theme, prop, {}));
|
|
205
207
|
const value = get(transforms, prop, get)(scale, val, val);
|
|
206
208
|
if (multiples[prop]) {
|
|
207
209
|
const dirs = multiples[prop];
|
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-KTNhyd0w.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.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//#region src/css/css.d.ts
|
|
2
|
-
type
|
|
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 =
|
|
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:
|
|
10
|
-
declare const css: (args: CssArg) => (props?: Record<string, unknown>) =>
|
|
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 {
|
|
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
|
|
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 =
|
|
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:
|
|
10
|
-
declare const css: (args: CssArg) => (props?: Record<string, unknown>) =>
|
|
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 {
|
|
12
|
+
export { CSSObject, CssTheme, css, css as default, get, responsive };
|
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-BQylBMEo.mjs";
|
|
2
2
|
export { css, css as default, get, responsive };
|
package/dist/flexbox.d.cts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as flexbox } from "./index-
|
|
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 };
|
package/dist/flexbox.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as flexbox } from "./index-
|
|
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-
|
|
2
|
-
import { t as grid } from "./index-
|
|
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-
|
|
2
|
-
import { t as grid } from "./index-
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
16
|
+
export { textStyle as a, colorStyle as i, VariantOptions as n, variant as o, buttonStyle as r, VariantArgs as t };
|
|
@@ -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,
|
|
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]:
|
|
18
|
+
[key: string]: any;
|
|
19
19
|
}
|
|
20
20
|
interface Props {
|
|
21
21
|
theme?: Theme;
|
|
22
|
-
[key: string]:
|
|
22
|
+
[key: string]: any;
|
|
23
23
|
}
|
|
24
|
-
type Transform = (value: any, scale?: any, props?:
|
|
24
|
+
type Transform = (value: any, scale?: any, props?: any) => any;
|
|
25
25
|
interface StyleFn {
|
|
26
|
-
(value:
|
|
26
|
+
(value: any, scale?: any, props?: any): StyleObject | undefined;
|
|
27
27
|
scale?: string;
|
|
28
|
-
defaults?:
|
|
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?:
|
|
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 {
|
|
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,
|
|
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]:
|
|
18
|
+
[key: string]: any;
|
|
19
19
|
}
|
|
20
20
|
interface Props {
|
|
21
21
|
theme?: Theme;
|
|
22
|
-
[key: string]:
|
|
22
|
+
[key: string]: any;
|
|
23
23
|
}
|
|
24
|
-
type Transform = (value: any, scale?: any, props?:
|
|
24
|
+
type Transform = (value: any, scale?: any, props?: any) => any;
|
|
25
25
|
interface StyleFn {
|
|
26
|
-
(value:
|
|
26
|
+
(value: any, scale?: any, props?: any): StyleObject | undefined;
|
|
27
27
|
scale?: string;
|
|
28
|
-
defaults?:
|
|
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?:
|
|
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 {
|
|
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 };
|
package/dist/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ const require_position = require("./position-zWvCE4hD.cjs");
|
|
|
10
10
|
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
|
-
const require_variant = require("./variant-
|
|
13
|
+
const require_variant = require("./variant-DE0Cwy7S.cjs");
|
|
14
14
|
//#region src/style/style.ts
|
|
15
15
|
const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
|
|
16
16
|
const config = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as background } from "./index-
|
|
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-
|
|
4
|
-
import { t as border } from "./index-
|
|
5
|
-
import { t as color } from "./index-
|
|
6
|
-
import { t as flexbox } from "./index-
|
|
7
|
-
import { t as grid } from "./index-
|
|
8
|
-
import { n as padding, r as space, t as margin } from "./index-
|
|
9
|
-
import { t as layout } from "./index-
|
|
10
|
-
import { t as typography } from "./index-
|
|
11
|
-
import { t as position } from "./index-
|
|
12
|
-
import { t as shadow } from "./index-
|
|
13
|
-
import { a as
|
|
1
|
+
import { a as Parser, c as StyleFn, f as Transform, g as get, h as createStyleFunction, i as ConfigStyle, l as StyleObject, m as createParser, n as Config, o as ParserConfig, p as compose, r as ConfigFunction, s as Props, u as SystemConfig, v as styleFn, y as system } from "./index-D4Btc5H8.cjs";
|
|
2
|
+
import { t as background } from "./index-DuGi82Ma.cjs";
|
|
3
|
+
import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CkHJArGA.cjs";
|
|
4
|
+
import { t as border } from "./index-hBpseU4Y.cjs";
|
|
5
|
+
import { t as color } from "./index-9XAypLoH.cjs";
|
|
6
|
+
import { t as flexbox } from "./index-CoMWxd1i.cjs";
|
|
7
|
+
import { t as grid } from "./index-yk0Zqc7v.cjs";
|
|
8
|
+
import { n as padding, r as space, t as margin } from "./index-JB48cMyT.cjs";
|
|
9
|
+
import { t as layout } from "./index-CglXC0Pa.cjs";
|
|
10
|
+
import { t as typography } from "./index-DP4kqDsJ.cjs";
|
|
11
|
+
import { t as position } from "./index-DSKs82W7.cjs";
|
|
12
|
+
import { t as shadow } from "./index-BG0pPPzE.cjs";
|
|
13
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-3ARRkYzk.cjs";
|
|
14
14
|
|
|
15
15
|
//#region src/style/style.d.ts
|
|
16
16
|
interface StyleOptions {
|
|
@@ -22,6 +22,8 @@ interface StyleOptions {
|
|
|
22
22
|
scale?: unknown;
|
|
23
23
|
properties?: string[];
|
|
24
24
|
}
|
|
25
|
+
/** Upstream `@types/styled-system` name for {@link StyleOptions}. */
|
|
26
|
+
type LowLevelStyleFunctionArguments = StyleOptions;
|
|
25
27
|
declare const style: ({
|
|
26
28
|
prop,
|
|
27
29
|
cssProperty,
|
|
@@ -96,4 +98,4 @@ declare const right: Parser;
|
|
|
96
98
|
declare const bottom: Parser;
|
|
97
99
|
declare const left: Parser;
|
|
98
100
|
//#endregion
|
|
99
|
-
export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
|
|
101
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type Config, type ConfigFunction, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, type LowLevelStyleFunctionArguments, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type StyleOptions, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, type VariantArgs, type VariantOptions, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, type styleFn, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as background } from "./index-
|
|
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-
|
|
4
|
-
import { t as border } from "./index-
|
|
5
|
-
import { t as color } from "./index-
|
|
6
|
-
import { t as flexbox } from "./index-
|
|
7
|
-
import { t as grid } from "./index-
|
|
8
|
-
import { n as padding, r as space, t as margin } from "./index
|
|
9
|
-
import { t as layout } from "./index-
|
|
10
|
-
import { t as typography } from "./index-
|
|
11
|
-
import { t as position } from "./index-
|
|
12
|
-
import { t as shadow } from "./index-
|
|
13
|
-
import { a as
|
|
1
|
+
import { a as Parser, c as StyleFn, f as Transform, g as get, h as createStyleFunction, i as ConfigStyle, l as StyleObject, m as createParser, n as Config, o as ParserConfig, p as compose, r as ConfigFunction, s as Props, u as SystemConfig, v as styleFn, y as system } from "./index-D4Btc5H8.mjs";
|
|
2
|
+
import { t as background } from "./index-HQb_WHtN.mjs";
|
|
3
|
+
import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CkHJArGA.mjs";
|
|
4
|
+
import { t as border } from "./index-CdED1s71.mjs";
|
|
5
|
+
import { t as color } from "./index-BNjbPqRC.mjs";
|
|
6
|
+
import { t as flexbox } from "./index-CRGalTX2.mjs";
|
|
7
|
+
import { t as grid } from "./index-XUBjyEVU.mjs";
|
|
8
|
+
import { n as padding, r as space, t as margin } from "./index-DLVfllTy.mjs";
|
|
9
|
+
import { t as layout } from "./index-Bbzsc0fR.mjs";
|
|
10
|
+
import { t as typography } from "./index-5Dg1n1IR.mjs";
|
|
11
|
+
import { t as position } from "./index-BTrJCMxb.mjs";
|
|
12
|
+
import { t as shadow } from "./index-DQKgrHjA.mjs";
|
|
13
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BPJls8qs.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/style/style.d.ts
|
|
16
16
|
interface StyleOptions {
|
|
@@ -22,6 +22,8 @@ interface StyleOptions {
|
|
|
22
22
|
scale?: unknown;
|
|
23
23
|
properties?: string[];
|
|
24
24
|
}
|
|
25
|
+
/** Upstream `@types/styled-system` name for {@link StyleOptions}. */
|
|
26
|
+
type LowLevelStyleFunctionArguments = StyleOptions;
|
|
25
27
|
declare const style: ({
|
|
26
28
|
prop,
|
|
27
29
|
cssProperty,
|
|
@@ -96,4 +98,4 @@ declare const right: Parser;
|
|
|
96
98
|
declare const bottom: Parser;
|
|
97
99
|
declare const left: Parser;
|
|
98
100
|
//#endregion
|
|
99
|
-
export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
|
|
101
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type Config, type ConfigFunction, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, type LowLevelStyleFunctionArguments, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type StyleOptions, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, type VariantArgs, type VariantOptions, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, type styleFn, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { t as position } from "./position-jf6VlRyR.mjs";
|
|
|
9
9
|
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
|
-
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
12
|
+
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-p-ooclB1.mjs";
|
|
13
13
|
//#region src/style/style.ts
|
|
14
14
|
const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
|
|
15
15
|
const config = {};
|
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-
|
|
2
|
-
import { t as layout } from "./index-
|
|
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-
|
|
2
|
-
import { t as layout } from "./index-
|
|
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 };
|
package/dist/position.d.cts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as position } from "./index-
|
|
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 };
|
package/dist/position.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as position } from "./index-
|
|
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 };
|
|
@@ -9,7 +9,7 @@ import { t as position } from "./position-jf6VlRyR.mjs";
|
|
|
9
9
|
import { t as typography } from "./typography-CptBXSy0.mjs";
|
|
10
10
|
import { r as space } from "./space-DEf9-0r9.mjs";
|
|
11
11
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
12
|
-
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
12
|
+
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-p-ooclB1.mjs";
|
|
13
13
|
//#region src/presets/presets.ts
|
|
14
14
|
const all = compose(space, typography, color, layout, flexbox, border, background, position, grid, shadow, buttonStyle, textStyle, colorStyle);
|
|
15
15
|
//#endregion
|
|
@@ -9,7 +9,7 @@ const require_position = require("./position-zWvCE4hD.cjs");
|
|
|
9
9
|
const require_typography = require("./typography-DD_eWLLx.cjs");
|
|
10
10
|
const require_space = require("./space-CAX_62yL.cjs");
|
|
11
11
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
12
|
-
const require_variant = require("./variant-
|
|
12
|
+
const require_variant = require("./variant-DE0Cwy7S.cjs");
|
|
13
13
|
//#region src/presets/presets.ts
|
|
14
14
|
const all = require_core.compose(require_space.space, require_typography.typography, require_color.color, require_layout.layout, require_flexbox.flexbox, require_border.border, require_background.background, require_position.position, require_grid.grid, require_shadow.shadow, require_variant.buttonStyle, require_variant.textStyle, require_variant.colorStyle);
|
|
15
15
|
//#endregion
|
package/dist/prop-types.cjs
CHANGED
|
@@ -13,7 +13,7 @@ const require_position = require("./position-zWvCE4hD.cjs");
|
|
|
13
13
|
const require_typography = require("./typography-DD_eWLLx.cjs");
|
|
14
14
|
const require_space = require("./space-CAX_62yL.cjs");
|
|
15
15
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
16
|
-
const require_variant = require("./variant-
|
|
16
|
+
const require_variant = require("./variant-DE0Cwy7S.cjs");
|
|
17
17
|
let prop_types = require("prop-types");
|
|
18
18
|
prop_types = require_rolldown_runtime.__toESM(prop_types, 1);
|
|
19
19
|
//#region src/prop-types/prop-types.ts
|
package/dist/prop-types.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { t as position } from "./position-jf6VlRyR.mjs";
|
|
|
8
8
|
import { t as typography } from "./typography-CptBXSy0.mjs";
|
|
9
9
|
import { r as space } from "./space-DEf9-0r9.mjs";
|
|
10
10
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
11
|
-
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
11
|
+
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-p-ooclB1.mjs";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
//#region src/prop-types/prop-types.ts
|
|
14
14
|
const propType = PropTypes.oneOfType([
|
package/dist/props.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_presets = require("./presets-
|
|
2
|
+
const require_presets = require("./presets-Dj-syv_1.cjs");
|
|
3
3
|
//#region src/props/props.ts
|
|
4
4
|
const styledSystemProps = new Set(require_presets.all.propNames);
|
|
5
5
|
const omit = (props) => {
|
package/dist/props.mjs
CHANGED
package/dist/shadow.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { b as BoxShadowProps, vt as ShadowProps, wt as TextShadowProps } from "./types-
|
|
2
|
-
import { t as shadow } from "./index-
|
|
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-
|
|
2
|
-
import { t as shadow } from "./index-
|
|
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 };
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
|
|
6
|
-
const require_presets = require("./presets-
|
|
6
|
+
const require_presets = require("./presets-Dj-syv_1.cjs");
|
|
7
7
|
let _emotion_is_prop_valid = require("@emotion/is-prop-valid");
|
|
8
8
|
_emotion_is_prop_valid = require_rolldown_runtime.__toESM(_emotion_is_prop_valid, 1);
|
|
9
9
|
//#region src/should-forward-prop/should-forward-prop.ts
|
package/dist/space.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { bt as SpaceProps, ft as PaddingProps, rt as MarginProps } from "./types-
|
|
2
|
-
import { n as padding, r as space, t as margin } from "./index-
|
|
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-
|
|
2
|
-
import { n as padding, r as space, t as margin } from "./index
|
|
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 };
|
package/dist/theme-get.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
const require_core = require("./core.cjs");
|
|
6
6
|
//#region src/theme-get/theme-get.ts
|
|
7
|
-
const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, path, fallback);
|
|
7
|
+
const themeGet = (path, fallback = null) => (props) => require_core.get(props.theme, Array.isArray(path) ? path.join(".") : path, fallback);
|
|
8
8
|
//#endregion
|
|
9
9
|
exports.default = themeGet;
|
|
10
10
|
exports.themeGet = themeGet;
|
package/dist/theme-get.d.cts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { a as Props } from "./index-C6pWum7i.cjs";
|
|
2
|
-
|
|
3
1
|
//#region src/theme-get/theme-get.d.ts
|
|
4
|
-
declare const themeGet: (path: string
|
|
2
|
+
declare const themeGet: (path: string | Array<string | number>, fallback?: any) => (props: any) => any;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { themeGet as default, themeGet };
|
package/dist/theme-get.d.mts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { a as Props } from "./index-C6pWum7i.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/theme-get/theme-get.d.ts
|
|
4
|
-
declare const themeGet: (path: string
|
|
2
|
+
declare const themeGet: (path: string | Array<string | number>, fallback?: any) => (props: any) => any;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { themeGet as default, themeGet };
|
package/dist/theme-get.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get } from "./core.mjs";
|
|
2
2
|
//#region src/theme-get/theme-get.ts
|
|
3
|
-
const themeGet = (path, fallback = null) => (props) => get(props.theme, path, fallback);
|
|
3
|
+
const themeGet = (path, fallback = null) => (props) => get(props.theme, Array.isArray(path) ? path.join(".") : path, fallback);
|
|
4
4
|
//#endregion
|
|
5
5
|
export { themeGet as default, themeGet };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as CSS from "csstype";
|
|
2
2
|
|
|
3
3
|
//#region src/types.d.ts
|
|
4
|
-
type ObjectOrArray<T, K extends keyof
|
|
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 =
|
|
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
|
|
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 =
|
|
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> {
|
package/dist/typography.d.cts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as typography } from "./index-
|
|
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 };
|
package/dist/typography.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as typography } from "./index-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
const require_core = require("./core.cjs");
|
|
2
|
-
const require_css = require("./css-
|
|
2
|
+
const require_css = require("./css-KTNhyd0w.cjs");
|
|
3
3
|
//#region src/variant/variant.ts
|
|
4
4
|
const variant = (options = {}) => {
|
|
5
5
|
const { scale, prop = "variant", variants = {}, key } = options;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createParser, get } from "./core.mjs";
|
|
2
|
-
import { t as css } from "./css-
|
|
2
|
+
import { t as css } from "./css-BQylBMEo.mjs";
|
|
3
3
|
//#region src/variant/variant.ts
|
|
4
4
|
const variant = (options = {}) => {
|
|
5
5
|
const { scale, prop = "variant", variants = {}, key } = options;
|
package/dist/variant.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_variant = require("./variant-
|
|
5
|
+
const require_variant = require("./variant-DE0Cwy7S.cjs");
|
|
6
6
|
exports.buttonStyle = require_variant.buttonStyle;
|
|
7
7
|
exports.colorStyle = require_variant.colorStyle;
|
|
8
8
|
exports.default = require_variant.variant;
|
package/dist/variant.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-
|
|
2
|
-
import { a as
|
|
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 };
|
package/dist/variant.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-
|
|
2
|
-
import { a as
|
|
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/dist/variant.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
1
|
+
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-p-ooclB1.mjs";
|
|
2
2
|
export { 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.
|
|
3
|
+
"version": "5.6.1",
|
|
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",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "Masoud Soroush <masoud@soroush.tech>",
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"homepage": "https://
|
|
16
|
+
"homepage": "https://soroush.tech/styled-system/",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/soroush-tech/
|
|
19
|
+
"url": "git+https://github.com/soroush-tech/core.git",
|
|
20
20
|
"directory": "packages/styled-system"
|
|
21
21
|
},
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/soroush-tech/
|
|
23
|
+
"url": "https://github.com/soroush-tech/core/issues"
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"sideEffects": false,
|
|
@@ -217,22 +217,25 @@
|
|
|
217
217
|
"access": "public"
|
|
218
218
|
},
|
|
219
219
|
"dependencies": {
|
|
220
|
-
"csstype": "^3.
|
|
220
|
+
"csstype": "^3.2.3"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {
|
|
223
223
|
"@emotion/is-prop-valid": "^1.4.0",
|
|
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
|
}
|
|
230
233
|
},
|
|
231
234
|
"devDependencies": {
|
|
232
235
|
"@emotion/is-prop-valid": "^1.4.0",
|
|
233
|
-
"@types/prop-types": "^15.7.
|
|
236
|
+
"@types/prop-types": "^15.7.15",
|
|
234
237
|
"@vitest/coverage-v8": "^4.1.9",
|
|
235
|
-
"eslint": "^10.
|
|
238
|
+
"eslint": "^10.6.0",
|
|
236
239
|
"globals": "^17.7.0",
|
|
237
240
|
"prop-types": "^15.8.1",
|
|
238
241
|
"tsdown": "^0.22.3",
|