@rabex-kit/rabex-ui 0.1.33 → 0.1.34
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 +1 -2673
- package/dist/rabex-ui.cjs.development.js +94 -47
- 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 +94 -47
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -3126,20 +3126,28 @@ var RabexTabs = {
|
|
3126
3126
|
root: function root(_ref) {
|
3127
3127
|
var ownerState = _ref.ownerState,
|
3128
3128
|
theme = _ref.theme;
|
3129
|
-
|
3129
|
+
// The ownerState now contains all the props you need
|
3130
|
+
var _ref2 = ownerState || {},
|
3131
|
+
hasBorder = _ref2.hasBorder,
|
3132
|
+
isSeparate = _ref2.isSeparate,
|
3133
|
+
size = _ref2.size,
|
3134
|
+
mode = _ref2.mode,
|
3135
|
+
variant = _ref2.variant,
|
3136
|
+
orientation = _ref2.orientation;
|
3137
|
+
// Default styles applied to all tabs
|
3138
|
+
var baseStyles = {
|
3130
3139
|
borderRadius: 8,
|
3131
3140
|
minHeight: 'unset',
|
3132
3141
|
color: theme.palette.base.A10
|
3133
|
-
}
|
3142
|
+
};
|
3143
|
+
// Mode-specific styles
|
3144
|
+
var modeStyles = mode === 'underline' ? {
|
3134
3145
|
'& .MuiTab-root.Mui-selected': {
|
3135
3146
|
borderRadius: 4,
|
3136
3147
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3137
3148
|
},
|
3138
|
-
'& .MuiTabs-flexContainer': {
|
3139
|
-
// padding: theme.spacing(1)
|
3140
|
-
},
|
3141
3149
|
backgroundColor: 'unset'
|
3142
|
-
}
|
3150
|
+
} : {
|
3143
3151
|
'& .MuiTab-root.Mui-selected': {
|
3144
3152
|
borderRadius: 4,
|
3145
3153
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
@@ -3148,58 +3156,97 @@ var RabexTabs = {
|
|
3148
3156
|
padding: theme.spacing(1)
|
3149
3157
|
},
|
3150
3158
|
backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
|
3151
|
-
}
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
borderRadius: theme.spacing(2)
|
3165
|
-
}, ownerState.size === 'lg' && {
|
3166
|
-
'& .MuiTabs-fixed': {
|
3167
|
-
padding: theme.spacing(3, 4),
|
3168
|
-
marginBottom: theme.spacing(3)
|
3169
|
-
},
|
3170
|
-
height: theme.spacing(12),
|
3171
|
-
borderRadius: theme.spacing(3)
|
3172
|
-
}, ownerState.mode === 'underline' && {
|
3173
|
-
'& .MuiTab-root.Mui-selected': {
|
3174
|
-
borderRadius: 4,
|
3175
|
-
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3159
|
+
};
|
3160
|
+
// Size-specific styles
|
3161
|
+
var sizeMap = mode === 'underline' ? {
|
3162
|
+
sm: {
|
3163
|
+
'& .MuiTabs-fixed': {
|
3164
|
+
'& .MuiTab-root': {
|
3165
|
+
padding: theme.spacing(1, 2)
|
3166
|
+
},
|
3167
|
+
// padding: theme.spacing(1, 2),
|
3168
|
+
marginBottom: theme.spacing(2)
|
3169
|
+
},
|
3170
|
+
height: theme.spacing(8),
|
3171
|
+
borderRadius: theme.spacing(2)
|
3176
3172
|
},
|
3177
|
-
|
3178
|
-
|
3173
|
+
md: {
|
3174
|
+
'& .MuiTabs-fixed': {
|
3175
|
+
'& .MuiTab-root': {
|
3176
|
+
padding: theme.spacing(2, 4)
|
3177
|
+
},
|
3178
|
+
// padding: theme.spacing(2, 4),
|
3179
|
+
marginBottom: theme.spacing(2)
|
3180
|
+
},
|
3181
|
+
height: theme.spacing(10),
|
3182
|
+
borderRadius: theme.spacing(2)
|
3179
3183
|
},
|
3180
|
-
|
3181
|
-
|
3182
|
-
|
3183
|
-
|
3184
|
-
|
3184
|
+
lg: {
|
3185
|
+
'& .MuiTabs-fixed': {
|
3186
|
+
'& .MuiTab-root': {
|
3187
|
+
padding: theme.spacing(3, 4)
|
3188
|
+
},
|
3189
|
+
// padding: theme.spacing(3, 4),
|
3190
|
+
marginBottom: theme.spacing(3)
|
3191
|
+
},
|
3192
|
+
height: theme.spacing(12),
|
3193
|
+
borderRadius: theme.spacing(3)
|
3194
|
+
}
|
3195
|
+
} : {
|
3196
|
+
sm: {
|
3197
|
+
'& .MuiTabs-fixed': {
|
3198
|
+
padding: theme.spacing(1, 2),
|
3199
|
+
marginBottom: theme.spacing(2)
|
3200
|
+
},
|
3201
|
+
height: theme.spacing(8),
|
3202
|
+
borderRadius: theme.spacing(2)
|
3185
3203
|
},
|
3186
|
-
|
3187
|
-
|
3204
|
+
md: {
|
3205
|
+
'& .MuiTabs-fixed': {
|
3206
|
+
padding: theme.spacing(2, 4),
|
3207
|
+
marginBottom: theme.spacing(2)
|
3208
|
+
},
|
3209
|
+
height: theme.spacing(10),
|
3210
|
+
borderRadius: theme.spacing(2)
|
3188
3211
|
},
|
3189
|
-
|
3190
|
-
|
3212
|
+
lg: {
|
3213
|
+
'& .MuiTabs-fixed': {
|
3214
|
+
padding: theme.spacing(3, 4),
|
3215
|
+
marginBottom: theme.spacing(3)
|
3216
|
+
},
|
3217
|
+
height: theme.spacing(12),
|
3218
|
+
borderRadius: theme.spacing(3)
|
3219
|
+
}
|
3220
|
+
};
|
3221
|
+
var sizeStyles = sizeMap[size || 'sm'] || sizeMap.sm;
|
3222
|
+
// Variant-specific styles
|
3223
|
+
var variantStyles = variant === 'fullWidth' ? {
|
3191
3224
|
width: '100%'
|
3192
|
-
}
|
3225
|
+
} : {};
|
3226
|
+
// Orientation-specific styles
|
3227
|
+
var orientationStyles = orientation === 'vertical' ? {
|
3193
3228
|
'& .MuiTab-root::after': {
|
3194
3229
|
content: 'unset',
|
3195
3230
|
display: 'none'
|
3196
3231
|
}
|
3197
|
-
}
|
3232
|
+
} : {};
|
3233
|
+
// Border styles
|
3234
|
+
var borderStyles = hasBorder ? isSeparate ? {
|
3235
|
+
'& .MuiTab-root': {
|
3236
|
+
borderRadius: 5,
|
3237
|
+
padding: theme.spacing(2, 3),
|
3238
|
+
border: "2px dotted " + theme.palette.base.A40
|
3239
|
+
}
|
3240
|
+
} : {
|
3241
|
+
border: "2px dotted " + theme.palette.base.A40
|
3242
|
+
} : {};
|
3243
|
+
// Return combined styles
|
3244
|
+
return _extends({}, baseStyles, modeStyles, sizeStyles, variantStyles, orientationStyles, borderStyles);
|
3198
3245
|
},
|
3199
|
-
indicator: function indicator(
|
3200
|
-
var ownerState =
|
3246
|
+
indicator: function indicator(_ref3) {
|
3247
|
+
var ownerState = _ref3.ownerState;
|
3201
3248
|
return {
|
3202
|
-
display: ownerState.mode === 'underline' ? 'show' : 'none'
|
3249
|
+
display: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.mode) === 'underline' ? 'show' : 'none'
|
3203
3250
|
};
|
3204
3251
|
}
|
3205
3252
|
},
|