@makeswift/runtime 0.0.10 → 0.0.11

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.es.js CHANGED
@@ -2136,7 +2136,8 @@ const Button$1 = forwardRef(function Button2(_m, ref) {
2136
2136
  color,
2137
2137
  textStyle,
2138
2138
  width,
2139
- margin
2139
+ margin,
2140
+ className
2140
2141
  } = _n, restOfProps = __objRest(_n, [
2141
2142
  "id",
2142
2143
  "children",
@@ -2148,12 +2149,13 @@ const Button$1 = forwardRef(function Button2(_m, ref) {
2148
2149
  "color",
2149
2150
  "textStyle",
2150
2151
  "width",
2151
- "margin"
2152
+ "margin",
2153
+ "className"
2152
2154
  ]);
2153
2155
  return /* @__PURE__ */ jsx(StyledButton$1, __spreadProps(__spreadValues({}, restOfProps), {
2154
2156
  ref,
2155
2157
  id,
2156
- className: cx(css$1(responsiveWidth(width, "auto"))),
2158
+ className: cx(css$1(responsiveWidth(width, "auto")), className),
2157
2159
  color,
2158
2160
  link,
2159
2161
  margin,
@@ -8242,7 +8244,7 @@ function ShapeControlValue({
8242
8244
  data,
8243
8245
  children
8244
8246
  }) {
8245
- return Object.entries(definition.config.type).reduce((renderFn, [key, controlDefinition]) => (shapeControlValue) => /* @__PURE__ */ jsx(ControlValue, {
8247
+ return Object.entries(definition.config.type).reduceRight((renderFn, [key, controlDefinition]) => (shapeControlValue) => /* @__PURE__ */ jsx(ControlValue, {
8246
8248
  definition: controlDefinition,
8247
8249
  data: data == null ? void 0 : data[key],
8248
8250
  children: (value) => renderFn(__spreadProps(__spreadValues({}, shapeControlValue), {
@@ -8388,11 +8390,9 @@ function PropsValue({
8388
8390
  function suppressWarningAndFindDomNode(instance) {
8389
8391
  const error = console.error;
8390
8392
  console.error = (...args) => {
8391
- const [msg, ...substitutions] = args;
8392
- const text = substitutions.reduce((text2, substitution) => text2.replace("%s", substitution), msg);
8393
- if (!text.includes("findDOMNode is deprecated in StrictMode.")) {
8394
- error.apply(console, args);
8395
- }
8393
+ if (typeof args[0] === "string" && args[0].includes("%s is deprecated in StrictMode."))
8394
+ return;
8395
+ return error.apply(console, args);
8396
8396
  };
8397
8397
  const foundDomNode = findDOMNode(instance);
8398
8398
  console.error = error;
@@ -8550,11 +8550,10 @@ function useSuppressRefWarning(ownerName) {
8550
8550
  const patchedRef = useRef(false);
8551
8551
  if (patchedRef.current === false) {
8552
8552
  console.error = (...args) => {
8553
- const [msg, ...substitutions] = args;
8554
- const text = substitutions.reduce((text2, substitution) => text2.replace("%s", substitution), msg);
8555
- if (!text.includes("Function components cannot be given refs.") || !text.includes(`Check the render method of \`${ownerName}\`.`)) {
8556
- originalErrorRef.current(...args);
8553
+ if (typeof args[0] === "string" && args[0].includes("Function components cannot be given refs.") && args[0].includes(`Check the render method of \`${ownerName}\`.`)) {
8554
+ return;
8557
8555
  }
8556
+ return originalErrorRef.current(...args);
8558
8557
  };
8559
8558
  patchedRef.current = true;
8560
8559
  }