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.
@@ -4743,14 +4743,16 @@ ${frameToCss(frames)}
4743
4743
  }`
4744
4744
  };
4745
4745
  }
4746
- function cssFromDefinition(defn, indent = "", inline = false) {
4746
+ function cssFromDefinition(defn, opt) {
4747
+ const inline = isDefined(opt?.inline) ? opt.inline : true;
4748
+ const indent = isString(opt?.indent) ? opt.indent : "";
4747
4749
  const nextDefn = inline ? " " : "\n";
4748
- return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}${nextDefn}`).join("");
4750
+ return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}`).join(nextDefn);
4749
4751
  }
4750
4752
  function defineCss(defn) {
4751
4753
  const fn2 = (selector) => {
4752
4754
  return selector ? `${selector} {
4753
- ${cssFromDefinition(defn, " ")}}
4755
+ ${cssFromDefinition(defn, { indent: " " })}}
4754
4756
  ` : cssFromDefinition(defn);
4755
4757
  };
4756
4758
  return createFnWithProps(