@soroush.tech/styled-system 6.0.0-alpha.1 → 6.0.0-alpha.3
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/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-CvJv0uga.cjs +198 -0
- package/dist/grid-Du9HrjII.mjs +168 -0
- package/dist/grid.cjs +2 -2
- package/dist/grid.d.cts +3 -3
- package/dist/grid.d.mts +3 -3
- package/dist/grid.mjs +2 -2
- package/dist/{index-Cnya5hgU.d.mts → index--7PfXEZf.d.mts} +1 -1
- package/dist/{index-BgcnUGws.d.cts → index-BDUZ7qQu.d.cts} +1 -1
- package/dist/{index-CkSwZa-Z.d.mts → index-BQUTi5eL.d.mts} +1 -1
- package/dist/{index-BiZPbJuj.d.mts → index-BTZ4J3Ql.d.mts} +1 -1
- package/dist/{index-CXOIz3b_.d.cts → index-BUX09rTq.d.cts} +1 -1
- package/dist/{index-C4BUuCOD.d.cts → index-BUa_KRfs.d.cts} +1 -1
- package/dist/{index-DJw2NCm-.d.cts → index-BVNmdtmk.d.cts} +1 -1
- package/dist/index-BZI1xwTA.d.cts +55 -0
- package/dist/{index-BCO1q3Ee.d.mts → index-BZs9fI-P.d.mts} +1 -1
- package/dist/{index-DBX-YuCP.d.mts → index-Bhpc-68J.d.mts} +1 -1
- package/dist/{index-BolQQ69W.d.cts → index-BqZjtkzF.d.cts} +1 -1
- package/dist/{index-Bq7LA-5J.d.cts → index-C56_VCbD.d.cts} +1 -1
- package/dist/{index-o6j0bywN.d.cts → index-DGGFii8s.d.cts} +1 -1
- package/dist/{index-z2p2DCxL.d.mts → index-DXURX22V.d.mts} +1 -1
- package/dist/{index-Cow4kTN2.d.mts → index-DYc5_RYF.d.mts} +1 -1
- package/dist/{index-k5b5FR_o.d.mts → index-D_XDxNlm.d.mts} +1 -1
- package/dist/{index-DS5tvdki.d.cts → index-Di8gHXKt.d.cts} +1 -1
- package/dist/{index-CV2xW58U.d.mts → index-Dr5JeEjc.d.mts} +1 -1
- package/dist/{index-ygAGm7QY.d.cts → index-Dv3K2IAS.d.cts} +1 -1
- package/dist/{index-MqRHkwxm.d.cts → index-DwJSd01p.d.cts} +1 -1
- package/dist/index-Np-KvYhu.d.mts +55 -0
- package/dist/{index-CVxHdrQd.d.mts → index-mSyoGVmz.d.mts} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +13 -13
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +2 -2
- 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-DtE_nRxp.mjs → presets-Cxa2Xoxa.mjs} +1 -1
- package/dist/{presets-fJFZ74qt.cjs → presets-mePesdYM.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/{types-C4ogGxde.d.cts → types-Cl2haWqC.d.cts} +22 -9
- package/dist/{types-C4ogGxde.d.mts → types-Cl2haWqC.d.mts} +22 -9
- package/dist/typography.d.cts +2 -2
- package/dist/typography.d.mts +2 -2
- package/dist/variant.d.cts +2 -2
- package/dist/variant.d.mts +2 -2
- package/package.json +1 -1
- package/dist/grid-BdKZQBHF.mjs +0 -135
- package/dist/grid-CAlwl8LZ.cjs +0 -165
- package/dist/index-Cy51GZK8.d.mts +0 -47
- package/dist/index-DrwsZZkS.d.cts +0 -47
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { a as Parser, l as StyleObject } from "./index-IulNhyDt.mjs";
|
|
2
|
+
import "./types-Cl2haWqC.mjs";
|
|
3
|
+
//#region src/grid/grid.d.ts
|
|
4
|
+
declare const grid: Parser;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/grid/layoutGrid.d.ts
|
|
7
|
+
/** The layout grid at one breakpoint - the `content` part of a `theme.layout` entry. */
|
|
8
|
+
interface LayoutGridEntry {
|
|
9
|
+
/** Equal columns. */
|
|
10
|
+
columns?: number;
|
|
11
|
+
/** Inline padding - a `theme.space` key or a CSS length. */
|
|
12
|
+
margin?: string | number;
|
|
13
|
+
/** Gap between columns - a `theme.space` key or a CSS length. Set per element with `gap`. */
|
|
14
|
+
gutter?: string | number;
|
|
15
|
+
/** `fluid` spans the space; `fixed` is a container centred at `maxWidth`. */
|
|
16
|
+
mode?: 'fluid' | 'fixed';
|
|
17
|
+
maxWidth?: string | number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* `true` for the theme's layout grid, or an entry: its fields replace the theme's at every
|
|
21
|
+
* breakpoint, and entries under breakpoint names replace it from that breakpoint up.
|
|
22
|
+
*/
|
|
23
|
+
type LayoutGridValue = boolean | Record<string, LayoutGridEntry | LayoutGridEntry[keyof LayoutGridEntry]>;
|
|
24
|
+
/** A `gap` / `columnGap` value: one value, an array by breakpoint position, or an object by name. */
|
|
25
|
+
type LayoutGridGap = string | number | null | undefined | Array<string | number | null> | Record<string, string | number | null>;
|
|
26
|
+
/**
|
|
27
|
+
* The layout grid from `theme.layout`, per breakpoint: each breakpoint's `content` (columns,
|
|
28
|
+
* margin, gutter, fluid or fixed), mobile-first. A field in `value` replaces the theme's at
|
|
29
|
+
* every breakpoint (`{ maxWidth: '1280px' }`); an entry under a breakpoint name replaces it
|
|
30
|
+
* from that breakpoint up, on top of those fields (`{ lg: { columns: 16 } }`). `gap` - the
|
|
31
|
+
* element's own `gap` / `columnGap` - sets the gutter the same way, single or responsive; where
|
|
32
|
+
* it is not set, the theme's gutter applies. Every written block carries the full set, so no
|
|
33
|
+
* block inherits a stale `max-width`. Rows take `rowGap` (or `gap`'s row half), never the layout.
|
|
34
|
+
*/
|
|
35
|
+
declare const layoutGridStyles: (theme: unknown, value: LayoutGridValue | undefined, gap?: LayoutGridGap) => StyleObject;
|
|
36
|
+
/**
|
|
37
|
+
* The `layout` prop as the page frame alone: the margin and, in fixed mode, the centred max
|
|
38
|
+
* width per breakpoint - no columns, and `display` is left alone. Every View-based component
|
|
39
|
+
* takes it; compose it with `layoutGrid` for the columns.
|
|
40
|
+
*/
|
|
41
|
+
declare const layoutFrame: Parser;
|
|
42
|
+
/**
|
|
43
|
+
* The `layout` prop's columns on a grid container: the tracks and the gutter. The gutter is the
|
|
44
|
+
* element's own `columnGap` or `gap` where it sets one, the theme's elsewhere - so `column-gap`
|
|
45
|
+
* has a single source and an explicit gap is never silently replaced.
|
|
46
|
+
*/
|
|
47
|
+
declare const layoutGrid: Parser;
|
|
48
|
+
/**
|
|
49
|
+
* The `span` prop: how many columns of a grid an element takes - `grid-column: span N` - or
|
|
50
|
+
* `span="full"` for the whole row whatever the column count. Responsive like any prop:
|
|
51
|
+
* `span={{ xs: 'full', md: 6 }}`.
|
|
52
|
+
*/
|
|
53
|
+
declare const span: Parser;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { layoutGrid as a, grid as c, layoutFrame as i, LayoutGridGap as n, layoutGridStyles as o, LayoutGridValue as r, span as s, LayoutGridEntry as t };
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const require_background = require("./background-wugr6cG7.cjs");
|
|
|
5
5
|
const require_border = require("./border-UuT-fTpy.cjs");
|
|
6
6
|
const require_color = require("./color-BNs17Gw-.cjs");
|
|
7
7
|
const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
|
|
8
|
-
const require_grid = require("./grid-
|
|
8
|
+
const require_grid = require("./grid-CvJv0uga.cjs");
|
|
9
9
|
const require_layout = require("./layout-D3pG7vBp.cjs");
|
|
10
10
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
11
11
|
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
@@ -169,7 +169,7 @@ exports.justifyContent = justifyContent;
|
|
|
169
169
|
exports.justifyItems = justifyItems;
|
|
170
170
|
exports.justifySelf = justifySelf;
|
|
171
171
|
exports.layout = require_layout.layout;
|
|
172
|
-
exports.
|
|
172
|
+
exports.layoutFrame = require_grid.layoutFrame;
|
|
173
173
|
exports.layoutGrid = require_grid.layoutGrid;
|
|
174
174
|
exports.layoutGridStyles = require_grid.layoutGridStyles;
|
|
175
175
|
exports.left = left;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as ResponsiveQueries, c as createContainerQueries, d as responsiveQueries, i as QueryHelpers, l as createMediaHelpers, n as Breakpoints, o as breakpointQueries, r as ContainerQueries, s as containerKey, t as BreakpointInput, u as createMediaQuery } from "./media-CfYDomHt.cjs";
|
|
2
2
|
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-iVqAMF2L.cjs";
|
|
3
|
-
import { t as background } from "./index-
|
|
4
|
-
import { $ as GridTemplateRowsProps, A as FlexDirectionProps, At as
|
|
5
|
-
import { t as border } from "./index-
|
|
6
|
-
import { t as color } from "./index-
|
|
7
|
-
import { t as flexbox } from "./index-
|
|
8
|
-
import { a as layoutGrid, c as grid, i as
|
|
9
|
-
import { i as space, n as margin, r as padding, t as gap } from "./index-
|
|
10
|
-
import { t as layout } from "./index-
|
|
11
|
-
import { t as typography } from "./index-
|
|
12
|
-
import { t as position } from "./index-
|
|
13
|
-
import { t as shadow } from "./index-
|
|
14
|
-
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-
|
|
3
|
+
import { t as background } from "./index-Di8gHXKt.cjs";
|
|
4
|
+
import { $ as GridTemplateRowsProps, A as FlexDirectionProps, At as TLengthStyledSystem, B as GapProps, Bt as TextShadowProps, C as ButtonStyleProps, Ct as RightProps, D as ContainerProps, Dt as SizeProps, E as ColumnGapProps, Et as ShadowProps, F as FlexboxProps, Ft as TextDecorationLineProps, G as GridColumnGapProps, Gt as TopProps, H as GridAutoColumnsProps, Ht as TextTransformProps, I as FontFamilyProps, It as TextDecorationProps, J as GridProps, Jt as WhiteSpaceProps, K as GridColumnProps, Kt as TypographyProps, L as FontSizeProps, Lt as TextDecorationStyleProps, M as FlexProps, Mt as TextAlignProps, N as FlexShrinkProps, Nt as TextColorProps, O as DisplayProps, Ot as SpaceProps, P as FlexWrapProps, Pt as TextDecorationColorProps, Q as GridTemplateColumnsProps, R as FontStyleProps, Rt as TextDecorationThicknessProps, S as BreakpointName, St as ResponsiveValue, T as ColorStyleProps, Tt as Scale, U as GridAutoFlowProps, Ut as Theme, V as GridAreaProps, Vt as TextStyleProps, W as GridAutoRowsProps, Wt as ThemeValue, X as GridRowProps, Xt as ZIndexProps, Y as GridRowGapProps, Yt as WidthProps, Z as GridTemplateAreasProps, _ as BorderStyleProps, _t as OrderProps, a as BackgroundColorProps, at as LayoutGridProps, b as BottomProps, bt as PositionProps, c as BackgroundProps, ct as LetterSpacingProps, d as BorderBottomProps, dt as MaxHeightProps, et as HeightProps, f as BorderColorProps, ft as MaxWidthProps, g as BorderRightProps, gt as OpacityProps, h as BorderRadiusProps, ht as ObjectOrArray, i as AspectRatioProps, it as LayoutFrameProps, j as FlexGrowProps, jt as TextAlignLastProps, k as FlexBasisProps, kt as SpanProps, l as BackgroundRepeatProps, lt as LineHeightProps, m as BorderProps, mt as MinWidthProps, n as AlignItemsProps, nt as JustifyItemsProps, o as BackgroundImageProps, ot as LayoutProps, p as BorderLeftProps, pt as MinHeightProps, q as GridGapProps, qt as VerticalAlignProps, r as AlignSelfProps, rt as JustifySelfProps, s as BackgroundPositionProps, st as LeftProps, t as AlignContentProps, tt as JustifyContentProps, u as BackgroundSizeProps, ut as MarginProps, v as BorderTopProps, vt as OverflowProps, w as ColorProps, wt as RowGapProps, x as BoxShadowProps, xt as RequiredTheme, y as BorderWidthProps, yt as PaddingProps, z as FontWeightProps, zt as TextOverflowProps } from "./types-Cl2haWqC.cjs";
|
|
5
|
+
import { t as border } from "./index-BqZjtkzF.cjs";
|
|
6
|
+
import { t as color } from "./index-DwJSd01p.cjs";
|
|
7
|
+
import { t as flexbox } from "./index-BUX09rTq.cjs";
|
|
8
|
+
import { a as layoutGrid, c as grid, i as layoutFrame, n as LayoutGridGap, o as layoutGridStyles, r as LayoutGridValue, s as span, t as LayoutGridEntry } from "./index-BZI1xwTA.cjs";
|
|
9
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-BUa_KRfs.cjs";
|
|
10
|
+
import { t as layout } from "./index-Dv3K2IAS.cjs";
|
|
11
|
+
import { t as typography } from "./index-C56_VCbD.cjs";
|
|
12
|
+
import { t as position } from "./index-BVNmdtmk.cjs";
|
|
13
|
+
import { t as shadow } from "./index-DGGFii8s.cjs";
|
|
14
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BDUZ7qQu.cjs";
|
|
15
15
|
//#region src/style/style.d.ts
|
|
16
16
|
interface StyleOptions {
|
|
17
17
|
prop: string;
|
|
@@ -99,4 +99,4 @@ declare const right: Parser;
|
|
|
99
99
|
declare const bottom: Parser;
|
|
100
100
|
declare const left: Parser;
|
|
101
101
|
//#endregion
|
|
102
|
-
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, type BreakpointInput, BreakpointName, type Breakpoints, ButtonStyleProps, ColorProps, ColorStyleProps, ColumnGapProps, type Config, type ConfigFunction, type ConfigStyle, ContainerProps, type ContainerQueries, 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, type
|
|
102
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, type BreakpointInput, BreakpointName, type Breakpoints, ButtonStyleProps, ColorProps, ColorStyleProps, ColumnGapProps, type Config, type ConfigFunction, type ConfigStyle, ContainerProps, type ContainerQueries, 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, LayoutFrameProps, type LayoutGridEntry, type LayoutGridGap, LayoutGridProps, type LayoutGridValue, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, type LowLevelStyleFunctionArguments, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, type QueryHelpers, RequiredTheme, type ResponsiveQueries, ResponsiveValue, RightProps, RowGapProps, Scale, ShadowProps, SizeProps, SpaceProps, SpanProps, 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, breakpointQueries, buttonStyle, color, colorStyle, compose, containerKey, createContainerQueries, createMediaHelpers, createMediaQuery, 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, layoutFrame, layoutGrid, layoutGridStyles, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, responsiveQueries, right, size, space, span, 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,17 +1,17 @@
|
|
|
1
1
|
import { a as ResponsiveQueries, c as createContainerQueries, d as responsiveQueries, i as QueryHelpers, l as createMediaHelpers, n as Breakpoints, o as breakpointQueries, r as ContainerQueries, s as containerKey, t as BreakpointInput, u as createMediaQuery } from "./media-CfYDomHt.mjs";
|
|
2
2
|
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-IulNhyDt.mjs";
|
|
3
|
-
import { t as background } from "./index-
|
|
4
|
-
import { $ as GridTemplateRowsProps, A as FlexDirectionProps, At as
|
|
5
|
-
import { t as border } from "./index-
|
|
6
|
-
import { t as color } from "./index-
|
|
7
|
-
import { t as flexbox } from "./index-
|
|
8
|
-
import { a as layoutGrid, c as grid, i as
|
|
9
|
-
import { i as space, n as margin, r as padding, t as gap } from "./index-
|
|
10
|
-
import { t as layout } from "./index-
|
|
11
|
-
import { t as typography } from "./index-
|
|
12
|
-
import { t as position } from "./index-
|
|
13
|
-
import { t as shadow } from "./index
|
|
14
|
-
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-
|
|
3
|
+
import { t as background } from "./index-mSyoGVmz.mjs";
|
|
4
|
+
import { $ as GridTemplateRowsProps, A as FlexDirectionProps, At as TLengthStyledSystem, B as GapProps, Bt as TextShadowProps, C as ButtonStyleProps, Ct as RightProps, D as ContainerProps, Dt as SizeProps, E as ColumnGapProps, Et as ShadowProps, F as FlexboxProps, Ft as TextDecorationLineProps, G as GridColumnGapProps, Gt as TopProps, H as GridAutoColumnsProps, Ht as TextTransformProps, I as FontFamilyProps, It as TextDecorationProps, J as GridProps, Jt as WhiteSpaceProps, K as GridColumnProps, Kt as TypographyProps, L as FontSizeProps, Lt as TextDecorationStyleProps, M as FlexProps, Mt as TextAlignProps, N as FlexShrinkProps, Nt as TextColorProps, O as DisplayProps, Ot as SpaceProps, P as FlexWrapProps, Pt as TextDecorationColorProps, Q as GridTemplateColumnsProps, R as FontStyleProps, Rt as TextDecorationThicknessProps, S as BreakpointName, St as ResponsiveValue, T as ColorStyleProps, Tt as Scale, U as GridAutoFlowProps, Ut as Theme, V as GridAreaProps, Vt as TextStyleProps, W as GridAutoRowsProps, Wt as ThemeValue, X as GridRowProps, Xt as ZIndexProps, Y as GridRowGapProps, Yt as WidthProps, Z as GridTemplateAreasProps, _ as BorderStyleProps, _t as OrderProps, a as BackgroundColorProps, at as LayoutGridProps, b as BottomProps, bt as PositionProps, c as BackgroundProps, ct as LetterSpacingProps, d as BorderBottomProps, dt as MaxHeightProps, et as HeightProps, f as BorderColorProps, ft as MaxWidthProps, g as BorderRightProps, gt as OpacityProps, h as BorderRadiusProps, ht as ObjectOrArray, i as AspectRatioProps, it as LayoutFrameProps, j as FlexGrowProps, jt as TextAlignLastProps, k as FlexBasisProps, kt as SpanProps, l as BackgroundRepeatProps, lt as LineHeightProps, m as BorderProps, mt as MinWidthProps, n as AlignItemsProps, nt as JustifyItemsProps, o as BackgroundImageProps, ot as LayoutProps, p as BorderLeftProps, pt as MinHeightProps, q as GridGapProps, qt as VerticalAlignProps, r as AlignSelfProps, rt as JustifySelfProps, s as BackgroundPositionProps, st as LeftProps, t as AlignContentProps, tt as JustifyContentProps, u as BackgroundSizeProps, ut as MarginProps, v as BorderTopProps, vt as OverflowProps, w as ColorProps, wt as RowGapProps, x as BoxShadowProps, xt as RequiredTheme, y as BorderWidthProps, yt as PaddingProps, z as FontWeightProps, zt as TextOverflowProps } from "./types-Cl2haWqC.mjs";
|
|
5
|
+
import { t as border } from "./index-DXURX22V.mjs";
|
|
6
|
+
import { t as color } from "./index-BTZ4J3Ql.mjs";
|
|
7
|
+
import { t as flexbox } from "./index-BZs9fI-P.mjs";
|
|
8
|
+
import { a as layoutGrid, c as grid, i as layoutFrame, n as LayoutGridGap, o as layoutGridStyles, r as LayoutGridValue, s as span, t as LayoutGridEntry } from "./index-Np-KvYhu.mjs";
|
|
9
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-D_XDxNlm.mjs";
|
|
10
|
+
import { t as layout } from "./index-Bhpc-68J.mjs";
|
|
11
|
+
import { t as typography } from "./index-BQUTi5eL.mjs";
|
|
12
|
+
import { t as position } from "./index-Dr5JeEjc.mjs";
|
|
13
|
+
import { t as shadow } from "./index--7PfXEZf.mjs";
|
|
14
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-DYc5_RYF.mjs";
|
|
15
15
|
//#region src/style/style.d.ts
|
|
16
16
|
interface StyleOptions {
|
|
17
17
|
prop: string;
|
|
@@ -99,4 +99,4 @@ declare const right: Parser;
|
|
|
99
99
|
declare const bottom: Parser;
|
|
100
100
|
declare const left: Parser;
|
|
101
101
|
//#endregion
|
|
102
|
-
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, type BreakpointInput, BreakpointName, type Breakpoints, ButtonStyleProps, ColorProps, ColorStyleProps, ColumnGapProps, type Config, type ConfigFunction, type ConfigStyle, ContainerProps, type ContainerQueries, 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, type
|
|
102
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, type BreakpointInput, BreakpointName, type Breakpoints, ButtonStyleProps, ColorProps, ColorStyleProps, ColumnGapProps, type Config, type ConfigFunction, type ConfigStyle, ContainerProps, type ContainerQueries, 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, LayoutFrameProps, type LayoutGridEntry, type LayoutGridGap, LayoutGridProps, type LayoutGridValue, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, type LowLevelStyleFunctionArguments, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, type QueryHelpers, RequiredTheme, type ResponsiveQueries, ResponsiveValue, RightProps, RowGapProps, Scale, ShadowProps, SizeProps, SpaceProps, SpanProps, 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, breakpointQueries, buttonStyle, color, colorStyle, compose, containerKey, createContainerQueries, createMediaHelpers, createMediaQuery, 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, layoutFrame, layoutGrid, layoutGridStyles, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, responsiveQueries, right, size, space, span, 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,7 +4,7 @@ import { t as background } from "./background-B-jql3jb.mjs";
|
|
|
4
4
|
import { t as border } from "./border-Dder4Dhp.mjs";
|
|
5
5
|
import { t as color } from "./color-CGmMe8yP.mjs";
|
|
6
6
|
import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
|
|
7
|
-
import { a as grid, i as span, n as layoutGrid, r as layoutGridStyles, t as
|
|
7
|
+
import { a as grid, i as span, n as layoutGrid, r as layoutGridStyles, t as layoutFrame } from "./grid-Du9HrjII.mjs";
|
|
8
8
|
import { t as layout } from "./layout-DF83ooFn.mjs";
|
|
9
9
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
10
10
|
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
@@ -105,4 +105,4 @@ const right = positionFns.right;
|
|
|
105
105
|
const bottom = positionFns.bottom;
|
|
106
106
|
const left = positionFns.left;
|
|
107
107
|
//#endregion
|
|
108
|
-
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, breakpointQueries, buttonStyle, color, colorStyle, compose, containerKey, createContainerQueries, createMediaHelpers, createMediaQuery, 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,
|
|
108
|
+
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, breakpointQueries, buttonStyle, color, colorStyle, compose, containerKey, createContainerQueries, createMediaHelpers, createMediaQuery, 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, layoutFrame, layoutGrid, layoutGridStyles, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, responsiveQueries, right, size, space, span, style, system, textAlign, textAlignLast, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textOverflow, textStyle, textTransform, top, typography, variant, verticalAlign, whiteSpace, width, zIndex };
|
package/dist/layout.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { D as ContainerProps,
|
|
2
|
-
import { t as layout } from "./index-
|
|
1
|
+
import { D as ContainerProps, Dt as SizeProps, O as DisplayProps, Yt as WidthProps, dt as MaxHeightProps, et as HeightProps, ft as MaxWidthProps, i as AspectRatioProps, mt as MinWidthProps, ot as LayoutProps, pt as MinHeightProps, qt as VerticalAlignProps, vt as OverflowProps } from "./types-Cl2haWqC.cjs";
|
|
2
|
+
import { t as layout } from "./index-Dv3K2IAS.cjs";
|
|
3
3
|
export { type AspectRatioProps, type ContainerProps, 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 { D as ContainerProps,
|
|
2
|
-
import { t as layout } from "./index-
|
|
1
|
+
import { D as ContainerProps, Dt as SizeProps, O as DisplayProps, Yt as WidthProps, dt as MaxHeightProps, et as HeightProps, ft as MaxWidthProps, i as AspectRatioProps, mt as MinWidthProps, ot as LayoutProps, pt as MinHeightProps, qt as VerticalAlignProps, vt as OverflowProps } from "./types-Cl2haWqC.mjs";
|
|
2
|
+
import { t as layout } from "./index-Bhpc-68J.mjs";
|
|
3
3
|
export { type AspectRatioProps, type ContainerProps, 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 {
|
|
2
|
-
import { t as position } from "./index-
|
|
1
|
+
import { Ct as RightProps, Gt as TopProps, Xt as ZIndexProps, b as BottomProps, bt as PositionProps, st as LeftProps } from "./types-Cl2haWqC.cjs";
|
|
2
|
+
import { t as position } from "./index-BVNmdtmk.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 { Ct as RightProps, Gt as TopProps, Xt as ZIndexProps, b as BottomProps, bt as PositionProps, st as LeftProps } from "./types-Cl2haWqC.mjs";
|
|
2
|
+
import { t as position } from "./index-Dr5JeEjc.mjs";
|
|
3
3
|
export { type BottomProps, type LeftProps, type PositionProps, type RightProps, type TopProps, type ZIndexProps, position as default, position };
|
|
@@ -3,7 +3,7 @@ import { t as background } from "./background-B-jql3jb.mjs";
|
|
|
3
3
|
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
|
-
import { a as grid, i as span } from "./grid-
|
|
6
|
+
import { a as grid, i as span } from "./grid-Du9HrjII.mjs";
|
|
7
7
|
import { t as layout } from "./layout-DF83ooFn.mjs";
|
|
8
8
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
9
9
|
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
@@ -3,7 +3,7 @@ const require_background = require("./background-wugr6cG7.cjs");
|
|
|
3
3
|
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
|
-
const require_grid = require("./grid-
|
|
6
|
+
const require_grid = require("./grid-CvJv0uga.cjs");
|
|
7
7
|
const require_layout = require("./layout-D3pG7vBp.cjs");
|
|
8
8
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
9
9
|
const require_typography = require("./typography-7jHZXqtc.cjs");
|
package/dist/prop-types.cjs
CHANGED
|
@@ -7,7 +7,7 @@ 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
|
-
const require_grid = require("./grid-
|
|
10
|
+
const require_grid = require("./grid-CvJv0uga.cjs");
|
|
11
11
|
const require_layout = require("./layout-D3pG7vBp.cjs");
|
|
12
12
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
13
13
|
const require_typography = require("./typography-7jHZXqtc.cjs");
|
package/dist/prop-types.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { t as background } from "./background-B-jql3jb.mjs";
|
|
|
2
2
|
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
|
-
import { a as grid } from "./grid-
|
|
5
|
+
import { a as grid } from "./grid-Du9HrjII.mjs";
|
|
6
6
|
import { t as layout } from "./layout-DF83ooFn.mjs";
|
|
7
7
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
8
8
|
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
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-mePesdYM.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 {
|
|
2
|
-
import { t as shadow } from "./index-
|
|
1
|
+
import { Bt as TextShadowProps, Et as ShadowProps, x as BoxShadowProps } from "./types-Cl2haWqC.cjs";
|
|
2
|
+
import { t as shadow } from "./index-DGGFii8s.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 { Bt as TextShadowProps, Et as ShadowProps, x as BoxShadowProps } from "./types-Cl2haWqC.mjs";
|
|
2
|
+
import { t as shadow } from "./index--7PfXEZf.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-VH7oDXx4.cjs");
|
|
6
|
-
const require_presets = require("./presets-
|
|
6
|
+
const require_presets = require("./presets-mePesdYM.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 { B as GapProps,
|
|
2
|
-
import { i as space, n as margin, r as padding, t as gap } from "./index-
|
|
1
|
+
import { B as GapProps, E as ColumnGapProps, Ot as SpaceProps, ut as MarginProps, wt as RowGapProps, yt as PaddingProps } from "./types-Cl2haWqC.cjs";
|
|
2
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-BUa_KRfs.cjs";
|
|
3
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 { B as GapProps,
|
|
2
|
-
import { i as space, n as margin, r as padding, t as gap } from "./index-
|
|
1
|
+
import { B as GapProps, E as ColumnGapProps, Ot as SpaceProps, ut as MarginProps, wt as RowGapProps, yt as PaddingProps } from "./types-Cl2haWqC.mjs";
|
|
2
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-D_XDxNlm.mjs";
|
|
3
3
|
export { type ColumnGapProps, type GapProps, type MarginProps, type PaddingProps, type RowGapProps, type SpaceProps, space as default, space, gap, margin, padding };
|
|
@@ -339,24 +339,37 @@ interface GridTemplateAreasProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
339
339
|
interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
|
|
340
340
|
gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
|
|
341
341
|
}
|
|
342
|
-
interface
|
|
343
|
-
columns?: number;
|
|
342
|
+
interface LayoutFrameEntryProps<ThemeType extends Theme> {
|
|
344
343
|
margin?: ThemeValue<'space', ThemeType> | string;
|
|
345
|
-
gutter?: ThemeValue<'space', ThemeType> | string;
|
|
346
344
|
mode?: 'fluid' | 'fixed';
|
|
347
345
|
maxWidth?: string;
|
|
348
346
|
}
|
|
347
|
+
interface LayoutGridEntryProps<ThemeType extends Theme> extends LayoutFrameEntryProps<ThemeType> {
|
|
348
|
+
columns?: number;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Not in upstream styled-system: the page frame from `theme.layout` - its margin and max width
|
|
352
|
+
* per breakpoint, no columns. Takes the same values as {@link LayoutGridProps}, minus the
|
|
353
|
+
* column fields.
|
|
354
|
+
*/
|
|
355
|
+
interface LayoutFrameProps<ThemeType extends Theme = RequiredTheme> {
|
|
356
|
+
layout?: boolean | (LayoutFrameEntryProps<ThemeType> & { [key in BreakpointName<ThemeType>]?: LayoutFrameEntryProps<ThemeType>; });
|
|
357
|
+
}
|
|
349
358
|
/**
|
|
350
|
-
* Not in upstream styled-system: the layout grid from `theme.layout` on a Grid
|
|
351
|
-
*
|
|
352
|
-
* with entries under breakpoint names that replace it there
|
|
359
|
+
* Not in upstream styled-system: the layout grid from `theme.layout` on a Grid - `true` for the
|
|
360
|
+
* theme's, or an entry whose fields replace it at every breakpoint (`{ maxWidth: '1280px' }`),
|
|
361
|
+
* with entries under breakpoint names that replace it from there up (`{ lg: { columns: 16 } }`).
|
|
362
|
+
* The gutter is the grid's own `gap` / `columnGap`.
|
|
353
363
|
*/
|
|
354
364
|
interface LayoutGridProps<ThemeType extends Theme = RequiredTheme> {
|
|
355
365
|
layout?: boolean | (LayoutGridEntryProps<ThemeType> & { [key in BreakpointName<ThemeType>]?: LayoutGridEntryProps<ThemeType>; });
|
|
356
366
|
}
|
|
357
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Not in upstream styled-system: how many columns of a grid the element takes, or `'full'` for
|
|
369
|
+
* the whole row.
|
|
370
|
+
*/
|
|
358
371
|
interface SpanProps<ThemeType extends Theme = RequiredTheme> {
|
|
359
|
-
span?: ResponsiveValue<number, ThemeType>;
|
|
372
|
+
span?: ResponsiveValue<number | 'full', ThemeType>;
|
|
360
373
|
}
|
|
361
374
|
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> {}
|
|
362
375
|
interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
@@ -376,4 +389,4 @@ interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
376
389
|
colors?: ResponsiveValue<string, ThemeType>;
|
|
377
390
|
}
|
|
378
391
|
//#endregion
|
|
379
|
-
export { GridTemplateRowsProps as $, FlexDirectionProps as A,
|
|
392
|
+
export { GridTemplateRowsProps as $, FlexDirectionProps as A, TLengthStyledSystem as At, GapProps as B, TextShadowProps as Bt, ButtonStyleProps as C, RightProps as Ct, ContainerProps as D, SizeProps as Dt, ColumnGapProps as E, ShadowProps as Et, FlexboxProps as F, TextDecorationLineProps as Ft, GridColumnGapProps as G, TopProps as Gt, GridAutoColumnsProps as H, TextTransformProps as Ht, FontFamilyProps as I, TextDecorationProps as It, GridProps as J, WhiteSpaceProps as Jt, GridColumnProps as K, TypographyProps as Kt, FontSizeProps as L, TextDecorationStyleProps as Lt, FlexProps as M, TextAlignProps as Mt, FlexShrinkProps as N, TextColorProps as Nt, DisplayProps as O, SpaceProps as Ot, FlexWrapProps as P, TextDecorationColorProps as Pt, GridTemplateColumnsProps as Q, FontStyleProps as R, TextDecorationThicknessProps as Rt, BreakpointName as S, ResponsiveValue as St, ColorStyleProps as T, Scale as Tt, GridAutoFlowProps as U, Theme as Ut, GridAreaProps as V, TextStyleProps as Vt, GridAutoRowsProps as W, ThemeValue as Wt, GridRowProps as X, ZIndexProps as Xt, GridRowGapProps as Y, WidthProps as Yt, GridTemplateAreasProps as Z, BorderStyleProps as _, OrderProps as _t, BackgroundColorProps as a, LayoutGridProps as at, BottomProps as b, PositionProps as bt, BackgroundProps as c, LetterSpacingProps as ct, BorderBottomProps as d, MaxHeightProps as dt, HeightProps as et, BorderColorProps as f, MaxWidthProps as ft, BorderRightProps as g, OpacityProps as gt, BorderRadiusProps as h, ObjectOrArray as ht, AspectRatioProps as i, LayoutFrameProps as it, FlexGrowProps as j, TextAlignLastProps as jt, FlexBasisProps as k, SpanProps as kt, BackgroundRepeatProps as l, LineHeightProps as lt, BorderProps as m, MinWidthProps as mt, AlignItemsProps as n, JustifyItemsProps as nt, BackgroundImageProps as o, LayoutProps as ot, BorderLeftProps as p, MinHeightProps as pt, GridGapProps as q, VerticalAlignProps as qt, AlignSelfProps as r, JustifySelfProps as rt, BackgroundPositionProps as s, LeftProps as st, AlignContentProps as t, JustifyContentProps as tt, BackgroundSizeProps as u, MarginProps as ut, BorderTopProps as v, OverflowProps as vt, ColorProps as w, RowGapProps as wt, BoxShadowProps as x, RequiredTheme as xt, BorderWidthProps as y, PaddingProps as yt, FontWeightProps as z, TextOverflowProps as zt };
|
|
@@ -339,24 +339,37 @@ interface GridTemplateAreasProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
339
339
|
interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
|
|
340
340
|
gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
|
|
341
341
|
}
|
|
342
|
-
interface
|
|
343
|
-
columns?: number;
|
|
342
|
+
interface LayoutFrameEntryProps<ThemeType extends Theme> {
|
|
344
343
|
margin?: ThemeValue<'space', ThemeType> | string;
|
|
345
|
-
gutter?: ThemeValue<'space', ThemeType> | string;
|
|
346
344
|
mode?: 'fluid' | 'fixed';
|
|
347
345
|
maxWidth?: string;
|
|
348
346
|
}
|
|
347
|
+
interface LayoutGridEntryProps<ThemeType extends Theme> extends LayoutFrameEntryProps<ThemeType> {
|
|
348
|
+
columns?: number;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Not in upstream styled-system: the page frame from `theme.layout` - its margin and max width
|
|
352
|
+
* per breakpoint, no columns. Takes the same values as {@link LayoutGridProps}, minus the
|
|
353
|
+
* column fields.
|
|
354
|
+
*/
|
|
355
|
+
interface LayoutFrameProps<ThemeType extends Theme = RequiredTheme> {
|
|
356
|
+
layout?: boolean | (LayoutFrameEntryProps<ThemeType> & { [key in BreakpointName<ThemeType>]?: LayoutFrameEntryProps<ThemeType>; });
|
|
357
|
+
}
|
|
349
358
|
/**
|
|
350
|
-
* Not in upstream styled-system: the layout grid from `theme.layout` on a Grid
|
|
351
|
-
*
|
|
352
|
-
* with entries under breakpoint names that replace it there
|
|
359
|
+
* Not in upstream styled-system: the layout grid from `theme.layout` on a Grid - `true` for the
|
|
360
|
+
* theme's, or an entry whose fields replace it at every breakpoint (`{ maxWidth: '1280px' }`),
|
|
361
|
+
* with entries under breakpoint names that replace it from there up (`{ lg: { columns: 16 } }`).
|
|
362
|
+
* The gutter is the grid's own `gap` / `columnGap`.
|
|
353
363
|
*/
|
|
354
364
|
interface LayoutGridProps<ThemeType extends Theme = RequiredTheme> {
|
|
355
365
|
layout?: boolean | (LayoutGridEntryProps<ThemeType> & { [key in BreakpointName<ThemeType>]?: LayoutGridEntryProps<ThemeType>; });
|
|
356
366
|
}
|
|
357
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Not in upstream styled-system: how many columns of a grid the element takes, or `'full'` for
|
|
369
|
+
* the whole row.
|
|
370
|
+
*/
|
|
358
371
|
interface SpanProps<ThemeType extends Theme = RequiredTheme> {
|
|
359
|
-
span?: ResponsiveValue<number, ThemeType>;
|
|
372
|
+
span?: ResponsiveValue<number | 'full', ThemeType>;
|
|
360
373
|
}
|
|
361
374
|
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> {}
|
|
362
375
|
interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
@@ -376,4 +389,4 @@ interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
376
389
|
colors?: ResponsiveValue<string, ThemeType>;
|
|
377
390
|
}
|
|
378
391
|
//#endregion
|
|
379
|
-
export { GridTemplateRowsProps as $, FlexDirectionProps as A,
|
|
392
|
+
export { GridTemplateRowsProps as $, FlexDirectionProps as A, TLengthStyledSystem as At, GapProps as B, TextShadowProps as Bt, ButtonStyleProps as C, RightProps as Ct, ContainerProps as D, SizeProps as Dt, ColumnGapProps as E, ShadowProps as Et, FlexboxProps as F, TextDecorationLineProps as Ft, GridColumnGapProps as G, TopProps as Gt, GridAutoColumnsProps as H, TextTransformProps as Ht, FontFamilyProps as I, TextDecorationProps as It, GridProps as J, WhiteSpaceProps as Jt, GridColumnProps as K, TypographyProps as Kt, FontSizeProps as L, TextDecorationStyleProps as Lt, FlexProps as M, TextAlignProps as Mt, FlexShrinkProps as N, TextColorProps as Nt, DisplayProps as O, SpaceProps as Ot, FlexWrapProps as P, TextDecorationColorProps as Pt, GridTemplateColumnsProps as Q, FontStyleProps as R, TextDecorationThicknessProps as Rt, BreakpointName as S, ResponsiveValue as St, ColorStyleProps as T, Scale as Tt, GridAutoFlowProps as U, Theme as Ut, GridAreaProps as V, TextStyleProps as Vt, GridAutoRowsProps as W, ThemeValue as Wt, GridRowProps as X, ZIndexProps as Xt, GridRowGapProps as Y, WidthProps as Yt, GridTemplateAreasProps as Z, BorderStyleProps as _, OrderProps as _t, BackgroundColorProps as a, LayoutGridProps as at, BottomProps as b, PositionProps as bt, BackgroundProps as c, LetterSpacingProps as ct, BorderBottomProps as d, MaxHeightProps as dt, HeightProps as et, BorderColorProps as f, MaxWidthProps as ft, BorderRightProps as g, OpacityProps as gt, BorderRadiusProps as h, ObjectOrArray as ht, AspectRatioProps as i, LayoutFrameProps as it, FlexGrowProps as j, TextAlignLastProps as jt, FlexBasisProps as k, SpanProps as kt, BackgroundRepeatProps as l, LineHeightProps as lt, BorderProps as m, MinWidthProps as mt, AlignItemsProps as n, JustifyItemsProps as nt, BackgroundImageProps as o, LayoutProps as ot, BorderLeftProps as p, MinHeightProps as pt, GridGapProps as q, VerticalAlignProps as qt, AlignSelfProps as r, JustifySelfProps as rt, BackgroundPositionProps as s, LeftProps as st, AlignContentProps as t, JustifyContentProps as tt, BackgroundSizeProps as u, MarginProps as ut, BorderTopProps as v, OverflowProps as vt, ColorProps as w, RowGapProps as wt, BoxShadowProps as x, RequiredTheme as xt, BorderWidthProps as y, PaddingProps as yt, FontWeightProps as z, TextOverflowProps as zt };
|
package/dist/typography.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as typography } from "./index-
|
|
1
|
+
import { I as FontFamilyProps, Jt as WhiteSpaceProps, Kt as TypographyProps, L as FontSizeProps, Mt as TextAlignProps, R as FontStyleProps, ct as LetterSpacingProps, lt as LineHeightProps, z as FontWeightProps, zt as TextOverflowProps } from "./types-Cl2haWqC.cjs";
|
|
2
|
+
import { t as typography } from "./index-C56_VCbD.cjs";
|
|
3
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-
|
|
1
|
+
import { I as FontFamilyProps, Jt as WhiteSpaceProps, Kt as TypographyProps, L as FontSizeProps, Mt as TextAlignProps, R as FontStyleProps, ct as LetterSpacingProps, lt as LineHeightProps, z as FontWeightProps, zt as TextOverflowProps } from "./types-Cl2haWqC.mjs";
|
|
2
|
+
import { t as typography } from "./index-BQUTi5eL.mjs";
|
|
3
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/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 { C as ButtonStyleProps, T as ColorStyleProps, Vt as TextStyleProps } from "./types-Cl2haWqC.cjs";
|
|
2
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BDUZ7qQu.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 { C as ButtonStyleProps, T as ColorStyleProps, Vt as TextStyleProps } from "./types-Cl2haWqC.mjs";
|
|
2
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-DYc5_RYF.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": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.3",
|
|
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",
|