@app-studio/web 0.8.84 → 0.8.85

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.
@@ -25,6 +25,8 @@ export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
25
25
  color?: string;
26
26
  views?: {
27
27
  container?: ViewProps;
28
+ content?: ViewProps;
29
+ loader?: ViewProps;
28
30
  icon?: ViewProps;
29
31
  link?: ViewProps;
30
32
  };
@@ -3942,10 +3942,10 @@ var ButtonView = _ref => {
3942
3942
  gap: 8,
3943
3943
  alignItems: "center",
3944
3944
  justifyContent: "center"
3945
- }, views == null ? void 0 : views.container), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3945
+ }, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3946
3946
  size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3947
3947
  color: baseButtonVariantStyles.color
3948
- }, loaderProps))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3948
+ }, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3949
3949
  display: "flex",
3950
3950
  alignItems: "center",
3951
3951
  justifyContent: "center",
@@ -3958,7 +3958,7 @@ var ButtonView = _ref => {
3958
3958
  }, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3959
3959
  size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3960
3960
  color: baseButtonVariantStyles.color
3961
- }, loaderProps))));
3961
+ }, views == null ? void 0 : views.loader))));
3962
3962
  // Determine if the button should render as a Link or a button Element
3963
3963
  var isLink = variant === 'link' && to;
3964
3964
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({