@hopper-ui/styled-system 0.2.0 → 0.2.2
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/CHANGELOG.md +12 -0
- package/dist/StyledSystemProvider.css +132 -1
- package/dist/StyledSystemProvider.d.ts +42 -4
- package/dist/StyledSystemProvider.js +25 -26
- package/dist/chunk-2ITAI3PJ.js +270 -0
- package/dist/chunk-35LDZFKX.js +29 -0
- package/dist/chunk-3YM73BQP.js +6 -0
- package/dist/chunk-7HCELIKZ.js +41 -0
- package/dist/chunk-FYKLSVLR.js +39 -0
- package/dist/chunk-GYREQTEK.js +30 -0
- package/dist/chunk-I37Y2R7V.js +4 -0
- package/dist/chunk-IK6W4ZXH.js +11 -0
- package/dist/chunk-IP7TYBR3.js +19 -0
- package/dist/chunk-JBWKRDVA.js +27 -0
- package/dist/chunk-JQBON2KA.js +23 -0
- package/dist/chunk-KUUJ37DW.js +96 -0
- package/dist/chunk-LU33LZMJ.js +55 -0
- package/dist/chunk-OHW5NUAW.js +59 -0
- package/dist/chunk-Q3NLRNZN.js +881 -0
- package/dist/chunk-RIR7BXVF.js +711 -0
- package/dist/chunk-STEDL5VQ.js +25 -0
- package/dist/chunk-U3SI5QXV.js +911 -0
- package/dist/chunk-U5R6ZXH3.js +46 -0
- package/dist/chunk-V7X6ANEM.js +14 -0
- package/dist/chunk-X5OXC6DN.js +9 -0
- package/dist/chunk-XUHDFZZL.js +10 -0
- package/dist/chunk-YPIK2HRL.js +6 -0
- package/dist/chunk-ZO3DYLQJ.js +32 -0
- package/dist/chunk-ZQUJDDQL.js +84 -0
- package/dist/chunk-ZUVKM5DV.js +13 -0
- package/dist/color-scheme/ColorSchemeContext.d.ts +12 -0
- package/dist/color-scheme/ColorSchemeContext.js +1 -0
- package/dist/color-scheme/useColorScheme.d.ts +6 -0
- package/dist/color-scheme/useColorScheme.js +2 -0
- package/dist/color-scheme/useColorSchemeValue.d.ts +3 -0
- package/dist/color-scheme/useColorSchemeValue.js +2 -0
- package/dist/global-styles/BodyStyleProvider.d.ts +5 -0
- package/dist/global-styles/BodyStyleProvider.js +8 -0
- package/dist/html-wrappers/html.css +132 -0
- package/dist/{StyledSystemProvider-173b78af.d.ts → html-wrappers/html.d.ts} +8 -53
- package/dist/html-wrappers/html.js +10 -0
- package/dist/html-wrappers/htmlElement.css +132 -0
- package/dist/html-wrappers/htmlElement.d.ts +12 -0
- package/dist/html-wrappers/htmlElement.js +9 -0
- package/dist/index.css +132 -1
- package/dist/index.d.ts +23 -2385
- package/dist/index.js +26 -26
- package/dist/responsive/BreakpointContext.d.ts +10 -0
- package/dist/responsive/BreakpointContext.js +2 -0
- package/dist/responsive/BreakpointProvider.d.ts +12 -0
- package/dist/responsive/BreakpointProvider.js +5 -0
- package/dist/responsive/Breakpoints.d.ts +10 -0
- package/dist/responsive/Breakpoints.js +1 -0
- package/dist/responsive/useResponsiveValue.d.ts +11 -0
- package/dist/responsive/useResponsiveValue.js +4 -0
- package/dist/styled-system-props.d.ts +1246 -3
- package/dist/styled-system-props.js +1 -3
- package/dist/styled-system-root-css-class.js +1 -3
- package/dist/tokens/TokenProvider.d.ts +20 -0
- package/dist/tokens/TokenProvider.js +8 -0
- package/dist/tokens/generated/dark-semantic-tokens.d.ts +272 -0
- package/dist/tokens/generated/dark-semantic-tokens.js +1 -0
- package/dist/tokens/generated/light-semantic-tokens.d.ts +883 -0
- package/dist/tokens/generated/light-semantic-tokens.js +1 -0
- package/dist/tokens/generated/styled-system-to-token-mappings.d.ts +913 -0
- package/dist/tokens/generated/styled-system-to-token-mappings.js +1 -0
- package/dist/{styled-system-props-1c231c50.d.ts → tokens/token-mappings.d.ts} +2 -1258
- package/dist/tokens/token-mappings.js +6 -0
- package/dist/tokens/tokens.d.ts +1154 -0
- package/dist/tokens/tokens.js +3 -0
- package/dist/useStyledSystem.css +125 -1
- package/dist/useStyledSystem.d.ts +4 -1
- package/dist/useStyledSystem.js +8 -5
- package/dist/utils/assertion.d.ts +15 -0
- package/dist/utils/assertion.js +1 -0
- package/dist/utils/useInsertStyleElement.d.ts +6 -0
- package/dist/utils/useInsertStyleElement.js +3 -0
- package/dist/utils/useIsomorphicInsertionEffect.d.ts +16 -0
- package/dist/utils/useIsomorphicInsertionEffect.js +1 -0
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +16 -0
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -0
- package/dist/utils/useMediaQuery.d.ts +4 -0
- package/dist/utils/useMediaQuery.js +1 -0
- package/dist/utils/useThemeComputedStyle.d.ts +14 -0
- package/dist/utils/useThemeComputedStyle.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,711 @@
|
|
|
1
|
+
import { parseResponsiveSystemValue, ColorExpressionTypes, DefaultBorderWidthAndStyle, BackgroundColorMapping, BorderMapping, BorderRadiusMapping, BoxShadowMapping, TextColorMapping, SimpleMarginMapping, IconColorMapping, FontFamilyMapping, FontSizeMapping, FontWeightMapping, SizingMapping, LineHeightMapping, ComplexMarginMapping, ComplexPaddingMapping, SimplePaddingMapping } from './chunk-KUUJ37DW.js';
|
|
2
|
+
import { parseResponsiveValue } from './chunk-GYREQTEK.js';
|
|
3
|
+
import { useBreakpointContext } from './chunk-ZUVKM5DV.js';
|
|
4
|
+
import { isNil } from './chunk-U5R6ZXH3.js';
|
|
5
|
+
import { UnsafePrefix } from './chunk-I37Y2R7V.js';
|
|
6
|
+
import { useMemo } from 'react';
|
|
7
|
+
|
|
8
|
+
// css-module:./UseStyledSystem.module.css#css-module
|
|
9
|
+
var UseStyledSystem_module_default = { "hop-b-hover": "UseStyledSystem-module__hop-b-hover___J4CU8", "hop-bb-hover": "UseStyledSystem-module__hop-bb-hover___kSFWj", "hop-bl-hover": "UseStyledSystem-module__hop-bl-hover___1Cezh", "hop-br-hover": "UseStyledSystem-module__hop-br-hover___6QimZ", "hop-bt-hover": "UseStyledSystem-module__hop-bt-hover___t7jJb", "hop-b-focus": "UseStyledSystem-module__hop-b-focus___GAcvC", "hop-bb-focus": "UseStyledSystem-module__hop-bb-focus___tRcZ7", "hop-bl-focus": "UseStyledSystem-module__hop-bl-focus___tHmqH", "hop-br-focus": "UseStyledSystem-module__hop-br-focus___o38Ur", "hop-bt-focus": "UseStyledSystem-module__hop-bt-focus___Iuh-n", "hop-b-active": "UseStyledSystem-module__hop-b-active___T6lcA", "hop-bb-active": "UseStyledSystem-module__hop-bb-active___GMekS", "hop-bl-active": "UseStyledSystem-module__hop-bl-active___yAT0P", "hop-br-active": "UseStyledSystem-module__hop-br-active___gjJ1X", "hop-bt-active": "UseStyledSystem-module__hop-bt-active___-jY1M", "hop-bg-hover": "UseStyledSystem-module__hop-bg-hover___YImIc", "hop-bg-focus": "UseStyledSystem-module__hop-bg-focus___Cop9n", "hop-bg-active": "UseStyledSystem-module__hop-bg-active___5O85P", "hop-bs-hover": "UseStyledSystem-module__hop-bs-hover___8Oj0h", "hop-bs-focus": "UseStyledSystem-module__hop-bs-focus___r9l2R", "hop-bs-active": "UseStyledSystem-module__hop-bs-active___XyHmm", "hop-c-hover": "UseStyledSystem-module__hop-c-hover___yYnaZ", "hop-c-focus": "UseStyledSystem-module__hop-c-focus___Z9ASb", "hop-c-active": "UseStyledSystem-module__hop-c-active___zk1Gb", "hop-cs-hover": "UseStyledSystem-module__hop-cs-hover___jOiBf", "hop-f-hover": "UseStyledSystem-module__hop-f-hover___huyDo", "hop-f-focus": "UseStyledSystem-module__hop-f-focus___5-VRH", "hop-o-hover": "UseStyledSystem-module__hop-o-hover___Ntq4o", "hop-o-focus": "UseStyledSystem-module__hop-o-focus___Xxebb", "hop-o-active": "UseStyledSystem-module__hop-o-active___uJ6oe", "hop-ol-focus": "UseStyledSystem-module__hop-ol-focus___iZ2fp" };
|
|
10
|
+
|
|
11
|
+
// src/useStyledSystem.ts
|
|
12
|
+
function createSystemValueHandler(systemValues) {
|
|
13
|
+
return (name, value, context) => {
|
|
14
|
+
const parsedValue = parseResponsiveSystemValue(value, systemValues, context.matchedBreakpoints);
|
|
15
|
+
if (!isNil(parsedValue)) {
|
|
16
|
+
context.addStyleValue(name, parsedValue);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function createPassthroughHandler() {
|
|
21
|
+
return (name, value, context) => {
|
|
22
|
+
const parsedValue = parseResponsiveValue(value, context.matchedBreakpoints);
|
|
23
|
+
if (!isNil(parsedValue)) {
|
|
24
|
+
context.addStyleValue(name, parsedValue);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function createAxisHandler(firstPropName, secondPropName, systemValues) {
|
|
29
|
+
const firstHandler = createSystemValueHandler(systemValues);
|
|
30
|
+
const secondHandler = createSystemValueHandler(systemValues);
|
|
31
|
+
return (_, value, context) => {
|
|
32
|
+
firstHandler(firstPropName, value, context);
|
|
33
|
+
secondHandler(secondPropName, value, context);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function createPseudoHandler(pseudoClassName, pseudoVariable, systemValues) {
|
|
37
|
+
const systemValueHandler = (name, value, context) => {
|
|
38
|
+
const parsedValue = parseResponsiveSystemValue(value, systemValues, context.matchedBreakpoints);
|
|
39
|
+
if (!isNil(parsedValue)) {
|
|
40
|
+
context.addClass(pseudoClassName);
|
|
41
|
+
context.addStyleValue(pseudoVariable, parsedValue);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const passThroughHandler = (name, value, context) => {
|
|
45
|
+
const parsedValue = parseResponsiveValue(value, context.matchedBreakpoints);
|
|
46
|
+
if (!isNil(parsedValue)) {
|
|
47
|
+
context.addClass(pseudoClassName);
|
|
48
|
+
context.addStyleValue(pseudoVariable, parsedValue);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return !isNil(systemValues) ? systemValueHandler : passThroughHandler;
|
|
52
|
+
}
|
|
53
|
+
function createBorderHandler(systemValues) {
|
|
54
|
+
return (name, value, context) => {
|
|
55
|
+
const parsedValue = parseResponsiveSystemValue(value, systemValues, context.matchedBreakpoints);
|
|
56
|
+
if (!isNil(parsedValue)) {
|
|
57
|
+
if (typeof parsedValue === "string" && ColorExpressionTypes.some((x) => parsedValue.startsWith(x))) {
|
|
58
|
+
context.addStyleValue(name, `${DefaultBorderWidthAndStyle} ${parsedValue}`);
|
|
59
|
+
} else {
|
|
60
|
+
context.addStyleValue(name, parsedValue);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function createBorderPseudoHandler(pseudoClassName, pseudoVariable, systemValues) {
|
|
66
|
+
return (name, value, context) => {
|
|
67
|
+
const parsedValue = parseResponsiveSystemValue(value, systemValues, context.matchedBreakpoints);
|
|
68
|
+
if (!isNil(parsedValue)) {
|
|
69
|
+
context.addClass(pseudoClassName);
|
|
70
|
+
if (typeof parsedValue === "string" && ColorExpressionTypes.some((x) => parsedValue.startsWith(x))) {
|
|
71
|
+
context.addStyleValue(pseudoVariable, `${DefaultBorderWidthAndStyle} ${parsedValue}`);
|
|
72
|
+
} else {
|
|
73
|
+
context.addStyleValue(pseudoVariable, parsedValue);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
var gridColumnSpanHandler = (name, value, context) => {
|
|
79
|
+
const parsedValue = parseResponsiveValue(value, context.matchedBreakpoints);
|
|
80
|
+
if (!isNil(parsedValue)) {
|
|
81
|
+
context.addStyleValue("gridColumn", `span ${parsedValue} / span ${parsedValue}`);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
var gridRowSpanHandler = (name, value, context) => {
|
|
85
|
+
const parsedValue = parseResponsiveValue(value, context.matchedBreakpoints);
|
|
86
|
+
if (!isNil(parsedValue)) {
|
|
87
|
+
context.addStyleValue("gridRow", `span ${parsedValue} / span ${parsedValue}`);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var PropsHandlers = {
|
|
91
|
+
alignContent: createPassthroughHandler(),
|
|
92
|
+
alignItems: createPassthroughHandler(),
|
|
93
|
+
alignSelf: createPassthroughHandler(),
|
|
94
|
+
aspectRatio: createPassthroughHandler(),
|
|
95
|
+
backgroundColor: createSystemValueHandler(BackgroundColorMapping),
|
|
96
|
+
backgroundColorActive: createPseudoHandler(UseStyledSystem_module_default["hop-bg-active"], "--hop-bg-active", BackgroundColorMapping),
|
|
97
|
+
backgroundColorFocus: createPseudoHandler(UseStyledSystem_module_default["hop-bg-focus"], "--hop-bg-focus", BackgroundColorMapping),
|
|
98
|
+
backgroundColorHover: createPseudoHandler(UseStyledSystem_module_default["hop-bg-hover"], "--hop-bg-hover", BackgroundColorMapping),
|
|
99
|
+
backgroundImage: createPassthroughHandler(),
|
|
100
|
+
backgroundPosition: createPassthroughHandler(),
|
|
101
|
+
backgroundRepeat: createPassthroughHandler(),
|
|
102
|
+
backgroundSize: createPassthroughHandler(),
|
|
103
|
+
border: createBorderHandler(BorderMapping),
|
|
104
|
+
borderBottom: createBorderHandler(BorderMapping),
|
|
105
|
+
borderBottomActive: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bb-active"], "--hop-bb-active", BorderMapping),
|
|
106
|
+
borderBottomFocus: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bb-focus"], "--hop-bb-focus", BorderMapping),
|
|
107
|
+
borderBottomHover: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bb-hover"], "--hop-bb-hover", BorderMapping),
|
|
108
|
+
borderBottomLeftRadius: createSystemValueHandler(BorderRadiusMapping),
|
|
109
|
+
borderBottomRightRadius: createSystemValueHandler(BorderRadiusMapping),
|
|
110
|
+
borderActive: createBorderPseudoHandler(UseStyledSystem_module_default["hop-b-active"], "--hop-b-active", BorderMapping),
|
|
111
|
+
borderFocus: createBorderPseudoHandler(UseStyledSystem_module_default["hop-b-focus"], "--hop-b-focus", BorderMapping),
|
|
112
|
+
borderHover: createBorderPseudoHandler(UseStyledSystem_module_default["hop-b-hover"], "--hop-b-hover", BorderMapping),
|
|
113
|
+
borderLeft: createBorderHandler(BorderMapping),
|
|
114
|
+
borderLeftActive: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bl-active"], "--hop-bl-active", BorderMapping),
|
|
115
|
+
borderLeftFocus: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bl-focus"], "--hop-bl-focus", BorderMapping),
|
|
116
|
+
borderLeftHover: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bl-hover"], "--hop-bl-hover", BorderMapping),
|
|
117
|
+
borderRadius: createSystemValueHandler(BorderRadiusMapping),
|
|
118
|
+
borderRight: createBorderHandler(BorderMapping),
|
|
119
|
+
borderRightActive: createBorderPseudoHandler(UseStyledSystem_module_default["hop-br-active"], "--hop-br-active", BorderMapping),
|
|
120
|
+
borderRightFocus: createBorderPseudoHandler(UseStyledSystem_module_default["hop-br-focus"], "--hop-br-focus", BorderMapping),
|
|
121
|
+
borderRightHover: createBorderPseudoHandler(UseStyledSystem_module_default["hop-br-hover"], "--hop-br-hover", BorderMapping),
|
|
122
|
+
borderTop: createBorderHandler(BorderMapping),
|
|
123
|
+
borderTopActive: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bt-active"], "--hop-bt-active", BorderMapping),
|
|
124
|
+
borderTopFocus: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bt-focus"], "--hop-bt-focus", BorderMapping),
|
|
125
|
+
borderTopHover: createBorderPseudoHandler(UseStyledSystem_module_default["hop-bt-hover"], "--hop-bt-hover", BorderMapping),
|
|
126
|
+
borderTopLeftRadius: createSystemValueHandler(BorderRadiusMapping),
|
|
127
|
+
borderTopRightRadius: createSystemValueHandler(BorderRadiusMapping),
|
|
128
|
+
bottom: createPassthroughHandler(),
|
|
129
|
+
boxShadow: createSystemValueHandler(BoxShadowMapping),
|
|
130
|
+
boxShadowActive: createPseudoHandler(UseStyledSystem_module_default["hop-bs-active"], "--hop-bs-active", BoxShadowMapping),
|
|
131
|
+
boxShadowFocus: createPseudoHandler(UseStyledSystem_module_default["hop-bs-focus"], "--hop-bs-focus", BoxShadowMapping),
|
|
132
|
+
boxShadowHover: createPseudoHandler(UseStyledSystem_module_default["hop-bs-hover"], "--hop-bs-hover", BoxShadowMapping),
|
|
133
|
+
color: createSystemValueHandler(TextColorMapping),
|
|
134
|
+
colorActive: createPseudoHandler(UseStyledSystem_module_default["hop-c-active"], "--hop-c-active", TextColorMapping),
|
|
135
|
+
colorFocus: createPseudoHandler(UseStyledSystem_module_default["hop-c-focus"], "--hop-c-focus", TextColorMapping),
|
|
136
|
+
colorHover: createPseudoHandler(UseStyledSystem_module_default["hop-c-hover"], "--hop-c-hover", TextColorMapping),
|
|
137
|
+
columnGap: createSystemValueHandler(SimpleMarginMapping),
|
|
138
|
+
content: createPassthroughHandler(),
|
|
139
|
+
contentVisibility: createPassthroughHandler(),
|
|
140
|
+
cursor: createPassthroughHandler(),
|
|
141
|
+
cursorHover: createPseudoHandler(UseStyledSystem_module_default["hop-cs-hover"], "--hop-cs-hover"),
|
|
142
|
+
display: createPassthroughHandler(),
|
|
143
|
+
fill: createSystemValueHandler(IconColorMapping),
|
|
144
|
+
fillFocus: createPseudoHandler(UseStyledSystem_module_default["hop-f-focus"], "--hop-f-focus", IconColorMapping),
|
|
145
|
+
fillHover: createPseudoHandler(UseStyledSystem_module_default["hop-f-hover"], "--hop-f-hover", IconColorMapping),
|
|
146
|
+
filter: createPassthroughHandler(),
|
|
147
|
+
flex: createPassthroughHandler(),
|
|
148
|
+
flexBasis: createPassthroughHandler(),
|
|
149
|
+
flexDirection: createPassthroughHandler(),
|
|
150
|
+
flexFlow: createPassthroughHandler(),
|
|
151
|
+
flexGrow: createPassthroughHandler(),
|
|
152
|
+
flexShrink: createPassthroughHandler(),
|
|
153
|
+
flexWrap: createPassthroughHandler(),
|
|
154
|
+
fontFamily: createSystemValueHandler(FontFamilyMapping),
|
|
155
|
+
fontSize: createSystemValueHandler(FontSizeMapping),
|
|
156
|
+
fontStyle: createPassthroughHandler(),
|
|
157
|
+
fontWeight: createSystemValueHandler(FontWeightMapping),
|
|
158
|
+
gap: createSystemValueHandler(SimpleMarginMapping),
|
|
159
|
+
grid: createPassthroughHandler(),
|
|
160
|
+
gridArea: createPassthroughHandler(),
|
|
161
|
+
gridAutoColumns: createSystemValueHandler(SizingMapping),
|
|
162
|
+
gridAutoFlow: createPassthroughHandler(),
|
|
163
|
+
gridAutoRows: createSystemValueHandler(SizingMapping),
|
|
164
|
+
gridColumn: createPassthroughHandler(),
|
|
165
|
+
gridColumnEnd: createPassthroughHandler(),
|
|
166
|
+
gridColumnSpan: gridColumnSpanHandler,
|
|
167
|
+
gridColumnStart: createPassthroughHandler(),
|
|
168
|
+
gridRow: createPassthroughHandler(),
|
|
169
|
+
gridRowEnd: createPassthroughHandler(),
|
|
170
|
+
gridRowSpan: gridRowSpanHandler,
|
|
171
|
+
gridRowStart: createPassthroughHandler(),
|
|
172
|
+
gridTemplate: createPassthroughHandler(),
|
|
173
|
+
gridTemplateAreas: createPassthroughHandler(),
|
|
174
|
+
gridTemplateColumns: createSystemValueHandler(SizingMapping),
|
|
175
|
+
gridTemplateRows: createSystemValueHandler(SizingMapping),
|
|
176
|
+
height: createSystemValueHandler(SizingMapping),
|
|
177
|
+
justifyContent: createPassthroughHandler(),
|
|
178
|
+
justifyItems: createPassthroughHandler(),
|
|
179
|
+
justifySelf: createPassthroughHandler(),
|
|
180
|
+
left: createPassthroughHandler(),
|
|
181
|
+
letterSpacing: createPassthroughHandler(),
|
|
182
|
+
lineHeight: createSystemValueHandler(LineHeightMapping),
|
|
183
|
+
margin: createSystemValueHandler(ComplexMarginMapping),
|
|
184
|
+
marginBottom: createSystemValueHandler(SimpleMarginMapping),
|
|
185
|
+
marginLeft: createSystemValueHandler(SimpleMarginMapping),
|
|
186
|
+
marginRight: createSystemValueHandler(SimpleMarginMapping),
|
|
187
|
+
marginTop: createSystemValueHandler(SimpleMarginMapping),
|
|
188
|
+
marginX: createAxisHandler("marginLeft", "marginRight", SimpleMarginMapping),
|
|
189
|
+
marginY: createAxisHandler("marginBottom", "marginTop", SimpleMarginMapping),
|
|
190
|
+
maxHeight: createSystemValueHandler(SizingMapping),
|
|
191
|
+
maxWidth: createSystemValueHandler(SizingMapping),
|
|
192
|
+
minHeight: createSystemValueHandler(SizingMapping),
|
|
193
|
+
minWidth: createSystemValueHandler(SizingMapping),
|
|
194
|
+
objectFit: createPassthroughHandler(),
|
|
195
|
+
objectPosition: createPassthroughHandler(),
|
|
196
|
+
opacity: createPassthroughHandler(),
|
|
197
|
+
opacityActive: createPseudoHandler(UseStyledSystem_module_default["hop-o-active"], "hop-o-active"),
|
|
198
|
+
opacityFocus: createPseudoHandler(UseStyledSystem_module_default["hop-o-focus"], "hop-o-focus"),
|
|
199
|
+
opacityHover: createPseudoHandler(UseStyledSystem_module_default["hop-o-hover"], "hop-o-hover"),
|
|
200
|
+
order: createPassthroughHandler(),
|
|
201
|
+
outline: createPassthroughHandler(),
|
|
202
|
+
outlineFocus: createPseudoHandler(UseStyledSystem_module_default["hop-ol-focus"], "hop-ol-focus"),
|
|
203
|
+
overflow: createPassthroughHandler(),
|
|
204
|
+
overflowX: createPassthroughHandler(),
|
|
205
|
+
overflowY: createPassthroughHandler(),
|
|
206
|
+
padding: createSystemValueHandler(ComplexPaddingMapping),
|
|
207
|
+
paddingBottom: createSystemValueHandler(SimplePaddingMapping),
|
|
208
|
+
paddingLeft: createSystemValueHandler(SimplePaddingMapping),
|
|
209
|
+
paddingRight: createSystemValueHandler(SimplePaddingMapping),
|
|
210
|
+
paddingTop: createSystemValueHandler(SimplePaddingMapping),
|
|
211
|
+
paddingX: createAxisHandler("paddingLeft", "paddingRight", SimplePaddingMapping),
|
|
212
|
+
paddingY: createAxisHandler("paddingBottom", "paddingTop", SimplePaddingMapping),
|
|
213
|
+
pointerEvents: createPassthroughHandler(),
|
|
214
|
+
position: createPassthroughHandler(),
|
|
215
|
+
resize: createPassthroughHandler(),
|
|
216
|
+
right: createPassthroughHandler(),
|
|
217
|
+
rowGap: createSystemValueHandler(SimpleMarginMapping),
|
|
218
|
+
stroke: createSystemValueHandler(IconColorMapping),
|
|
219
|
+
textAlign: createPassthroughHandler(),
|
|
220
|
+
textDecoration: createPassthroughHandler(),
|
|
221
|
+
textOverflow: createPassthroughHandler(),
|
|
222
|
+
textTransform: createPassthroughHandler(),
|
|
223
|
+
top: createPassthroughHandler(),
|
|
224
|
+
transform: createPassthroughHandler(),
|
|
225
|
+
transformOrigin: createPassthroughHandler(),
|
|
226
|
+
transformStyle: createPassthroughHandler(),
|
|
227
|
+
verticalAlign: createPassthroughHandler(),
|
|
228
|
+
visibility: createPassthroughHandler(),
|
|
229
|
+
whiteSpace: createPassthroughHandler(),
|
|
230
|
+
width: createSystemValueHandler(SizingMapping),
|
|
231
|
+
willChange: createPassthroughHandler(),
|
|
232
|
+
wordBreak: createPassthroughHandler(),
|
|
233
|
+
zIndex: createPassthroughHandler()
|
|
234
|
+
};
|
|
235
|
+
function isStyledSystemProp(name) {
|
|
236
|
+
return !isNil(PropsHandlers[name]);
|
|
237
|
+
}
|
|
238
|
+
var StylingContext = class {
|
|
239
|
+
#classes;
|
|
240
|
+
#style;
|
|
241
|
+
matchedBreakpoints;
|
|
242
|
+
constructor(className, style, matchedBreakpoints) {
|
|
243
|
+
this.#classes = !isNil(className) ? [className] : [];
|
|
244
|
+
this.#style = { ...style };
|
|
245
|
+
this.matchedBreakpoints = matchedBreakpoints;
|
|
246
|
+
}
|
|
247
|
+
addClass(className) {
|
|
248
|
+
if (!this.#classes.includes(className)) {
|
|
249
|
+
this.#classes.push(className);
|
|
250
|
+
}
|
|
251
|
+
return this;
|
|
252
|
+
}
|
|
253
|
+
addStyleValue(name, value) {
|
|
254
|
+
this.#style[name] = value;
|
|
255
|
+
return this;
|
|
256
|
+
}
|
|
257
|
+
computeStyling() {
|
|
258
|
+
const className = this.#classes.length !== 0 ? this.#classes.join(" ") : void 0;
|
|
259
|
+
const styleValue = Object.keys(this.#style).length !== 0 ? this.#style : void 0;
|
|
260
|
+
return { className, style: styleValue };
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
function useStyledSystem(props) {
|
|
264
|
+
const {
|
|
265
|
+
alignContent,
|
|
266
|
+
alignItems,
|
|
267
|
+
alignSelf,
|
|
268
|
+
aspectRatio,
|
|
269
|
+
backgroundColor,
|
|
270
|
+
backgroundColorActive,
|
|
271
|
+
backgroundColorFocus,
|
|
272
|
+
backgroundColorHover,
|
|
273
|
+
backgroundImage,
|
|
274
|
+
backgroundPosition,
|
|
275
|
+
backgroundRepeat,
|
|
276
|
+
backgroundSize,
|
|
277
|
+
border,
|
|
278
|
+
borderBottom,
|
|
279
|
+
borderBottomActive,
|
|
280
|
+
borderBottomFocus,
|
|
281
|
+
borderBottomHover,
|
|
282
|
+
borderBottomLeftRadius,
|
|
283
|
+
borderBottomRightRadius,
|
|
284
|
+
borderFocus,
|
|
285
|
+
borderHover,
|
|
286
|
+
borderActive,
|
|
287
|
+
borderLeft,
|
|
288
|
+
borderLeftActive,
|
|
289
|
+
borderLeftFocus,
|
|
290
|
+
borderLeftHover,
|
|
291
|
+
borderRadius,
|
|
292
|
+
borderRight,
|
|
293
|
+
borderRightActive,
|
|
294
|
+
borderRightFocus,
|
|
295
|
+
borderRightHover,
|
|
296
|
+
borderTop,
|
|
297
|
+
borderTopActive,
|
|
298
|
+
borderTopFocus,
|
|
299
|
+
borderTopHover,
|
|
300
|
+
borderTopLeftRadius,
|
|
301
|
+
borderTopRightRadius,
|
|
302
|
+
bottom,
|
|
303
|
+
boxShadow,
|
|
304
|
+
boxShadowActive,
|
|
305
|
+
boxShadowFocus,
|
|
306
|
+
boxShadowHover,
|
|
307
|
+
className,
|
|
308
|
+
color,
|
|
309
|
+
colorActive,
|
|
310
|
+
colorFocus,
|
|
311
|
+
colorHover,
|
|
312
|
+
columnGap,
|
|
313
|
+
content,
|
|
314
|
+
contentVisibility,
|
|
315
|
+
cursor,
|
|
316
|
+
cursorHover,
|
|
317
|
+
display,
|
|
318
|
+
fill,
|
|
319
|
+
fillFocus,
|
|
320
|
+
fillHover,
|
|
321
|
+
filter,
|
|
322
|
+
flex,
|
|
323
|
+
flexBasis,
|
|
324
|
+
flexDirection,
|
|
325
|
+
flexFlow,
|
|
326
|
+
flexGrow,
|
|
327
|
+
flexShrink,
|
|
328
|
+
flexWrap,
|
|
329
|
+
fontFamily,
|
|
330
|
+
fontSize,
|
|
331
|
+
fontStyle,
|
|
332
|
+
fontWeight,
|
|
333
|
+
gap,
|
|
334
|
+
grid,
|
|
335
|
+
gridArea,
|
|
336
|
+
gridAutoColumns,
|
|
337
|
+
gridAutoFlow,
|
|
338
|
+
gridAutoRows,
|
|
339
|
+
gridColumn,
|
|
340
|
+
gridColumnEnd,
|
|
341
|
+
gridColumnSpan,
|
|
342
|
+
gridColumnStart,
|
|
343
|
+
gridRow,
|
|
344
|
+
gridRowEnd,
|
|
345
|
+
gridRowSpan,
|
|
346
|
+
gridRowStart,
|
|
347
|
+
gridTemplate,
|
|
348
|
+
gridTemplateAreas,
|
|
349
|
+
gridTemplateColumns,
|
|
350
|
+
gridTemplateRows,
|
|
351
|
+
height,
|
|
352
|
+
justifyContent,
|
|
353
|
+
justifyItems,
|
|
354
|
+
justifySelf,
|
|
355
|
+
left,
|
|
356
|
+
letterSpacing,
|
|
357
|
+
lineHeight,
|
|
358
|
+
margin,
|
|
359
|
+
marginBottom,
|
|
360
|
+
marginLeft,
|
|
361
|
+
marginRight,
|
|
362
|
+
marginTop,
|
|
363
|
+
marginX,
|
|
364
|
+
marginY,
|
|
365
|
+
maxHeight,
|
|
366
|
+
maxWidth,
|
|
367
|
+
minHeight,
|
|
368
|
+
minWidth,
|
|
369
|
+
objectFit,
|
|
370
|
+
objectPosition,
|
|
371
|
+
opacity,
|
|
372
|
+
opacityActive,
|
|
373
|
+
opacityFocus,
|
|
374
|
+
opacityHover,
|
|
375
|
+
order,
|
|
376
|
+
outline,
|
|
377
|
+
outlineFocus,
|
|
378
|
+
overflow,
|
|
379
|
+
overflowX,
|
|
380
|
+
overflowY,
|
|
381
|
+
padding,
|
|
382
|
+
paddingBottom,
|
|
383
|
+
paddingLeft,
|
|
384
|
+
paddingRight,
|
|
385
|
+
paddingTop,
|
|
386
|
+
paddingX,
|
|
387
|
+
paddingY,
|
|
388
|
+
pointerEvents,
|
|
389
|
+
position,
|
|
390
|
+
resize,
|
|
391
|
+
right,
|
|
392
|
+
rowGap,
|
|
393
|
+
stroke,
|
|
394
|
+
style,
|
|
395
|
+
textAlign,
|
|
396
|
+
textDecoration,
|
|
397
|
+
textOverflow,
|
|
398
|
+
textTransform,
|
|
399
|
+
top,
|
|
400
|
+
transition,
|
|
401
|
+
transform,
|
|
402
|
+
transformOrigin,
|
|
403
|
+
transformStyle,
|
|
404
|
+
verticalAlign,
|
|
405
|
+
visibility,
|
|
406
|
+
whiteSpace,
|
|
407
|
+
width,
|
|
408
|
+
willChange,
|
|
409
|
+
wordBreak,
|
|
410
|
+
zIndex,
|
|
411
|
+
UNSAFE_backgroundColor,
|
|
412
|
+
UNSAFE_backgroundColorActive,
|
|
413
|
+
UNSAFE_backgroundColorFocus,
|
|
414
|
+
UNSAFE_backgroundColorHover,
|
|
415
|
+
UNSAFE_border,
|
|
416
|
+
UNSAFE_borderActive,
|
|
417
|
+
UNSAFE_borderBottom,
|
|
418
|
+
UNSAFE_borderBottomActive,
|
|
419
|
+
UNSAFE_borderBottomFocus,
|
|
420
|
+
UNSAFE_borderBottomHover,
|
|
421
|
+
UNSAFE_borderBottomLeftRadius,
|
|
422
|
+
UNSAFE_borderBottomRightRadius,
|
|
423
|
+
UNSAFE_borderFocus,
|
|
424
|
+
UNSAFE_borderHover,
|
|
425
|
+
UNSAFE_borderLeft,
|
|
426
|
+
UNSAFE_borderLeftActive,
|
|
427
|
+
UNSAFE_borderLeftFocus,
|
|
428
|
+
UNSAFE_borderLeftHover,
|
|
429
|
+
UNSAFE_borderRadius,
|
|
430
|
+
UNSAFE_borderRight,
|
|
431
|
+
UNSAFE_borderRightActive,
|
|
432
|
+
UNSAFE_borderRightFocus,
|
|
433
|
+
UNSAFE_borderRightHover,
|
|
434
|
+
UNSAFE_borderTop,
|
|
435
|
+
UNSAFE_borderTopActive,
|
|
436
|
+
UNSAFE_borderTopFocus,
|
|
437
|
+
UNSAFE_borderTopHover,
|
|
438
|
+
UNSAFE_borderTopLeftRadius,
|
|
439
|
+
UNSAFE_borderTopRightRadius,
|
|
440
|
+
UNSAFE_boxShadow,
|
|
441
|
+
UNSAFE_color,
|
|
442
|
+
UNSAFE_columnGap,
|
|
443
|
+
UNSAFE_fill,
|
|
444
|
+
UNSAFE_fontFamily,
|
|
445
|
+
UNSAFE_fontSize,
|
|
446
|
+
UNSAFE_fontWeight,
|
|
447
|
+
UNSAFE_gap,
|
|
448
|
+
UNSAFE_gridAutoColumns,
|
|
449
|
+
UNSAFE_gridAutoRows,
|
|
450
|
+
UNSAFE_gridTemplateColumns,
|
|
451
|
+
UNSAFE_gridTemplateRows,
|
|
452
|
+
UNSAFE_height,
|
|
453
|
+
UNSAFE_lineHeight,
|
|
454
|
+
UNSAFE_margin,
|
|
455
|
+
UNSAFE_marginBottom,
|
|
456
|
+
UNSAFE_marginLeft,
|
|
457
|
+
UNSAFE_marginRight,
|
|
458
|
+
UNSAFE_marginTop,
|
|
459
|
+
UNSAFE_marginX,
|
|
460
|
+
UNSAFE_marginY,
|
|
461
|
+
UNSAFE_maxHeight,
|
|
462
|
+
UNSAFE_maxWidth,
|
|
463
|
+
UNSAFE_minHeight,
|
|
464
|
+
UNSAFE_minWidth,
|
|
465
|
+
UNSAFE_padding,
|
|
466
|
+
UNSAFE_paddingBottom,
|
|
467
|
+
UNSAFE_paddingLeft,
|
|
468
|
+
UNSAFE_paddingRight,
|
|
469
|
+
UNSAFE_paddingTop,
|
|
470
|
+
UNSAFE_paddingX,
|
|
471
|
+
UNSAFE_paddingY,
|
|
472
|
+
UNSAFE_rowGap,
|
|
473
|
+
UNSAFE_stroke,
|
|
474
|
+
UNSAFE_width,
|
|
475
|
+
...rest
|
|
476
|
+
} = props;
|
|
477
|
+
const { matchedBreakpoints } = useBreakpointContext();
|
|
478
|
+
const styling = useMemo(() => {
|
|
479
|
+
const context = new StylingContext(className, style, matchedBreakpoints);
|
|
480
|
+
Object.keys(props).forEach((key) => {
|
|
481
|
+
const value = props[key];
|
|
482
|
+
if (!isNil(value)) {
|
|
483
|
+
const cssProperty = key.replace(UnsafePrefix, "");
|
|
484
|
+
const handler = PropsHandlers[cssProperty];
|
|
485
|
+
if (!isNil(handler)) {
|
|
486
|
+
handler(cssProperty, value, context);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
return context.computeStyling();
|
|
491
|
+
}, [
|
|
492
|
+
alignContent,
|
|
493
|
+
alignItems,
|
|
494
|
+
alignSelf,
|
|
495
|
+
aspectRatio,
|
|
496
|
+
backgroundColor,
|
|
497
|
+
backgroundColorActive,
|
|
498
|
+
backgroundColorFocus,
|
|
499
|
+
backgroundColorHover,
|
|
500
|
+
backgroundImage,
|
|
501
|
+
backgroundPosition,
|
|
502
|
+
backgroundRepeat,
|
|
503
|
+
backgroundSize,
|
|
504
|
+
border,
|
|
505
|
+
borderBottom,
|
|
506
|
+
borderBottomActive,
|
|
507
|
+
borderBottomFocus,
|
|
508
|
+
borderBottomHover,
|
|
509
|
+
borderLeft,
|
|
510
|
+
borderLeftActive,
|
|
511
|
+
borderLeftFocus,
|
|
512
|
+
borderLeftHover,
|
|
513
|
+
borderRight,
|
|
514
|
+
borderRightActive,
|
|
515
|
+
borderRightFocus,
|
|
516
|
+
borderRightHover,
|
|
517
|
+
borderTop,
|
|
518
|
+
borderTopActive,
|
|
519
|
+
borderTopFocus,
|
|
520
|
+
borderTopHover,
|
|
521
|
+
borderActive,
|
|
522
|
+
borderFocus,
|
|
523
|
+
borderHover,
|
|
524
|
+
borderRadius,
|
|
525
|
+
borderBottomLeftRadius,
|
|
526
|
+
borderBottomRightRadius,
|
|
527
|
+
borderTopLeftRadius,
|
|
528
|
+
borderTopRightRadius,
|
|
529
|
+
boxShadow,
|
|
530
|
+
boxShadowActive,
|
|
531
|
+
boxShadowFocus,
|
|
532
|
+
boxShadowHover,
|
|
533
|
+
bottom,
|
|
534
|
+
matchedBreakpoints,
|
|
535
|
+
className,
|
|
536
|
+
color,
|
|
537
|
+
colorActive,
|
|
538
|
+
colorFocus,
|
|
539
|
+
colorHover,
|
|
540
|
+
columnGap,
|
|
541
|
+
content,
|
|
542
|
+
contentVisibility,
|
|
543
|
+
cursor,
|
|
544
|
+
cursorHover,
|
|
545
|
+
display,
|
|
546
|
+
fill,
|
|
547
|
+
fillFocus,
|
|
548
|
+
fillHover,
|
|
549
|
+
filter,
|
|
550
|
+
flex,
|
|
551
|
+
flexBasis,
|
|
552
|
+
flexDirection,
|
|
553
|
+
flexFlow,
|
|
554
|
+
flexGrow,
|
|
555
|
+
flexShrink,
|
|
556
|
+
flexWrap,
|
|
557
|
+
fontFamily,
|
|
558
|
+
fontSize,
|
|
559
|
+
fontStyle,
|
|
560
|
+
fontWeight,
|
|
561
|
+
gap,
|
|
562
|
+
grid,
|
|
563
|
+
gridArea,
|
|
564
|
+
gridAutoColumns,
|
|
565
|
+
gridAutoFlow,
|
|
566
|
+
gridAutoRows,
|
|
567
|
+
gridColumn,
|
|
568
|
+
gridColumnEnd,
|
|
569
|
+
gridColumnSpan,
|
|
570
|
+
gridColumnStart,
|
|
571
|
+
gridRow,
|
|
572
|
+
gridRowEnd,
|
|
573
|
+
gridRowSpan,
|
|
574
|
+
gridRowStart,
|
|
575
|
+
gridTemplate,
|
|
576
|
+
gridTemplateAreas,
|
|
577
|
+
gridTemplateColumns,
|
|
578
|
+
gridTemplateRows,
|
|
579
|
+
height,
|
|
580
|
+
justifyContent,
|
|
581
|
+
justifyItems,
|
|
582
|
+
justifySelf,
|
|
583
|
+
left,
|
|
584
|
+
letterSpacing,
|
|
585
|
+
lineHeight,
|
|
586
|
+
margin,
|
|
587
|
+
marginBottom,
|
|
588
|
+
marginLeft,
|
|
589
|
+
marginRight,
|
|
590
|
+
marginTop,
|
|
591
|
+
marginX,
|
|
592
|
+
marginY,
|
|
593
|
+
maxHeight,
|
|
594
|
+
maxWidth,
|
|
595
|
+
minHeight,
|
|
596
|
+
minWidth,
|
|
597
|
+
objectFit,
|
|
598
|
+
objectPosition,
|
|
599
|
+
opacity,
|
|
600
|
+
opacityActive,
|
|
601
|
+
opacityFocus,
|
|
602
|
+
opacityHover,
|
|
603
|
+
order,
|
|
604
|
+
outline,
|
|
605
|
+
outlineFocus,
|
|
606
|
+
overflow,
|
|
607
|
+
overflowX,
|
|
608
|
+
overflowY,
|
|
609
|
+
padding,
|
|
610
|
+
paddingBottom,
|
|
611
|
+
paddingLeft,
|
|
612
|
+
paddingRight,
|
|
613
|
+
paddingTop,
|
|
614
|
+
paddingX,
|
|
615
|
+
paddingY,
|
|
616
|
+
pointerEvents,
|
|
617
|
+
position,
|
|
618
|
+
resize,
|
|
619
|
+
right,
|
|
620
|
+
rowGap,
|
|
621
|
+
stroke,
|
|
622
|
+
style,
|
|
623
|
+
textAlign,
|
|
624
|
+
textDecoration,
|
|
625
|
+
textOverflow,
|
|
626
|
+
textTransform,
|
|
627
|
+
top,
|
|
628
|
+
transition,
|
|
629
|
+
transform,
|
|
630
|
+
transformOrigin,
|
|
631
|
+
transformStyle,
|
|
632
|
+
verticalAlign,
|
|
633
|
+
visibility,
|
|
634
|
+
whiteSpace,
|
|
635
|
+
width,
|
|
636
|
+
willChange,
|
|
637
|
+
wordBreak,
|
|
638
|
+
zIndex,
|
|
639
|
+
UNSAFE_backgroundColor,
|
|
640
|
+
UNSAFE_backgroundColorActive,
|
|
641
|
+
UNSAFE_backgroundColorFocus,
|
|
642
|
+
UNSAFE_backgroundColorHover,
|
|
643
|
+
UNSAFE_border,
|
|
644
|
+
UNSAFE_borderActive,
|
|
645
|
+
UNSAFE_borderBottom,
|
|
646
|
+
UNSAFE_borderBottomActive,
|
|
647
|
+
UNSAFE_borderBottomFocus,
|
|
648
|
+
UNSAFE_borderBottomHover,
|
|
649
|
+
UNSAFE_borderBottomLeftRadius,
|
|
650
|
+
UNSAFE_borderBottomRightRadius,
|
|
651
|
+
UNSAFE_borderFocus,
|
|
652
|
+
UNSAFE_borderHover,
|
|
653
|
+
UNSAFE_borderLeft,
|
|
654
|
+
UNSAFE_borderLeftActive,
|
|
655
|
+
UNSAFE_borderLeftFocus,
|
|
656
|
+
UNSAFE_borderLeftHover,
|
|
657
|
+
UNSAFE_borderRadius,
|
|
658
|
+
UNSAFE_borderRight,
|
|
659
|
+
UNSAFE_borderRightActive,
|
|
660
|
+
UNSAFE_borderRightFocus,
|
|
661
|
+
UNSAFE_borderRightHover,
|
|
662
|
+
UNSAFE_borderTop,
|
|
663
|
+
UNSAFE_borderTopActive,
|
|
664
|
+
UNSAFE_borderTopFocus,
|
|
665
|
+
UNSAFE_borderTopHover,
|
|
666
|
+
UNSAFE_borderTopLeftRadius,
|
|
667
|
+
UNSAFE_borderTopRightRadius,
|
|
668
|
+
UNSAFE_boxShadow,
|
|
669
|
+
UNSAFE_color,
|
|
670
|
+
UNSAFE_columnGap,
|
|
671
|
+
UNSAFE_fill,
|
|
672
|
+
UNSAFE_fontFamily,
|
|
673
|
+
UNSAFE_fontSize,
|
|
674
|
+
UNSAFE_fontWeight,
|
|
675
|
+
UNSAFE_gap,
|
|
676
|
+
UNSAFE_gridAutoColumns,
|
|
677
|
+
UNSAFE_gridAutoRows,
|
|
678
|
+
UNSAFE_gridTemplateColumns,
|
|
679
|
+
UNSAFE_gridTemplateRows,
|
|
680
|
+
UNSAFE_height,
|
|
681
|
+
UNSAFE_lineHeight,
|
|
682
|
+
UNSAFE_margin,
|
|
683
|
+
UNSAFE_marginBottom,
|
|
684
|
+
UNSAFE_marginLeft,
|
|
685
|
+
UNSAFE_marginRight,
|
|
686
|
+
UNSAFE_marginTop,
|
|
687
|
+
UNSAFE_marginX,
|
|
688
|
+
UNSAFE_marginY,
|
|
689
|
+
UNSAFE_maxHeight,
|
|
690
|
+
UNSAFE_maxWidth,
|
|
691
|
+
UNSAFE_minHeight,
|
|
692
|
+
UNSAFE_minWidth,
|
|
693
|
+
UNSAFE_padding,
|
|
694
|
+
UNSAFE_paddingBottom,
|
|
695
|
+
UNSAFE_paddingLeft,
|
|
696
|
+
UNSAFE_paddingRight,
|
|
697
|
+
UNSAFE_paddingTop,
|
|
698
|
+
UNSAFE_paddingX,
|
|
699
|
+
UNSAFE_paddingY,
|
|
700
|
+
UNSAFE_rowGap,
|
|
701
|
+
UNSAFE_stroke,
|
|
702
|
+
UNSAFE_width
|
|
703
|
+
]);
|
|
704
|
+
return {
|
|
705
|
+
...rest,
|
|
706
|
+
className: styling.className,
|
|
707
|
+
style: styling.style
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export { isStyledSystemProp, useStyledSystem };
|