@soroush.tech/styled-system 5.1.6 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/background.d.cts +3 -2
- package/dist/background.d.mts +3 -2
- package/dist/border.d.cts +3 -2
- package/dist/border.d.mts +3 -2
- package/dist/color.d.cts +3 -2
- package/dist/color.d.mts +3 -2
- package/dist/core.cjs +19 -11
- package/dist/core.d.cts +1 -1
- package/dist/core.d.mts +1 -1
- package/dist/core.mjs +19 -11
- package/dist/{css-nzeM_Xnf.cjs → css-BQ6QmZDs.cjs} +3 -3
- package/dist/{css-rLZ9Oeye.mjs → css-DPyZNAmX.mjs} +3 -3
- package/dist/css.cjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/flexbox.d.cts +3 -2
- package/dist/flexbox.d.mts +3 -2
- package/dist/grid.d.cts +3 -2
- package/dist/grid.d.mts +3 -2
- package/dist/{index-C3_fScux.d.mts → index--0QXsrzB.d.mts} +1 -2
- package/dist/{index-BBTVE4EM.d.mts → index-5FNmSnEI.d.cts} +1 -2
- package/dist/{index-50KH4Mo7.d.cts → index-B4DiqzRr.d.cts} +1 -2
- package/dist/{index-9ZhIewzy.d.mts → index-BDKAW1u8.d.mts} +1 -2
- package/dist/{index-DZaFk5pk.d.cts → index-BFzj-f22.d.cts} +1 -2
- package/dist/{index-Nc-10syf.d.cts → index-BPHA_boa.d.mts} +1 -2
- package/dist/{index-CX2jWEGJ.d.mts → index-Bd7E_7bm.d.cts} +1 -2
- package/dist/{index-C13YRARN.d.mts → index-BrXslH97.d.cts} +1 -2
- package/dist/index-BvNoOnuk.d.mts +5 -0
- package/dist/{index-D8EyRZ5p.d.cts → index-C6pWum7i.d.cts} +1 -1
- package/dist/{index-D8EyRZ5p.d.mts → index-C6pWum7i.d.mts} +1 -1
- package/dist/index-CTguR0fU.d.cts +6 -0
- package/dist/index-C_ikENGU.d.mts +6 -0
- package/dist/{index-8PSQ0vkP.d.cts → index-CeQ5ox80.d.mts} +1 -2
- package/dist/{index-CrUx2vIP.d.mts → index-Cq-vX0It.d.mts} +1 -2
- package/dist/{index-CsS_gcI9.d.mts → index-CuQx9h4Q.d.cts} +1 -2
- package/dist/{index-DPWkvooj.d.mts → index-CvbdNFVK.d.cts} +1 -2
- package/dist/{index-BS9GuhQN.d.cts → index-D7-Ctdwn.d.mts} +1 -2
- package/dist/index-D9W3cc9s.d.mts +5 -0
- package/dist/{index-Bx7IxKu-.d.mts → index-DLcnFzWU.d.mts} +1 -2
- package/dist/{index-z86wOHTb.d.cts → index-DS-HZ740.d.cts} +1 -2
- package/dist/index-Dxn97XnB.d.cts +5 -0
- package/dist/{index-BoMacn6F.d.cts → index-Dz8xde7b.d.cts} +1 -2
- package/dist/{index-CarHCWLQ.d.cts → index-DzPnzx9p.d.mts} +1 -2
- package/dist/{index-DVR6hZCd.d.cts → index-F79chYlR.d.mts} +1 -2
- package/dist/index-HNU5ME-U.d.cts +5 -0
- package/dist/index.cjs +5 -3
- package/dist/index.d.cts +15 -196
- package/dist/index.d.mts +15 -196
- package/dist/index.mjs +5 -4
- package/dist/{layout-TqD8vcEl.mjs → layout-Dx0Un_6l.mjs} +1 -1
- package/dist/{layout-B1-2dfQ9.cjs → layout-JlwVxg8y.cjs} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +3 -2
- package/dist/layout.d.mts +3 -2
- package/dist/layout.mjs +1 -1
- package/dist/position.d.cts +3 -2
- package/dist/position.d.mts +3 -2
- package/dist/{presets-DlUVOAIL.cjs → presets-BgKBhlRl.cjs} +3 -3
- package/dist/{presets-DjaCx0dm.mjs → presets-CcKoA0BA.mjs} +3 -3
- package/dist/props.cjs +4 -4
- package/dist/props.mjs +4 -4
- package/dist/shadow.d.cts +3 -2
- package/dist/shadow.d.mts +3 -2
- package/dist/should-forward-prop.cjs +3 -3
- package/dist/should-forward-prop.mjs +3 -3
- package/dist/{space-C14uiNpw.cjs → space-CAX_62yL.cjs} +1 -1
- package/dist/{space-CNrX-zoo.mjs → space-DEf9-0r9.mjs} +1 -1
- package/dist/space.cjs +1 -1
- package/dist/space.d.cts +3 -2
- package/dist/space.d.mts +3 -2
- package/dist/space.mjs +1 -1
- package/dist/theme-get-CwPt9eDy.mjs +5 -0
- package/dist/theme-get-D0fH7Jrd.cjs +10 -0
- package/dist/theme-get.cjs +3 -6
- package/dist/theme-get.d.cts +1 -5
- package/dist/theme-get.d.mts +1 -5
- package/dist/theme-get.mjs +1 -4
- package/dist/types-CCujn9-2.d.cts +304 -0
- package/dist/types-CCujn9-2.d.mts +304 -0
- package/dist/typography.d.cts +3 -2
- package/dist/typography.d.mts +3 -2
- package/dist/{variant-ChsBzwrI.cjs → variant-C7vPzZHo.cjs} +1 -1
- package/dist/{variant-CWUfe1Cc.mjs → variant-DQA9pqwW.mjs} +1 -1
- package/dist/variant.cjs +1 -1
- package/dist/variant.d.cts +3 -2
- package/dist/variant.d.mts +3 -2
- package/dist/variant.mjs +1 -1
- package/package.json +186 -207
- package/dist/index-Ce09s0FQ.d.cts +0 -6
- package/dist/index-D3t1Lyte.d.mts +0 -6
- package/dist/index-J3PebPto.d.mts +0 -6
- package/dist/index-j3E1mxCg.d.cts +0 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, i as ParserConfig, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, u as Transform } from "./index-
|
|
2
|
-
import { t as background } from "./index-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
1
|
+
import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, i as ParserConfig, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, u as Transform } from "./index-C6pWum7i.cjs";
|
|
2
|
+
import { t as background } from "./index-BFzj-f22.cjs";
|
|
3
|
+
import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CCujn9-2.cjs";
|
|
4
|
+
import { t as border } from "./index-Dz8xde7b.cjs";
|
|
5
|
+
import { t as color } from "./index-Dxn97XnB.cjs";
|
|
6
|
+
import { t as flexbox } from "./index-Bd7E_7bm.cjs";
|
|
7
|
+
import { t as grid } from "./index-HNU5ME-U.cjs";
|
|
8
|
+
import { n as padding, r as space, t as margin } from "./index-B4DiqzRr.cjs";
|
|
9
|
+
import { t as layout } from "./index-CuQx9h4Q.cjs";
|
|
10
|
+
import { t as typography } from "./index-BrXslH97.cjs";
|
|
11
|
+
import { t as position } from "./index-DS-HZ740.cjs";
|
|
12
|
+
import { t as shadow } from "./index-CvbdNFVK.cjs";
|
|
13
|
+
import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle } from "./index-5FNmSnEI.cjs";
|
|
14
|
+
import { t as themeGet } from "./index-CTguR0fU.cjs";
|
|
14
15
|
|
|
15
16
|
//#region src/style/style.d.ts
|
|
16
17
|
interface StyleOptions {
|
|
@@ -32,188 +33,6 @@ declare const style: ({
|
|
|
32
33
|
properties
|
|
33
34
|
}: StyleOptions) => Parser;
|
|
34
35
|
//#endregion
|
|
35
|
-
//#region src/types.d.ts
|
|
36
|
-
type ObjectOrArray<T, K extends keyof never = keyof never> = T[] | Record<K, T | Record<K, T> | T[]>;
|
|
37
|
-
type Scale = ObjectOrArray<number | string>;
|
|
38
|
-
type TLengthStyledSystem = string | 0 | number;
|
|
39
|
-
interface Theme<TLength = TLengthStyledSystem> {
|
|
40
|
-
breakpoints?: ObjectOrArray<number | string | symbol>;
|
|
41
|
-
mediaQueries?: {
|
|
42
|
-
[size: string]: string;
|
|
43
|
-
};
|
|
44
|
-
space?: ObjectOrArray<CSS.Property.Margin<number | string>>;
|
|
45
|
-
fontSizes?: ObjectOrArray<CSS.Property.FontSize<number>>;
|
|
46
|
-
colors?: ObjectOrArray<CSS.Property.Color>;
|
|
47
|
-
fonts?: ObjectOrArray<CSS.Property.FontFamily>;
|
|
48
|
-
fontWeights?: ObjectOrArray<CSS.Property.FontWeight>;
|
|
49
|
-
lineHeights?: ObjectOrArray<CSS.Property.LineHeight<TLength>>;
|
|
50
|
-
letterSpacings?: ObjectOrArray<CSS.Property.LetterSpacing<TLength>>;
|
|
51
|
-
sizes?: ObjectOrArray<CSS.Property.Height<object> | CSS.Property.Width<object>>;
|
|
52
|
-
borders?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
53
|
-
borderStyles?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
54
|
-
borderWidths?: ObjectOrArray<CSS.Property.BorderWidth<TLength>>;
|
|
55
|
-
radii?: ObjectOrArray<CSS.Property.BorderRadius<TLength>>;
|
|
56
|
-
shadows?: ObjectOrArray<CSS.Property.BoxShadow>;
|
|
57
|
-
zIndices?: ObjectOrArray<CSS.Property.ZIndex>;
|
|
58
|
-
buttons?: ObjectOrArray<CSS.StandardProperties>;
|
|
59
|
-
colorStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
60
|
-
textStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
61
|
-
}
|
|
62
|
-
type RequiredTheme = Required<Theme>;
|
|
63
|
-
type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = unknown> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
|
|
64
|
-
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T };
|
|
65
|
-
type L = TLengthStyledSystem;
|
|
66
|
-
interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
67
|
-
m?: ResponsiveValue<TVal, ThemeType>;
|
|
68
|
-
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
69
|
-
mt?: ResponsiveValue<TVal, ThemeType>;
|
|
70
|
-
marginTop?: ResponsiveValue<TVal, ThemeType>;
|
|
71
|
-
mr?: ResponsiveValue<TVal, ThemeType>;
|
|
72
|
-
marginRight?: ResponsiveValue<TVal, ThemeType>;
|
|
73
|
-
mb?: ResponsiveValue<TVal, ThemeType>;
|
|
74
|
-
marginBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
75
|
-
ml?: ResponsiveValue<TVal, ThemeType>;
|
|
76
|
-
marginLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
77
|
-
mx?: ResponsiveValue<TVal, ThemeType>;
|
|
78
|
-
marginX?: ResponsiveValue<TVal, ThemeType>;
|
|
79
|
-
my?: ResponsiveValue<TVal, ThemeType>;
|
|
80
|
-
marginY?: ResponsiveValue<TVal, ThemeType>;
|
|
81
|
-
p?: ResponsiveValue<TVal, ThemeType>;
|
|
82
|
-
padding?: ResponsiveValue<TVal, ThemeType>;
|
|
83
|
-
pt?: ResponsiveValue<TVal, ThemeType>;
|
|
84
|
-
paddingTop?: ResponsiveValue<TVal, ThemeType>;
|
|
85
|
-
pr?: ResponsiveValue<TVal, ThemeType>;
|
|
86
|
-
paddingRight?: ResponsiveValue<TVal, ThemeType>;
|
|
87
|
-
pb?: ResponsiveValue<TVal, ThemeType>;
|
|
88
|
-
paddingBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
89
|
-
pl?: ResponsiveValue<TVal, ThemeType>;
|
|
90
|
-
paddingLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
91
|
-
px?: ResponsiveValue<TVal, ThemeType>;
|
|
92
|
-
paddingX?: ResponsiveValue<TVal, ThemeType>;
|
|
93
|
-
py?: ResponsiveValue<TVal, ThemeType>;
|
|
94
|
-
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
95
|
-
}
|
|
96
|
-
interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
97
|
-
m?: ResponsiveValue<TVal, ThemeType>;
|
|
98
|
-
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
99
|
-
mt?: ResponsiveValue<TVal, ThemeType>;
|
|
100
|
-
marginTop?: ResponsiveValue<TVal, ThemeType>;
|
|
101
|
-
mr?: ResponsiveValue<TVal, ThemeType>;
|
|
102
|
-
marginRight?: ResponsiveValue<TVal, ThemeType>;
|
|
103
|
-
mb?: ResponsiveValue<TVal, ThemeType>;
|
|
104
|
-
marginBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
105
|
-
ml?: ResponsiveValue<TVal, ThemeType>;
|
|
106
|
-
marginLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
107
|
-
mx?: ResponsiveValue<TVal, ThemeType>;
|
|
108
|
-
marginX?: ResponsiveValue<TVal, ThemeType>;
|
|
109
|
-
my?: ResponsiveValue<TVal, ThemeType>;
|
|
110
|
-
marginY?: ResponsiveValue<TVal, ThemeType>;
|
|
111
|
-
}
|
|
112
|
-
interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
113
|
-
p?: ResponsiveValue<TVal, ThemeType>;
|
|
114
|
-
padding?: ResponsiveValue<TVal, ThemeType>;
|
|
115
|
-
pt?: ResponsiveValue<TVal, ThemeType>;
|
|
116
|
-
paddingTop?: ResponsiveValue<TVal, ThemeType>;
|
|
117
|
-
pr?: ResponsiveValue<TVal, ThemeType>;
|
|
118
|
-
paddingRight?: ResponsiveValue<TVal, ThemeType>;
|
|
119
|
-
pb?: ResponsiveValue<TVal, ThemeType>;
|
|
120
|
-
paddingBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
121
|
-
pl?: ResponsiveValue<TVal, ThemeType>;
|
|
122
|
-
paddingLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
123
|
-
px?: ResponsiveValue<TVal, ThemeType>;
|
|
124
|
-
paddingX?: ResponsiveValue<TVal, ThemeType>;
|
|
125
|
-
py?: ResponsiveValue<TVal, ThemeType>;
|
|
126
|
-
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
127
|
-
}
|
|
128
|
-
interface LayoutProps<ThemeType extends Theme = RequiredTheme> {
|
|
129
|
-
width?: ResponsiveValue<CSS.Property.Width<L>, ThemeType>;
|
|
130
|
-
height?: ResponsiveValue<CSS.Property.Height<L>, ThemeType>;
|
|
131
|
-
minWidth?: ResponsiveValue<CSS.Property.MinWidth<L>, ThemeType>;
|
|
132
|
-
minHeight?: ResponsiveValue<CSS.Property.MinHeight<L>, ThemeType>;
|
|
133
|
-
maxWidth?: ResponsiveValue<CSS.Property.MaxWidth<L>, ThemeType>;
|
|
134
|
-
maxHeight?: ResponsiveValue<CSS.Property.MaxHeight<L>, ThemeType>;
|
|
135
|
-
size?: ResponsiveValue<CSS.Property.Width<L>, ThemeType>;
|
|
136
|
-
overflow?: ResponsiveValue<CSS.Property.Overflow, ThemeType>;
|
|
137
|
-
overflowX?: ResponsiveValue<CSS.Property.OverflowX, ThemeType>;
|
|
138
|
-
overflowY?: ResponsiveValue<CSS.Property.OverflowY, ThemeType>;
|
|
139
|
-
display?: ResponsiveValue<CSS.Property.Display, ThemeType>;
|
|
140
|
-
verticalAlign?: ResponsiveValue<CSS.Property.VerticalAlign<L>, ThemeType>;
|
|
141
|
-
}
|
|
142
|
-
interface TypographyProps<ThemeType extends Theme = RequiredTheme> {
|
|
143
|
-
fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
|
|
144
|
-
fontSize?: ResponsiveValue<ThemeValue<'fontSizes', ThemeType>, ThemeType>;
|
|
145
|
-
fontWeight?: ResponsiveValue<ThemeValue<'fontWeights', ThemeType> | string, ThemeType>;
|
|
146
|
-
lineHeight?: ResponsiveValue<ThemeValue<'lineHeights', ThemeType>, ThemeType>;
|
|
147
|
-
letterSpacing?: ResponsiveValue<CSS.Property.LetterSpacing<L>, ThemeType>;
|
|
148
|
-
textAlign?: ResponsiveValue<CSS.Property.TextAlign, ThemeType>;
|
|
149
|
-
fontStyle?: ResponsiveValue<CSS.Property.FontStyle, ThemeType>;
|
|
150
|
-
}
|
|
151
|
-
interface FlexboxProps<ThemeType extends Theme = RequiredTheme> {
|
|
152
|
-
alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType>;
|
|
153
|
-
alignContent?: ResponsiveValue<CSS.Property.AlignContent, ThemeType>;
|
|
154
|
-
justifyItems?: ResponsiveValue<CSS.Property.JustifyItems, ThemeType>;
|
|
155
|
-
justifyContent?: ResponsiveValue<CSS.Property.JustifyContent, ThemeType>;
|
|
156
|
-
flexWrap?: ResponsiveValue<CSS.Property.FlexWrap, ThemeType>;
|
|
157
|
-
flexDirection?: ResponsiveValue<CSS.Property.FlexDirection, ThemeType>;
|
|
158
|
-
flex?: ResponsiveValue<CSS.Property.Flex<L>, ThemeType>;
|
|
159
|
-
flexGrow?: ResponsiveValue<CSS.Property.FlexGrow, ThemeType>;
|
|
160
|
-
flexShrink?: ResponsiveValue<CSS.Property.FlexShrink, ThemeType>;
|
|
161
|
-
flexBasis?: ResponsiveValue<CSS.Property.FlexBasis<L>, ThemeType>;
|
|
162
|
-
justifySelf?: ResponsiveValue<CSS.Property.JustifySelf, ThemeType>;
|
|
163
|
-
alignSelf?: ResponsiveValue<CSS.Property.AlignSelf, ThemeType>;
|
|
164
|
-
order?: ResponsiveValue<CSS.Property.Order, ThemeType>;
|
|
165
|
-
}
|
|
166
|
-
interface PositionProps<ThemeType extends Theme = RequiredTheme> {
|
|
167
|
-
position?: ResponsiveValue<CSS.Property.Position, ThemeType>;
|
|
168
|
-
zIndex?: ResponsiveValue<CSS.Property.ZIndex, ThemeType>;
|
|
169
|
-
top?: ResponsiveValue<CSS.Property.Top<L>, ThemeType>;
|
|
170
|
-
right?: ResponsiveValue<CSS.Property.Right<L>, ThemeType>;
|
|
171
|
-
bottom?: ResponsiveValue<CSS.Property.Bottom<L>, ThemeType>;
|
|
172
|
-
left?: ResponsiveValue<CSS.Property.Left<L>, ThemeType>;
|
|
173
|
-
}
|
|
174
|
-
interface ColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
175
|
-
color?: ResponsiveValue<TVal, ThemeType>;
|
|
176
|
-
backgroundColor?: ResponsiveValue<TVal, ThemeType>;
|
|
177
|
-
bg?: ResponsiveValue<TVal, ThemeType>;
|
|
178
|
-
opacity?: ResponsiveValue<CSS.Property.Opacity, ThemeType>;
|
|
179
|
-
}
|
|
180
|
-
interface BorderProps<ThemeType extends Theme = RequiredTheme> {
|
|
181
|
-
border?: ResponsiveValue<CSS.Property.Border<L>, ThemeType>;
|
|
182
|
-
borderWidth?: ResponsiveValue<CSS.Property.BorderWidth<L>, ThemeType>;
|
|
183
|
-
borderStyle?: ResponsiveValue<CSS.Property.BorderStyle, ThemeType>;
|
|
184
|
-
borderColor?: ResponsiveValue<ThemeValue<'colors', ThemeType>, ThemeType>;
|
|
185
|
-
borderRadius?: ResponsiveValue<ThemeValue<'radii', ThemeType>, ThemeType>;
|
|
186
|
-
borderTop?: ResponsiveValue<CSS.Property.BorderTop<L>, ThemeType>;
|
|
187
|
-
borderRight?: ResponsiveValue<CSS.Property.BorderRight<L>, ThemeType>;
|
|
188
|
-
borderBottom?: ResponsiveValue<CSS.Property.BorderBottom<L>, ThemeType>;
|
|
189
|
-
borderLeft?: ResponsiveValue<CSS.Property.BorderLeft<L>, ThemeType>;
|
|
190
|
-
}
|
|
191
|
-
interface BackgroundProps<ThemeType extends Theme = RequiredTheme> {
|
|
192
|
-
background?: ResponsiveValue<CSS.Property.Background<L>, ThemeType>;
|
|
193
|
-
backgroundImage?: ResponsiveValue<CSS.Property.BackgroundImage, ThemeType>;
|
|
194
|
-
backgroundSize?: ResponsiveValue<CSS.Property.BackgroundSize<L>, ThemeType>;
|
|
195
|
-
backgroundPosition?: ResponsiveValue<CSS.Property.BackgroundPosition<L>, ThemeType>;
|
|
196
|
-
backgroundRepeat?: ResponsiveValue<CSS.Property.BackgroundRepeat, ThemeType>;
|
|
197
|
-
}
|
|
198
|
-
interface GridProps<ThemeType extends Theme = RequiredTheme> {
|
|
199
|
-
gridGap?: ResponsiveValue<CSS.Property.GridGap<L>, ThemeType>;
|
|
200
|
-
gridColumnGap?: ResponsiveValue<CSS.Property.GridColumnGap<L>, ThemeType>;
|
|
201
|
-
gridRowGap?: ResponsiveValue<CSS.Property.GridRowGap<L>, ThemeType>;
|
|
202
|
-
gridColumn?: ResponsiveValue<CSS.Property.GridColumn, ThemeType>;
|
|
203
|
-
gridRow?: ResponsiveValue<CSS.Property.GridRow, ThemeType>;
|
|
204
|
-
gridAutoFlow?: ResponsiveValue<CSS.Property.GridAutoFlow, ThemeType>;
|
|
205
|
-
gridAutoColumns?: ResponsiveValue<CSS.Property.GridAutoColumns<L>, ThemeType>;
|
|
206
|
-
gridAutoRows?: ResponsiveValue<CSS.Property.GridAutoRows<L>, ThemeType>;
|
|
207
|
-
gridTemplateColumns?: ResponsiveValue<CSS.Property.GridTemplateColumns<L>, ThemeType>;
|
|
208
|
-
gridTemplateRows?: ResponsiveValue<CSS.Property.GridTemplateRows<L>, ThemeType>;
|
|
209
|
-
gridTemplateAreas?: ResponsiveValue<CSS.Property.GridTemplateAreas, ThemeType>;
|
|
210
|
-
gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
|
|
211
|
-
}
|
|
212
|
-
interface ShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
213
|
-
boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string, ThemeType>;
|
|
214
|
-
textShadow?: ResponsiveValue<CSS.Property.TextShadow | string, ThemeType>;
|
|
215
|
-
}
|
|
216
|
-
//#endregion
|
|
217
36
|
//#region src/index.d.ts
|
|
218
37
|
declare const width: Parser;
|
|
219
38
|
declare const height: Parser;
|
|
@@ -278,4 +97,4 @@ declare const right: Parser;
|
|
|
278
97
|
declare const bottom: Parser;
|
|
279
98
|
declare const left: Parser;
|
|
280
99
|
//#endregion
|
|
281
|
-
export { BackgroundProps, BorderProps, ColorProps, type ConfigStyle, FlexboxProps, GridProps, LayoutProps, MarginProps, ObjectOrArray, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, Scale, ShadowProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, Theme, ThemeValue, type Transform, TypographyProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
|
|
100
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, themeGet, top, typography, variant, verticalAlign, width, zIndex };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, i as ParserConfig, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, u as Transform } from "./index-
|
|
2
|
-
import { t as background } from "./index-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
1
|
+
import { a as Props, c as SystemConfig, d as compose, f as createParser, g as system, i as ParserConfig, m as get, n as ConfigStyle, o as StyleFn, p as createStyleFunction, r as Parser, s as StyleObject, u as Transform } from "./index-C6pWum7i.mjs";
|
|
2
|
+
import { t as background } from "./index-BDKAW1u8.mjs";
|
|
3
|
+
import { $ as LayoutProps, A as FlexWrapProps, At as VerticalAlignProps, B as GridColumnGapProps, C as ColorStyleProps, Ct as TextColorProps, D as FlexGrowProps, Dt as ThemeValue, E as FlexDirectionProps, Et as Theme, F as FontWeightProps, G as GridRowProps, H as GridGapProps, I as GridAreaProps, J as GridTemplateRowsProps, K as GridTemplateAreasProps, L as GridAutoColumnsProps, M as FontFamilyProps, Mt as ZIndexProps, N as FontSizeProps, O as FlexProps, Ot as TopProps, P as FontStyleProps, Q as JustifySelfProps, R as GridAutoFlowProps, S as ColorProps, St as TextAlignProps, T as FlexBasisProps, Tt as TextStyleProps, U as GridProps, V as GridColumnProps, W as GridRowGapProps, X as JustifyContentProps, Y as HeightProps, Z as JustifyItemsProps, _ as BorderTopProps, _t as Scale, a as BackgroundImageProps, at as MaxWidthProps, b as BoxShadowProps, bt as SpaceProps, c as BackgroundRepeatProps, ct as ObjectOrArray, d as BorderColorProps, dt as OverflowProps, et as LeftProps, f as BorderLeftProps, ft as PaddingProps, g as BorderStyleProps, gt as RightProps, h as BorderRightProps, ht as ResponsiveValue, i as BackgroundColorProps, it as MaxHeightProps, j as FlexboxProps, jt as WidthProps, k as FlexShrinkProps, kt as TypographyProps, l as BackgroundSizeProps, lt as OpacityProps, m as BorderRadiusProps, mt as RequiredTheme, n as AlignItemsProps, nt as LineHeightProps, o as BackgroundPositionProps, ot as MinHeightProps, p as BorderProps, pt as PositionProps, q as GridTemplateColumnsProps, r as AlignSelfProps, rt as MarginProps, s as BackgroundProps, st as MinWidthProps, t as AlignContentProps, tt as LetterSpacingProps, u as BorderBottomProps, ut as OrderProps, v as BorderWidthProps, vt as ShadowProps, w as DisplayProps, wt as TextShadowProps, x as ButtonStyleProps, xt as TLengthStyledSystem, y as BottomProps, yt as SizeProps, z as GridAutoRowsProps } from "./types-CCujn9-2.mjs";
|
|
4
|
+
import { t as border } from "./index-DLcnFzWU.mjs";
|
|
5
|
+
import { t as color } from "./index-D9W3cc9s.mjs";
|
|
6
|
+
import { t as flexbox } from "./index-D7-Ctdwn.mjs";
|
|
7
|
+
import { t as grid } from "./index-BvNoOnuk.mjs";
|
|
8
|
+
import { n as padding, r as space, t as margin } from "./index--0QXsrzB.mjs";
|
|
9
|
+
import { t as layout } from "./index-BPHA_boa.mjs";
|
|
10
|
+
import { t as typography } from "./index-DzPnzx9p.mjs";
|
|
11
|
+
import { t as position } from "./index-Cq-vX0It.mjs";
|
|
12
|
+
import { t as shadow } from "./index-F79chYlR.mjs";
|
|
13
|
+
import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle } from "./index-CeQ5ox80.mjs";
|
|
14
|
+
import { t as themeGet } from "./index-C_ikENGU.mjs";
|
|
14
15
|
|
|
15
16
|
//#region src/style/style.d.ts
|
|
16
17
|
interface StyleOptions {
|
|
@@ -32,188 +33,6 @@ declare const style: ({
|
|
|
32
33
|
properties
|
|
33
34
|
}: StyleOptions) => Parser;
|
|
34
35
|
//#endregion
|
|
35
|
-
//#region src/types.d.ts
|
|
36
|
-
type ObjectOrArray<T, K extends keyof never = keyof never> = T[] | Record<K, T | Record<K, T> | T[]>;
|
|
37
|
-
type Scale = ObjectOrArray<number | string>;
|
|
38
|
-
type TLengthStyledSystem = string | 0 | number;
|
|
39
|
-
interface Theme<TLength = TLengthStyledSystem> {
|
|
40
|
-
breakpoints?: ObjectOrArray<number | string | symbol>;
|
|
41
|
-
mediaQueries?: {
|
|
42
|
-
[size: string]: string;
|
|
43
|
-
};
|
|
44
|
-
space?: ObjectOrArray<CSS.Property.Margin<number | string>>;
|
|
45
|
-
fontSizes?: ObjectOrArray<CSS.Property.FontSize<number>>;
|
|
46
|
-
colors?: ObjectOrArray<CSS.Property.Color>;
|
|
47
|
-
fonts?: ObjectOrArray<CSS.Property.FontFamily>;
|
|
48
|
-
fontWeights?: ObjectOrArray<CSS.Property.FontWeight>;
|
|
49
|
-
lineHeights?: ObjectOrArray<CSS.Property.LineHeight<TLength>>;
|
|
50
|
-
letterSpacings?: ObjectOrArray<CSS.Property.LetterSpacing<TLength>>;
|
|
51
|
-
sizes?: ObjectOrArray<CSS.Property.Height<object> | CSS.Property.Width<object>>;
|
|
52
|
-
borders?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
53
|
-
borderStyles?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
54
|
-
borderWidths?: ObjectOrArray<CSS.Property.BorderWidth<TLength>>;
|
|
55
|
-
radii?: ObjectOrArray<CSS.Property.BorderRadius<TLength>>;
|
|
56
|
-
shadows?: ObjectOrArray<CSS.Property.BoxShadow>;
|
|
57
|
-
zIndices?: ObjectOrArray<CSS.Property.ZIndex>;
|
|
58
|
-
buttons?: ObjectOrArray<CSS.StandardProperties>;
|
|
59
|
-
colorStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
60
|
-
textStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
61
|
-
}
|
|
62
|
-
type RequiredTheme = Required<Theme>;
|
|
63
|
-
type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = unknown> = NonNullable<ThemeType[K]> extends TVal[] ? number : NonNullable<ThemeType[K]> extends Record<infer E, TVal> ? E : NonNullable<ThemeType[K]> extends ObjectOrArray<infer F> ? F : never;
|
|
64
|
-
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T };
|
|
65
|
-
type L = TLengthStyledSystem;
|
|
66
|
-
interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
67
|
-
m?: ResponsiveValue<TVal, ThemeType>;
|
|
68
|
-
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
69
|
-
mt?: ResponsiveValue<TVal, ThemeType>;
|
|
70
|
-
marginTop?: ResponsiveValue<TVal, ThemeType>;
|
|
71
|
-
mr?: ResponsiveValue<TVal, ThemeType>;
|
|
72
|
-
marginRight?: ResponsiveValue<TVal, ThemeType>;
|
|
73
|
-
mb?: ResponsiveValue<TVal, ThemeType>;
|
|
74
|
-
marginBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
75
|
-
ml?: ResponsiveValue<TVal, ThemeType>;
|
|
76
|
-
marginLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
77
|
-
mx?: ResponsiveValue<TVal, ThemeType>;
|
|
78
|
-
marginX?: ResponsiveValue<TVal, ThemeType>;
|
|
79
|
-
my?: ResponsiveValue<TVal, ThemeType>;
|
|
80
|
-
marginY?: ResponsiveValue<TVal, ThemeType>;
|
|
81
|
-
p?: ResponsiveValue<TVal, ThemeType>;
|
|
82
|
-
padding?: ResponsiveValue<TVal, ThemeType>;
|
|
83
|
-
pt?: ResponsiveValue<TVal, ThemeType>;
|
|
84
|
-
paddingTop?: ResponsiveValue<TVal, ThemeType>;
|
|
85
|
-
pr?: ResponsiveValue<TVal, ThemeType>;
|
|
86
|
-
paddingRight?: ResponsiveValue<TVal, ThemeType>;
|
|
87
|
-
pb?: ResponsiveValue<TVal, ThemeType>;
|
|
88
|
-
paddingBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
89
|
-
pl?: ResponsiveValue<TVal, ThemeType>;
|
|
90
|
-
paddingLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
91
|
-
px?: ResponsiveValue<TVal, ThemeType>;
|
|
92
|
-
paddingX?: ResponsiveValue<TVal, ThemeType>;
|
|
93
|
-
py?: ResponsiveValue<TVal, ThemeType>;
|
|
94
|
-
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
95
|
-
}
|
|
96
|
-
interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
97
|
-
m?: ResponsiveValue<TVal, ThemeType>;
|
|
98
|
-
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
99
|
-
mt?: ResponsiveValue<TVal, ThemeType>;
|
|
100
|
-
marginTop?: ResponsiveValue<TVal, ThemeType>;
|
|
101
|
-
mr?: ResponsiveValue<TVal, ThemeType>;
|
|
102
|
-
marginRight?: ResponsiveValue<TVal, ThemeType>;
|
|
103
|
-
mb?: ResponsiveValue<TVal, ThemeType>;
|
|
104
|
-
marginBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
105
|
-
ml?: ResponsiveValue<TVal, ThemeType>;
|
|
106
|
-
marginLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
107
|
-
mx?: ResponsiveValue<TVal, ThemeType>;
|
|
108
|
-
marginX?: ResponsiveValue<TVal, ThemeType>;
|
|
109
|
-
my?: ResponsiveValue<TVal, ThemeType>;
|
|
110
|
-
marginY?: ResponsiveValue<TVal, ThemeType>;
|
|
111
|
-
}
|
|
112
|
-
interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
113
|
-
p?: ResponsiveValue<TVal, ThemeType>;
|
|
114
|
-
padding?: ResponsiveValue<TVal, ThemeType>;
|
|
115
|
-
pt?: ResponsiveValue<TVal, ThemeType>;
|
|
116
|
-
paddingTop?: ResponsiveValue<TVal, ThemeType>;
|
|
117
|
-
pr?: ResponsiveValue<TVal, ThemeType>;
|
|
118
|
-
paddingRight?: ResponsiveValue<TVal, ThemeType>;
|
|
119
|
-
pb?: ResponsiveValue<TVal, ThemeType>;
|
|
120
|
-
paddingBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
121
|
-
pl?: ResponsiveValue<TVal, ThemeType>;
|
|
122
|
-
paddingLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
123
|
-
px?: ResponsiveValue<TVal, ThemeType>;
|
|
124
|
-
paddingX?: ResponsiveValue<TVal, ThemeType>;
|
|
125
|
-
py?: ResponsiveValue<TVal, ThemeType>;
|
|
126
|
-
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
127
|
-
}
|
|
128
|
-
interface LayoutProps<ThemeType extends Theme = RequiredTheme> {
|
|
129
|
-
width?: ResponsiveValue<CSS.Property.Width<L>, ThemeType>;
|
|
130
|
-
height?: ResponsiveValue<CSS.Property.Height<L>, ThemeType>;
|
|
131
|
-
minWidth?: ResponsiveValue<CSS.Property.MinWidth<L>, ThemeType>;
|
|
132
|
-
minHeight?: ResponsiveValue<CSS.Property.MinHeight<L>, ThemeType>;
|
|
133
|
-
maxWidth?: ResponsiveValue<CSS.Property.MaxWidth<L>, ThemeType>;
|
|
134
|
-
maxHeight?: ResponsiveValue<CSS.Property.MaxHeight<L>, ThemeType>;
|
|
135
|
-
size?: ResponsiveValue<CSS.Property.Width<L>, ThemeType>;
|
|
136
|
-
overflow?: ResponsiveValue<CSS.Property.Overflow, ThemeType>;
|
|
137
|
-
overflowX?: ResponsiveValue<CSS.Property.OverflowX, ThemeType>;
|
|
138
|
-
overflowY?: ResponsiveValue<CSS.Property.OverflowY, ThemeType>;
|
|
139
|
-
display?: ResponsiveValue<CSS.Property.Display, ThemeType>;
|
|
140
|
-
verticalAlign?: ResponsiveValue<CSS.Property.VerticalAlign<L>, ThemeType>;
|
|
141
|
-
}
|
|
142
|
-
interface TypographyProps<ThemeType extends Theme = RequiredTheme> {
|
|
143
|
-
fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
|
|
144
|
-
fontSize?: ResponsiveValue<ThemeValue<'fontSizes', ThemeType>, ThemeType>;
|
|
145
|
-
fontWeight?: ResponsiveValue<ThemeValue<'fontWeights', ThemeType> | string, ThemeType>;
|
|
146
|
-
lineHeight?: ResponsiveValue<ThemeValue<'lineHeights', ThemeType>, ThemeType>;
|
|
147
|
-
letterSpacing?: ResponsiveValue<CSS.Property.LetterSpacing<L>, ThemeType>;
|
|
148
|
-
textAlign?: ResponsiveValue<CSS.Property.TextAlign, ThemeType>;
|
|
149
|
-
fontStyle?: ResponsiveValue<CSS.Property.FontStyle, ThemeType>;
|
|
150
|
-
}
|
|
151
|
-
interface FlexboxProps<ThemeType extends Theme = RequiredTheme> {
|
|
152
|
-
alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType>;
|
|
153
|
-
alignContent?: ResponsiveValue<CSS.Property.AlignContent, ThemeType>;
|
|
154
|
-
justifyItems?: ResponsiveValue<CSS.Property.JustifyItems, ThemeType>;
|
|
155
|
-
justifyContent?: ResponsiveValue<CSS.Property.JustifyContent, ThemeType>;
|
|
156
|
-
flexWrap?: ResponsiveValue<CSS.Property.FlexWrap, ThemeType>;
|
|
157
|
-
flexDirection?: ResponsiveValue<CSS.Property.FlexDirection, ThemeType>;
|
|
158
|
-
flex?: ResponsiveValue<CSS.Property.Flex<L>, ThemeType>;
|
|
159
|
-
flexGrow?: ResponsiveValue<CSS.Property.FlexGrow, ThemeType>;
|
|
160
|
-
flexShrink?: ResponsiveValue<CSS.Property.FlexShrink, ThemeType>;
|
|
161
|
-
flexBasis?: ResponsiveValue<CSS.Property.FlexBasis<L>, ThemeType>;
|
|
162
|
-
justifySelf?: ResponsiveValue<CSS.Property.JustifySelf, ThemeType>;
|
|
163
|
-
alignSelf?: ResponsiveValue<CSS.Property.AlignSelf, ThemeType>;
|
|
164
|
-
order?: ResponsiveValue<CSS.Property.Order, ThemeType>;
|
|
165
|
-
}
|
|
166
|
-
interface PositionProps<ThemeType extends Theme = RequiredTheme> {
|
|
167
|
-
position?: ResponsiveValue<CSS.Property.Position, ThemeType>;
|
|
168
|
-
zIndex?: ResponsiveValue<CSS.Property.ZIndex, ThemeType>;
|
|
169
|
-
top?: ResponsiveValue<CSS.Property.Top<L>, ThemeType>;
|
|
170
|
-
right?: ResponsiveValue<CSS.Property.Right<L>, ThemeType>;
|
|
171
|
-
bottom?: ResponsiveValue<CSS.Property.Bottom<L>, ThemeType>;
|
|
172
|
-
left?: ResponsiveValue<CSS.Property.Left<L>, ThemeType>;
|
|
173
|
-
}
|
|
174
|
-
interface ColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
175
|
-
color?: ResponsiveValue<TVal, ThemeType>;
|
|
176
|
-
backgroundColor?: ResponsiveValue<TVal, ThemeType>;
|
|
177
|
-
bg?: ResponsiveValue<TVal, ThemeType>;
|
|
178
|
-
opacity?: ResponsiveValue<CSS.Property.Opacity, ThemeType>;
|
|
179
|
-
}
|
|
180
|
-
interface BorderProps<ThemeType extends Theme = RequiredTheme> {
|
|
181
|
-
border?: ResponsiveValue<CSS.Property.Border<L>, ThemeType>;
|
|
182
|
-
borderWidth?: ResponsiveValue<CSS.Property.BorderWidth<L>, ThemeType>;
|
|
183
|
-
borderStyle?: ResponsiveValue<CSS.Property.BorderStyle, ThemeType>;
|
|
184
|
-
borderColor?: ResponsiveValue<ThemeValue<'colors', ThemeType>, ThemeType>;
|
|
185
|
-
borderRadius?: ResponsiveValue<ThemeValue<'radii', ThemeType>, ThemeType>;
|
|
186
|
-
borderTop?: ResponsiveValue<CSS.Property.BorderTop<L>, ThemeType>;
|
|
187
|
-
borderRight?: ResponsiveValue<CSS.Property.BorderRight<L>, ThemeType>;
|
|
188
|
-
borderBottom?: ResponsiveValue<CSS.Property.BorderBottom<L>, ThemeType>;
|
|
189
|
-
borderLeft?: ResponsiveValue<CSS.Property.BorderLeft<L>, ThemeType>;
|
|
190
|
-
}
|
|
191
|
-
interface BackgroundProps<ThemeType extends Theme = RequiredTheme> {
|
|
192
|
-
background?: ResponsiveValue<CSS.Property.Background<L>, ThemeType>;
|
|
193
|
-
backgroundImage?: ResponsiveValue<CSS.Property.BackgroundImage, ThemeType>;
|
|
194
|
-
backgroundSize?: ResponsiveValue<CSS.Property.BackgroundSize<L>, ThemeType>;
|
|
195
|
-
backgroundPosition?: ResponsiveValue<CSS.Property.BackgroundPosition<L>, ThemeType>;
|
|
196
|
-
backgroundRepeat?: ResponsiveValue<CSS.Property.BackgroundRepeat, ThemeType>;
|
|
197
|
-
}
|
|
198
|
-
interface GridProps<ThemeType extends Theme = RequiredTheme> {
|
|
199
|
-
gridGap?: ResponsiveValue<CSS.Property.GridGap<L>, ThemeType>;
|
|
200
|
-
gridColumnGap?: ResponsiveValue<CSS.Property.GridColumnGap<L>, ThemeType>;
|
|
201
|
-
gridRowGap?: ResponsiveValue<CSS.Property.GridRowGap<L>, ThemeType>;
|
|
202
|
-
gridColumn?: ResponsiveValue<CSS.Property.GridColumn, ThemeType>;
|
|
203
|
-
gridRow?: ResponsiveValue<CSS.Property.GridRow, ThemeType>;
|
|
204
|
-
gridAutoFlow?: ResponsiveValue<CSS.Property.GridAutoFlow, ThemeType>;
|
|
205
|
-
gridAutoColumns?: ResponsiveValue<CSS.Property.GridAutoColumns<L>, ThemeType>;
|
|
206
|
-
gridAutoRows?: ResponsiveValue<CSS.Property.GridAutoRows<L>, ThemeType>;
|
|
207
|
-
gridTemplateColumns?: ResponsiveValue<CSS.Property.GridTemplateColumns<L>, ThemeType>;
|
|
208
|
-
gridTemplateRows?: ResponsiveValue<CSS.Property.GridTemplateRows<L>, ThemeType>;
|
|
209
|
-
gridTemplateAreas?: ResponsiveValue<CSS.Property.GridTemplateAreas, ThemeType>;
|
|
210
|
-
gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
|
|
211
|
-
}
|
|
212
|
-
interface ShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
213
|
-
boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string, ThemeType>;
|
|
214
|
-
textShadow?: ResponsiveValue<CSS.Property.TextShadow | string, ThemeType>;
|
|
215
|
-
}
|
|
216
|
-
//#endregion
|
|
217
36
|
//#region src/index.d.ts
|
|
218
37
|
declare const width: Parser;
|
|
219
38
|
declare const height: Parser;
|
|
@@ -278,4 +97,4 @@ declare const right: Parser;
|
|
|
278
97
|
declare const bottom: Parser;
|
|
279
98
|
declare const left: Parser;
|
|
280
99
|
//#endregion
|
|
281
|
-
export { BackgroundProps, BorderProps, ColorProps, type ConfigStyle, FlexboxProps, GridProps, LayoutProps, MarginProps, ObjectOrArray, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, Scale, ShadowProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, Theme, ThemeValue, type Transform, TypographyProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
|
|
100
|
+
export { AlignContentProps, AlignItemsProps, AlignSelfProps, BackgroundColorProps, BackgroundImageProps, BackgroundPositionProps, BackgroundProps, BackgroundRepeatProps, BackgroundSizeProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, BoxShadowProps, ButtonStyleProps, ColorProps, ColorStyleProps, type ConfigStyle, DisplayProps, FlexBasisProps, FlexDirectionProps, FlexGrowProps, FlexProps, FlexShrinkProps, FlexWrapProps, FlexboxProps, FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, GridAreaProps, GridAutoColumnsProps, GridAutoFlowProps, GridAutoRowsProps, GridColumnGapProps, GridColumnProps, GridGapProps, GridProps, GridRowGapProps, GridRowProps, GridTemplateAreasProps, GridTemplateColumnsProps, GridTemplateRowsProps, HeightProps, JustifyContentProps, JustifyItemsProps, JustifySelfProps, LayoutProps, LeftProps, LetterSpacingProps, LineHeightProps, MarginProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, ObjectOrArray, OpacityProps, OrderProps, OverflowProps, PaddingProps, type Parser, type ParserConfig, PositionProps, type Props, RequiredTheme, ResponsiveValue, RightProps, Scale, ShadowProps, SizeProps, SpaceProps, type StyleFn, type StyleObject, type SystemConfig, TLengthStyledSystem, TextAlignProps, TextColorProps, TextShadowProps, TextStyleProps, Theme, ThemeValue, TopProps, type Transform, TypographyProps, VerticalAlignProps, WidthProps, ZIndexProps, alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, themeGet, top, typography, variant, verticalAlign, width, zIndex };
|
package/dist/index.mjs
CHANGED
|
@@ -4,12 +4,13 @@ import { t as border } from "./border-Dder4Dhp.mjs";
|
|
|
4
4
|
import { t as color } from "./color-CGmMe8yP.mjs";
|
|
5
5
|
import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
|
|
6
6
|
import { t as grid } from "./grid-Bpk-QjhF.mjs";
|
|
7
|
-
import { t as layout } from "./layout-
|
|
7
|
+
import { t as layout } from "./layout-Dx0Un_6l.mjs";
|
|
8
8
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
9
9
|
import { t as typography } from "./typography-CptBXSy0.mjs";
|
|
10
|
-
import { n as padding, r as space, t as margin } from "./space-
|
|
10
|
+
import { n as padding, r as space, t as margin } from "./space-DEf9-0r9.mjs";
|
|
11
11
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
12
|
-
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
12
|
+
import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DQA9pqwW.mjs";
|
|
13
|
+
import { t as themeGet } from "./theme-get-CwPt9eDy.mjs";
|
|
13
14
|
//#region src/style/style.ts
|
|
14
15
|
const style = ({ prop, cssProperty, alias, key, transformValue, scale, properties }) => {
|
|
15
16
|
const config = {};
|
|
@@ -95,4 +96,4 @@ const right = positionFns.right;
|
|
|
95
96
|
const bottom = positionFns.bottom;
|
|
96
97
|
const left = positionFns.left;
|
|
97
98
|
//#endregion
|
|
98
|
-
export { alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, top, typography, variant, verticalAlign, width, zIndex };
|
|
99
|
+
export { alignContent, alignItems, alignSelf, background, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, border, border as borders, borderBottom, borderColor, borderLeft, borderRadius, borderRight, borderStyle, borderTop, borderWidth, bottom, shadow as boxShadow, shadow, shadow as textShadow, buttonStyle, color, colorStyle, compose, createParser, createStyleFunction, display, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexbox, fontFamily, fontSize, fontStyle, fontWeight, get, grid, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnGap, gridGap, gridRow, gridRowGap, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, margin, maxHeight, maxWidth, minHeight, minWidth, opacity, order, overflow, overflowX, overflowY, padding, position, right, size, space, style, system, textAlign, textStyle, themeGet, top, typography, variant, verticalAlign, width, zIndex };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { get, system } from "./core.mjs";
|
|
2
2
|
//#region src/layout/layout.ts
|
|
3
|
-
const isNumber = (n) => typeof n === "number" && !isNaN(n);
|
|
3
|
+
const isNumber = (n) => typeof n === "number" && !Number.isNaN(n);
|
|
4
4
|
const getWidth = (n, scale) => get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%");
|
|
5
5
|
const layout = system({
|
|
6
6
|
width: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_core = require("./core.cjs");
|
|
2
2
|
//#region src/layout/layout.ts
|
|
3
|
-
const isNumber = (n) => typeof n === "number" && !isNaN(n);
|
|
3
|
+
const isNumber = (n) => typeof n === "number" && !Number.isNaN(n);
|
|
4
4
|
const getWidth = (n, scale) => require_core.get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%");
|
|
5
5
|
const config = {
|
|
6
6
|
width: {
|
package/dist/layout.cjs
CHANGED
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_layout = require("./layout-
|
|
5
|
+
const require_layout = require("./layout-JlwVxg8y.cjs");
|
|
6
6
|
exports.default = require_layout.layout;
|
|
7
7
|
exports.layout = require_layout.layout;
|
package/dist/layout.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { $ as LayoutProps, At as VerticalAlignProps, Y as HeightProps, at as MaxWidthProps, dt as OverflowProps, it as MaxHeightProps, jt as WidthProps, ot as MinHeightProps, st as MinWidthProps, w as DisplayProps, yt as SizeProps } from "./types-CCujn9-2.cjs";
|
|
2
|
+
import { t as layout } from "./index-CuQx9h4Q.cjs";
|
|
3
|
+
export { type DisplayProps, type HeightProps, type LayoutProps, type MaxHeightProps, type MaxWidthProps, type MinHeightProps, type MinWidthProps, type OverflowProps, type SizeProps, type VerticalAlignProps, type WidthProps, layout as default, layout };
|
package/dist/layout.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { $ as LayoutProps, At as VerticalAlignProps, Y as HeightProps, at as MaxWidthProps, dt as OverflowProps, it as MaxHeightProps, jt as WidthProps, ot as MinHeightProps, st as MinWidthProps, w as DisplayProps, yt as SizeProps } from "./types-CCujn9-2.mjs";
|
|
2
|
+
import { t as layout } from "./index-BPHA_boa.mjs";
|
|
3
|
+
export { type DisplayProps, type HeightProps, type LayoutProps, type MaxHeightProps, type MaxWidthProps, type MinHeightProps, type MinWidthProps, type OverflowProps, type SizeProps, type VerticalAlignProps, type WidthProps, layout as default, layout };
|
package/dist/layout.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as layout } from "./layout-
|
|
1
|
+
import { t as layout } from "./layout-Dx0Un_6l.mjs";
|
|
2
2
|
export { layout as default, layout };
|
package/dist/position.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Mt as ZIndexProps, Ot as TopProps, et as LeftProps, gt as RightProps, pt as PositionProps, y as BottomProps } from "./types-CCujn9-2.cjs";
|
|
2
|
+
import { t as position } from "./index-DS-HZ740.cjs";
|
|
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,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Mt as ZIndexProps, Ot as TopProps, et as LeftProps, gt as RightProps, pt as PositionProps, y as BottomProps } from "./types-CCujn9-2.mjs";
|
|
2
|
+
import { t as position } from "./index-Cq-vX0It.mjs";
|
|
3
|
+
export { type BottomProps, type LeftProps, type PositionProps, type RightProps, type TopProps, type ZIndexProps, position as default, position };
|
|
@@ -4,12 +4,12 @@ const require_border = require("./border-UuT-fTpy.cjs");
|
|
|
4
4
|
const require_color = require("./color-BNs17Gw-.cjs");
|
|
5
5
|
const require_flexbox = require("./flexbox-CFkO6PrP.cjs");
|
|
6
6
|
const require_grid = require("./grid-CpvRIng4.cjs");
|
|
7
|
-
const require_layout = require("./layout-
|
|
7
|
+
const require_layout = require("./layout-JlwVxg8y.cjs");
|
|
8
8
|
const require_position = require("./position-zWvCE4hD.cjs");
|
|
9
9
|
const require_typography = require("./typography-DD_eWLLx.cjs");
|
|
10
|
-
const require_space = require("./space-
|
|
10
|
+
const require_space = require("./space-CAX_62yL.cjs");
|
|
11
11
|
const require_shadow = require("./shadow-BrDnaQQl.cjs");
|
|
12
|
-
const require_variant = require("./variant-
|
|
12
|
+
const require_variant = require("./variant-C7vPzZHo.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
|
|
@@ -4,12 +4,12 @@ import { t as border } from "./border-Dder4Dhp.mjs";
|
|
|
4
4
|
import { t as color } from "./color-CGmMe8yP.mjs";
|
|
5
5
|
import { t as flexbox } from "./flexbox-XQnlnfa4.mjs";
|
|
6
6
|
import { t as grid } from "./grid-Bpk-QjhF.mjs";
|
|
7
|
-
import { t as layout } from "./layout-
|
|
7
|
+
import { t as layout } from "./layout-Dx0Un_6l.mjs";
|
|
8
8
|
import { t as position } from "./position-jf6VlRyR.mjs";
|
|
9
9
|
import { t as typography } from "./typography-CptBXSy0.mjs";
|
|
10
|
-
import { r as space } from "./space-
|
|
10
|
+
import { r as space } from "./space-DEf9-0r9.mjs";
|
|
11
11
|
import { t as shadow } from "./shadow-Bp7lx_41.mjs";
|
|
12
|
-
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-
|
|
12
|
+
import { n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-DQA9pqwW.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/props.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_presets = require("./presets-
|
|
2
|
+
const require_presets = require("./presets-BgKBhlRl.cjs");
|
|
3
3
|
//#region src/props/props.ts
|
|
4
|
-
const
|
|
4
|
+
const styledSystemProps = new Set(require_presets.all.propNames);
|
|
5
5
|
const omit = (props) => {
|
|
6
6
|
const next = {};
|
|
7
7
|
for (const key in props) {
|
|
8
|
-
if (
|
|
8
|
+
if (key === "__proto__" || styledSystemProps.has(key)) continue;
|
|
9
9
|
next[key] = props[key];
|
|
10
10
|
}
|
|
11
11
|
return next;
|
|
@@ -13,7 +13,7 @@ const omit = (props) => {
|
|
|
13
13
|
const pick = (props) => {
|
|
14
14
|
const next = {};
|
|
15
15
|
for (const key in props) {
|
|
16
|
-
if (!
|
|
16
|
+
if (!styledSystemProps.has(key)) continue;
|
|
17
17
|
next[key] = props[key];
|
|
18
18
|
}
|
|
19
19
|
return next;
|