@soroush.tech/styled-system 5.7.1 → 5.8.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 +7 -7
- 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/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-DC9UrOgS.d.mts → index-6v6ZPLqN.d.mts} +1 -1
- package/dist/{index-BArxeLmS.d.cts → index-BB5onzAO.d.cts} +1 -1
- package/dist/{index-DGqSJkFh.d.mts → index-BIbimgdO.d.mts} +3 -2
- package/dist/{index-cXURIs6r.d.cts → index-BhQrpfIN.d.cts} +3 -2
- package/dist/{index-C_CRcytY.d.cts → index-Br4itelo.d.cts} +1 -1
- package/dist/{index-C0pw8Qd2.d.mts → index-Brk7KoTW.d.mts} +1 -1
- package/dist/{index-QsPFe11Z.d.cts → index-BwOWcSgh.d.cts} +1 -1
- package/dist/{index-T0HR3aLX.d.mts → index-BxEj-sWN.d.mts} +1 -1
- package/dist/{index-CMBI9D0A.d.mts → index-C-ZUVzJ7.d.mts} +1 -1
- package/dist/{index-yrWGltsJ.d.cts → index-C0U26AuK.d.cts} +1 -1
- package/dist/{index-CVY-wfFH.d.mts → index-C4mjv3ia.d.mts} +1 -1
- package/dist/{index-VEj6m-by.d.mts → index-CA8D2_fO.d.mts} +1 -1
- package/dist/{index-DCva7aHv.d.mts → index-CLPj_nlH.d.mts} +1 -1
- package/dist/{index-rkfNt3hR.d.cts → index-CSiiNuwr.d.cts} +1 -1
- package/dist/{index-DVd2byi6.d.cts → index-DFHqxqDI.d.cts} +1 -1
- package/dist/{index-D3lp-1cf.d.cts → index-DPZut54X.d.cts} +1 -1
- package/dist/{index-DPElfVnc.d.mts → index-Dj0F79Bp.d.mts} +1 -1
- package/dist/{index-C8xX5EfB.d.cts → index-KOeCRVqs.d.cts} +1 -1
- package/dist/{index-CAwPEtqy.d.cts → index-Lx-0Fn6T.d.cts} +1 -1
- package/dist/{index-DQVt2B8L.d.mts → index-P5vy3lm4.d.mts} +1 -1
- package/dist/{index-QdL-_E8w.d.mts → index-lMfmNFGL.d.mts} +1 -1
- package/dist/{index-BDtY1uVY.d.cts → index-ogIIkqhV.d.cts} +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.d.cts +15 -13
- package/dist/index.d.mts +15 -13
- package/dist/index.mjs +6 -4
- package/dist/{layout-JlwVxg8y.cjs → layout-kqQ2OsL5.cjs} +2 -1
- package/dist/{layout-Dx0Un_6l.mjs → layout-lG3i5mWZ.mjs} +2 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +3 -3
- package/dist/layout.d.mts +3 -3
- package/dist/layout.mjs +1 -1
- package/dist/position.d.cts +2 -2
- package/dist/position.d.mts +2 -2
- package/dist/{presets-B971SnR8.cjs → presets-B2nFh_Zn.cjs} +3 -3
- package/dist/{presets-Ch4IJvkJ.mjs → presets-Dg3yjRZU.mjs} +3 -3
- package/dist/prop-types.cjs +4 -4
- package/dist/prop-types.mjs +3 -3
- package/dist/props.cjs +1 -1
- package/dist/props.mjs +1 -1
- package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
- package/dist/shadow.d.cts +2 -2
- package/dist/shadow.d.mts +2 -2
- package/dist/should-forward-prop.cjs +2 -2
- package/dist/should-forward-prop.mjs +1 -1
- package/dist/{space-DEf9-0r9.mjs → space-Df3n3G6a.mjs} +20 -2
- package/dist/{space-CAX_62yL.cjs → space-Q-1mECZz.cjs} +25 -1
- package/dist/space.cjs +2 -1
- package/dist/space.d.cts +3 -3
- package/dist/space.d.mts +3 -3
- package/dist/space.mjs +2 -2
- package/dist/{types-BcPNeOu9.d.cts → types-BEHYHdIq.d.cts} +26 -4
- package/dist/{types-BcPNeOu9.d.mts → types-BEHYHdIq.d.mts} +26 -4
- package/dist/{typography-DHWhpnqa.cjs → typography-7jHZXqtc.cjs} +3 -1
- package/dist/{typography-CCYBDjpD.mjs → typography-p6qWP6Px.mjs} +3 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.d.cts +3 -3
- package/dist/typography.d.mts +3 -3
- package/dist/typography.mjs +1 -1
- package/dist/variant.d.cts +2 -2
- package/dist/variant.d.mts +2 -2
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @soroush.tech/styled-system
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
4
|
-
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
3
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
4
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
5
5
|
[](https://app.codecov.io/gh/soroush-tech/core?flags%5B0%5D=styled-system)
|
|
6
|
-
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
7
|
-
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
8
|
-
[](./LICENSE)
|
|
6
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
7
|
+
[](https://www.npmjs.com/package/@soroush.tech/styled-system)
|
|
8
|
+
[](./LICENSE)
|
|
9
9
|
|
|
10
10
|
A maintained, first-class-TypeScript rewrite of [styled-system](https://github.com/jxnblk/styled-system) v5 — responsive, theme-aware style props for CSS-in-JS.
|
|
11
11
|
|
|
@@ -14,9 +14,9 @@ It is a **drop-in replacement** for the `styled-system` runtime: the root export
|
|
|
14
14
|
## Features
|
|
15
15
|
|
|
16
16
|
- Add style props that hook into your own theme
|
|
17
|
-
- Quickly set responsive `font-size`, `margin`, `padding`, `width`, and more with props
|
|
17
|
+
- Quickly set responsive `font-size`, `margin`, `padding`, `gap`, `width`, and more with props
|
|
18
18
|
- Influenced by constraint-based design-system principles
|
|
19
|
-
- Typographic scale, and a spacing scale for `margin` and `
|
|
19
|
+
- Typographic scale, and a spacing scale for `margin`, `padding` and `gap`
|
|
20
20
|
- Works with any color palette
|
|
21
21
|
- Works with most CSS-in-JS libraries, including [Emotion](https://emotion.sh) and [styled-components](https://styled-components.com)
|
|
22
22
|
- First-class TypeScript types — theme-scale-aware props, replacing `@types/styled-system`
|
package/dist/background.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as background } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { t as background } from "./index-ogIIkqhV.cjs";
|
|
2
|
+
import { c as BackgroundProps, l as BackgroundRepeatProps, o as BackgroundImageProps, s as BackgroundPositionProps, u as BackgroundSizeProps } from "./types-BEHYHdIq.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 {
|
|
1
|
+
import { t as background } from "./index-Dj0F79Bp.mjs";
|
|
2
|
+
import { c as BackgroundProps, l as BackgroundRepeatProps, o as BackgroundImageProps, s as BackgroundPositionProps, u as BackgroundSizeProps } from "./types-BEHYHdIq.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
|
|
2
|
-
import { t as border } from "./index-
|
|
1
|
+
import { _ as BorderStyleProps, d as BorderBottomProps, f as BorderColorProps, g as BorderRightProps, h as BorderRadiusProps, m as BorderProps, p as BorderLeftProps, v as BorderTopProps, y as BorderWidthProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as border } from "./index-DFHqxqDI.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
|
|
2
|
-
import { t as border } from "./index-
|
|
1
|
+
import { _ as BorderStyleProps, d as BorderBottomProps, f as BorderColorProps, g as BorderRightProps, h as BorderRadiusProps, m as BorderProps, p as BorderLeftProps, v as BorderTopProps, y as BorderWidthProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as border } from "./index-P5vy3lm4.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 {
|
|
2
|
-
import { t as color } from "./index-
|
|
1
|
+
import { C as ColorProps, Ot as TextColorProps, a as BackgroundColorProps, ft as OpacityProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as color } from "./index-KOeCRVqs.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 {
|
|
2
|
-
import { t as color } from "./index-
|
|
1
|
+
import { C as ColorProps, Ot as TextColorProps, a as BackgroundColorProps, ft as OpacityProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as color } from "./index-BxEj-sWN.mjs";
|
|
3
3
|
export { type BackgroundColorProps, type ColorProps, type OpacityProps, type TextColorProps, color, color as default };
|
package/dist/flexbox.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as flexbox } from "./index-
|
|
1
|
+
import { $ as JustifyContentProps, A as FlexProps, D as FlexBasisProps, M as FlexWrapProps, N as FlexboxProps, O as FlexDirectionProps, et as JustifyItemsProps, j as FlexShrinkProps, k as FlexGrowProps, n as AlignItemsProps, pt as OrderProps, r as AlignSelfProps, t as AlignContentProps, tt as JustifySelfProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as flexbox } from "./index-C0U26AuK.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 {
|
|
2
|
-
import { t as flexbox } from "./index-
|
|
1
|
+
import { $ as JustifyContentProps, A as FlexProps, D as FlexBasisProps, M as FlexWrapProps, N as FlexboxProps, O as FlexDirectionProps, et as JustifyItemsProps, j as FlexShrinkProps, k as FlexGrowProps, n as AlignItemsProps, pt as OrderProps, r as AlignSelfProps, t as AlignContentProps, tt as JustifySelfProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as flexbox } from "./index-CLPj_nlH.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
|
|
2
|
-
import { t as grid } from "./index-
|
|
1
|
+
import { B as GridAutoColumnsProps, G as GridGapProps, H as GridAutoRowsProps, J as GridRowProps, K as GridProps, U as GridColumnGapProps, V as GridAutoFlowProps, W as GridColumnProps, X as GridTemplateColumnsProps, Y as GridTemplateAreasProps, Z as GridTemplateRowsProps, q as GridRowGapProps, z as GridAreaProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as grid } from "./index-CSiiNuwr.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
|
|
2
|
-
import { t as grid } from "./index-
|
|
1
|
+
import { B as GridAutoColumnsProps, G as GridGapProps, H as GridAutoRowsProps, J as GridRowProps, K as GridProps, U as GridColumnGapProps, V as GridAutoFlowProps, W as GridColumnProps, X as GridTemplateColumnsProps, Y as GridTemplateAreasProps, Z as GridTemplateRowsProps, q as GridRowGapProps, z as GridAreaProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as grid } from "./index-CA8D2_fO.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,8 +1,9 @@
|
|
|
1
1
|
import { a as Parser } from "./index-C0SM54dQ.mjs";
|
|
2
|
-
import "./types-
|
|
2
|
+
import "./types-BEHYHdIq.mjs";
|
|
3
3
|
//#region src/space/space.d.ts
|
|
4
4
|
declare const margin: Parser;
|
|
5
5
|
declare const padding: Parser;
|
|
6
|
+
declare const gap: Parser;
|
|
6
7
|
declare const space: Parser;
|
|
7
8
|
//#endregion
|
|
8
|
-
export {
|
|
9
|
+
export { space as i, margin as n, padding as r, gap as t };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { a as Parser } from "./index-C0SM54dQ.cjs";
|
|
2
|
-
import "./types-
|
|
2
|
+
import "./types-BEHYHdIq.cjs";
|
|
3
3
|
//#region src/space/space.d.ts
|
|
4
4
|
declare const margin: Parser;
|
|
5
5
|
declare const padding: Parser;
|
|
6
|
+
declare const gap: Parser;
|
|
6
7
|
declare const space: Parser;
|
|
7
8
|
//#endregion
|
|
8
|
-
export {
|
|
9
|
+
export { space as i, margin as n, padding as r, gap as t };
|
package/dist/index.cjs
CHANGED
|
@@ -5,10 +5,10 @@ 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-kqQ2OsL5.cjs");
|
|
9
9
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
10
|
-
const require_typography = require("./typography-
|
|
11
|
-
const require_space = require("./space-
|
|
10
|
+
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
11
|
+
const require_space = require("./space-Q-1mECZz.cjs");
|
|
12
12
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
13
13
|
const require_variant = require("./variant-BSwNEY5l.cjs");
|
|
14
14
|
//#region src/style/style.ts
|
|
@@ -55,6 +55,8 @@ const textDecorationStyle = typographyFns.textDecorationStyle;
|
|
|
55
55
|
const textDecorationThickness = typographyFns.textDecorationThickness;
|
|
56
56
|
const textDecorationColor = typographyFns.textDecorationColor;
|
|
57
57
|
const letterSpacing = typographyFns.letterSpacing;
|
|
58
|
+
const whiteSpace = typographyFns.whiteSpace;
|
|
59
|
+
const textOverflow = typographyFns.textOverflow;
|
|
58
60
|
const flexboxFns = require_flexbox.flexbox;
|
|
59
61
|
const alignItems = flexboxFns.alignItems;
|
|
60
62
|
const alignContent = flexboxFns.alignContent;
|
|
@@ -141,6 +143,7 @@ exports.fontFamily = fontFamily;
|
|
|
141
143
|
exports.fontSize = fontSize;
|
|
142
144
|
exports.fontStyle = fontStyle;
|
|
143
145
|
exports.fontWeight = fontWeight;
|
|
146
|
+
exports.gap = require_space.gap;
|
|
144
147
|
exports.get = require_core.get;
|
|
145
148
|
exports.grid = require_grid.grid;
|
|
146
149
|
exports.gridArea = gridArea;
|
|
@@ -188,6 +191,7 @@ exports.textDecorationColor = textDecorationColor;
|
|
|
188
191
|
exports.textDecorationLine = textDecorationLine;
|
|
189
192
|
exports.textDecorationStyle = textDecorationStyle;
|
|
190
193
|
exports.textDecorationThickness = textDecorationThickness;
|
|
194
|
+
exports.textOverflow = textOverflow;
|
|
191
195
|
exports.textShadow = require_shadow.shadow;
|
|
192
196
|
exports.textStyle = require_variant.textStyle;
|
|
193
197
|
exports.textTransform = textTransform;
|
|
@@ -195,5 +199,6 @@ exports.top = top;
|
|
|
195
199
|
exports.typography = require_typography.typography;
|
|
196
200
|
exports.variant = require_variant.variant;
|
|
197
201
|
exports.verticalAlign = verticalAlign;
|
|
202
|
+
exports.whiteSpace = whiteSpace;
|
|
198
203
|
exports.width = width;
|
|
199
204
|
exports.zIndex = zIndex;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
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-C0SM54dQ.cjs";
|
|
2
|
-
import { t as background } from "./index-
|
|
3
|
-
import { $ as
|
|
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
|
|
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 textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-
|
|
2
|
+
import { t as background } from "./index-ogIIkqhV.cjs";
|
|
3
|
+
import { $ as JustifyContentProps, A as FlexProps, At as TextDecorationLineProps, B as GridAutoColumnsProps, Bt as TopProps, C as ColorProps, Ct as SizeProps, D as FlexBasisProps, Dt as TextAlignProps, E as DisplayProps, Et as TextAlignLastProps, F as FontSizeProps, Ft as TextShadowProps, G as GridGapProps, Gt as ZIndexProps, H as GridAutoRowsProps, Ht as VerticalAlignProps, I as FontStyleProps, It as TextStyleProps, J as GridRowProps, K as GridProps, L as FontWeightProps, Lt as TextTransformProps, M as FlexWrapProps, Mt as TextDecorationStyleProps, N as FlexboxProps, Nt as TextDecorationThicknessProps, O as FlexDirectionProps, Ot as TextColorProps, P as FontFamilyProps, Pt as TextOverflowProps, Q as HeightProps, R as GapProps, Rt as Theme, S as ButtonStyleProps, St as ShadowProps, T as ColumnGapProps, Tt as TLengthStyledSystem, U as GridColumnGapProps, Ut as WhiteSpaceProps, V as GridAutoFlowProps, Vt as TypographyProps, W as GridColumnProps, Wt as WidthProps, X as GridTemplateColumnsProps, Y as GridTemplateAreasProps, Z as GridTemplateRowsProps, _ as BorderStyleProps, _t as RequiredTheme, a as BackgroundColorProps, at as LineHeightProps, b as BottomProps, bt as RowGapProps, c as BackgroundProps, ct as MaxWidthProps, d as BorderBottomProps, dt as ObjectOrArray, et as JustifyItemsProps, f as BorderColorProps, ft as OpacityProps, g as BorderRightProps, gt as PositionProps, h as BorderRadiusProps, ht as PaddingProps, i as AspectRatioProps, it as LetterSpacingProps, j as FlexShrinkProps, jt as TextDecorationProps, k as FlexGrowProps, kt as TextDecorationColorProps, l as BackgroundRepeatProps, lt as MinHeightProps, m as BorderProps, mt as OverflowProps, n as AlignItemsProps, nt as LayoutProps, o as BackgroundImageProps, ot as MarginProps, p as BorderLeftProps, pt as OrderProps, q as GridRowGapProps, r as AlignSelfProps, rt as LeftProps, s as BackgroundPositionProps, st as MaxHeightProps, t as AlignContentProps, tt as JustifySelfProps, u as BackgroundSizeProps, ut as MinWidthProps, v as BorderTopProps, vt as ResponsiveValue, w as ColorStyleProps, wt as SpaceProps, x as BoxShadowProps, xt as Scale, y as BorderWidthProps, yt as RightProps, z as GridAreaProps, zt as ThemeValue } from "./types-BEHYHdIq.cjs";
|
|
4
|
+
import { t as border } from "./index-DFHqxqDI.cjs";
|
|
5
|
+
import { t as color } from "./index-KOeCRVqs.cjs";
|
|
6
|
+
import { t as flexbox } from "./index-C0U26AuK.cjs";
|
|
7
|
+
import { t as grid } from "./index-CSiiNuwr.cjs";
|
|
8
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-BhQrpfIN.cjs";
|
|
9
|
+
import { t as layout } from "./index-Br4itelo.cjs";
|
|
10
|
+
import { t as typography } from "./index-DPZut54X.cjs";
|
|
11
|
+
import { t as position } from "./index-Lx-0Fn6T.cjs";
|
|
12
|
+
import { t as shadow } from "./index-BwOWcSgh.cjs";
|
|
13
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BB5onzAO.cjs";
|
|
14
14
|
//#region src/style/style.d.ts
|
|
15
15
|
interface StyleOptions {
|
|
16
16
|
prop: string;
|
|
@@ -53,6 +53,8 @@ declare const textDecorationStyle: Parser;
|
|
|
53
53
|
declare const textDecorationThickness: Parser;
|
|
54
54
|
declare const textDecorationColor: Parser;
|
|
55
55
|
declare const letterSpacing: Parser;
|
|
56
|
+
declare const whiteSpace: Parser;
|
|
57
|
+
declare const textOverflow: Parser;
|
|
56
58
|
declare const alignItems: Parser;
|
|
57
59
|
declare const alignContent: Parser;
|
|
58
60
|
declare const justifyItems: Parser;
|
|
@@ -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 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, TextAlignLastProps, TextAlignProps, TextColorProps, TextDecorationColorProps, TextDecorationLineProps, TextDecorationProps, TextDecorationStyleProps, TextDecorationThicknessProps, TextShadowProps, TextStyleProps, TextTransformProps, 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, textAlignLast, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textStyle, textTransform, top, typography, variant, verticalAlign, width, zIndex };
|
|
101
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, ColumnGapProps, type Config, type ConfigFunction, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GapProps, 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, RowGapProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type StyleOptions, type SystemConfig, TLengthStyledSystem, TextAlignLastProps, TextAlignProps, TextColorProps, TextDecorationColorProps, TextDecorationLineProps, TextDecorationProps, TextDecorationStyleProps, TextDecorationThicknessProps, TextOverflowProps, TextShadowProps, TextStyleProps, TextTransformProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, type VariantArgs, type VariantOptions, VerticalAlignProps, WhiteSpaceProps, 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, gap, 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, textAlignLast, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textOverflow, textStyle, textTransform, top, typography, variant, verticalAlign, whiteSpace, width, zIndex };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
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-C0SM54dQ.mjs";
|
|
2
|
-
import { t as background } from "./index-
|
|
3
|
-
import { $ as
|
|
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
|
|
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 textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-
|
|
2
|
+
import { t as background } from "./index-Dj0F79Bp.mjs";
|
|
3
|
+
import { $ as JustifyContentProps, A as FlexProps, At as TextDecorationLineProps, B as GridAutoColumnsProps, Bt as TopProps, C as ColorProps, Ct as SizeProps, D as FlexBasisProps, Dt as TextAlignProps, E as DisplayProps, Et as TextAlignLastProps, F as FontSizeProps, Ft as TextShadowProps, G as GridGapProps, Gt as ZIndexProps, H as GridAutoRowsProps, Ht as VerticalAlignProps, I as FontStyleProps, It as TextStyleProps, J as GridRowProps, K as GridProps, L as FontWeightProps, Lt as TextTransformProps, M as FlexWrapProps, Mt as TextDecorationStyleProps, N as FlexboxProps, Nt as TextDecorationThicknessProps, O as FlexDirectionProps, Ot as TextColorProps, P as FontFamilyProps, Pt as TextOverflowProps, Q as HeightProps, R as GapProps, Rt as Theme, S as ButtonStyleProps, St as ShadowProps, T as ColumnGapProps, Tt as TLengthStyledSystem, U as GridColumnGapProps, Ut as WhiteSpaceProps, V as GridAutoFlowProps, Vt as TypographyProps, W as GridColumnProps, Wt as WidthProps, X as GridTemplateColumnsProps, Y as GridTemplateAreasProps, Z as GridTemplateRowsProps, _ as BorderStyleProps, _t as RequiredTheme, a as BackgroundColorProps, at as LineHeightProps, b as BottomProps, bt as RowGapProps, c as BackgroundProps, ct as MaxWidthProps, d as BorderBottomProps, dt as ObjectOrArray, et as JustifyItemsProps, f as BorderColorProps, ft as OpacityProps, g as BorderRightProps, gt as PositionProps, h as BorderRadiusProps, ht as PaddingProps, i as AspectRatioProps, it as LetterSpacingProps, j as FlexShrinkProps, jt as TextDecorationProps, k as FlexGrowProps, kt as TextDecorationColorProps, l as BackgroundRepeatProps, lt as MinHeightProps, m as BorderProps, mt as OverflowProps, n as AlignItemsProps, nt as LayoutProps, o as BackgroundImageProps, ot as MarginProps, p as BorderLeftProps, pt as OrderProps, q as GridRowGapProps, r as AlignSelfProps, rt as LeftProps, s as BackgroundPositionProps, st as MaxHeightProps, t as AlignContentProps, tt as JustifySelfProps, u as BackgroundSizeProps, ut as MinWidthProps, v as BorderTopProps, vt as ResponsiveValue, w as ColorStyleProps, wt as SpaceProps, x as BoxShadowProps, xt as Scale, y as BorderWidthProps, yt as RightProps, z as GridAreaProps, zt as ThemeValue } from "./types-BEHYHdIq.mjs";
|
|
4
|
+
import { t as border } from "./index-P5vy3lm4.mjs";
|
|
5
|
+
import { t as color } from "./index-BxEj-sWN.mjs";
|
|
6
|
+
import { t as flexbox } from "./index-CLPj_nlH.mjs";
|
|
7
|
+
import { t as grid } from "./index-CA8D2_fO.mjs";
|
|
8
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-BIbimgdO.mjs";
|
|
9
|
+
import { t as layout } from "./index-C4mjv3ia.mjs";
|
|
10
|
+
import { t as typography } from "./index-Brk7KoTW.mjs";
|
|
11
|
+
import { t as position } from "./index-6v6ZPLqN.mjs";
|
|
12
|
+
import { t as shadow } from "./index-C-ZUVzJ7.mjs";
|
|
13
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-lMfmNFGL.mjs";
|
|
14
14
|
//#region src/style/style.d.ts
|
|
15
15
|
interface StyleOptions {
|
|
16
16
|
prop: string;
|
|
@@ -53,6 +53,8 @@ declare const textDecorationStyle: Parser;
|
|
|
53
53
|
declare const textDecorationThickness: Parser;
|
|
54
54
|
declare const textDecorationColor: Parser;
|
|
55
55
|
declare const letterSpacing: Parser;
|
|
56
|
+
declare const whiteSpace: Parser;
|
|
57
|
+
declare const textOverflow: Parser;
|
|
56
58
|
declare const alignItems: Parser;
|
|
57
59
|
declare const alignContent: Parser;
|
|
58
60
|
declare const justifyItems: Parser;
|
|
@@ -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 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, TextAlignLastProps, TextAlignProps, TextColorProps, TextDecorationColorProps, TextDecorationLineProps, TextDecorationProps, TextDecorationStyleProps, TextDecorationThicknessProps, TextShadowProps, TextStyleProps, TextTransformProps, 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, textAlignLast, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textStyle, textTransform, top, typography, variant, verticalAlign, width, zIndex };
|
|
101
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, ColumnGapProps, type Config, type ConfigFunction, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GapProps, 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, RowGapProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type StyleOptions, type SystemConfig, TLengthStyledSystem, TextAlignLastProps, TextAlignProps, TextColorProps, TextDecorationColorProps, TextDecorationLineProps, TextDecorationProps, TextDecorationStyleProps, TextDecorationThicknessProps, TextOverflowProps, TextShadowProps, TextStyleProps, TextTransformProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, type VariantArgs, type VariantOptions, VerticalAlignProps, WhiteSpaceProps, 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, gap, 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, textAlignLast, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textOverflow, textStyle, textTransform, top, typography, variant, verticalAlign, whiteSpace, width, zIndex };
|
package/dist/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import { t as border } from "./border-Dder4Dhp.mjs";
|
|
|
4
4
|
import { t as color } from "./color-CGmMe8yP.mjs";
|
|
5
5
|
import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
|
|
6
6
|
import { t as grid } from "./grid-Bpk-QjhF.mjs";
|
|
7
|
-
import { t as layout } from "./layout-
|
|
7
|
+
import { t as layout } from "./layout-lG3i5mWZ.mjs";
|
|
8
8
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
9
|
-
import { t as typography } from "./typography-
|
|
10
|
-
import { n as
|
|
9
|
+
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
10
|
+
import { i as space, n as margin, r as padding, t as gap } from "./space-Df3n3G6a.mjs";
|
|
11
11
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
12
12
|
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-NupmzzRg.mjs";
|
|
13
13
|
//#region src/style/style.ts
|
|
@@ -54,6 +54,8 @@ const textDecorationStyle = typographyFns.textDecorationStyle;
|
|
|
54
54
|
const textDecorationThickness = typographyFns.textDecorationThickness;
|
|
55
55
|
const textDecorationColor = typographyFns.textDecorationColor;
|
|
56
56
|
const letterSpacing = typographyFns.letterSpacing;
|
|
57
|
+
const whiteSpace = typographyFns.whiteSpace;
|
|
58
|
+
const textOverflow = typographyFns.textOverflow;
|
|
57
59
|
const flexboxFns = flexbox;
|
|
58
60
|
const alignItems = flexboxFns.alignItems;
|
|
59
61
|
const alignContent = flexboxFns.alignContent;
|
|
@@ -102,4 +104,4 @@ const right = positionFns.right;
|
|
|
102
104
|
const bottom = positionFns.bottom;
|
|
103
105
|
const left = positionFns.left;
|
|
104
106
|
//#endregion
|
|
105
|
-
export { alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textAlignLast, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textStyle, textTransform, top, typography, variant, verticalAlign, width, zIndex };
|
|
107
|
+
export { alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, gap, 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, textAlignLast, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textOverflow, textStyle, textTransform, top, typography, variant, verticalAlign, whiteSpace, width, zIndex };
|
package/dist/layout.cjs
CHANGED
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_layout = require("./layout-
|
|
5
|
+
const require_layout = require("./layout-kqQ2OsL5.cjs");
|
|
6
6
|
exports.default = require_layout.layout;
|
|
7
7
|
exports.layout = require_layout.layout;
|
package/dist/layout.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as layout } from "./index-
|
|
3
|
-
export { type DisplayProps, type HeightProps, type LayoutProps, type MaxHeightProps, type MaxWidthProps, type MinHeightProps, type MinWidthProps, type OverflowProps, type SizeProps, type VerticalAlignProps, type WidthProps, layout as default, layout };
|
|
1
|
+
import { Ct as SizeProps, E as DisplayProps, Ht as VerticalAlignProps, Q as HeightProps, Wt as WidthProps, ct as MaxWidthProps, i as AspectRatioProps, lt as MinHeightProps, mt as OverflowProps, nt as LayoutProps, st as MaxHeightProps, ut as MinWidthProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as layout } from "./index-Br4itelo.cjs";
|
|
3
|
+
export { type AspectRatioProps, 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 {
|
|
2
|
-
import { t as layout } from "./index-
|
|
3
|
-
export { type DisplayProps, type HeightProps, type LayoutProps, type MaxHeightProps, type MaxWidthProps, type MinHeightProps, type MinWidthProps, type OverflowProps, type SizeProps, type VerticalAlignProps, type WidthProps, layout as default, layout };
|
|
1
|
+
import { Ct as SizeProps, E as DisplayProps, Ht as VerticalAlignProps, Q as HeightProps, Wt as WidthProps, ct as MaxWidthProps, i as AspectRatioProps, lt as MinHeightProps, mt as OverflowProps, nt as LayoutProps, st as MaxHeightProps, ut as MinWidthProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as layout } from "./index-C4mjv3ia.mjs";
|
|
3
|
+
export { type AspectRatioProps, 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.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as layout } from "./layout-
|
|
1
|
+
import { t as layout } from "./layout-lG3i5mWZ.mjs";
|
|
2
2
|
export { layout as default, layout };
|
package/dist/position.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as position } from "./index-
|
|
1
|
+
import { Bt as TopProps, Gt as ZIndexProps, b as BottomProps, gt as PositionProps, rt as LeftProps, yt as RightProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as position } from "./index-Lx-0Fn6T.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 {
|
|
2
|
-
import { t as position } from "./index-
|
|
1
|
+
import { Bt as TopProps, Gt as ZIndexProps, b as BottomProps, gt as PositionProps, rt as LeftProps, yt as RightProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as position } from "./index-6v6ZPLqN.mjs";
|
|
3
3
|
export { type BottomProps, type LeftProps, type PositionProps, type RightProps, type TopProps, type ZIndexProps, position as default, position };
|
|
@@ -4,10 +4,10 @@ const require_border = require("./border-UuT-fTpy.cjs");
|
|
|
4
4
|
const require_color = require("./color-BNs17Gw-.cjs");
|
|
5
5
|
const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
|
|
6
6
|
const require_grid = require("./grid-CpvRIng4.cjs");
|
|
7
|
-
const require_layout = require("./layout-
|
|
7
|
+
const require_layout = require("./layout-kqQ2OsL5.cjs");
|
|
8
8
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
9
|
-
const require_typography = require("./typography-
|
|
10
|
-
const require_space = require("./space-
|
|
9
|
+
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
10
|
+
const require_space = require("./space-Q-1mECZz.cjs");
|
|
11
11
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
12
12
|
const require_variant = require("./variant-BSwNEY5l.cjs");
|
|
13
13
|
//#region src/presets/presets.ts
|
|
@@ -4,10 +4,10 @@ import { t as border } from "./border-Dder4Dhp.mjs";
|
|
|
4
4
|
import { t as color } from "./color-CGmMe8yP.mjs";
|
|
5
5
|
import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
|
|
6
6
|
import { t as grid } from "./grid-Bpk-QjhF.mjs";
|
|
7
|
-
import { t as layout } from "./layout-
|
|
7
|
+
import { t as layout } from "./layout-lG3i5mWZ.mjs";
|
|
8
8
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
9
|
-
import { t as typography } from "./typography-
|
|
10
|
-
import {
|
|
9
|
+
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
10
|
+
import { i as space } from "./space-Df3n3G6a.mjs";
|
|
11
11
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
12
12
|
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-NupmzzRg.mjs";
|
|
13
13
|
//#region src/presets/presets.ts
|
package/dist/prop-types.cjs
CHANGED
|
@@ -2,16 +2,16 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
5
|
+
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
6
6
|
const require_background = require("./background-wugr6cG7.cjs");
|
|
7
7
|
const require_border = require("./border-UuT-fTpy.cjs");
|
|
8
8
|
const require_color = require("./color-BNs17Gw-.cjs");
|
|
9
9
|
const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
|
|
10
10
|
const require_grid = require("./grid-CpvRIng4.cjs");
|
|
11
|
-
const require_layout = require("./layout-
|
|
11
|
+
const require_layout = require("./layout-kqQ2OsL5.cjs");
|
|
12
12
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
13
|
-
const require_typography = require("./typography-
|
|
14
|
-
const require_space = require("./space-
|
|
13
|
+
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
14
|
+
const require_space = require("./space-Q-1mECZz.cjs");
|
|
15
15
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
16
16
|
const require_variant = require("./variant-BSwNEY5l.cjs");
|
|
17
17
|
let prop_types = require("prop-types");
|
package/dist/prop-types.mjs
CHANGED
|
@@ -3,10 +3,10 @@ import { t as border } from "./border-Dder4Dhp.mjs";
|
|
|
3
3
|
import { t as color } from "./color-CGmMe8yP.mjs";
|
|
4
4
|
import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
|
|
5
5
|
import { t as grid } from "./grid-Bpk-QjhF.mjs";
|
|
6
|
-
import { t as layout } from "./layout-
|
|
6
|
+
import { t as layout } from "./layout-lG3i5mWZ.mjs";
|
|
7
7
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
8
|
-
import { t as typography } from "./typography-
|
|
9
|
-
import {
|
|
8
|
+
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
9
|
+
import { i as space } from "./space-Df3n3G6a.mjs";
|
|
10
10
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
11
11
|
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-NupmzzRg.mjs";
|
|
12
12
|
import PropTypes from "prop-types";
|
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-B2nFh_Zn.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
|
@@ -15,7 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
package/dist/shadow.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as shadow } from "./index-
|
|
1
|
+
import { Ft as TextShadowProps, St as ShadowProps, x as BoxShadowProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as shadow } from "./index-BwOWcSgh.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 {
|
|
2
|
-
import { t as shadow } from "./index-
|
|
1
|
+
import { Ft as TextShadowProps, St as ShadowProps, x as BoxShadowProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as shadow } from "./index-C-ZUVzJ7.mjs";
|
|
3
3
|
export { type BoxShadowProps, type ShadowProps, type TextShadowProps, shadow as default, shadow };
|
|
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
6
|
-
const require_presets = require("./presets-
|
|
5
|
+
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
6
|
+
const require_presets = require("./presets-B2nFh_Zn.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
|
|
@@ -115,8 +115,26 @@ paddingConfig.pb = paddingConfig.paddingBottom;
|
|
|
115
115
|
paddingConfig.pl = paddingConfig.paddingLeft;
|
|
116
116
|
paddingConfig.px = paddingConfig.paddingX;
|
|
117
117
|
paddingConfig.py = paddingConfig.paddingY;
|
|
118
|
+
const gapConfig = {
|
|
119
|
+
gap: {
|
|
120
|
+
property: "gap",
|
|
121
|
+
scale: "space",
|
|
122
|
+
defaultScale: spaceScale
|
|
123
|
+
},
|
|
124
|
+
rowGap: {
|
|
125
|
+
property: "rowGap",
|
|
126
|
+
scale: "space",
|
|
127
|
+
defaultScale: spaceScale
|
|
128
|
+
},
|
|
129
|
+
columnGap: {
|
|
130
|
+
property: "columnGap",
|
|
131
|
+
scale: "space",
|
|
132
|
+
defaultScale: spaceScale
|
|
133
|
+
}
|
|
134
|
+
};
|
|
118
135
|
const margin = system(marginConfig);
|
|
119
136
|
const padding = system(paddingConfig);
|
|
120
|
-
const
|
|
137
|
+
const gap = system(gapConfig);
|
|
138
|
+
const space = compose(margin, padding, gap);
|
|
121
139
|
//#endregion
|
|
122
|
-
export {
|
|
140
|
+
export { space as i, margin as n, padding as r, gap as t };
|
|
@@ -115,10 +115,34 @@ paddingConfig.pb = paddingConfig.paddingBottom;
|
|
|
115
115
|
paddingConfig.pl = paddingConfig.paddingLeft;
|
|
116
116
|
paddingConfig.px = paddingConfig.paddingX;
|
|
117
117
|
paddingConfig.py = paddingConfig.paddingY;
|
|
118
|
+
const gapConfig = {
|
|
119
|
+
gap: {
|
|
120
|
+
property: "gap",
|
|
121
|
+
scale: "space",
|
|
122
|
+
defaultScale: spaceScale
|
|
123
|
+
},
|
|
124
|
+
rowGap: {
|
|
125
|
+
property: "rowGap",
|
|
126
|
+
scale: "space",
|
|
127
|
+
defaultScale: spaceScale
|
|
128
|
+
},
|
|
129
|
+
columnGap: {
|
|
130
|
+
property: "columnGap",
|
|
131
|
+
scale: "space",
|
|
132
|
+
defaultScale: spaceScale
|
|
133
|
+
}
|
|
134
|
+
};
|
|
118
135
|
const margin = require_core.system(marginConfig);
|
|
119
136
|
const padding = require_core.system(paddingConfig);
|
|
120
|
-
const
|
|
137
|
+
const gap = require_core.system(gapConfig);
|
|
138
|
+
const space = require_core.compose(margin, padding, gap);
|
|
121
139
|
//#endregion
|
|
140
|
+
Object.defineProperty(exports, "gap", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function() {
|
|
143
|
+
return gap;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
122
146
|
Object.defineProperty(exports, "margin", {
|
|
123
147
|
enumerable: true,
|
|
124
148
|
get: function() {
|
package/dist/space.cjs
CHANGED
|
@@ -2,8 +2,9 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_space = require("./space-
|
|
5
|
+
const require_space = require("./space-Q-1mECZz.cjs");
|
|
6
6
|
exports.default = require_space.space;
|
|
7
|
+
exports.gap = require_space.gap;
|
|
7
8
|
exports.margin = require_space.margin;
|
|
8
9
|
exports.padding = require_space.padding;
|
|
9
10
|
exports.space = require_space.space;
|
package/dist/space.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { bt as
|
|
2
|
-
import { n as
|
|
3
|
-
export { type MarginProps, type PaddingProps, type SpaceProps, space as default, space, margin, padding };
|
|
1
|
+
import { R as GapProps, T as ColumnGapProps, bt as RowGapProps, ht as PaddingProps, ot as MarginProps, wt as SpaceProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-BhQrpfIN.cjs";
|
|
3
|
+
export { type ColumnGapProps, type GapProps, type MarginProps, type PaddingProps, type RowGapProps, type SpaceProps, space as default, space, gap, margin, padding };
|
package/dist/space.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { bt as
|
|
2
|
-
import { n as
|
|
3
|
-
export { type MarginProps, type PaddingProps, type SpaceProps, space as default, space, margin, padding };
|
|
1
|
+
import { R as GapProps, T as ColumnGapProps, bt as RowGapProps, ht as PaddingProps, ot as MarginProps, wt as SpaceProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-BIbimgdO.mjs";
|
|
3
|
+
export { type ColumnGapProps, type GapProps, type MarginProps, type PaddingProps, type RowGapProps, type SpaceProps, space as default, space, gap, margin, padding };
|
package/dist/space.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export { space as default, space, margin, padding };
|
|
1
|
+
import { i as space, n as margin, r as padding, t as gap } from "./space-Df3n3G6a.mjs";
|
|
2
|
+
export { space as default, space, gap, margin, padding };
|
|
@@ -61,7 +61,19 @@ interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValu
|
|
|
61
61
|
py?: ResponsiveValue<TVal, ThemeType>;
|
|
62
62
|
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
/** Not in upstream styled-system — it only ever scaled the grid-prefixed gaps. */
|
|
65
|
+
interface GapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
66
|
+
gap?: ResponsiveValue<TVal, ThemeType>;
|
|
67
|
+
}
|
|
68
|
+
/** Not in upstream styled-system — it only ever scaled the grid-prefixed gaps. */
|
|
69
|
+
interface RowGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
70
|
+
rowGap?: ResponsiveValue<TVal, ThemeType>;
|
|
71
|
+
}
|
|
72
|
+
/** Not in upstream styled-system — it only ever scaled the grid-prefixed gaps. */
|
|
73
|
+
interface ColumnGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
74
|
+
columnGap?: ResponsiveValue<TVal, ThemeType>;
|
|
75
|
+
}
|
|
76
|
+
interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> extends MarginProps<ThemeType, TVal>, PaddingProps<ThemeType, TVal>, GapProps<ThemeType, TVal>, RowGapProps<ThemeType, TVal>, ColumnGapProps<ThemeType, TVal> {}
|
|
65
77
|
interface WidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Width<TLengthStyledSystem>> {
|
|
66
78
|
width?: ResponsiveValue<TVal, ThemeType>;
|
|
67
79
|
}
|
|
@@ -94,7 +106,11 @@ interface OverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
94
106
|
interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.VerticalAlign<TLengthStyledSystem>> {
|
|
95
107
|
verticalAlign?: ResponsiveValue<TVal, ThemeType>;
|
|
96
108
|
}
|
|
97
|
-
|
|
109
|
+
/** Not in upstream styled-system — its last release predates CSS `aspect-ratio`. */
|
|
110
|
+
interface AspectRatioProps<ThemeType extends Theme = RequiredTheme> {
|
|
111
|
+
aspectRatio?: ResponsiveValue<CSS.Property.AspectRatio, ThemeType>;
|
|
112
|
+
}
|
|
113
|
+
interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, AspectRatioProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
|
|
98
114
|
interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
|
|
99
115
|
fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
|
|
100
116
|
}
|
|
@@ -137,7 +153,13 @@ interface TextDecorationThicknessProps<ThemeType extends Theme = RequiredTheme,
|
|
|
137
153
|
interface TextDecorationColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
138
154
|
textDecorationColor?: ResponsiveValue<TVal, ThemeType>;
|
|
139
155
|
}
|
|
140
|
-
interface
|
|
156
|
+
interface WhiteSpaceProps<ThemeType extends Theme = RequiredTheme> {
|
|
157
|
+
whiteSpace?: ResponsiveValue<CSS.Property.WhiteSpace, ThemeType>;
|
|
158
|
+
}
|
|
159
|
+
interface TextOverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
160
|
+
textOverflow?: ResponsiveValue<CSS.Property.TextOverflow, ThemeType>;
|
|
161
|
+
}
|
|
162
|
+
interface TypographyProps<ThemeType extends Theme = RequiredTheme> extends FontFamilyProps<ThemeType>, FontSizeProps<ThemeType>, FontWeightProps<ThemeType>, LineHeightProps<ThemeType>, LetterSpacingProps<ThemeType>, FontStyleProps<ThemeType>, TextAlignProps<ThemeType>, TextTransformProps<ThemeType>, TextAlignLastProps<ThemeType>, TextDecorationProps<ThemeType>, TextDecorationLineProps<ThemeType>, TextDecorationStyleProps<ThemeType>, TextDecorationThicknessProps<ThemeType>, TextDecorationColorProps<ThemeType>, WhiteSpaceProps<ThemeType>, TextOverflowProps<ThemeType> {}
|
|
141
163
|
interface AlignItemsProps<ThemeType extends Theme = RequiredTheme> {
|
|
142
164
|
alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType>;
|
|
143
165
|
}
|
|
@@ -321,4 +343,4 @@ interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
321
343
|
colors?: ResponsiveValue<string, ThemeType>;
|
|
322
344
|
}
|
|
323
345
|
//#endregion
|
|
324
|
-
export {
|
|
346
|
+
export { JustifyContentProps as $, FlexProps as A, TextDecorationLineProps as At, GridAutoColumnsProps as B, TopProps as Bt, ColorProps as C, SizeProps as Ct, FlexBasisProps as D, TextAlignProps as Dt, DisplayProps as E, TextAlignLastProps as Et, FontSizeProps as F, TextShadowProps as Ft, GridGapProps as G, ZIndexProps as Gt, GridAutoRowsProps as H, VerticalAlignProps as Ht, FontStyleProps as I, TextStyleProps as It, GridRowProps as J, GridProps as K, FontWeightProps as L, TextTransformProps as Lt, FlexWrapProps as M, TextDecorationStyleProps as Mt, FlexboxProps as N, TextDecorationThicknessProps as Nt, FlexDirectionProps as O, TextColorProps as Ot, FontFamilyProps as P, TextOverflowProps as Pt, HeightProps as Q, GapProps as R, Theme as Rt, ButtonStyleProps as S, ShadowProps as St, ColumnGapProps as T, TLengthStyledSystem as Tt, GridColumnGapProps as U, WhiteSpaceProps as Ut, GridAutoFlowProps as V, TypographyProps as Vt, GridColumnProps as W, WidthProps as Wt, GridTemplateColumnsProps as X, GridTemplateAreasProps as Y, GridTemplateRowsProps as Z, BorderStyleProps as _, RequiredTheme as _t, BackgroundColorProps as a, LineHeightProps as at, BottomProps as b, RowGapProps as bt, BackgroundProps as c, MaxWidthProps as ct, BorderBottomProps as d, ObjectOrArray as dt, JustifyItemsProps as et, BorderColorProps as f, OpacityProps as ft, BorderRightProps as g, PositionProps as gt, BorderRadiusProps as h, PaddingProps as ht, AspectRatioProps as i, LetterSpacingProps as it, FlexShrinkProps as j, TextDecorationProps as jt, FlexGrowProps as k, TextDecorationColorProps as kt, BackgroundRepeatProps as l, MinHeightProps as lt, BorderProps as m, OverflowProps as mt, AlignItemsProps as n, LayoutProps as nt, BackgroundImageProps as o, MarginProps as ot, BorderLeftProps as p, OrderProps as pt, GridRowGapProps as q, AlignSelfProps as r, LeftProps as rt, BackgroundPositionProps as s, MaxHeightProps as st, AlignContentProps as t, JustifySelfProps as tt, BackgroundSizeProps as u, MinWidthProps as ut, BorderTopProps as v, ResponsiveValue as vt, ColorStyleProps as w, SpaceProps as wt, BoxShadowProps as x, Scale as xt, BorderWidthProps as y, RightProps as yt, GridAreaProps as z, ThemeValue as zt };
|
|
@@ -61,7 +61,19 @@ interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValu
|
|
|
61
61
|
py?: ResponsiveValue<TVal, ThemeType>;
|
|
62
62
|
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
/** Not in upstream styled-system — it only ever scaled the grid-prefixed gaps. */
|
|
65
|
+
interface GapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
66
|
+
gap?: ResponsiveValue<TVal, ThemeType>;
|
|
67
|
+
}
|
|
68
|
+
/** Not in upstream styled-system — it only ever scaled the grid-prefixed gaps. */
|
|
69
|
+
interface RowGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
70
|
+
rowGap?: ResponsiveValue<TVal, ThemeType>;
|
|
71
|
+
}
|
|
72
|
+
/** Not in upstream styled-system — it only ever scaled the grid-prefixed gaps. */
|
|
73
|
+
interface ColumnGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
74
|
+
columnGap?: ResponsiveValue<TVal, ThemeType>;
|
|
75
|
+
}
|
|
76
|
+
interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> extends MarginProps<ThemeType, TVal>, PaddingProps<ThemeType, TVal>, GapProps<ThemeType, TVal>, RowGapProps<ThemeType, TVal>, ColumnGapProps<ThemeType, TVal> {}
|
|
65
77
|
interface WidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Width<TLengthStyledSystem>> {
|
|
66
78
|
width?: ResponsiveValue<TVal, ThemeType>;
|
|
67
79
|
}
|
|
@@ -94,7 +106,11 @@ interface OverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
94
106
|
interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.VerticalAlign<TLengthStyledSystem>> {
|
|
95
107
|
verticalAlign?: ResponsiveValue<TVal, ThemeType>;
|
|
96
108
|
}
|
|
97
|
-
|
|
109
|
+
/** Not in upstream styled-system — its last release predates CSS `aspect-ratio`. */
|
|
110
|
+
interface AspectRatioProps<ThemeType extends Theme = RequiredTheme> {
|
|
111
|
+
aspectRatio?: ResponsiveValue<CSS.Property.AspectRatio, ThemeType>;
|
|
112
|
+
}
|
|
113
|
+
interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, AspectRatioProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
|
|
98
114
|
interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
|
|
99
115
|
fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
|
|
100
116
|
}
|
|
@@ -137,7 +153,13 @@ interface TextDecorationThicknessProps<ThemeType extends Theme = RequiredTheme,
|
|
|
137
153
|
interface TextDecorationColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
138
154
|
textDecorationColor?: ResponsiveValue<TVal, ThemeType>;
|
|
139
155
|
}
|
|
140
|
-
interface
|
|
156
|
+
interface WhiteSpaceProps<ThemeType extends Theme = RequiredTheme> {
|
|
157
|
+
whiteSpace?: ResponsiveValue<CSS.Property.WhiteSpace, ThemeType>;
|
|
158
|
+
}
|
|
159
|
+
interface TextOverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
160
|
+
textOverflow?: ResponsiveValue<CSS.Property.TextOverflow, ThemeType>;
|
|
161
|
+
}
|
|
162
|
+
interface TypographyProps<ThemeType extends Theme = RequiredTheme> extends FontFamilyProps<ThemeType>, FontSizeProps<ThemeType>, FontWeightProps<ThemeType>, LineHeightProps<ThemeType>, LetterSpacingProps<ThemeType>, FontStyleProps<ThemeType>, TextAlignProps<ThemeType>, TextTransformProps<ThemeType>, TextAlignLastProps<ThemeType>, TextDecorationProps<ThemeType>, TextDecorationLineProps<ThemeType>, TextDecorationStyleProps<ThemeType>, TextDecorationThicknessProps<ThemeType>, TextDecorationColorProps<ThemeType>, WhiteSpaceProps<ThemeType>, TextOverflowProps<ThemeType> {}
|
|
141
163
|
interface AlignItemsProps<ThemeType extends Theme = RequiredTheme> {
|
|
142
164
|
alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType>;
|
|
143
165
|
}
|
|
@@ -321,4 +343,4 @@ interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
321
343
|
colors?: ResponsiveValue<string, ThemeType>;
|
|
322
344
|
}
|
|
323
345
|
//#endregion
|
|
324
|
-
export {
|
|
346
|
+
export { JustifyContentProps as $, FlexProps as A, TextDecorationLineProps as At, GridAutoColumnsProps as B, TopProps as Bt, ColorProps as C, SizeProps as Ct, FlexBasisProps as D, TextAlignProps as Dt, DisplayProps as E, TextAlignLastProps as Et, FontSizeProps as F, TextShadowProps as Ft, GridGapProps as G, ZIndexProps as Gt, GridAutoRowsProps as H, VerticalAlignProps as Ht, FontStyleProps as I, TextStyleProps as It, GridRowProps as J, GridProps as K, FontWeightProps as L, TextTransformProps as Lt, FlexWrapProps as M, TextDecorationStyleProps as Mt, FlexboxProps as N, TextDecorationThicknessProps as Nt, FlexDirectionProps as O, TextColorProps as Ot, FontFamilyProps as P, TextOverflowProps as Pt, HeightProps as Q, GapProps as R, Theme as Rt, ButtonStyleProps as S, ShadowProps as St, ColumnGapProps as T, TLengthStyledSystem as Tt, GridColumnGapProps as U, WhiteSpaceProps as Ut, GridAutoFlowProps as V, TypographyProps as Vt, GridColumnProps as W, WidthProps as Wt, GridTemplateColumnsProps as X, GridTemplateAreasProps as Y, GridTemplateRowsProps as Z, BorderStyleProps as _, RequiredTheme as _t, BackgroundColorProps as a, LineHeightProps as at, BottomProps as b, RowGapProps as bt, BackgroundProps as c, MaxWidthProps as ct, BorderBottomProps as d, ObjectOrArray as dt, JustifyItemsProps as et, BorderColorProps as f, OpacityProps as ft, BorderRightProps as g, PositionProps as gt, BorderRadiusProps as h, PaddingProps as ht, AspectRatioProps as i, LetterSpacingProps as it, FlexShrinkProps as j, TextDecorationProps as jt, FlexGrowProps as k, TextDecorationColorProps as kt, BackgroundRepeatProps as l, MinHeightProps as lt, BorderProps as m, OverflowProps as mt, AlignItemsProps as n, LayoutProps as nt, BackgroundImageProps as o, MarginProps as ot, BorderLeftProps as p, OrderProps as pt, GridRowGapProps as q, AlignSelfProps as r, LeftProps as rt, BackgroundPositionProps as s, MaxHeightProps as st, AlignContentProps as t, JustifySelfProps as tt, BackgroundSizeProps as u, MinWidthProps as ut, BorderTopProps as v, ResponsiveValue as vt, ColorStyleProps as w, SpaceProps as wt, BoxShadowProps as x, Scale as xt, BorderWidthProps as y, RightProps as yt, GridAreaProps as z, ThemeValue as zt };
|
|
@@ -41,7 +41,9 @@ const typography = require("./core.cjs").system({
|
|
|
41
41
|
property: "textDecorationColor",
|
|
42
42
|
scale: "colors"
|
|
43
43
|
},
|
|
44
|
-
textAlignLast: true
|
|
44
|
+
textAlignLast: true,
|
|
45
|
+
whiteSpace: true,
|
|
46
|
+
textOverflow: true
|
|
45
47
|
});
|
|
46
48
|
//#endregion
|
|
47
49
|
Object.defineProperty(exports, "typography", {
|
package/dist/typography.cjs
CHANGED
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_typography = require("./typography-
|
|
5
|
+
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
6
6
|
exports.default = require_typography.typography;
|
|
7
7
|
exports.typography = require_typography.typography;
|
package/dist/typography.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as typography } from "./index-
|
|
3
|
-
export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TypographyProps, typography as default, typography };
|
|
1
|
+
import { Dt as TextAlignProps, F as FontSizeProps, I as FontStyleProps, L as FontWeightProps, P as FontFamilyProps, Pt as TextOverflowProps, Ut as WhiteSpaceProps, Vt as TypographyProps, at as LineHeightProps, it as LetterSpacingProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { t as typography } from "./index-DPZut54X.cjs";
|
|
3
|
+
export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TextOverflowProps, type TypographyProps, type WhiteSpaceProps, typography as default, typography };
|
package/dist/typography.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as typography } from "./index-
|
|
3
|
-
export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TypographyProps, typography as default, typography };
|
|
1
|
+
import { Dt as TextAlignProps, F as FontSizeProps, I as FontStyleProps, L as FontWeightProps, P as FontFamilyProps, Pt as TextOverflowProps, Ut as WhiteSpaceProps, Vt as TypographyProps, at as LineHeightProps, it as LetterSpacingProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { t as typography } from "./index-Brk7KoTW.mjs";
|
|
3
|
+
export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TextOverflowProps, type TypographyProps, type WhiteSpaceProps, typography as default, typography };
|
package/dist/typography.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as typography } from "./typography-
|
|
1
|
+
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
2
2
|
export { typography as default, typography };
|
package/dist/variant.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-
|
|
1
|
+
import { It as TextStyleProps, S as ButtonStyleProps, w as ColorStyleProps } from "./types-BEHYHdIq.cjs";
|
|
2
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BB5onzAO.cjs";
|
|
3
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 {
|
|
2
|
-
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-
|
|
1
|
+
import { It as TextStyleProps, S as ButtonStyleProps, w as ColorStyleProps } from "./types-BEHYHdIq.mjs";
|
|
2
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-lMfmNFGL.mjs";
|
|
3
3
|
export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantArgs, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soroush.tech/styled-system",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.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",
|
|
@@ -235,13 +235,14 @@
|
|
|
235
235
|
"@emotion/is-prop-valid": "^1.4.0",
|
|
236
236
|
"@types/prop-types": "^15.7.15",
|
|
237
237
|
"@vitest/coverage-v8": "^4.1.10",
|
|
238
|
-
"eslint": "^10.
|
|
239
|
-
"globals": "^17.
|
|
238
|
+
"eslint": "^10.8.0",
|
|
239
|
+
"globals": "^17.9.0",
|
|
240
240
|
"prop-types": "^15.8.1",
|
|
241
|
-
"tsdown": "^0.22.
|
|
241
|
+
"tsdown": "^0.22.14",
|
|
242
242
|
"typescript": "~6.0.3",
|
|
243
243
|
"vitest": "^4.1.10",
|
|
244
|
-
"@soroush.tech/eslint-config": "0.0.0"
|
|
244
|
+
"@soroush.tech/eslint-config": "0.0.0",
|
|
245
|
+
"@soroush.tech/bench": "2.2.0"
|
|
245
246
|
},
|
|
246
247
|
"scripts": {
|
|
247
248
|
"build": "tsdown",
|