inferred-types 0.55.10 → 0.55.12

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.
@@ -2692,15 +2692,17 @@ ${frameToCss(frames)}
2692
2692
  };
2693
2693
  }
2694
2694
 
2695
- // src/css/defineCss.ts
2696
- function cssFromDefinition(defn, indent = "", inline = false) {
2695
+ // src/css/cssFromDefinition.ts
2696
+ function cssFromDefinition(defn, opt) {
2697
+ const inline = isDefined(opt?.inline) ? opt.inline : true;
2698
+ const indent = isString(opt?.indent) ? opt.indent : "";
2697
2699
  const nextDefn = inline ? " " : "\n";
2698
- return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}${nextDefn}`).join("");
2700
+ return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}`).join(nextDefn);
2699
2701
  }
2700
2702
  function defineCss(defn) {
2701
2703
  const fn2 = (selector) => {
2702
2704
  return selector ? `${selector} {
2703
- ${cssFromDefinition(defn, " ")}}
2705
+ ${cssFromDefinition(defn, { indent: " " })}}
2704
2706
  ` : cssFromDefinition(defn);
2705
2707
  };
2706
2708
  return createFnWithProps(