@soroush.tech/styled-system 5.2.0 → 5.4.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 +11 -6
- 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.d.cts +1 -1
- package/dist/core.d.mts +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-50KH4Mo7.d.cts → index--0QXsrzB.d.mts} +1 -2
- package/dist/{index-8PSQ0vkP.d.cts → index-5FNmSnEI.d.cts} +1 -2
- package/dist/{index-C3_fScux.d.mts → index-B4DiqzRr.d.cts} +1 -2
- package/dist/{index-DZaFk5pk.d.cts → index-BDKAW1u8.d.mts} +1 -2
- package/dist/{index-9ZhIewzy.d.mts → index-BFzj-f22.d.cts} +1 -2
- package/dist/{index-Nc-10syf.d.cts → index-BPHA_boa.d.mts} +1 -2
- package/dist/{index-BS9GuhQN.d.cts → index-Bd7E_7bm.d.cts} +1 -2
- package/dist/{index-CarHCWLQ.d.cts → 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-BBTVE4EM.d.mts → 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-CX2jWEGJ.d.mts → 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-C13YRARN.d.mts → 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 +7 -1
- package/dist/index.d.cts +15 -166
- package/dist/index.d.mts +15 -166
- package/dist/index.mjs +2 -1
- package/dist/layout.d.cts +3 -2
- package/dist/layout.d.mts +3 -2
- package/dist/position.d.cts +3 -2
- package/dist/position.d.mts +3 -2
- package/dist/prop-types.cjs +48 -0
- package/dist/prop-types.d.cts +22 -0
- package/dist/prop-types.d.mts +22 -0
- package/dist/prop-types.mjs +40 -0
- package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/dist/shadow.d.cts +3 -2
- package/dist/shadow.d.mts +3 -2
- package/dist/should-forward-prop.cjs +2 -23
- package/dist/space.d.cts +3 -2
- package/dist/space.d.mts +3 -2
- 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.d.cts +3 -2
- package/dist/variant.d.mts +3 -2
- package/package.json +20 -2
- 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
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import * as CSS from "csstype";
|
|
2
|
+
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
type ObjectOrArray<T, K extends keyof never = keyof never> = T[] | Record<K, T | Record<K, T> | T[]>;
|
|
5
|
+
type Scale = ObjectOrArray<number | string>;
|
|
6
|
+
type TLengthStyledSystem = string | number;
|
|
7
|
+
interface Theme<TLength = TLengthStyledSystem> {
|
|
8
|
+
breakpoints?: ObjectOrArray<number | string | symbol>;
|
|
9
|
+
mediaQueries?: {
|
|
10
|
+
[size: string]: string;
|
|
11
|
+
};
|
|
12
|
+
space?: ObjectOrArray<CSS.Property.Margin<number | string>>;
|
|
13
|
+
fontSizes?: ObjectOrArray<CSS.Property.FontSize<number>>;
|
|
14
|
+
colors?: ObjectOrArray<CSS.Property.Color>;
|
|
15
|
+
fonts?: ObjectOrArray<CSS.Property.FontFamily>;
|
|
16
|
+
fontWeights?: ObjectOrArray<CSS.Property.FontWeight>;
|
|
17
|
+
lineHeights?: ObjectOrArray<CSS.Property.LineHeight<TLength>>;
|
|
18
|
+
letterSpacings?: ObjectOrArray<CSS.Property.LetterSpacing<TLength>>;
|
|
19
|
+
sizes?: ObjectOrArray<CSS.Property.Height<object> | CSS.Property.Width<object>>;
|
|
20
|
+
borders?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
21
|
+
borderStyles?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
22
|
+
borderWidths?: ObjectOrArray<CSS.Property.BorderWidth<TLength>>;
|
|
23
|
+
radii?: ObjectOrArray<CSS.Property.BorderRadius<TLength>>;
|
|
24
|
+
shadows?: ObjectOrArray<CSS.Property.BoxShadow>;
|
|
25
|
+
zIndices?: ObjectOrArray<CSS.Property.ZIndex>;
|
|
26
|
+
buttons?: ObjectOrArray<CSS.StandardProperties>;
|
|
27
|
+
colorStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
28
|
+
textStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
29
|
+
}
|
|
30
|
+
type RequiredTheme = Required<Theme>;
|
|
31
|
+
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;
|
|
32
|
+
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T };
|
|
33
|
+
interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
34
|
+
m?: ResponsiveValue<TVal, ThemeType>;
|
|
35
|
+
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
36
|
+
mt?: ResponsiveValue<TVal, ThemeType>;
|
|
37
|
+
marginTop?: ResponsiveValue<TVal, ThemeType>;
|
|
38
|
+
mr?: ResponsiveValue<TVal, ThemeType>;
|
|
39
|
+
marginRight?: ResponsiveValue<TVal, ThemeType>;
|
|
40
|
+
mb?: ResponsiveValue<TVal, ThemeType>;
|
|
41
|
+
marginBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
42
|
+
ml?: ResponsiveValue<TVal, ThemeType>;
|
|
43
|
+
marginLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
44
|
+
mx?: ResponsiveValue<TVal, ThemeType>;
|
|
45
|
+
marginX?: ResponsiveValue<TVal, ThemeType>;
|
|
46
|
+
my?: ResponsiveValue<TVal, ThemeType>;
|
|
47
|
+
marginY?: ResponsiveValue<TVal, ThemeType>;
|
|
48
|
+
}
|
|
49
|
+
interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
50
|
+
p?: ResponsiveValue<TVal, ThemeType>;
|
|
51
|
+
padding?: ResponsiveValue<TVal, ThemeType>;
|
|
52
|
+
pt?: ResponsiveValue<TVal, ThemeType>;
|
|
53
|
+
paddingTop?: ResponsiveValue<TVal, ThemeType>;
|
|
54
|
+
pr?: ResponsiveValue<TVal, ThemeType>;
|
|
55
|
+
paddingRight?: ResponsiveValue<TVal, ThemeType>;
|
|
56
|
+
pb?: ResponsiveValue<TVal, ThemeType>;
|
|
57
|
+
paddingBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
58
|
+
pl?: ResponsiveValue<TVal, ThemeType>;
|
|
59
|
+
paddingLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
60
|
+
px?: ResponsiveValue<TVal, ThemeType>;
|
|
61
|
+
paddingX?: ResponsiveValue<TVal, ThemeType>;
|
|
62
|
+
py?: ResponsiveValue<TVal, ThemeType>;
|
|
63
|
+
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
64
|
+
}
|
|
65
|
+
interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> extends MarginProps<ThemeType, TVal>, PaddingProps<ThemeType, TVal> {}
|
|
66
|
+
interface WidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Width<TLengthStyledSystem>> {
|
|
67
|
+
width?: ResponsiveValue<TVal, ThemeType>;
|
|
68
|
+
}
|
|
69
|
+
interface HeightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Height<TLengthStyledSystem>> {
|
|
70
|
+
height?: ResponsiveValue<TVal, ThemeType>;
|
|
71
|
+
}
|
|
72
|
+
interface MinWidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MinWidth<TLengthStyledSystem>> {
|
|
73
|
+
minWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
74
|
+
}
|
|
75
|
+
interface MinHeightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MinHeight<TLengthStyledSystem>> {
|
|
76
|
+
minHeight?: ResponsiveValue<TVal, ThemeType>;
|
|
77
|
+
}
|
|
78
|
+
interface MaxWidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MaxWidth<TLengthStyledSystem>> {
|
|
79
|
+
maxWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
80
|
+
}
|
|
81
|
+
interface MaxHeightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MaxHeight<TLengthStyledSystem>> {
|
|
82
|
+
maxHeight?: ResponsiveValue<TVal, ThemeType>;
|
|
83
|
+
}
|
|
84
|
+
interface SizeProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Height<TLengthStyledSystem>> {
|
|
85
|
+
size?: ResponsiveValue<TVal, ThemeType>;
|
|
86
|
+
}
|
|
87
|
+
interface DisplayProps<ThemeType extends Theme = RequiredTheme> {
|
|
88
|
+
display?: ResponsiveValue<CSS.Property.Display, ThemeType>;
|
|
89
|
+
}
|
|
90
|
+
interface OverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
91
|
+
overflow?: ResponsiveValue<CSS.Property.Overflow, ThemeType>;
|
|
92
|
+
overflowX?: ResponsiveValue<CSS.Property.OverflowX, ThemeType>;
|
|
93
|
+
overflowY?: ResponsiveValue<CSS.Property.OverflowY, ThemeType>;
|
|
94
|
+
}
|
|
95
|
+
interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.VerticalAlign<TLengthStyledSystem>> {
|
|
96
|
+
verticalAlign?: ResponsiveValue<TVal, ThemeType>;
|
|
97
|
+
}
|
|
98
|
+
interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
|
|
99
|
+
interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
|
|
100
|
+
fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
|
|
101
|
+
}
|
|
102
|
+
interface FontSizeProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontSizes', ThemeType>> {
|
|
103
|
+
fontSize?: ResponsiveValue<TVal, ThemeType>;
|
|
104
|
+
}
|
|
105
|
+
interface FontWeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontWeights', ThemeType> | string> {
|
|
106
|
+
fontWeight?: ResponsiveValue<TVal, ThemeType>;
|
|
107
|
+
}
|
|
108
|
+
interface LineHeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'lineHeights', ThemeType>> {
|
|
109
|
+
lineHeight?: ResponsiveValue<TVal, ThemeType>;
|
|
110
|
+
}
|
|
111
|
+
interface LetterSpacingProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.LetterSpacing<TLengthStyledSystem>> {
|
|
112
|
+
letterSpacing?: ResponsiveValue<TVal, ThemeType>;
|
|
113
|
+
}
|
|
114
|
+
interface FontStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
115
|
+
fontStyle?: ResponsiveValue<CSS.Property.FontStyle, ThemeType>;
|
|
116
|
+
}
|
|
117
|
+
interface TextAlignProps<ThemeType extends Theme = RequiredTheme> {
|
|
118
|
+
textAlign?: ResponsiveValue<CSS.Property.TextAlign, ThemeType>;
|
|
119
|
+
}
|
|
120
|
+
interface TypographyProps<ThemeType extends Theme = RequiredTheme> extends FontFamilyProps<ThemeType>, FontSizeProps<ThemeType>, FontWeightProps<ThemeType>, LineHeightProps<ThemeType>, LetterSpacingProps<ThemeType>, FontStyleProps<ThemeType>, TextAlignProps<ThemeType> {}
|
|
121
|
+
interface AlignItemsProps<ThemeType extends Theme = RequiredTheme> {
|
|
122
|
+
alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType>;
|
|
123
|
+
}
|
|
124
|
+
interface AlignContentProps<ThemeType extends Theme = RequiredTheme> {
|
|
125
|
+
alignContent?: ResponsiveValue<CSS.Property.AlignContent, ThemeType>;
|
|
126
|
+
}
|
|
127
|
+
interface JustifyItemsProps<ThemeType extends Theme = RequiredTheme> {
|
|
128
|
+
justifyItems?: ResponsiveValue<CSS.Property.JustifyItems, ThemeType>;
|
|
129
|
+
}
|
|
130
|
+
interface JustifyContentProps<ThemeType extends Theme = RequiredTheme> {
|
|
131
|
+
justifyContent?: ResponsiveValue<CSS.Property.JustifyContent, ThemeType>;
|
|
132
|
+
}
|
|
133
|
+
interface FlexWrapProps<ThemeType extends Theme = RequiredTheme> {
|
|
134
|
+
flexWrap?: ResponsiveValue<CSS.Property.FlexWrap, ThemeType>;
|
|
135
|
+
}
|
|
136
|
+
interface FlexDirectionProps<ThemeType extends Theme = RequiredTheme> {
|
|
137
|
+
flexDirection?: ResponsiveValue<CSS.Property.FlexDirection, ThemeType>;
|
|
138
|
+
}
|
|
139
|
+
interface FlexProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Flex<TLengthStyledSystem>> {
|
|
140
|
+
flex?: ResponsiveValue<TVal, ThemeType>;
|
|
141
|
+
}
|
|
142
|
+
interface FlexGrowProps<ThemeType extends Theme = RequiredTheme> {
|
|
143
|
+
flexGrow?: ResponsiveValue<CSS.Property.FlexGrow, ThemeType>;
|
|
144
|
+
}
|
|
145
|
+
interface FlexShrinkProps<ThemeType extends Theme = RequiredTheme> {
|
|
146
|
+
flexShrink?: ResponsiveValue<CSS.Property.FlexShrink, ThemeType>;
|
|
147
|
+
}
|
|
148
|
+
interface FlexBasisProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.FlexBasis<TLengthStyledSystem>> {
|
|
149
|
+
flexBasis?: ResponsiveValue<TVal, ThemeType>;
|
|
150
|
+
}
|
|
151
|
+
interface JustifySelfProps<ThemeType extends Theme = RequiredTheme> {
|
|
152
|
+
justifySelf?: ResponsiveValue<CSS.Property.JustifySelf, ThemeType>;
|
|
153
|
+
}
|
|
154
|
+
interface AlignSelfProps<ThemeType extends Theme = RequiredTheme> {
|
|
155
|
+
alignSelf?: ResponsiveValue<CSS.Property.AlignSelf, ThemeType>;
|
|
156
|
+
}
|
|
157
|
+
interface OrderProps<ThemeType extends Theme = RequiredTheme> {
|
|
158
|
+
order?: ResponsiveValue<CSS.Property.Order, ThemeType>;
|
|
159
|
+
}
|
|
160
|
+
interface FlexboxProps<ThemeType extends Theme = RequiredTheme> extends AlignItemsProps<ThemeType>, AlignContentProps<ThemeType>, JustifyItemsProps<ThemeType>, JustifyContentProps<ThemeType>, FlexWrapProps<ThemeType>, FlexDirectionProps<ThemeType>, FlexProps<ThemeType>, FlexGrowProps<ThemeType>, FlexShrinkProps<ThemeType>, FlexBasisProps<ThemeType>, JustifySelfProps<ThemeType>, AlignSelfProps<ThemeType>, OrderProps<ThemeType> {}
|
|
161
|
+
interface ZIndexProps<ThemeType extends Theme = RequiredTheme> {
|
|
162
|
+
zIndex?: ResponsiveValue<CSS.Property.ZIndex, ThemeType>;
|
|
163
|
+
}
|
|
164
|
+
interface TopProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Top<TLengthStyledSystem>> {
|
|
165
|
+
top?: ResponsiveValue<TVal, ThemeType>;
|
|
166
|
+
}
|
|
167
|
+
interface RightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Right<TLengthStyledSystem>> {
|
|
168
|
+
right?: ResponsiveValue<TVal, ThemeType>;
|
|
169
|
+
}
|
|
170
|
+
interface BottomProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Bottom<TLengthStyledSystem>> {
|
|
171
|
+
bottom?: ResponsiveValue<TVal, ThemeType>;
|
|
172
|
+
}
|
|
173
|
+
interface LeftProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Left<TLengthStyledSystem>> {
|
|
174
|
+
left?: ResponsiveValue<TVal, ThemeType>;
|
|
175
|
+
}
|
|
176
|
+
interface PositionProps<ThemeType extends Theme = RequiredTheme> extends ZIndexProps<ThemeType>, TopProps<ThemeType>, RightProps<ThemeType>, BottomProps<ThemeType>, LeftProps<ThemeType> {
|
|
177
|
+
position?: ResponsiveValue<CSS.Property.Position, ThemeType>;
|
|
178
|
+
}
|
|
179
|
+
interface TextColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
180
|
+
color?: ResponsiveValue<TVal, ThemeType>;
|
|
181
|
+
}
|
|
182
|
+
interface BackgroundColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
183
|
+
bg?: ResponsiveValue<TVal, ThemeType>;
|
|
184
|
+
backgroundColor?: ResponsiveValue<TVal, ThemeType>;
|
|
185
|
+
}
|
|
186
|
+
interface OpacityProps<ThemeType extends Theme = RequiredTheme> {
|
|
187
|
+
opacity?: ResponsiveValue<CSS.Property.Opacity, ThemeType>;
|
|
188
|
+
}
|
|
189
|
+
interface ColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> extends TextColorProps<ThemeType, TVal>, BackgroundColorProps<ThemeType, TVal>, OpacityProps<ThemeType> {}
|
|
190
|
+
interface BorderWidthProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'borderWidths', ThemeType>> {
|
|
191
|
+
borderWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
192
|
+
borderTopWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
193
|
+
borderBottomWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
194
|
+
borderLeftWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
195
|
+
borderRightWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
196
|
+
}
|
|
197
|
+
interface BorderStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
198
|
+
borderStyle?: ResponsiveValue<CSS.Property.BorderStyle, ThemeType>;
|
|
199
|
+
borderTopStyle?: ResponsiveValue<CSS.Property.BorderTopStyle, ThemeType>;
|
|
200
|
+
borderBottomStyle?: ResponsiveValue<CSS.Property.BorderBottomStyle, ThemeType>;
|
|
201
|
+
borderLeftStyle?: ResponsiveValue<CSS.Property.BorderLeftStyle, ThemeType>;
|
|
202
|
+
borderRightStyle?: ResponsiveValue<CSS.Property.BorderRightStyle, ThemeType>;
|
|
203
|
+
}
|
|
204
|
+
interface BorderColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
205
|
+
borderColor?: ResponsiveValue<TVal, ThemeType>;
|
|
206
|
+
borderTopColor?: ResponsiveValue<TVal, ThemeType>;
|
|
207
|
+
borderBottomColor?: ResponsiveValue<TVal, ThemeType>;
|
|
208
|
+
borderLeftColor?: ResponsiveValue<TVal, ThemeType>;
|
|
209
|
+
borderRightColor?: ResponsiveValue<TVal, ThemeType>;
|
|
210
|
+
}
|
|
211
|
+
interface BorderRadiusProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'radii', ThemeType>> {
|
|
212
|
+
borderRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
213
|
+
borderTopLeftRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
214
|
+
borderTopRightRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
215
|
+
borderBottomLeftRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
216
|
+
borderBottomRightRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
217
|
+
}
|
|
218
|
+
interface BorderTopProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderTop<TLengthStyledSystem>> {
|
|
219
|
+
borderTop?: ResponsiveValue<TVal, ThemeType>;
|
|
220
|
+
}
|
|
221
|
+
interface BorderRightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderRight<TLengthStyledSystem>> {
|
|
222
|
+
borderRight?: ResponsiveValue<TVal, ThemeType>;
|
|
223
|
+
}
|
|
224
|
+
interface BorderBottomProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderBottom<TLengthStyledSystem>> {
|
|
225
|
+
borderBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
226
|
+
}
|
|
227
|
+
interface BorderLeftProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderLeft<TLengthStyledSystem>> {
|
|
228
|
+
borderLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
229
|
+
}
|
|
230
|
+
interface BorderProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Border<TLengthStyledSystem>> extends BorderWidthProps<ThemeType>, BorderStyleProps<ThemeType>, BorderColorProps<ThemeType>, BorderRadiusProps<ThemeType>, BorderTopProps<ThemeType>, BorderRightProps<ThemeType>, BorderBottomProps<ThemeType>, BorderLeftProps<ThemeType> {
|
|
231
|
+
border?: ResponsiveValue<TVal, ThemeType>;
|
|
232
|
+
borderX?: ResponsiveValue<TVal, ThemeType>;
|
|
233
|
+
borderY?: ResponsiveValue<TVal, ThemeType>;
|
|
234
|
+
}
|
|
235
|
+
interface BackgroundImageProps<ThemeType extends Theme = RequiredTheme> {
|
|
236
|
+
backgroundImage?: ResponsiveValue<CSS.Property.BackgroundImage, ThemeType>;
|
|
237
|
+
}
|
|
238
|
+
interface BackgroundSizeProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BackgroundSize<TLengthStyledSystem>> {
|
|
239
|
+
backgroundSize?: ResponsiveValue<TVal, ThemeType>;
|
|
240
|
+
}
|
|
241
|
+
interface BackgroundPositionProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BackgroundPosition<TLengthStyledSystem>> {
|
|
242
|
+
backgroundPosition?: ResponsiveValue<TVal, ThemeType>;
|
|
243
|
+
}
|
|
244
|
+
interface BackgroundRepeatProps<ThemeType extends Theme = RequiredTheme> {
|
|
245
|
+
backgroundRepeat?: ResponsiveValue<CSS.Property.BackgroundRepeat, ThemeType>;
|
|
246
|
+
}
|
|
247
|
+
interface BackgroundProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Background<TLengthStyledSystem>> extends BackgroundImageProps<ThemeType>, BackgroundSizeProps<ThemeType>, BackgroundPositionProps<ThemeType>, BackgroundRepeatProps<ThemeType> {
|
|
248
|
+
background?: ResponsiveValue<TVal, ThemeType>;
|
|
249
|
+
}
|
|
250
|
+
interface GridGapProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridGap<TLengthStyledSystem>> {
|
|
251
|
+
gridGap?: ResponsiveValue<TVal, ThemeType>;
|
|
252
|
+
}
|
|
253
|
+
interface GridColumnGapProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridColumnGap<TLengthStyledSystem>> {
|
|
254
|
+
gridColumnGap?: ResponsiveValue<TVal, ThemeType>;
|
|
255
|
+
}
|
|
256
|
+
interface GridRowGapProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridRowGap<TLengthStyledSystem>> {
|
|
257
|
+
gridRowGap?: ResponsiveValue<TVal, ThemeType>;
|
|
258
|
+
}
|
|
259
|
+
interface GridColumnProps<ThemeType extends Theme = RequiredTheme> {
|
|
260
|
+
gridColumn?: ResponsiveValue<CSS.Property.GridColumn, ThemeType>;
|
|
261
|
+
}
|
|
262
|
+
interface GridRowProps<ThemeType extends Theme = RequiredTheme> {
|
|
263
|
+
gridRow?: ResponsiveValue<CSS.Property.GridRow, ThemeType>;
|
|
264
|
+
}
|
|
265
|
+
interface GridAutoFlowProps<ThemeType extends Theme = RequiredTheme> {
|
|
266
|
+
gridAutoFlow?: ResponsiveValue<CSS.Property.GridAutoFlow, ThemeType>;
|
|
267
|
+
}
|
|
268
|
+
interface GridAutoColumnsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridAutoColumns<TLengthStyledSystem>> {
|
|
269
|
+
gridAutoColumns?: ResponsiveValue<TVal, ThemeType>;
|
|
270
|
+
}
|
|
271
|
+
interface GridAutoRowsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridAutoRows<TLengthStyledSystem>> {
|
|
272
|
+
gridAutoRows?: ResponsiveValue<TVal, ThemeType>;
|
|
273
|
+
}
|
|
274
|
+
interface GridTemplateColumnsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridTemplateColumns<TLengthStyledSystem>> {
|
|
275
|
+
gridTemplateColumns?: ResponsiveValue<TVal, ThemeType>;
|
|
276
|
+
}
|
|
277
|
+
interface GridTemplateRowsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridTemplateRows<TLengthStyledSystem>> {
|
|
278
|
+
gridTemplateRows?: ResponsiveValue<TVal, ThemeType>;
|
|
279
|
+
}
|
|
280
|
+
interface GridTemplateAreasProps<ThemeType extends Theme = RequiredTheme> {
|
|
281
|
+
gridTemplateAreas?: ResponsiveValue<CSS.Property.GridTemplateAreas, ThemeType>;
|
|
282
|
+
}
|
|
283
|
+
interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
|
|
284
|
+
gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
|
|
285
|
+
}
|
|
286
|
+
interface GridProps<ThemeType extends Theme = RequiredTheme> extends GridGapProps<ThemeType>, GridColumnGapProps<ThemeType>, GridRowGapProps<ThemeType>, GridColumnProps<ThemeType>, GridRowProps<ThemeType>, GridAutoFlowProps<ThemeType>, GridAutoColumnsProps<ThemeType>, GridAutoRowsProps<ThemeType>, GridTemplateColumnsProps<ThemeType>, GridTemplateRowsProps<ThemeType>, GridTemplateAreasProps<ThemeType>, GridAreaProps<ThemeType> {}
|
|
287
|
+
interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
288
|
+
boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string, ThemeType>;
|
|
289
|
+
}
|
|
290
|
+
interface TextShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
291
|
+
textShadow?: ResponsiveValue<CSS.Property.TextShadow | string, ThemeType>;
|
|
292
|
+
}
|
|
293
|
+
interface ShadowProps<ThemeType extends Theme = RequiredTheme> extends BoxShadowProps<ThemeType>, TextShadowProps<ThemeType> {}
|
|
294
|
+
interface TextStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
295
|
+
textStyle?: ResponsiveValue<string, ThemeType>;
|
|
296
|
+
}
|
|
297
|
+
interface ButtonStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
298
|
+
variant?: ResponsiveValue<string, ThemeType>;
|
|
299
|
+
}
|
|
300
|
+
interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
301
|
+
colors?: ResponsiveValue<string, ThemeType>;
|
|
302
|
+
}
|
|
303
|
+
//#endregion
|
|
304
|
+
export { LayoutProps as $, FlexWrapProps as A, VerticalAlignProps as At, GridColumnGapProps as B, ColorStyleProps as C, TextColorProps as Ct, FlexGrowProps as D, ThemeValue as Dt, FlexDirectionProps as E, Theme as Et, FontWeightProps as F, GridRowProps as G, GridGapProps as H, GridAreaProps as I, GridTemplateRowsProps as J, GridTemplateAreasProps as K, GridAutoColumnsProps as L, FontFamilyProps as M, ZIndexProps as Mt, FontSizeProps as N, FlexProps as O, TopProps as Ot, FontStyleProps as P, JustifySelfProps as Q, GridAutoFlowProps as R, ColorProps as S, TextAlignProps as St, FlexBasisProps as T, TextStyleProps as Tt, GridProps as U, GridColumnProps as V, GridRowGapProps as W, JustifyContentProps as X, HeightProps as Y, JustifyItemsProps as Z, BorderTopProps as _, Scale as _t, BackgroundImageProps as a, MaxWidthProps as at, BoxShadowProps as b, SpaceProps as bt, BackgroundRepeatProps as c, ObjectOrArray as ct, BorderColorProps as d, OverflowProps as dt, LeftProps as et, BorderLeftProps as f, PaddingProps as ft, BorderStyleProps as g, RightProps as gt, BorderRightProps as h, ResponsiveValue as ht, BackgroundColorProps as i, MaxHeightProps as it, FlexboxProps as j, WidthProps as jt, FlexShrinkProps as k, TypographyProps as kt, BackgroundSizeProps as l, OpacityProps as lt, BorderRadiusProps as m, RequiredTheme as mt, AlignItemsProps as n, LineHeightProps as nt, BackgroundPositionProps as o, MinHeightProps as ot, BorderProps as p, PositionProps as pt, GridTemplateColumnsProps as q, AlignSelfProps as r, MarginProps as rt, BackgroundProps as s, MinWidthProps as st, AlignContentProps as t, LetterSpacingProps as tt, BorderBottomProps as u, OrderProps as ut, BorderWidthProps as v, ShadowProps as vt, DisplayProps as w, TextShadowProps as wt, ButtonStyleProps as x, TLengthStyledSystem as xt, BottomProps as y, SizeProps as yt, GridAutoRowsProps as z };
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import * as CSS from "csstype";
|
|
2
|
+
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
type ObjectOrArray<T, K extends keyof never = keyof never> = T[] | Record<K, T | Record<K, T> | T[]>;
|
|
5
|
+
type Scale = ObjectOrArray<number | string>;
|
|
6
|
+
type TLengthStyledSystem = string | number;
|
|
7
|
+
interface Theme<TLength = TLengthStyledSystem> {
|
|
8
|
+
breakpoints?: ObjectOrArray<number | string | symbol>;
|
|
9
|
+
mediaQueries?: {
|
|
10
|
+
[size: string]: string;
|
|
11
|
+
};
|
|
12
|
+
space?: ObjectOrArray<CSS.Property.Margin<number | string>>;
|
|
13
|
+
fontSizes?: ObjectOrArray<CSS.Property.FontSize<number>>;
|
|
14
|
+
colors?: ObjectOrArray<CSS.Property.Color>;
|
|
15
|
+
fonts?: ObjectOrArray<CSS.Property.FontFamily>;
|
|
16
|
+
fontWeights?: ObjectOrArray<CSS.Property.FontWeight>;
|
|
17
|
+
lineHeights?: ObjectOrArray<CSS.Property.LineHeight<TLength>>;
|
|
18
|
+
letterSpacings?: ObjectOrArray<CSS.Property.LetterSpacing<TLength>>;
|
|
19
|
+
sizes?: ObjectOrArray<CSS.Property.Height<object> | CSS.Property.Width<object>>;
|
|
20
|
+
borders?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
21
|
+
borderStyles?: ObjectOrArray<CSS.Property.Border<object>>;
|
|
22
|
+
borderWidths?: ObjectOrArray<CSS.Property.BorderWidth<TLength>>;
|
|
23
|
+
radii?: ObjectOrArray<CSS.Property.BorderRadius<TLength>>;
|
|
24
|
+
shadows?: ObjectOrArray<CSS.Property.BoxShadow>;
|
|
25
|
+
zIndices?: ObjectOrArray<CSS.Property.ZIndex>;
|
|
26
|
+
buttons?: ObjectOrArray<CSS.StandardProperties>;
|
|
27
|
+
colorStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
28
|
+
textStyles?: ObjectOrArray<CSS.StandardProperties>;
|
|
29
|
+
}
|
|
30
|
+
type RequiredTheme = Required<Theme>;
|
|
31
|
+
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;
|
|
32
|
+
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<'breakpoints', ThemeType> & string) | number]?: T };
|
|
33
|
+
interface MarginProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
34
|
+
m?: ResponsiveValue<TVal, ThemeType>;
|
|
35
|
+
margin?: ResponsiveValue<TVal, ThemeType>;
|
|
36
|
+
mt?: ResponsiveValue<TVal, ThemeType>;
|
|
37
|
+
marginTop?: ResponsiveValue<TVal, ThemeType>;
|
|
38
|
+
mr?: ResponsiveValue<TVal, ThemeType>;
|
|
39
|
+
marginRight?: ResponsiveValue<TVal, ThemeType>;
|
|
40
|
+
mb?: ResponsiveValue<TVal, ThemeType>;
|
|
41
|
+
marginBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
42
|
+
ml?: ResponsiveValue<TVal, ThemeType>;
|
|
43
|
+
marginLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
44
|
+
mx?: ResponsiveValue<TVal, ThemeType>;
|
|
45
|
+
marginX?: ResponsiveValue<TVal, ThemeType>;
|
|
46
|
+
my?: ResponsiveValue<TVal, ThemeType>;
|
|
47
|
+
marginY?: ResponsiveValue<TVal, ThemeType>;
|
|
48
|
+
}
|
|
49
|
+
interface PaddingProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> {
|
|
50
|
+
p?: ResponsiveValue<TVal, ThemeType>;
|
|
51
|
+
padding?: ResponsiveValue<TVal, ThemeType>;
|
|
52
|
+
pt?: ResponsiveValue<TVal, ThemeType>;
|
|
53
|
+
paddingTop?: ResponsiveValue<TVal, ThemeType>;
|
|
54
|
+
pr?: ResponsiveValue<TVal, ThemeType>;
|
|
55
|
+
paddingRight?: ResponsiveValue<TVal, ThemeType>;
|
|
56
|
+
pb?: ResponsiveValue<TVal, ThemeType>;
|
|
57
|
+
paddingBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
58
|
+
pl?: ResponsiveValue<TVal, ThemeType>;
|
|
59
|
+
paddingLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
60
|
+
px?: ResponsiveValue<TVal, ThemeType>;
|
|
61
|
+
paddingX?: ResponsiveValue<TVal, ThemeType>;
|
|
62
|
+
py?: ResponsiveValue<TVal, ThemeType>;
|
|
63
|
+
paddingY?: ResponsiveValue<TVal, ThemeType>;
|
|
64
|
+
}
|
|
65
|
+
interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'space', ThemeType>> extends MarginProps<ThemeType, TVal>, PaddingProps<ThemeType, TVal> {}
|
|
66
|
+
interface WidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Width<TLengthStyledSystem>> {
|
|
67
|
+
width?: ResponsiveValue<TVal, ThemeType>;
|
|
68
|
+
}
|
|
69
|
+
interface HeightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Height<TLengthStyledSystem>> {
|
|
70
|
+
height?: ResponsiveValue<TVal, ThemeType>;
|
|
71
|
+
}
|
|
72
|
+
interface MinWidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MinWidth<TLengthStyledSystem>> {
|
|
73
|
+
minWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
74
|
+
}
|
|
75
|
+
interface MinHeightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MinHeight<TLengthStyledSystem>> {
|
|
76
|
+
minHeight?: ResponsiveValue<TVal, ThemeType>;
|
|
77
|
+
}
|
|
78
|
+
interface MaxWidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MaxWidth<TLengthStyledSystem>> {
|
|
79
|
+
maxWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
80
|
+
}
|
|
81
|
+
interface MaxHeightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.MaxHeight<TLengthStyledSystem>> {
|
|
82
|
+
maxHeight?: ResponsiveValue<TVal, ThemeType>;
|
|
83
|
+
}
|
|
84
|
+
interface SizeProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Height<TLengthStyledSystem>> {
|
|
85
|
+
size?: ResponsiveValue<TVal, ThemeType>;
|
|
86
|
+
}
|
|
87
|
+
interface DisplayProps<ThemeType extends Theme = RequiredTheme> {
|
|
88
|
+
display?: ResponsiveValue<CSS.Property.Display, ThemeType>;
|
|
89
|
+
}
|
|
90
|
+
interface OverflowProps<ThemeType extends Theme = RequiredTheme> {
|
|
91
|
+
overflow?: ResponsiveValue<CSS.Property.Overflow, ThemeType>;
|
|
92
|
+
overflowX?: ResponsiveValue<CSS.Property.OverflowX, ThemeType>;
|
|
93
|
+
overflowY?: ResponsiveValue<CSS.Property.OverflowY, ThemeType>;
|
|
94
|
+
}
|
|
95
|
+
interface VerticalAlignProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.VerticalAlign<TLengthStyledSystem>> {
|
|
96
|
+
verticalAlign?: ResponsiveValue<TVal, ThemeType>;
|
|
97
|
+
}
|
|
98
|
+
interface LayoutProps<ThemeType extends Theme = RequiredTheme> extends WidthProps<ThemeType>, HeightProps<ThemeType>, MinWidthProps<ThemeType>, MinHeightProps<ThemeType>, MaxWidthProps<ThemeType>, MaxHeightProps<ThemeType>, DisplayProps<ThemeType>, VerticalAlignProps<ThemeType>, SizeProps<ThemeType>, OverflowProps<ThemeType> {}
|
|
99
|
+
interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
|
|
100
|
+
fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType>;
|
|
101
|
+
}
|
|
102
|
+
interface FontSizeProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontSizes', ThemeType>> {
|
|
103
|
+
fontSize?: ResponsiveValue<TVal, ThemeType>;
|
|
104
|
+
}
|
|
105
|
+
interface FontWeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'fontWeights', ThemeType> | string> {
|
|
106
|
+
fontWeight?: ResponsiveValue<TVal, ThemeType>;
|
|
107
|
+
}
|
|
108
|
+
interface LineHeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'lineHeights', ThemeType>> {
|
|
109
|
+
lineHeight?: ResponsiveValue<TVal, ThemeType>;
|
|
110
|
+
}
|
|
111
|
+
interface LetterSpacingProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.LetterSpacing<TLengthStyledSystem>> {
|
|
112
|
+
letterSpacing?: ResponsiveValue<TVal, ThemeType>;
|
|
113
|
+
}
|
|
114
|
+
interface FontStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
115
|
+
fontStyle?: ResponsiveValue<CSS.Property.FontStyle, ThemeType>;
|
|
116
|
+
}
|
|
117
|
+
interface TextAlignProps<ThemeType extends Theme = RequiredTheme> {
|
|
118
|
+
textAlign?: ResponsiveValue<CSS.Property.TextAlign, ThemeType>;
|
|
119
|
+
}
|
|
120
|
+
interface TypographyProps<ThemeType extends Theme = RequiredTheme> extends FontFamilyProps<ThemeType>, FontSizeProps<ThemeType>, FontWeightProps<ThemeType>, LineHeightProps<ThemeType>, LetterSpacingProps<ThemeType>, FontStyleProps<ThemeType>, TextAlignProps<ThemeType> {}
|
|
121
|
+
interface AlignItemsProps<ThemeType extends Theme = RequiredTheme> {
|
|
122
|
+
alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType>;
|
|
123
|
+
}
|
|
124
|
+
interface AlignContentProps<ThemeType extends Theme = RequiredTheme> {
|
|
125
|
+
alignContent?: ResponsiveValue<CSS.Property.AlignContent, ThemeType>;
|
|
126
|
+
}
|
|
127
|
+
interface JustifyItemsProps<ThemeType extends Theme = RequiredTheme> {
|
|
128
|
+
justifyItems?: ResponsiveValue<CSS.Property.JustifyItems, ThemeType>;
|
|
129
|
+
}
|
|
130
|
+
interface JustifyContentProps<ThemeType extends Theme = RequiredTheme> {
|
|
131
|
+
justifyContent?: ResponsiveValue<CSS.Property.JustifyContent, ThemeType>;
|
|
132
|
+
}
|
|
133
|
+
interface FlexWrapProps<ThemeType extends Theme = RequiredTheme> {
|
|
134
|
+
flexWrap?: ResponsiveValue<CSS.Property.FlexWrap, ThemeType>;
|
|
135
|
+
}
|
|
136
|
+
interface FlexDirectionProps<ThemeType extends Theme = RequiredTheme> {
|
|
137
|
+
flexDirection?: ResponsiveValue<CSS.Property.FlexDirection, ThemeType>;
|
|
138
|
+
}
|
|
139
|
+
interface FlexProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Flex<TLengthStyledSystem>> {
|
|
140
|
+
flex?: ResponsiveValue<TVal, ThemeType>;
|
|
141
|
+
}
|
|
142
|
+
interface FlexGrowProps<ThemeType extends Theme = RequiredTheme> {
|
|
143
|
+
flexGrow?: ResponsiveValue<CSS.Property.FlexGrow, ThemeType>;
|
|
144
|
+
}
|
|
145
|
+
interface FlexShrinkProps<ThemeType extends Theme = RequiredTheme> {
|
|
146
|
+
flexShrink?: ResponsiveValue<CSS.Property.FlexShrink, ThemeType>;
|
|
147
|
+
}
|
|
148
|
+
interface FlexBasisProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.FlexBasis<TLengthStyledSystem>> {
|
|
149
|
+
flexBasis?: ResponsiveValue<TVal, ThemeType>;
|
|
150
|
+
}
|
|
151
|
+
interface JustifySelfProps<ThemeType extends Theme = RequiredTheme> {
|
|
152
|
+
justifySelf?: ResponsiveValue<CSS.Property.JustifySelf, ThemeType>;
|
|
153
|
+
}
|
|
154
|
+
interface AlignSelfProps<ThemeType extends Theme = RequiredTheme> {
|
|
155
|
+
alignSelf?: ResponsiveValue<CSS.Property.AlignSelf, ThemeType>;
|
|
156
|
+
}
|
|
157
|
+
interface OrderProps<ThemeType extends Theme = RequiredTheme> {
|
|
158
|
+
order?: ResponsiveValue<CSS.Property.Order, ThemeType>;
|
|
159
|
+
}
|
|
160
|
+
interface FlexboxProps<ThemeType extends Theme = RequiredTheme> extends AlignItemsProps<ThemeType>, AlignContentProps<ThemeType>, JustifyItemsProps<ThemeType>, JustifyContentProps<ThemeType>, FlexWrapProps<ThemeType>, FlexDirectionProps<ThemeType>, FlexProps<ThemeType>, FlexGrowProps<ThemeType>, FlexShrinkProps<ThemeType>, FlexBasisProps<ThemeType>, JustifySelfProps<ThemeType>, AlignSelfProps<ThemeType>, OrderProps<ThemeType> {}
|
|
161
|
+
interface ZIndexProps<ThemeType extends Theme = RequiredTheme> {
|
|
162
|
+
zIndex?: ResponsiveValue<CSS.Property.ZIndex, ThemeType>;
|
|
163
|
+
}
|
|
164
|
+
interface TopProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Top<TLengthStyledSystem>> {
|
|
165
|
+
top?: ResponsiveValue<TVal, ThemeType>;
|
|
166
|
+
}
|
|
167
|
+
interface RightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Right<TLengthStyledSystem>> {
|
|
168
|
+
right?: ResponsiveValue<TVal, ThemeType>;
|
|
169
|
+
}
|
|
170
|
+
interface BottomProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Bottom<TLengthStyledSystem>> {
|
|
171
|
+
bottom?: ResponsiveValue<TVal, ThemeType>;
|
|
172
|
+
}
|
|
173
|
+
interface LeftProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Left<TLengthStyledSystem>> {
|
|
174
|
+
left?: ResponsiveValue<TVal, ThemeType>;
|
|
175
|
+
}
|
|
176
|
+
interface PositionProps<ThemeType extends Theme = RequiredTheme> extends ZIndexProps<ThemeType>, TopProps<ThemeType>, RightProps<ThemeType>, BottomProps<ThemeType>, LeftProps<ThemeType> {
|
|
177
|
+
position?: ResponsiveValue<CSS.Property.Position, ThemeType>;
|
|
178
|
+
}
|
|
179
|
+
interface TextColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
180
|
+
color?: ResponsiveValue<TVal, ThemeType>;
|
|
181
|
+
}
|
|
182
|
+
interface BackgroundColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
183
|
+
bg?: ResponsiveValue<TVal, ThemeType>;
|
|
184
|
+
backgroundColor?: ResponsiveValue<TVal, ThemeType>;
|
|
185
|
+
}
|
|
186
|
+
interface OpacityProps<ThemeType extends Theme = RequiredTheme> {
|
|
187
|
+
opacity?: ResponsiveValue<CSS.Property.Opacity, ThemeType>;
|
|
188
|
+
}
|
|
189
|
+
interface ColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> extends TextColorProps<ThemeType, TVal>, BackgroundColorProps<ThemeType, TVal>, OpacityProps<ThemeType> {}
|
|
190
|
+
interface BorderWidthProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'borderWidths', ThemeType>> {
|
|
191
|
+
borderWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
192
|
+
borderTopWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
193
|
+
borderBottomWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
194
|
+
borderLeftWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
195
|
+
borderRightWidth?: ResponsiveValue<TVal, ThemeType>;
|
|
196
|
+
}
|
|
197
|
+
interface BorderStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
198
|
+
borderStyle?: ResponsiveValue<CSS.Property.BorderStyle, ThemeType>;
|
|
199
|
+
borderTopStyle?: ResponsiveValue<CSS.Property.BorderTopStyle, ThemeType>;
|
|
200
|
+
borderBottomStyle?: ResponsiveValue<CSS.Property.BorderBottomStyle, ThemeType>;
|
|
201
|
+
borderLeftStyle?: ResponsiveValue<CSS.Property.BorderLeftStyle, ThemeType>;
|
|
202
|
+
borderRightStyle?: ResponsiveValue<CSS.Property.BorderRightStyle, ThemeType>;
|
|
203
|
+
}
|
|
204
|
+
interface BorderColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'colors', ThemeType>> {
|
|
205
|
+
borderColor?: ResponsiveValue<TVal, ThemeType>;
|
|
206
|
+
borderTopColor?: ResponsiveValue<TVal, ThemeType>;
|
|
207
|
+
borderBottomColor?: ResponsiveValue<TVal, ThemeType>;
|
|
208
|
+
borderLeftColor?: ResponsiveValue<TVal, ThemeType>;
|
|
209
|
+
borderRightColor?: ResponsiveValue<TVal, ThemeType>;
|
|
210
|
+
}
|
|
211
|
+
interface BorderRadiusProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<'radii', ThemeType>> {
|
|
212
|
+
borderRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
213
|
+
borderTopLeftRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
214
|
+
borderTopRightRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
215
|
+
borderBottomLeftRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
216
|
+
borderBottomRightRadius?: ResponsiveValue<TVal, ThemeType>;
|
|
217
|
+
}
|
|
218
|
+
interface BorderTopProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderTop<TLengthStyledSystem>> {
|
|
219
|
+
borderTop?: ResponsiveValue<TVal, ThemeType>;
|
|
220
|
+
}
|
|
221
|
+
interface BorderRightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderRight<TLengthStyledSystem>> {
|
|
222
|
+
borderRight?: ResponsiveValue<TVal, ThemeType>;
|
|
223
|
+
}
|
|
224
|
+
interface BorderBottomProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderBottom<TLengthStyledSystem>> {
|
|
225
|
+
borderBottom?: ResponsiveValue<TVal, ThemeType>;
|
|
226
|
+
}
|
|
227
|
+
interface BorderLeftProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BorderLeft<TLengthStyledSystem>> {
|
|
228
|
+
borderLeft?: ResponsiveValue<TVal, ThemeType>;
|
|
229
|
+
}
|
|
230
|
+
interface BorderProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Border<TLengthStyledSystem>> extends BorderWidthProps<ThemeType>, BorderStyleProps<ThemeType>, BorderColorProps<ThemeType>, BorderRadiusProps<ThemeType>, BorderTopProps<ThemeType>, BorderRightProps<ThemeType>, BorderBottomProps<ThemeType>, BorderLeftProps<ThemeType> {
|
|
231
|
+
border?: ResponsiveValue<TVal, ThemeType>;
|
|
232
|
+
borderX?: ResponsiveValue<TVal, ThemeType>;
|
|
233
|
+
borderY?: ResponsiveValue<TVal, ThemeType>;
|
|
234
|
+
}
|
|
235
|
+
interface BackgroundImageProps<ThemeType extends Theme = RequiredTheme> {
|
|
236
|
+
backgroundImage?: ResponsiveValue<CSS.Property.BackgroundImage, ThemeType>;
|
|
237
|
+
}
|
|
238
|
+
interface BackgroundSizeProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BackgroundSize<TLengthStyledSystem>> {
|
|
239
|
+
backgroundSize?: ResponsiveValue<TVal, ThemeType>;
|
|
240
|
+
}
|
|
241
|
+
interface BackgroundPositionProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.BackgroundPosition<TLengthStyledSystem>> {
|
|
242
|
+
backgroundPosition?: ResponsiveValue<TVal, ThemeType>;
|
|
243
|
+
}
|
|
244
|
+
interface BackgroundRepeatProps<ThemeType extends Theme = RequiredTheme> {
|
|
245
|
+
backgroundRepeat?: ResponsiveValue<CSS.Property.BackgroundRepeat, ThemeType>;
|
|
246
|
+
}
|
|
247
|
+
interface BackgroundProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Background<TLengthStyledSystem>> extends BackgroundImageProps<ThemeType>, BackgroundSizeProps<ThemeType>, BackgroundPositionProps<ThemeType>, BackgroundRepeatProps<ThemeType> {
|
|
248
|
+
background?: ResponsiveValue<TVal, ThemeType>;
|
|
249
|
+
}
|
|
250
|
+
interface GridGapProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridGap<TLengthStyledSystem>> {
|
|
251
|
+
gridGap?: ResponsiveValue<TVal, ThemeType>;
|
|
252
|
+
}
|
|
253
|
+
interface GridColumnGapProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridColumnGap<TLengthStyledSystem>> {
|
|
254
|
+
gridColumnGap?: ResponsiveValue<TVal, ThemeType>;
|
|
255
|
+
}
|
|
256
|
+
interface GridRowGapProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridRowGap<TLengthStyledSystem>> {
|
|
257
|
+
gridRowGap?: ResponsiveValue<TVal, ThemeType>;
|
|
258
|
+
}
|
|
259
|
+
interface GridColumnProps<ThemeType extends Theme = RequiredTheme> {
|
|
260
|
+
gridColumn?: ResponsiveValue<CSS.Property.GridColumn, ThemeType>;
|
|
261
|
+
}
|
|
262
|
+
interface GridRowProps<ThemeType extends Theme = RequiredTheme> {
|
|
263
|
+
gridRow?: ResponsiveValue<CSS.Property.GridRow, ThemeType>;
|
|
264
|
+
}
|
|
265
|
+
interface GridAutoFlowProps<ThemeType extends Theme = RequiredTheme> {
|
|
266
|
+
gridAutoFlow?: ResponsiveValue<CSS.Property.GridAutoFlow, ThemeType>;
|
|
267
|
+
}
|
|
268
|
+
interface GridAutoColumnsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridAutoColumns<TLengthStyledSystem>> {
|
|
269
|
+
gridAutoColumns?: ResponsiveValue<TVal, ThemeType>;
|
|
270
|
+
}
|
|
271
|
+
interface GridAutoRowsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridAutoRows<TLengthStyledSystem>> {
|
|
272
|
+
gridAutoRows?: ResponsiveValue<TVal, ThemeType>;
|
|
273
|
+
}
|
|
274
|
+
interface GridTemplateColumnsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridTemplateColumns<TLengthStyledSystem>> {
|
|
275
|
+
gridTemplateColumns?: ResponsiveValue<TVal, ThemeType>;
|
|
276
|
+
}
|
|
277
|
+
interface GridTemplateRowsProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.GridTemplateRows<TLengthStyledSystem>> {
|
|
278
|
+
gridTemplateRows?: ResponsiveValue<TVal, ThemeType>;
|
|
279
|
+
}
|
|
280
|
+
interface GridTemplateAreasProps<ThemeType extends Theme = RequiredTheme> {
|
|
281
|
+
gridTemplateAreas?: ResponsiveValue<CSS.Property.GridTemplateAreas, ThemeType>;
|
|
282
|
+
}
|
|
283
|
+
interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
|
|
284
|
+
gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType>;
|
|
285
|
+
}
|
|
286
|
+
interface GridProps<ThemeType extends Theme = RequiredTheme> extends GridGapProps<ThemeType>, GridColumnGapProps<ThemeType>, GridRowGapProps<ThemeType>, GridColumnProps<ThemeType>, GridRowProps<ThemeType>, GridAutoFlowProps<ThemeType>, GridAutoColumnsProps<ThemeType>, GridAutoRowsProps<ThemeType>, GridTemplateColumnsProps<ThemeType>, GridTemplateRowsProps<ThemeType>, GridTemplateAreasProps<ThemeType>, GridAreaProps<ThemeType> {}
|
|
287
|
+
interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
288
|
+
boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | string, ThemeType>;
|
|
289
|
+
}
|
|
290
|
+
interface TextShadowProps<ThemeType extends Theme = RequiredTheme> {
|
|
291
|
+
textShadow?: ResponsiveValue<CSS.Property.TextShadow | string, ThemeType>;
|
|
292
|
+
}
|
|
293
|
+
interface ShadowProps<ThemeType extends Theme = RequiredTheme> extends BoxShadowProps<ThemeType>, TextShadowProps<ThemeType> {}
|
|
294
|
+
interface TextStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
295
|
+
textStyle?: ResponsiveValue<string, ThemeType>;
|
|
296
|
+
}
|
|
297
|
+
interface ButtonStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
298
|
+
variant?: ResponsiveValue<string, ThemeType>;
|
|
299
|
+
}
|
|
300
|
+
interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
|
|
301
|
+
colors?: ResponsiveValue<string, ThemeType>;
|
|
302
|
+
}
|
|
303
|
+
//#endregion
|
|
304
|
+
export { LayoutProps as $, FlexWrapProps as A, VerticalAlignProps as At, GridColumnGapProps as B, ColorStyleProps as C, TextColorProps as Ct, FlexGrowProps as D, ThemeValue as Dt, FlexDirectionProps as E, Theme as Et, FontWeightProps as F, GridRowProps as G, GridGapProps as H, GridAreaProps as I, GridTemplateRowsProps as J, GridTemplateAreasProps as K, GridAutoColumnsProps as L, FontFamilyProps as M, ZIndexProps as Mt, FontSizeProps as N, FlexProps as O, TopProps as Ot, FontStyleProps as P, JustifySelfProps as Q, GridAutoFlowProps as R, ColorProps as S, TextAlignProps as St, FlexBasisProps as T, TextStyleProps as Tt, GridProps as U, GridColumnProps as V, GridRowGapProps as W, JustifyContentProps as X, HeightProps as Y, JustifyItemsProps as Z, BorderTopProps as _, Scale as _t, BackgroundImageProps as a, MaxWidthProps as at, BoxShadowProps as b, SpaceProps as bt, BackgroundRepeatProps as c, ObjectOrArray as ct, BorderColorProps as d, OverflowProps as dt, LeftProps as et, BorderLeftProps as f, PaddingProps as ft, BorderStyleProps as g, RightProps as gt, BorderRightProps as h, ResponsiveValue as ht, BackgroundColorProps as i, MaxHeightProps as it, FlexboxProps as j, WidthProps as jt, FlexShrinkProps as k, TypographyProps as kt, BackgroundSizeProps as l, OpacityProps as lt, BorderRadiusProps as m, RequiredTheme as mt, AlignItemsProps as n, LineHeightProps as nt, BackgroundPositionProps as o, MinHeightProps as ot, BorderProps as p, PositionProps as pt, GridTemplateColumnsProps as q, AlignSelfProps as r, MarginProps as rt, BackgroundProps as s, MinWidthProps as st, AlignContentProps as t, LetterSpacingProps as tt, BorderBottomProps as u, OrderProps as ut, BorderWidthProps as v, ShadowProps as vt, DisplayProps as w, TextShadowProps as wt, ButtonStyleProps as x, TLengthStyledSystem as xt, BottomProps as y, SizeProps as yt, GridAutoRowsProps as z };
|
package/dist/typography.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { F as FontWeightProps, M as FontFamilyProps, N as FontSizeProps, P as FontStyleProps, St as TextAlignProps, kt as TypographyProps, nt as LineHeightProps, tt as LetterSpacingProps } from "./types-CCujn9-2.cjs";
|
|
2
|
+
import { t as typography } from "./index-BrXslH97.cjs";
|
|
3
|
+
export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TypographyProps, typography as default, typography };
|
package/dist/typography.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { F as FontWeightProps, M as FontFamilyProps, N as FontSizeProps, P as FontStyleProps, St as TextAlignProps, kt as TypographyProps, nt as LineHeightProps, tt as LetterSpacingProps } from "./types-CCujn9-2.mjs";
|
|
2
|
+
import { t as typography } from "./index-DzPnzx9p.mjs";
|
|
3
|
+
export { type FontFamilyProps, type FontSizeProps, type FontStyleProps, type FontWeightProps, type LetterSpacingProps, type LineHeightProps, type TextAlignProps, type TypographyProps, typography as default, typography };
|
package/dist/variant.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-CCujn9-2.cjs";
|
|
2
|
+
import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle, t as VariantOptions } from "./index-5FNmSnEI.cjs";
|
|
3
|
+
export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
|
package/dist/variant.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { C as ColorStyleProps, Tt as TextStyleProps, x as ButtonStyleProps } from "./types-CCujn9-2.mjs";
|
|
2
|
+
import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle, t as VariantOptions } from "./index-CeQ5ox80.mjs";
|
|
3
|
+
export { type ButtonStyleProps, type ColorStyleProps, type TextStyleProps, VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
|