@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.cjs.js
CHANGED
|
@@ -5654,6 +5654,7 @@ const StyledDropDownItem = styled__default["default"](Link)`
|
|
|
5654
5654
|
color: black;
|
|
5655
5655
|
background-color: transparent;
|
|
5656
5656
|
transition: background-color 0.2s;
|
|
5657
|
+
${cssTextStyle()}
|
|
5657
5658
|
${(p) => cssMediaRules([p.color, p.textStyle], ([color, textStyle = {}]) => {
|
|
5658
5659
|
const fontSize = textStyle.fontSize || {
|
|
5659
5660
|
value: 14,
|
|
@@ -8552,8 +8553,11 @@ function useStyleControlCssObject(style$1, controlDefinition) {
|
|
|
8552
8553
|
}
|
|
8553
8554
|
const useInsertionEffectSpecifier = "useInsertionEffect";
|
|
8554
8555
|
const useInsertionEffect = (_ea = React__namespace[useInsertionEffectSpecifier]) != null ? _ea : React__namespace.useLayoutEffect;
|
|
8556
|
+
const isServer = typeof window === "undefined";
|
|
8555
8557
|
function useFormattedStyle(styleControlData, controlDefinition) {
|
|
8556
8558
|
const style2 = useStyleControlCssObject(styleControlData, controlDefinition);
|
|
8559
|
+
if (isServer)
|
|
8560
|
+
return css.css(style2);
|
|
8557
8561
|
const serialized = serializeStyles([style2], css.cache.registered);
|
|
8558
8562
|
useInsertionEffect(() => {
|
|
8559
8563
|
insertStyles(css.cache, serialized, false);
|