@rabex-kit/rabex-ui 0.2.23 → 0.2.26
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/Divider/index.d.ts +1 -1
- package/dist/TextField/index.d.ts +0 -8
- package/dist/Theme/getDesignTokens.d.ts +1 -1
- package/dist/rabex-ui.cjs.development.js +39 -31
- 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 +39 -31
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -1058,7 +1058,7 @@ CurrencyPairsTitle.defaultProps = {
|
|
1058
1058
|
* You can read Material-UI Divider Documentation [here](https://mui.com/material-ui/api/divider/).
|
1059
1059
|
*
|
1060
1060
|
* ```typescript
|
1061
|
-
* import { Divider } from '@rabex-kit/
|
1061
|
+
* import { Divider } from '@rabex-kit/rabex-ui';
|
1062
1062
|
* ```
|
1063
1063
|
*
|
1064
1064
|
* @param props
|
@@ -3266,14 +3266,25 @@ var RabexTabs = {
|
|
3266
3266
|
},
|
3267
3267
|
backgroundColor: 'unset'
|
3268
3268
|
} : {
|
3269
|
-
'& .MuiTab-root.Mui-selected': {
|
3270
|
-
borderRadius: 4,
|
3271
|
-
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3272
|
-
},
|
3273
3269
|
'& .MuiTabs-flexContainer': {
|
3274
|
-
padding: theme.spacing(1)
|
3270
|
+
// padding: theme.spacing(1),
|
3271
|
+
gap: theme.spacing(2)
|
3272
|
+
},
|
3273
|
+
'& .MuiTab-root': {
|
3274
|
+
borderRadius: theme.spacing(2),
|
3275
|
+
backgroundColor: theme.palette.secondary[500],
|
3276
|
+
color: theme.palette.textColor[900],
|
3277
|
+
'&:hover': {
|
3278
|
+
backgroundColor: theme.palette.primary[600],
|
3279
|
+
color: theme.palette.textColor[50]
|
3280
|
+
}
|
3281
|
+
},
|
3282
|
+
'& .MuiTab-root.Mui-selected': {
|
3283
|
+
borderRadius: theme.spacing(2),
|
3284
|
+
backgroundColor: theme.palette.primary[500],
|
3285
|
+
color: theme.palette.textColor[50]
|
3275
3286
|
},
|
3276
|
-
backgroundColor:
|
3287
|
+
backgroundColor: 'transparent'
|
3277
3288
|
};
|
3278
3289
|
// Size-specific styles
|
3279
3290
|
var sizeMap = mode === 'underline' ? {
|
@@ -3312,28 +3323,22 @@ var RabexTabs = {
|
|
3312
3323
|
}
|
3313
3324
|
} : {
|
3314
3325
|
sm: {
|
3315
|
-
'& .
|
3316
|
-
|
3317
|
-
|
3318
|
-
}
|
3319
|
-
height: theme.spacing(8),
|
3320
|
-
borderRadius: theme.spacing(2)
|
3326
|
+
'& .MuiTab-root': {
|
3327
|
+
height: theme.spacing(8),
|
3328
|
+
padding: theme.spacing(1, 3)
|
3329
|
+
}
|
3321
3330
|
},
|
3322
3331
|
md: {
|
3323
|
-
'& .
|
3324
|
-
|
3325
|
-
|
3326
|
-
}
|
3327
|
-
height: theme.spacing(10),
|
3328
|
-
borderRadius: theme.spacing(2)
|
3332
|
+
'& .MuiTab-root': {
|
3333
|
+
height: theme.spacing(10),
|
3334
|
+
padding: theme.spacing(2, 4)
|
3335
|
+
}
|
3329
3336
|
},
|
3330
3337
|
lg: {
|
3331
|
-
'& .
|
3332
|
-
|
3333
|
-
|
3334
|
-
}
|
3335
|
-
height: theme.spacing(12),
|
3336
|
-
borderRadius: theme.spacing(3)
|
3338
|
+
'& .MuiTab-root': {
|
3339
|
+
height: theme.spacing(12),
|
3340
|
+
padding: theme.spacing(3, 4)
|
3341
|
+
}
|
3337
3342
|
}
|
3338
3343
|
};
|
3339
3344
|
var sizeStyles = sizeMap[size || 'sm'] || sizeMap.sm;
|
@@ -3359,7 +3364,7 @@ var RabexTabs = {
|
|
3359
3364
|
border: "2px dotted " + theme.palette.base.A40
|
3360
3365
|
} : {};
|
3361
3366
|
// Return combined styles
|
3362
|
-
return _extends({}, baseStyles, modeStyles,
|
3367
|
+
return _extends({}, baseStyles, modeStyles, variantStyles, sizeStyles, orientationStyles, borderStyles);
|
3363
3368
|
},
|
3364
3369
|
indicator: function indicator(_ref3) {
|
3365
3370
|
var ownerState = _ref3.ownerState;
|
@@ -5433,7 +5438,7 @@ function _handleHelperColor$1(props, key) {
|
|
5433
5438
|
var MuiTextFieldStyled = /*#__PURE__*/styled(MuiTextField, {
|
5434
5439
|
name: 'MuiTextField',
|
5435
5440
|
shouldForwardProp: function shouldForwardProp(prop) {
|
5436
|
-
return !['fill', 'success', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'valueFormat', 'valueFormatOption'].includes(prop);
|
5441
|
+
return !['fill', 'success', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'valueFormat', 'valueFormatOption', 'size'].includes(prop);
|
5437
5442
|
}
|
5438
5443
|
})(function () {
|
5439
5444
|
return {};
|
@@ -5452,6 +5457,7 @@ var TextField = function TextField(props) {
|
|
5452
5457
|
valueFormat = _ref.valueFormat,
|
5453
5458
|
valueFormatOption = _ref.valueFormatOption,
|
5454
5459
|
fullWidth = _ref.fullWidth,
|
5460
|
+
size = _ref.size,
|
5455
5461
|
other = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
5456
5462
|
if (!valueFormat && !!valueFormatOption) {
|
5457
5463
|
console.warn("'valueFormatOption' Only Work With known 'valueFormat's...");
|
@@ -5474,17 +5480,19 @@ var TextField = function TextField(props) {
|
|
5474
5480
|
};
|
5475
5481
|
return React.createElement(Stack, {
|
5476
5482
|
flexDirection: "column",
|
5477
|
-
gap:
|
5483
|
+
gap: size === 'sm' ? 1 : 2,
|
5478
5484
|
width: fullWidth ? '100%' : 'unset'
|
5479
5485
|
}, title && React.createElement(Typography, Object.assign({
|
5480
5486
|
color: other.disabled ? 'textColor.A40' : 'textColor.A80'
|
5481
|
-
}, titleProps), title), React.createElement(MuiTextFieldStyled, Object.assign({
|
5487
|
+
}, titleProps), title), React.createElement(MuiTextFieldStyled, Object.assign({
|
5488
|
+
size: size
|
5489
|
+
}, other, {
|
5482
5490
|
value: valueFormat ? _valueFormatHandler(value) : value,
|
5483
5491
|
onChange: valueFormat ? _onChangeFormatHandler : onChange
|
5484
5492
|
})), helperText && React.createElement(Stack, {
|
5485
5493
|
flexDirection: "row",
|
5486
5494
|
justifyContent: "space-between"
|
5487
|
-
}, React.createElement(Typography, Object.assign({}, helperTextProps,
|
5495
|
+
}, React.createElement(Typography, Object.assign({}, helperTextProps, size === 'sm' && {
|
5488
5496
|
variant: 'body3'
|
5489
5497
|
}, {
|
5490
5498
|
color: _handleHelperColor$1(props, 'helperTextProps')
|
@@ -5494,7 +5502,7 @@ var TextField = function TextField(props) {
|
|
5494
5502
|
alignItems: 'center',
|
5495
5503
|
gap: 1
|
5496
5504
|
}
|
5497
|
-
}), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps,
|
5505
|
+
}), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps, size === 'sm' && {
|
5498
5506
|
variant: 'body3'
|
5499
5507
|
}, {
|
5500
5508
|
color: _handleHelperColor$1(props, 'helperTextEndAdornmentProps')
|