@rabex-kit/rabex-ui 0.2.24 → 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/Theme/getDesignTokens.d.ts +1 -1
- package/dist/rabex-ui.cjs.development.js +30 -25
- 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 +30 -25
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
@@ -15,5 +15,5 @@ declare module '@mui/material/styles' {
|
|
15
15
|
xxxl: true;
|
16
16
|
}
|
17
17
|
}
|
18
|
-
declare const getDesignTokens: ({ deviceType, mode, direction }: themeTypes) => ThemeOptions;
|
18
|
+
declare const getDesignTokens: ({ deviceType, mode, direction, }: themeTypes) => ThemeOptions;
|
19
19
|
export default getDesignTokens;
|
@@ -3270,14 +3270,25 @@ var RabexTabs = {
|
|
3270
3270
|
},
|
3271
3271
|
backgroundColor: 'unset'
|
3272
3272
|
} : {
|
3273
|
-
'& .MuiTab-root.Mui-selected': {
|
3274
|
-
borderRadius: 4,
|
3275
|
-
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3276
|
-
},
|
3277
3273
|
'& .MuiTabs-flexContainer': {
|
3278
|
-
padding: theme.spacing(1)
|
3274
|
+
// padding: theme.spacing(1),
|
3275
|
+
gap: theme.spacing(2)
|
3276
|
+
},
|
3277
|
+
'& .MuiTab-root': {
|
3278
|
+
borderRadius: theme.spacing(2),
|
3279
|
+
backgroundColor: theme.palette.secondary[500],
|
3280
|
+
color: theme.palette.textColor[900],
|
3281
|
+
'&:hover': {
|
3282
|
+
backgroundColor: theme.palette.primary[600],
|
3283
|
+
color: theme.palette.textColor[50]
|
3284
|
+
}
|
3279
3285
|
},
|
3280
|
-
|
3286
|
+
'& .MuiTab-root.Mui-selected': {
|
3287
|
+
borderRadius: theme.spacing(2),
|
3288
|
+
backgroundColor: theme.palette.primary[500],
|
3289
|
+
color: theme.palette.textColor[50]
|
3290
|
+
},
|
3291
|
+
backgroundColor: 'transparent'
|
3281
3292
|
};
|
3282
3293
|
// Size-specific styles
|
3283
3294
|
var sizeMap = mode === 'underline' ? {
|
@@ -3316,28 +3327,22 @@ var RabexTabs = {
|
|
3316
3327
|
}
|
3317
3328
|
} : {
|
3318
3329
|
sm: {
|
3319
|
-
'& .
|
3320
|
-
|
3321
|
-
|
3322
|
-
}
|
3323
|
-
height: theme.spacing(8),
|
3324
|
-
borderRadius: theme.spacing(2)
|
3330
|
+
'& .MuiTab-root': {
|
3331
|
+
height: theme.spacing(8),
|
3332
|
+
padding: theme.spacing(1, 3)
|
3333
|
+
}
|
3325
3334
|
},
|
3326
3335
|
md: {
|
3327
|
-
'& .
|
3328
|
-
|
3329
|
-
|
3330
|
-
}
|
3331
|
-
height: theme.spacing(10),
|
3332
|
-
borderRadius: theme.spacing(2)
|
3336
|
+
'& .MuiTab-root': {
|
3337
|
+
height: theme.spacing(10),
|
3338
|
+
padding: theme.spacing(2, 4)
|
3339
|
+
}
|
3333
3340
|
},
|
3334
3341
|
lg: {
|
3335
|
-
'& .
|
3336
|
-
|
3337
|
-
|
3338
|
-
}
|
3339
|
-
height: theme.spacing(12),
|
3340
|
-
borderRadius: theme.spacing(3)
|
3342
|
+
'& .MuiTab-root': {
|
3343
|
+
height: theme.spacing(12),
|
3344
|
+
padding: theme.spacing(3, 4)
|
3345
|
+
}
|
3341
3346
|
}
|
3342
3347
|
};
|
3343
3348
|
var sizeStyles = sizeMap[size || 'sm'] || sizeMap.sm;
|
@@ -3363,7 +3368,7 @@ var RabexTabs = {
|
|
3363
3368
|
border: "2px dotted " + theme.palette.base.A40
|
3364
3369
|
} : {};
|
3365
3370
|
// Return combined styles
|
3366
|
-
return _extends({}, baseStyles, modeStyles,
|
3371
|
+
return _extends({}, baseStyles, modeStyles, variantStyles, sizeStyles, orientationStyles, borderStyles);
|
3367
3372
|
},
|
3368
3373
|
indicator: function indicator(_ref3) {
|
3369
3374
|
var ownerState = _ref3.ownerState;
|