@rabex-kit/rabex-ui 0.1.3 → 0.1.6

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.
@@ -808,7 +808,6 @@ var typographySizes = {
808
808
  weight: 'semiBold'
809
809
  }
810
810
  };
811
- // Define icon sizes for different button sizes
812
811
  var iconSizes = {
813
812
  xs: 16,
814
813
  sm: 16,
@@ -816,22 +815,12 @@ var iconSizes = {
816
815
  lg: 24,
817
816
  xl: 24
818
817
  };
819
- /**
820
- * Buttons allow users to take actions, and make choices, with a single tap.
821
- *
822
- * This is a custom wrapper component made of Material-UI Button.
823
- *
824
- * You can read Material-UI Button Documentation [here](https://mui.com/material-ui/api/Button/).
825
- *
826
- * ```typescript
827
- * import { Button } from '@rabex-kit/core';
828
- * ```
829
- *
830
- *
831
- * @param props
832
- * @returns
833
- */
834
- var StyledButton = /*#__PURE__*/styled(MuiButton)(function (_ref) {
818
+ // Styled button with shouldForwardProp to exclude 'isIcon' from DOM
819
+ var StyledButton = /*#__PURE__*/styled(MuiButton, {
820
+ shouldForwardProp: function shouldForwardProp(prop) {
821
+ return prop !== 'isIcon';
822
+ }
823
+ })(function (_ref) {
835
824
  var size = _ref.size;
836
825
  return {
837
826
  display: 'flex',
@@ -847,20 +836,21 @@ var StyledButton = /*#__PURE__*/styled(MuiButton)(function (_ref) {
847
836
  }
848
837
  };
849
838
  });
850
- var Button = function Button(props) {
839
+ var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
851
840
  var _props$size = props.size,
852
841
  size = _props$size === void 0 ? 'md' : _props$size,
853
842
  isIcon = props.isIcon,
854
843
  children = props.children,
855
844
  rest = _objectWithoutPropertiesLoose(props, _excluded$2);
856
845
  return React.createElement(StyledButton, Object.assign({
846
+ ref: ref,
857
847
  size: size,
858
848
  isIcon: isIcon
859
849
  }, rest), isIcon ? children : React.createElement(Typography, {
860
850
  variant: typographySizes[size].variant,
861
851
  weight: typographySizes[size].weight
862
852
  }, children));
863
- };
853
+ });
864
854
  Button.defaultProps = {
865
855
  variant: 'contained',
866
856
  size: 'md',
@@ -4113,8 +4103,8 @@ var RabexMenuItem = {
4113
4103
  return {
4114
4104
  width: '97%',
4115
4105
  margin: 'auto',
4116
- borderRadius: '6px',
4117
- backgroundColor: theme.palette.secondary.main,
4106
+ // borderRadius: '6px',
4107
+ // backgroundColor: theme.palette.secondary.main,
4118
4108
  '&.Mui-selected': {
4119
4109
  backgroundColor: theme.palette.secondary.main
4120
4110
  },
@@ -4512,7 +4502,7 @@ var components$6 = {
4512
4502
  border: 0
4513
4503
  },
4514
4504
  '& > div.MuiInputBase-root': {
4515
- borderRadius: '6px',
4505
+ borderRadius: '8px',
4516
4506
  gap: spacing(1),
4517
4507
  transition: 'all 0.2s',
4518
4508
  padding: spacing(2.5, 3),
@@ -4523,7 +4513,7 @@ var components$6 = {
4523
4513
  backgroundColor: isLight ? palette.base.A0 : palette.base.A60
4524
4514
  },
4525
4515
  '&.Mui-focused': {
4526
- border: isLight ? "1px dashed " + palette.primary.A100 : "1px solid " + palette.primary.A80,
4516
+ border: isLight ? "1px solid " + palette.primary.A100 : "1px solid " + palette.primary.A80,
4527
4517
  backgroundColor: isLight ? palette.base.A0 : palette.base.A60
4528
4518
  },
4529
4519
  '&.Mui-error': {