@xaui/native 0.0.37 → 0.0.38
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/button/index.cjs +2 -2
- package/dist/button/index.js +2 -2
- package/package.json +1 -1
package/dist/button/index.cjs
CHANGED
|
@@ -258,7 +258,7 @@ var Button = ({
|
|
|
258
258
|
_optionalChain([customAppearance, 'optionalAccess', _4 => _4.button])
|
|
259
259
|
]
|
|
260
260
|
},
|
|
261
|
-
/* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.contentContainer }, startContent && !isLoading
|
|
261
|
+
/* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.contentContainer }, startContent && (!isLoading || spinnerPlacement !== "start") && /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.startContent }, startContent), isLoading && spinnerPlacement === "start" && /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.spinner }, spinner), /* @__PURE__ */ _react2.default.createElement(
|
|
262
262
|
_reactnative.Text,
|
|
263
263
|
{
|
|
264
264
|
style: [
|
|
@@ -269,7 +269,7 @@ var Button = ({
|
|
|
269
269
|
]
|
|
270
270
|
},
|
|
271
271
|
children
|
|
272
|
-
), isLoading && spinnerPlacement === "end" && /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.spinner }, spinner), endContent && !isLoading
|
|
272
|
+
), isLoading && spinnerPlacement === "end" && /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.spinner }, spinner), endContent && (!isLoading || spinnerPlacement !== "end") && /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles.endContent }, endContent))
|
|
273
273
|
)
|
|
274
274
|
));
|
|
275
275
|
};
|
package/dist/button/index.js
CHANGED
|
@@ -258,7 +258,7 @@ var Button = ({
|
|
|
258
258
|
customAppearance?.button
|
|
259
259
|
]
|
|
260
260
|
},
|
|
261
|
-
/* @__PURE__ */ React.createElement(View, { style: styles.contentContainer }, startContent && !isLoading
|
|
261
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.contentContainer }, startContent && (!isLoading || spinnerPlacement !== "start") && /* @__PURE__ */ React.createElement(View, { style: styles.startContent }, startContent), isLoading && spinnerPlacement === "start" && /* @__PURE__ */ React.createElement(View, { style: styles.spinner }, spinner), /* @__PURE__ */ React.createElement(
|
|
262
262
|
Text,
|
|
263
263
|
{
|
|
264
264
|
style: [
|
|
@@ -269,7 +269,7 @@ var Button = ({
|
|
|
269
269
|
]
|
|
270
270
|
},
|
|
271
271
|
children
|
|
272
|
-
), isLoading && spinnerPlacement === "end" && /* @__PURE__ */ React.createElement(View, { style: styles.spinner }, spinner), endContent && !isLoading
|
|
272
|
+
), isLoading && spinnerPlacement === "end" && /* @__PURE__ */ React.createElement(View, { style: styles.spinner }, spinner), endContent && (!isLoading || spinnerPlacement !== "end") && /* @__PURE__ */ React.createElement(View, { style: styles.endContent }, endContent))
|
|
273
273
|
)
|
|
274
274
|
));
|
|
275
275
|
};
|