@majoo-ui/react 1.55.39-rc.1 → 1.55.39

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.
@@ -5,6 +5,7 @@ export declare const ButtonPrimitive: import("@stitches/react/types/styled-compo
5
5
  buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
6
6
  size?: "sm" | "md" | "lg" | "xs" | undefined;
7
7
  iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
8
+ displayBlock?: boolean | "true" | undefined;
8
9
  }, {
9
10
  sm: "(min-width: 359px)";
10
11
  md: "(min-width: 767px)";
@@ -132,6 +133,7 @@ export declare const Button: React.ForwardRefExoticComponent<import("@stitches/r
132
133
  buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
133
134
  size?: "sm" | "md" | "lg" | "xs" | undefined;
134
135
  iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
136
+ displayBlock?: boolean | "true" | undefined;
135
137
  }, {
136
138
  sm: "(min-width: 359px)";
137
139
  md: "(min-width: 767px)";
package/index.esm.js CHANGED
@@ -4101,6 +4101,11 @@ const ButtonPrimitive = styled('button', {
4101
4101
  padding: '11px',
4102
4102
  borderRadius: '$md'
4103
4103
  }
4104
+ },
4105
+ displayBlock: {
4106
+ true: {
4107
+ display: 'block !important'
4108
+ }
4104
4109
  }
4105
4110
  }
4106
4111
  });
@@ -4125,8 +4130,9 @@ const Button$4 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
4125
4130
  size: size,
4126
4131
  iconSize: icon ? size : undefined,
4127
4132
  disabled: disabled,
4133
+ displayBlock: Boolean(block || leftIcon || rightIcon),
4128
4134
  css: Object.assign(Object.assign({}, props.css), {
4129
- display: block || leftIcon || rightIcon ? 'block !important' : 'inline-block',
4135
+ display: block ? 'block' : 'inline-block',
4130
4136
  width: block ? '100%' : width
4131
4137
  }),
4132
4138
  ref: forwardedRef
package/index.umd.js CHANGED
@@ -4176,6 +4176,11 @@
4176
4176
  padding: '11px',
4177
4177
  borderRadius: '$md'
4178
4178
  }
4179
+ },
4180
+ displayBlock: {
4181
+ true: {
4182
+ display: 'block !important'
4183
+ }
4179
4184
  }
4180
4185
  }
4181
4186
  });
@@ -4203,8 +4208,9 @@
4203
4208
  size: size,
4204
4209
  iconSize: icon ? size : undefined,
4205
4210
  disabled: disabled,
4211
+ displayBlock: Boolean(block || leftIcon || rightIcon),
4206
4212
  css: __assign(__assign({}, props.css), {
4207
- display: block || leftIcon || rightIcon ? 'block !important' : 'inline-block',
4213
+ display: block ? 'block' : 'inline-block',
4208
4214
  width: block ? '100%' : width
4209
4215
  }),
4210
4216
  ref: forwardedRef
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.55.39-rc.1",
3
+ "version": "1.55.39",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",