Skip to content

Commit 65c04de

Browse files
authored
fix: fix minW, minH, maxW, maxH (#217)
1 parent 64d89fc commit 65c04de

File tree

1 file changed

+52
-48
lines changed

1 file changed

+52
-48
lines changed

packages/system/src/styles/sizing.ts

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export interface MaxWidthProps<T extends ITheme = Theme> {
112112
placeholderMaxW?: MaxWidthProp<T>
113113
}
114114
export const maxWidth = style({
115+
cssProperty: 'maxWidth',
115116
prop: ['maxWidth', 'maxW'],
116117
themeGet: getSize,
117118
})
@@ -140,24 +141,25 @@ export interface MaxHeightProps<T extends ITheme = Theme> {
140141
placeholderMaxHeight?: MaxHeightProp<T>
141142

142143
// maxH
143-
maxH?: MaxWidthProp<T>
144-
motionSafeMaxH?: MaxWidthProp<T>
145-
motionReduceMaxH?: MaxWidthProp<T>
146-
firstMaxH?: MaxWidthProp<T>
147-
lastMaxH?: MaxWidthProp<T>
148-
oddMaxH?: MaxWidthProp<T>
149-
evenMaxH?: MaxWidthProp<T>
150-
visitedMaxH?: MaxWidthProp<T>
151-
checkedMaxH?: MaxWidthProp<T>
152-
focusWithinMaxH?: MaxWidthProp<T>
153-
hoverMaxH?: MaxWidthProp<T>
154-
focusMaxH?: MaxWidthProp<T>
155-
focusVisibleMaxH?: MaxWidthProp<T>
156-
activeMaxH?: MaxWidthProp<T>
157-
disabledMaxH?: MaxWidthProp<T>
158-
placeholderMaxH?: MaxWidthProp<T>
144+
maxH?: MaxHeightProp<T>
145+
motionSafeMaxH?: MaxHeightProp<T>
146+
motionReduceMaxH?: MaxHeightProp<T>
147+
firstMaxH?: MaxHeightProp<T>
148+
lastMaxH?: MaxHeightProp<T>
149+
oddMaxH?: MaxHeightProp<T>
150+
evenMaxH?: MaxHeightProp<T>
151+
visitedMaxH?: MaxHeightProp<T>
152+
checkedMaxH?: MaxHeightProp<T>
153+
focusWithinMaxH?: MaxHeightProp<T>
154+
hoverMaxH?: MaxHeightProp<T>
155+
focusMaxH?: MaxHeightProp<T>
156+
focusVisibleMaxH?: MaxHeightProp<T>
157+
activeMaxH?: MaxHeightProp<T>
158+
disabledMaxH?: MaxHeightProp<T>
159+
placeholderMaxH?: MaxHeightProp<T>
159160
}
160161
export const maxHeight = style({
162+
cssProperty: 'maxHeight',
161163
prop: ['maxHeight', 'maxH'],
162164
themeGet: getSize,
163165
})
@@ -186,24 +188,25 @@ export interface MinWidthProps<T extends ITheme = Theme> {
186188
placeholderMinWidth?: MinWidthProp<T>
187189

188190
// minW
189-
minW?: MaxWidthProp<T>
190-
motionSafeMinW?: MaxWidthProp<T>
191-
motionReduceMinW?: MaxWidthProp<T>
192-
firstMinW?: MaxWidthProp<T>
193-
lastMinW?: MaxWidthProp<T>
194-
oddMinW?: MaxWidthProp<T>
195-
evenMinW?: MaxWidthProp<T>
196-
visitedMinW?: MaxWidthProp<T>
197-
checkedMinW?: MaxWidthProp<T>
198-
focusWithinMinW?: MaxWidthProp<T>
199-
hoverMinW?: MaxWidthProp<T>
200-
focusMinW?: MaxWidthProp<T>
201-
focusVisibleMinW?: MaxWidthProp<T>
202-
activeMinW?: MaxWidthProp<T>
203-
disabledMinW?: MaxWidthProp<T>
204-
placeholderMinW?: MaxWidthProp<T>
191+
minW?: MinWidthProp<T>
192+
motionSafeMinW?: MinWidthProp<T>
193+
motionReduceMinW?: MinWidthProp<T>
194+
firstMinW?: MinWidthProp<T>
195+
lastMinW?: MinWidthProp<T>
196+
oddMinW?: MinWidthProp<T>
197+
evenMinW?: MinWidthProp<T>
198+
visitedMinW?: MinWidthProp<T>
199+
checkedMinW?: MinWidthProp<T>
200+
focusWithinMinW?: MinWidthProp<T>
201+
hoverMinW?: MinWidthProp<T>
202+
focusMinW?: MinWidthProp<T>
203+
focusVisibleMinW?: MinWidthProp<T>
204+
activeMinW?: MinWidthProp<T>
205+
disabledMinW?: MinWidthProp<T>
206+
placeholderMinW?: MinWidthProp<T>
205207
}
206208
export const minWidth = style({
209+
cssProperty: 'minWidth',
207210
prop: ['minWidth', 'minW'],
208211
themeGet: getSize,
209212
})
@@ -232,24 +235,25 @@ export interface MinHeightProps<T extends ITheme = Theme> {
232235
placeholderMinHeight?: MinHeightProp<T>
233236

234237
// minH
235-
minH?: MaxWidthProp<T>
236-
motionSafeMinH?: MaxWidthProp<T>
237-
motionReduceMinH?: MaxWidthProp<T>
238-
firstMinH?: MaxWidthProp<T>
239-
lastMinH?: MaxWidthProp<T>
240-
oddMinH?: MaxWidthProp<T>
241-
evenMinH?: MaxWidthProp<T>
242-
visitedMinH?: MaxWidthProp<T>
243-
checkedMinH?: MaxWidthProp<T>
244-
focusWithinMinH?: MaxWidthProp<T>
245-
hoverMinH?: MaxWidthProp<T>
246-
focusMinH?: MaxWidthProp<T>
247-
focusVisibleMinH?: MaxWidthProp<T>
248-
activeMinH?: MaxWidthProp<T>
249-
disabledMinH?: MaxWidthProp<T>
250-
placeholderMinH?: MaxWidthProp<T>
238+
minH?: MinHeightProp<T>
239+
motionSafeMinH?: MinHeightProp<T>
240+
motionReduceMinH?: MinHeightProp<T>
241+
firstMinH?: MinHeightProp<T>
242+
lastMinH?: MinHeightProp<T>
243+
oddMinH?: MinHeightProp<T>
244+
evenMinH?: MinHeightProp<T>
245+
visitedMinH?: MinHeightProp<T>
246+
checkedMinH?: MinHeightProp<T>
247+
focusWithinMinH?: MinHeightProp<T>
248+
hoverMinH?: MinHeightProp<T>
249+
focusMinH?: MinHeightProp<T>
250+
focusVisibleMinH?: MinHeightProp<T>
251+
activeMinH?: MinHeightProp<T>
252+
disabledMinH?: MinHeightProp<T>
253+
placeholderMinH?: MinHeightProp<T>
251254
}
252255
export const minHeight = style({
256+
cssProperty: 'minHeight',
253257
prop: ['minHeight', 'minH'],
254258
themeGet: getSize,
255259
})

0 commit comments

Comments
 (0)