@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.
- package/dist/Theme/Tabs/index.d.ts +452 -113
- package/dist/rabex-ui.cjs.development.js +36 -14
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +36 -14
- package/dist/rabex-ui.esm.js.map +1 -1
- package/dist/utils/numberUtils.d.ts +1 -0
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -459,6 +459,13 @@ var _delimiter = function delimiter(num, separator, separateBy) {
|
|
459
459
|
}
|
460
460
|
return num;
|
461
461
|
};
|
462
|
+
var _removeDelimiter = function removeDelimiter(num, separator) {
|
463
|
+
if (separator === void 0) {
|
464
|
+
separator = ',';
|
465
|
+
}
|
466
|
+
var cleanedNumber = num.split(separator).join('');
|
467
|
+
return parseFloat(cleanedNumber);
|
468
|
+
};
|
462
469
|
var _roundUp = function roundUp(val, dec) {
|
463
470
|
var decimal = dec === 0 ? 0 : +("1" + new Array(dec + 1).join('0'));
|
464
471
|
var result = decimal === 0 ? Math.ceil(val) : Math.ceil(+bigDecimal.multiply(val, decimal)) / decimal;
|
@@ -477,6 +484,12 @@ var numberUtils = {
|
|
477
484
|
delimiter: function delimiter(num, separator, separateBy) {
|
478
485
|
return _delimiter(num, separator, separateBy);
|
479
486
|
},
|
487
|
+
removeDelimiter: function removeDelimiter(num, separator) {
|
488
|
+
if (separator === void 0) {
|
489
|
+
separator = ',';
|
490
|
+
}
|
491
|
+
return _removeDelimiter(num, separator);
|
492
|
+
},
|
480
493
|
roundDown: function roundDown(val, dec) {
|
481
494
|
return _roundDown(val, dec);
|
482
495
|
},
|
@@ -2256,10 +2269,7 @@ var TabPanel = function TabPanel(_ref) {
|
|
2256
2269
|
* @returns
|
2257
2270
|
*/
|
2258
2271
|
var Tabs = /*#__PURE__*/styled(MuiTabs, {
|
2259
|
-
name: 'MuiTabs'
|
2260
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
2261
|
-
return !['hasBorder', 'isSeprate', 'size', 'mode'].includes(prop);
|
2262
|
-
}
|
2272
|
+
name: 'MuiTabs'
|
2263
2273
|
})(function () {
|
2264
2274
|
return {};
|
2265
2275
|
});
|
@@ -3133,17 +3143,26 @@ var RabexTabs = {
|
|
3133
3143
|
},
|
3134
3144
|
backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
|
3135
3145
|
}, ownerState.size === 'sm' && {
|
3146
|
+
'& .MuiTabs-fixed': {
|
3147
|
+
padding: theme.spacing(1, 2),
|
3148
|
+
marginBottom: theme.spacing(2)
|
3149
|
+
},
|
3136
3150
|
height: theme.spacing(8),
|
3137
|
-
borderRadius: theme.spacing(2)
|
3138
|
-
padding: theme.spacing(1, 4)
|
3151
|
+
borderRadius: theme.spacing(2)
|
3139
3152
|
}, ownerState.size === 'md' && {
|
3140
|
-
|
3141
|
-
|
3142
|
-
|
3153
|
+
'& .MuiTabs-fixed': {
|
3154
|
+
padding: theme.spacing(2, 4),
|
3155
|
+
marginBottom: theme.spacing(2)
|
3156
|
+
},
|
3157
|
+
height: theme.spacing(10),
|
3158
|
+
borderRadius: theme.spacing(2)
|
3143
3159
|
}, ownerState.size === 'lg' && {
|
3144
|
-
|
3145
|
-
|
3146
|
-
|
3160
|
+
'& .MuiTabs-fixed': {
|
3161
|
+
padding: theme.spacing(3, 4),
|
3162
|
+
marginBottom: theme.spacing(3)
|
3163
|
+
},
|
3164
|
+
height: theme.spacing(12),
|
3165
|
+
borderRadius: theme.spacing(3)
|
3147
3166
|
}, ownerState.mode === 'underline' && {
|
3148
3167
|
'& .MuiTab-root.Mui-selected': {
|
3149
3168
|
borderRadius: 4,
|
@@ -3171,8 +3190,11 @@ var RabexTabs = {
|
|
3171
3190
|
}
|
3172
3191
|
});
|
3173
3192
|
},
|
3174
|
-
indicator: {
|
3175
|
-
|
3193
|
+
indicator: function indicator(_ref2) {
|
3194
|
+
var ownerState = _ref2.ownerState;
|
3195
|
+
return {
|
3196
|
+
display: ownerState.mode === 'underline' ? 'show' : 'none'
|
3197
|
+
};
|
3176
3198
|
}
|
3177
3199
|
},
|
3178
3200
|
variants: []
|