@soroush.tech/styled-system 5.8.2 → 5.9.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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/core.cjs +17 -16
- package/dist/core.d.cts +3 -2
- package/dist/core.d.mts +3 -2
- package/dist/core.mjs +15 -16
- package/dist/{css-CeNnKyGm.cjs → css-BnnO16Cw.cjs} +3 -1
- package/dist/{css-BTuRmXCo.mjs → css-CunBKyMl.mjs} +3 -1
- package/dist/css.cjs +1 -1
- package/dist/css.d.cts +2 -1
- package/dist/css.d.mts +2 -1
- package/dist/css.mjs +1 -1
- package/dist/flexbox.d.cts +2 -2
- package/dist/flexbox.d.mts +2 -2
- package/dist/grid.d.cts +2 -2
- package/dist/grid.d.mts +2 -2
- package/dist/index-0k2kzlK5.d.cts +6 -0
- package/dist/{index-lMfmNFGL.d.mts → index-BKofCDzL.d.mts} +2 -2
- package/dist/index-BReBwT6c.d.mts +6 -0
- package/dist/{index-C0SM54dQ.d.cts → index-BXP1-da3.d.mts} +4 -3
- package/dist/{index-C0SM54dQ.d.mts → index-BYkO78Xl.d.cts} +4 -3
- package/dist/index-BhbWZw53.d.mts +6 -0
- package/dist/{index-BIbimgdO.d.mts → index-Bq7teef_.d.cts} +2 -2
- package/dist/index-C-B6-_Ku.d.mts +6 -0
- package/dist/index-C9CxJ5Zn.d.cts +6 -0
- package/dist/index-CIccdXWj.d.cts +6 -0
- package/dist/index-CJT-n3Vq.d.mts +6 -0
- package/dist/index-CcorN1bQ.d.mts +6 -0
- package/dist/index-Cd_CcxMh.d.cts +6 -0
- package/dist/index-Co0JY1hd.d.cts +6 -0
- package/dist/index-D9dwDAhC.d.mts +6 -0
- package/dist/index-DP40bJIa.d.cts +6 -0
- package/dist/index-DQhcFrR9.d.mts +6 -0
- package/dist/index-DcRfFIAZ.d.mts +6 -0
- package/dist/index-Dsc6RgbZ.d.cts +6 -0
- package/dist/{index-BB5onzAO.d.cts → index-DzcXmzdT.d.cts} +2 -2
- package/dist/index-Q8q5VND1.d.cts +6 -0
- package/dist/index-UGE-V15i.d.cts +6 -0
- package/dist/index-sk97pkUE.d.mts +6 -0
- package/dist/{index-BhQrpfIN.d.cts → index-wKeENlqd.d.mts} +2 -2
- package/dist/index.cjs +4 -1
- package/dist/index.d.cts +15 -14
- package/dist/index.d.mts +15 -14
- package/dist/index.mjs +3 -2
- package/dist/layout.d.cts +2 -2
- package/dist/layout.d.mts +2 -2
- package/dist/media-B8UpEDpY.mjs +18 -0
- package/dist/media-BoIPXBPV.cjs +29 -0
- package/dist/media-np0uvO4C.d.cts +14 -0
- package/dist/media-np0uvO4C.d.mts +14 -0
- package/dist/position.d.cts +2 -2
- package/dist/position.d.mts +2 -2
- package/dist/{presets-B2nFh_Zn.cjs → presets-CCvtQotd.cjs} +1 -1
- package/dist/{presets-Dg3yjRZU.mjs → presets-CV_TIXQ4.mjs} +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-BEHYHdIq.d.cts → types-B0SNbm6V.d.cts} +8 -5
- package/dist/{types-BEHYHdIq.d.mts → types-B0SNbm6V.d.mts} +8 -5
- package/dist/typography.d.cts +2 -2
- package/dist/typography.d.mts +2 -2
- package/dist/{variant-BSwNEY5l.cjs → variant-DdSForfI.cjs} +1 -1
- package/dist/{variant-NupmzzRg.mjs → variant-DfRW-ZJe.mjs} +1 -1
- package/dist/variant.cjs +1 -1
- package/dist/variant.d.cts +2 -2
- package/dist/variant.d.mts +2 -2
- package/dist/variant.mjs +1 -1
- package/package.json +5 -5
- package/dist/index-6v6ZPLqN.d.mts +0 -6
- package/dist/index-Br4itelo.d.cts +0 -6
- package/dist/index-Brk7KoTW.d.mts +0 -6
- package/dist/index-BwOWcSgh.d.cts +0 -6
- package/dist/index-BxEj-sWN.d.mts +0 -6
- package/dist/index-C-ZUVzJ7.d.mts +0 -6
- package/dist/index-C0U26AuK.d.cts +0 -6
- package/dist/index-C4mjv3ia.d.mts +0 -6
- package/dist/index-CA8D2_fO.d.mts +0 -6
- package/dist/index-CLPj_nlH.d.mts +0 -6
- package/dist/index-CSiiNuwr.d.cts +0 -6
- package/dist/index-DFHqxqDI.d.cts +0 -6
- package/dist/index-DPZut54X.d.cts +0 -6
- package/dist/index-Dj0F79Bp.d.mts +0 -6
- package/dist/index-KOeCRVqs.d.cts +0 -6
- package/dist/index-Lx-0Fn6T.d.cts +0 -6
- package/dist/index-P5vy3lm4.d.mts +0 -6
- package/dist/index-ogIIkqhV.d.cts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Parser } from "./index-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { a as Parser } from "./index-BXP1-da3.mjs";
|
|
2
|
+
import "./types-B0SNbm6V.mjs";
|
|
3
3
|
//#region src/space/space.d.ts
|
|
4
4
|
declare const margin: Parser;
|
|
5
5
|
declare const padding: Parser;
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_media = require("./media-BoIPXBPV.cjs");
|
|
2
3
|
const require_core = require("./core.cjs");
|
|
3
4
|
const require_background = require("./background-wugr6cG7.cjs");
|
|
4
5
|
const require_border = require("./border-UuT-fTpy.cjs");
|
|
@@ -10,7 +11,7 @@ const require_position = require("./position-zWvCE4hD.cjs");
|
|
|
10
11
|
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
11
12
|
const require_space = require("./space-Q-1mECZz.cjs");
|
|
12
13
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
13
|
-
const require_variant = require("./variant-
|
|
14
|
+
const require_variant = require("./variant-DdSForfI.cjs");
|
|
14
15
|
//#region src/style/style.ts
|
|
15
16
|
const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
|
|
16
17
|
const config = {};
|
|
@@ -125,10 +126,12 @@ exports.borderWidth = borderWidth;
|
|
|
125
126
|
exports.borders = require_border.border;
|
|
126
127
|
exports.bottom = bottom;
|
|
127
128
|
exports.boxShadow = require_shadow.shadow;
|
|
129
|
+
exports.breakpointQueries = require_media.breakpointQueries;
|
|
128
130
|
exports.buttonStyle = require_variant.buttonStyle;
|
|
129
131
|
exports.color = require_color.color;
|
|
130
132
|
exports.colorStyle = require_variant.colorStyle;
|
|
131
133
|
exports.compose = require_core.compose;
|
|
134
|
+
exports.createMediaQuery = require_media.createMediaQuery;
|
|
132
135
|
exports.createParser = require_core.createParser;
|
|
133
136
|
exports.createStyleFunction = require_core.createStyleFunction;
|
|
134
137
|
exports.display = display;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
1
|
+
import { n as breakpointQueries, r as createMediaQuery, t as Breakpoints } from "./media-np0uvO4C.cjs";
|
|
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-BYkO78Xl.cjs";
|
|
3
|
+
import { t as background } from "./index-Q8q5VND1.cjs";
|
|
4
|
+
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-B0SNbm6V.cjs";
|
|
5
|
+
import { t as border } from "./index-C9CxJ5Zn.cjs";
|
|
6
|
+
import { t as color } from "./index-Cd_CcxMh.cjs";
|
|
7
|
+
import { t as flexbox } from "./index-CIccdXWj.cjs";
|
|
8
|
+
import { t as grid } from "./index-0k2kzlK5.cjs";
|
|
9
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-Bq7teef_.cjs";
|
|
10
|
+
import { t as layout } from "./index-DP40bJIa.cjs";
|
|
11
|
+
import { t as typography } from "./index-UGE-V15i.cjs";
|
|
12
|
+
import { t as position } from "./index-Dsc6RgbZ.cjs";
|
|
13
|
+
import { t as shadow } from "./index-Co0JY1hd.cjs";
|
|
14
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-DzcXmzdT.cjs";
|
|
14
15
|
//#region src/style/style.d.ts
|
|
15
16
|
interface StyleOptions {
|
|
16
17
|
prop: string;
|
|
@@ -98,4 +99,4 @@ declare const right: Parser;
|
|
|
98
99
|
declare const bottom: Parser;
|
|
99
100
|
declare const left: Parser;
|
|
100
101
|
//#endregion
|
|
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 };
|
|
102
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, type Breakpoints, 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, breakpointQueries, buttonStyle, color, colorStyle, compose, 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, 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,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
1
|
+
import { n as breakpointQueries, r as createMediaQuery, t as Breakpoints } from "./media-np0uvO4C.mjs";
|
|
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-BXP1-da3.mjs";
|
|
3
|
+
import { t as background } from "./index-C-B6-_Ku.mjs";
|
|
4
|
+
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-B0SNbm6V.mjs";
|
|
5
|
+
import { t as border } from "./index-D9dwDAhC.mjs";
|
|
6
|
+
import { t as color } from "./index-CJT-n3Vq.mjs";
|
|
7
|
+
import { t as flexbox } from "./index-DcRfFIAZ.mjs";
|
|
8
|
+
import { t as grid } from "./index-DQhcFrR9.mjs";
|
|
9
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-wKeENlqd.mjs";
|
|
10
|
+
import { t as layout } from "./index-sk97pkUE.mjs";
|
|
11
|
+
import { t as typography } from "./index-BReBwT6c.mjs";
|
|
12
|
+
import { t as position } from "./index-BhbWZw53.mjs";
|
|
13
|
+
import { t as shadow } from "./index-CcorN1bQ.mjs";
|
|
14
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BKofCDzL.mjs";
|
|
14
15
|
//#region src/style/style.d.ts
|
|
15
16
|
interface StyleOptions {
|
|
16
17
|
prop: string;
|
|
@@ -98,4 +99,4 @@ declare const right: Parser;
|
|
|
98
99
|
declare const bottom: Parser;
|
|
99
100
|
declare const left: Parser;
|
|
100
101
|
//#endregion
|
|
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 };
|
|
102
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, AspectRatioProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, type Breakpoints, 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, breakpointQueries, buttonStyle, color, colorStyle, compose, 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, 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as createMediaQuery, t as breakpointQueries } from "./media-B8UpEDpY.mjs";
|
|
1
2
|
import { compose, createParser, createStyleFunction, get, system } from "./core.mjs";
|
|
2
3
|
import { t as background } from "./background-B-jql3jb.mjs";
|
|
3
4
|
import { t as border } from "./border-Dder4Dhp.mjs";
|
|
@@ -9,7 +10,7 @@ import { t as position } from "./position-jf6VlRyR.mjs";
|
|
|
9
10
|
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
10
11
|
import { i as space, n as margin, r as padding, t as gap } from "./space-Df3n3G6a.mjs";
|
|
11
12
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
12
|
-
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
13
|
+
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DfRW-ZJe.mjs";
|
|
13
14
|
//#region src/style/style.ts
|
|
14
15
|
const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
|
|
15
16
|
const config = {};
|
|
@@ -104,4 +105,4 @@ const right = positionFns.right;
|
|
|
104
105
|
const bottom = positionFns.bottom;
|
|
105
106
|
const left = positionFns.left;
|
|
106
107
|
//#endregion
|
|
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 };
|
|
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, 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, 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.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
2
|
-
import { t as layout } from "./index-
|
|
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-B0SNbm6V.cjs";
|
|
2
|
+
import { t as layout } from "./index-DP40bJIa.cjs";
|
|
3
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 { 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-
|
|
2
|
-
import { t as layout } from "./index-
|
|
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-B0SNbm6V.mjs";
|
|
2
|
+
import { t as layout } from "./index-sk97pkUE.mjs";
|
|
3
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 };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/core/media.ts
|
|
2
|
+
const isLength = (value) => /^[\d.+-]|^(calc|min|max|clamp)\(/.test(value);
|
|
3
|
+
/**
|
|
4
|
+
* The `@media` rule for one breakpoint value. A length is a min-width (a number
|
|
5
|
+
* gets `px`); a string starting with `@media` is used as written; anything else
|
|
6
|
+
* is a media query list - a condition like `(600px <= width < 1200px)` or
|
|
7
|
+
* `(orientation: landscape)`, or a media type - and follows `@media `.
|
|
8
|
+
*/
|
|
9
|
+
const createMediaQuery = (value) => {
|
|
10
|
+
if (typeof value === "number") return `@media screen and (min-width: ${value}px)`;
|
|
11
|
+
if (value.startsWith("@media")) return value;
|
|
12
|
+
if (isLength(value)) return `@media screen and (min-width: ${value})`;
|
|
13
|
+
return `@media ${value}`;
|
|
14
|
+
};
|
|
15
|
+
/** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
|
|
16
|
+
const breakpointQueries = (breakpoints) => Object.entries(breakpoints).map(([key, value]) => [key, createMediaQuery(value)]);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { createMediaQuery as n, breakpointQueries as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/core/media.ts
|
|
2
|
+
const isLength = (value) => /^[\d.+-]|^(calc|min|max|clamp)\(/.test(value);
|
|
3
|
+
/**
|
|
4
|
+
* The `@media` rule for one breakpoint value. A length is a min-width (a number
|
|
5
|
+
* gets `px`); a string starting with `@media` is used as written; anything else
|
|
6
|
+
* is a media query list - a condition like `(600px <= width < 1200px)` or
|
|
7
|
+
* `(orientation: landscape)`, or a media type - and follows `@media `.
|
|
8
|
+
*/
|
|
9
|
+
const createMediaQuery = (value) => {
|
|
10
|
+
if (typeof value === "number") return `@media screen and (min-width: ${value}px)`;
|
|
11
|
+
if (value.startsWith("@media")) return value;
|
|
12
|
+
if (isLength(value)) return `@media screen and (min-width: ${value})`;
|
|
13
|
+
return `@media ${value}`;
|
|
14
|
+
};
|
|
15
|
+
/** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
|
|
16
|
+
const breakpointQueries = (breakpoints) => Object.entries(breakpoints).map(([key, value]) => [key, createMediaQuery(value)]);
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, "breakpointQueries", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return breakpointQueries;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "createMediaQuery", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function() {
|
|
27
|
+
return createMediaQuery;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/core/media.d.ts
|
|
2
|
+
/** `theme.breakpoints`: an ascending list, or named breakpoints in their declared order. */
|
|
3
|
+
type Breakpoints = readonly (string | number)[] | Record<string, string | number>;
|
|
4
|
+
/**
|
|
5
|
+
* The `@media` rule for one breakpoint value. A length is a min-width (a number
|
|
6
|
+
* gets `px`); a string starting with `@media` is used as written; anything else
|
|
7
|
+
* is a media query list - a condition like `(600px <= width < 1200px)` or
|
|
8
|
+
* `(orientation: landscape)`, or a media type - and follows `@media `.
|
|
9
|
+
*/
|
|
10
|
+
declare const createMediaQuery: (value: string | number) => string;
|
|
11
|
+
/** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
|
|
12
|
+
declare const breakpointQueries: (breakpoints: Breakpoints) => [string, string][];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { breakpointQueries as n, createMediaQuery as r, Breakpoints as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/core/media.d.ts
|
|
2
|
+
/** `theme.breakpoints`: an ascending list, or named breakpoints in their declared order. */
|
|
3
|
+
type Breakpoints = readonly (string | number)[] | Record<string, string | number>;
|
|
4
|
+
/**
|
|
5
|
+
* The `@media` rule for one breakpoint value. A length is a min-width (a number
|
|
6
|
+
* gets `px`); a string starting with `@media` is used as written; anything else
|
|
7
|
+
* is a media query list - a condition like `(600px <= width < 1200px)` or
|
|
8
|
+
* `(orientation: landscape)`, or a media type - and follows `@media `.
|
|
9
|
+
*/
|
|
10
|
+
declare const createMediaQuery: (value: string | number) => string;
|
|
11
|
+
/** Each breakpoint's `@media` rule, in declared order, keyed by its name (or array index). */
|
|
12
|
+
declare const breakpointQueries: (breakpoints: Breakpoints) => [string, string][];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { breakpointQueries as n, createMediaQuery as r, Breakpoints as t };
|
package/dist/position.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Bt as TopProps, Gt as ZIndexProps, b as BottomProps, gt as PositionProps, rt as LeftProps, yt as RightProps } from "./types-
|
|
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-B0SNbm6V.cjs";
|
|
2
|
+
import { t as position } from "./index-Dsc6RgbZ.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 { Bt as TopProps, Gt as ZIndexProps, b as BottomProps, gt as PositionProps, rt as LeftProps, yt as RightProps } from "./types-
|
|
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-B0SNbm6V.mjs";
|
|
2
|
+
import { t as position } from "./index-BhbWZw53.mjs";
|
|
3
3
|
export { type BottomProps, type LeftProps, type PositionProps, type RightProps, type TopProps, type ZIndexProps, position as default, position };
|
|
@@ -9,7 +9,7 @@ const require_position = require("./position-zWvCE4hD.cjs");
|
|
|
9
9
|
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
10
10
|
const require_space = require("./space-Q-1mECZz.cjs");
|
|
11
11
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
12
|
-
const require_variant = require("./variant-
|
|
12
|
+
const require_variant = require("./variant-DdSForfI.cjs");
|
|
13
13
|
//#region src/presets/presets.ts
|
|
14
14
|
const all = require_core.compose(require_space.space, require_typography.typography, require_color.color, require_layout.layout, require_flexbox.flexbox, require_border.border, require_background.background, require_position.position, require_grid.grid, require_shadow.shadow, require_variant.buttonStyle, require_variant.textStyle, require_variant.colorStyle);
|
|
15
15
|
//#endregion
|
|
@@ -9,7 +9,7 @@ import { t as position } from "./position-jf6VlRyR.mjs";
|
|
|
9
9
|
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
10
10
|
import { i as space } from "./space-Df3n3G6a.mjs";
|
|
11
11
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
12
|
-
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
12
|
+
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DfRW-ZJe.mjs";
|
|
13
13
|
//#region src/presets/presets.ts
|
|
14
14
|
const all = compose(space, typography, color, layout, flexbox, border, background, position, grid, shadow, buttonStyle, textStyle, colorStyle);
|
|
15
15
|
//#endregion
|
package/dist/prop-types.cjs
CHANGED
|
@@ -13,7 +13,7 @@ const require_position = require("./position-zWvCE4hD.cjs");
|
|
|
13
13
|
const require_typography = require("./typography-7jHZXqtc.cjs");
|
|
14
14
|
const require_space = require("./space-Q-1mECZz.cjs");
|
|
15
15
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
16
|
-
const require_variant = require("./variant-
|
|
16
|
+
const require_variant = require("./variant-DdSForfI.cjs");
|
|
17
17
|
let prop_types = require("prop-types");
|
|
18
18
|
prop_types = require_rolldown_runtime.__toESM(prop_types, 1);
|
|
19
19
|
//#region src/prop-types/prop-types.ts
|
package/dist/prop-types.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { t as position } from "./position-jf6VlRyR.mjs";
|
|
|
8
8
|
import { t as typography } from "./typography-p6qWP6Px.mjs";
|
|
9
9
|
import { i as space } from "./space-Df3n3G6a.mjs";
|
|
10
10
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
11
|
-
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
11
|
+
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DfRW-ZJe.mjs";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
//#region src/prop-types/prop-types.ts
|
|
14
14
|
const propType = PropTypes.oneOfType([
|
package/dist/props.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_presets = require("./presets-
|
|
2
|
+
const require_presets = require("./presets-CCvtQotd.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 { Ft as TextShadowProps, St as ShadowProps, x as BoxShadowProps } from "./types-
|
|
2
|
-
import { t as shadow } from "./index-
|
|
1
|
+
import { Ft as TextShadowProps, St as ShadowProps, x as BoxShadowProps } from "./types-B0SNbm6V.cjs";
|
|
2
|
+
import { t as shadow } from "./index-Co0JY1hd.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 { Ft as TextShadowProps, St as ShadowProps, x as BoxShadowProps } from "./types-
|
|
2
|
-
import { t as shadow } from "./index-
|
|
1
|
+
import { Ft as TextShadowProps, St as ShadowProps, x as BoxShadowProps } from "./types-B0SNbm6V.mjs";
|
|
2
|
+
import { t as shadow } from "./index-CcorN1bQ.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-CCvtQotd.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 { R as GapProps, T as ColumnGapProps, bt as RowGapProps, ht as PaddingProps, ot as MarginProps, wt as SpaceProps } from "./types-
|
|
2
|
-
import { i as space, n as margin, r as padding, t as gap } from "./index-
|
|
1
|
+
import { R as GapProps, T as ColumnGapProps, bt as RowGapProps, ht as PaddingProps, ot as MarginProps, wt as SpaceProps } from "./types-B0SNbm6V.cjs";
|
|
2
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-Bq7teef_.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 { R as GapProps, T as ColumnGapProps, bt as RowGapProps, ht as PaddingProps, ot as MarginProps, wt as SpaceProps } from "./types-
|
|
2
|
-
import { i as space, n as margin, r as padding, t as gap } from "./index-
|
|
1
|
+
import { R as GapProps, T as ColumnGapProps, bt as RowGapProps, ht as PaddingProps, ot as MarginProps, wt as SpaceProps } from "./types-B0SNbm6V.mjs";
|
|
2
|
+
import { i as space, n as margin, r as padding, t as gap } from "./index-wKeENlqd.mjs";
|
|
3
3
|
export { type ColumnGapProps, type GapProps, type MarginProps, type PaddingProps, type RowGapProps, type SpaceProps, space as default, space, gap, margin, padding };
|
|
@@ -28,7 +28,10 @@ interface Theme<TLength = TLengthStyledSystem> {
|
|
|
28
28
|
}
|
|
29
29
|
type RequiredTheme = Required<Theme>;
|
|
30
30
|
type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
|
|
31
|
-
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T; }
|
|
31
|
+
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | ({ [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T; } & {
|
|
32
|
+
/** The value below the first breakpoint. */
|
|
33
|
+
_?: T;
|
|
34
|
+
});
|
|
32
35
|
interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
33
36
|
m?: ResponsiveValue<TVal, ThemeType>;
|
|
34
37
|
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
@@ -61,15 +64,15 @@ interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValu
|
|
|
61
64
|
py?: ResponsiveValue<TVal, ThemeType>;
|
|
62
65
|
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
63
66
|
}
|
|
64
|
-
/** Not in upstream styled-system
|
|
67
|
+
/** Not in upstream styled-system - it only ever scaled the grid-prefixed gaps. */
|
|
65
68
|
interface GapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
66
69
|
gap?: ResponsiveValue<TVal, ThemeType>;
|
|
67
70
|
}
|
|
68
|
-
/** Not in upstream styled-system
|
|
71
|
+
/** Not in upstream styled-system - it only ever scaled the grid-prefixed gaps. */
|
|
69
72
|
interface RowGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
70
73
|
rowGap?: ResponsiveValue<TVal, ThemeType>;
|
|
71
74
|
}
|
|
72
|
-
/** Not in upstream styled-system
|
|
75
|
+
/** Not in upstream styled-system - it only ever scaled the grid-prefixed gaps. */
|
|
73
76
|
interface ColumnGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
74
77
|
columnGap?: ResponsiveValue<TVal, ThemeType>;
|
|
75
78
|
}
|
|
@@ -106,7 +109,7 @@ interface OverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
106
109
|
interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.VerticalAlign<TLengthStyledSystem>> {
|
|
107
110
|
verticalAlign?: ResponsiveValue<TVal, ThemeType>;
|
|
108
111
|
}
|
|
109
|
-
/** Not in upstream styled-system
|
|
112
|
+
/** Not in upstream styled-system - its last release predates CSS `aspect-ratio`. */
|
|
110
113
|
interface AspectRatioProps<ThemeType extends Theme = RequiredTheme> {
|
|
111
114
|
aspectRatio?: ResponsiveValue<CSS.Property.AspectRatio, ThemeType>;
|
|
112
115
|
}
|
|
@@ -28,7 +28,10 @@ interface Theme<TLength = TLengthStyledSystem> {
|
|
|
28
28
|
}
|
|
29
29
|
type RequiredTheme = Required<Theme>;
|
|
30
30
|
type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
|
|
31
|
-
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T; }
|
|
31
|
+
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | ({ [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T; } & {
|
|
32
|
+
/** The value below the first breakpoint. */
|
|
33
|
+
_?: T;
|
|
34
|
+
});
|
|
32
35
|
interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
33
36
|
m?: ResponsiveValue<TVal, ThemeType>;
|
|
34
37
|
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
@@ -61,15 +64,15 @@ interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValu
|
|
|
61
64
|
py?: ResponsiveValue<TVal, ThemeType>;
|
|
62
65
|
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
63
66
|
}
|
|
64
|
-
/** Not in upstream styled-system
|
|
67
|
+
/** Not in upstream styled-system - it only ever scaled the grid-prefixed gaps. */
|
|
65
68
|
interface GapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
66
69
|
gap?: ResponsiveValue<TVal, ThemeType>;
|
|
67
70
|
}
|
|
68
|
-
/** Not in upstream styled-system
|
|
71
|
+
/** Not in upstream styled-system - it only ever scaled the grid-prefixed gaps. */
|
|
69
72
|
interface RowGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
70
73
|
rowGap?: ResponsiveValue<TVal, ThemeType>;
|
|
71
74
|
}
|
|
72
|
-
/** Not in upstream styled-system
|
|
75
|
+
/** Not in upstream styled-system - it only ever scaled the grid-prefixed gaps. */
|
|
73
76
|
interface ColumnGapProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
74
77
|
columnGap?: ResponsiveValue<TVal, ThemeType>;
|
|
75
78
|
}
|
|
@@ -106,7 +109,7 @@ interface OverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
106
109
|
interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.VerticalAlign<TLengthStyledSystem>> {
|
|
107
110
|
verticalAlign?: ResponsiveValue<TVal, ThemeType>;
|
|
108
111
|
}
|
|
109
|
-
/** Not in upstream styled-system
|
|
112
|
+
/** Not in upstream styled-system - its last release predates CSS `aspect-ratio`. */
|
|
110
113
|
interface AspectRatioProps<ThemeType extends Theme = RequiredTheme> {
|
|
111
114
|
aspectRatio?: ResponsiveValue<CSS.Property.AspectRatio, ThemeType>;
|
|
112
115
|
}
|
package/dist/typography.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
2
|
-
import { t as typography } from "./index-
|
|
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-B0SNbm6V.cjs";
|
|
2
|
+
import { t as typography } from "./index-UGE-V15i.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 { 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-
|
|
2
|
-
import { t as typography } from "./index-
|
|
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-B0SNbm6V.mjs";
|
|
2
|
+
import { t as typography } from "./index-BReBwT6c.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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_core = require("./core.cjs");
|
|
2
|
-
const require_css = require("./css-
|
|
2
|
+
const require_css = require("./css-BnnO16Cw.cjs");
|
|
3
3
|
//#region src/variant/variant.ts
|
|
4
4
|
const variant = (options = {}) => {
|
|
5
5
|
const { scale, prop = "variant", variants = {}, key } = options;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createParser, get } from "./core.mjs";
|
|
2
|
-
import { t as css } from "./css-
|
|
2
|
+
import { t as css } from "./css-CunBKyMl.mjs";
|
|
3
3
|
//#region src/variant/variant.ts
|
|
4
4
|
const variant = (options = {}) => {
|
|
5
5
|
const { scale, prop = "variant", variants = {}, key } = options;
|
package/dist/variant.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_variant = require("./variant-
|
|
5
|
+
const require_variant = require("./variant-DdSForfI.cjs");
|
|
6
6
|
exports.buttonStyle = require_variant.buttonStyle;
|
|
7
7
|
exports.colorStyle = require_variant.colorStyle;
|
|
8
8
|
exports.default = require_variant.variant;
|
package/dist/variant.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { It as TextStyleProps, S as ButtonStyleProps, w as ColorStyleProps } from "./types-
|
|
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-B0SNbm6V.cjs";
|
|
2
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-DzcXmzdT.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 { It as TextStyleProps, S as ButtonStyleProps, w as ColorStyleProps } from "./types-
|
|
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-B0SNbm6V.mjs";
|
|
2
|
+
import { a as textStyle, i as colorStyle, n as VariantOptions, o as variant, r as buttonStyle, t as VariantArgs } from "./index-BKofCDzL.mjs";
|
|
3
3
|
export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantArgs, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
|
package/dist/variant.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
1
|
+
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DfRW-ZJe.mjs";
|
|
2
2
|
export { buttonStyle, colorStyle, variant as default, variant, textStyle };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soroush.tech/styled-system",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "Maintained, first-class-TypeScript rewrite of styled-system
|
|
3
|
+
"version": "5.9.0-alpha.0",
|
|
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",
|
|
7
7
|
"css-in-js",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"homepage": "https://soroush.tech/styled-system/",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/soroush-tech/
|
|
19
|
+
"url": "git+https://github.com/soroush-tech/design-system.git",
|
|
20
20
|
"directory": "packages/styled-system"
|
|
21
21
|
},
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/soroush-tech/
|
|
23
|
+
"url": "https://github.com/soroush-tech/design-system/issues"
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"sideEffects": false,
|
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
},
|
|
234
234
|
"devDependencies": {
|
|
235
235
|
"@emotion/is-prop-valid": "^1.4.0",
|
|
236
|
+
"@soroush.tech/bench": "^2.2.3",
|
|
236
237
|
"@types/prop-types": "^15.7.15",
|
|
237
238
|
"@vitest/coverage-v8": "^4.1.10",
|
|
238
239
|
"oxlint": "^1.78.0",
|
|
@@ -240,7 +241,6 @@
|
|
|
240
241
|
"tsdown": "^0.22.14",
|
|
241
242
|
"typescript": "~7.0.2",
|
|
242
243
|
"vitest": "^4.1.10",
|
|
243
|
-
"@soroush.tech/bench": "2.2.2",
|
|
244
244
|
"@soroush.tech/eslint-config": "0.0.0"
|
|
245
245
|
},
|
|
246
246
|
"scripts": {
|