@makeswift/runtime 0.0.12 → 0.0.16
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/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -0
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -1
- package/dist/types/runtimes/react/controls/style.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5618,6 +5618,7 @@ const StyledDropDownItem = styled(Link)`
|
|
|
5618
5618
|
color: black;
|
|
5619
5619
|
background-color: transparent;
|
|
5620
5620
|
transition: background-color 0.2s;
|
|
5621
|
+
${cssTextStyle()}
|
|
5621
5622
|
${(p) => cssMediaRules([p.color, p.textStyle], ([color, textStyle = {}]) => {
|
|
5622
5623
|
const fontSize = textStyle.fontSize || {
|
|
5623
5624
|
value: 14,
|
|
@@ -8516,8 +8517,11 @@ function useStyleControlCssObject(style, controlDefinition) {
|
|
|
8516
8517
|
}
|
|
8517
8518
|
const useInsertionEffectSpecifier = "useInsertionEffect";
|
|
8518
8519
|
const useInsertionEffect = (_ea = React[useInsertionEffectSpecifier]) != null ? _ea : React.useLayoutEffect;
|
|
8520
|
+
const isServer = typeof window === "undefined";
|
|
8519
8521
|
function useFormattedStyle(styleControlData, controlDefinition) {
|
|
8520
8522
|
const style = useStyleControlCssObject(styleControlData, controlDefinition);
|
|
8523
|
+
if (isServer)
|
|
8524
|
+
return css$1(style);
|
|
8521
8525
|
const serialized = serializeStyles([style], cache.registered);
|
|
8522
8526
|
useInsertionEffect(() => {
|
|
8523
8527
|
insertStyles(cache, serialized, false);
|