@rabex-kit/rabex-ui 0.1.25 → 0.1.27

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.
@@ -464,6 +464,13 @@ var _delimiter = function delimiter(num, separator, separateBy) {
464
464
  }
465
465
  return num;
466
466
  };
467
+ var _removeDelimiter = function removeDelimiter(num, separator) {
468
+ if (separator === void 0) {
469
+ separator = ',';
470
+ }
471
+ var cleanedNumber = num.split(separator).join('');
472
+ return parseFloat(cleanedNumber);
473
+ };
467
474
  var _roundUp = function roundUp(val, dec) {
468
475
  var decimal = dec === 0 ? 0 : +("1" + new Array(dec + 1).join('0'));
469
476
  var result = decimal === 0 ? Math.ceil(val) : Math.ceil(+bigDecimal.multiply(val, decimal)) / decimal;
@@ -482,6 +489,12 @@ var numberUtils = {
482
489
  delimiter: function delimiter(num, separator, separateBy) {
483
490
  return _delimiter(num, separator, separateBy);
484
491
  },
492
+ removeDelimiter: function removeDelimiter(num, separator) {
493
+ if (separator === void 0) {
494
+ separator = ',';
495
+ }
496
+ return _removeDelimiter(num, separator);
497
+ },
485
498
  roundDown: function roundDown(val, dec) {
486
499
  return _roundDown(val, dec);
487
500
  },
@@ -2261,10 +2274,7 @@ var TabPanel = function TabPanel(_ref) {
2261
2274
  * @returns
2262
2275
  */
2263
2276
  var Tabs = /*#__PURE__*/styled(MuiTabs, {
2264
- name: 'MuiTabs',
2265
- shouldForwardProp: function shouldForwardProp(prop) {
2266
- return !['hasBorder', 'isSeprate', 'size', 'mode'].includes(prop);
2267
- }
2277
+ name: 'MuiTabs'
2268
2278
  })(function () {
2269
2279
  return {};
2270
2280
  });
@@ -3138,17 +3148,26 @@ var RabexTabs = {
3138
3148
  },
3139
3149
  backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
3140
3150
  }, ownerState.size === 'sm' && {
3151
+ '& .MuiTabs-fixed': {
3152
+ padding: theme.spacing(1, 2),
3153
+ marginBottom: theme.spacing(2)
3154
+ },
3141
3155
  height: theme.spacing(8),
3142
- borderRadius: theme.spacing(2),
3143
- padding: theme.spacing(1, 4)
3156
+ borderRadius: theme.spacing(2)
3144
3157
  }, ownerState.size === 'md' && {
3145
- height: theme.spacing(12),
3146
- borderRadius: theme.spacing(3),
3147
- padding: theme.spacing(2, 3)
3158
+ '& .MuiTabs-fixed': {
3159
+ padding: theme.spacing(2, 4),
3160
+ marginBottom: theme.spacing(2)
3161
+ },
3162
+ height: theme.spacing(10),
3163
+ borderRadius: theme.spacing(2)
3148
3164
  }, ownerState.size === 'lg' && {
3149
- height: theme.spacing(14),
3150
- borderRadius: theme.spacing(3),
3151
- padding: theme.spacing(3, 4)
3165
+ '& .MuiTabs-fixed': {
3166
+ padding: theme.spacing(3, 4),
3167
+ marginBottom: theme.spacing(3)
3168
+ },
3169
+ height: theme.spacing(12),
3170
+ borderRadius: theme.spacing(3)
3152
3171
  }, ownerState.mode === 'underline' && {
3153
3172
  '& .MuiTab-root.Mui-selected': {
3154
3173
  borderRadius: 4,
@@ -3176,8 +3195,11 @@ var RabexTabs = {
3176
3195
  }
3177
3196
  });
3178
3197
  },
3179
- indicator: {
3180
- display: 'show'
3198
+ indicator: function indicator(_ref2) {
3199
+ var ownerState = _ref2.ownerState;
3200
+ return {
3201
+ display: ownerState.mode === 'underline' ? 'show' : 'none'
3202
+ };
3181
3203
  }
3182
3204
  },
3183
3205
  variants: []