inferred-types 0.55.8 → 0.55.9

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.
@@ -258,6 +258,7 @@ __export(index_exports, {
258
258
  createObjectMap: () => createObjectMap,
259
259
  createTypeToken: () => createTypeToken,
260
260
  cssColor: () => cssColor,
261
+ cssFromDefinition: () => cssFromDefinition,
261
262
  csv: () => csv,
262
263
  defineCss: () => defineCss,
263
264
  defineObj: () => defineObj,
@@ -5442,15 +5443,15 @@ ${frameToCss(frames)}
5442
5443
  }`
5443
5444
  };
5444
5445
  }
5445
- function createCss(defn, indent = "") {
5446
- return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}
5447
- `).join("");
5446
+ function cssFromDefinition(defn, indent = "", inline = false) {
5447
+ const nextDefn = inline ? " " : "\n";
5448
+ return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}${nextDefn}`).join("");
5448
5449
  }
5449
5450
  function defineCss(defn) {
5450
5451
  const fn2 = (selector) => {
5451
5452
  return selector ? `${selector} {
5452
- ${createCss(defn, " ")}}
5453
- ` : createCss(defn);
5453
+ ${cssFromDefinition(defn, " ")}}
5454
+ ` : cssFromDefinition(defn);
5454
5455
  };
5455
5456
  return createFnWithProps(
5456
5457
  fn2,
@@ -8769,6 +8770,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
8769
8770
  createObjectMap,
8770
8771
  createTypeToken,
8771
8772
  cssColor,
8773
+ cssFromDefinition,
8772
8774
  csv,
8773
8775
  defineCss,
8774
8776
  defineObj,