@rabex-kit/rabex-ui 0.1.32 → 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/RTableHead/index.d.ts +1 -1
- package/dist/RTableRow/index.d.ts +1 -1
- package/dist/Theme/Tabs/index.d.ts +1 -2673
- package/dist/rabex-ui.cjs.development.js +101 -51
- 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 +101 -51
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -2194,7 +2194,7 @@ var _excluded$c = ["className"];
|
|
2194
2194
|
* You can read Material-UI TableHead Documentation [here](https://mui.com/material-ui/api/table-head/).
|
2195
2195
|
*
|
2196
2196
|
* ```typescript
|
2197
|
-
* import { TableHead } from '@rabex-kit/
|
2197
|
+
* import { TableHead } from '@rabex-kit/rabex-ui';
|
2198
2198
|
* ```
|
2199
2199
|
* @param props
|
2200
2200
|
* @returns
|
@@ -2220,7 +2220,7 @@ var _excluded$d = ["className"];
|
|
2220
2220
|
* You can read Material-UI TableRow Documentation [here](https://mui.com/material-ui/api/table-row/).
|
2221
2221
|
*
|
2222
2222
|
* ```typescript
|
2223
|
-
* import { TableRow } from '@rabex-kit/
|
2223
|
+
* import { TableRow } from '@rabex-kit/rabex-ui';
|
2224
2224
|
* ```
|
2225
2225
|
* @param props
|
2226
2226
|
* @returns
|
@@ -2271,7 +2271,10 @@ var TabPanel = function TabPanel(_ref) {
|
|
2271
2271
|
* @returns
|
2272
2272
|
*/
|
2273
2273
|
var Tabs = /*#__PURE__*/styled(MuiTabs, {
|
2274
|
-
name: 'MuiTabs'
|
2274
|
+
name: 'MuiTabs',
|
2275
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
2276
|
+
return !['hasBorder', 'isSeprate'].includes(prop);
|
2277
|
+
}
|
2275
2278
|
})(function () {
|
2276
2279
|
return {};
|
2277
2280
|
});
|
@@ -3123,20 +3126,28 @@ var RabexTabs = {
|
|
3123
3126
|
root: function root(_ref) {
|
3124
3127
|
var ownerState = _ref.ownerState,
|
3125
3128
|
theme = _ref.theme;
|
3126
|
-
|
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 = {
|
3127
3139
|
borderRadius: 8,
|
3128
3140
|
minHeight: 'unset',
|
3129
3141
|
color: theme.palette.base.A10
|
3130
|
-
}
|
3142
|
+
};
|
3143
|
+
// Mode-specific styles
|
3144
|
+
var modeStyles = mode === 'underline' ? {
|
3131
3145
|
'& .MuiTab-root.Mui-selected': {
|
3132
3146
|
borderRadius: 4,
|
3133
3147
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3134
3148
|
},
|
3135
|
-
'& .MuiTabs-flexContainer': {
|
3136
|
-
// padding: theme.spacing(1)
|
3137
|
-
},
|
3138
3149
|
backgroundColor: 'unset'
|
3139
|
-
}
|
3150
|
+
} : {
|
3140
3151
|
'& .MuiTab-root.Mui-selected': {
|
3141
3152
|
borderRadius: 4,
|
3142
3153
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
@@ -3145,58 +3156,97 @@ var RabexTabs = {
|
|
3145
3156
|
padding: theme.spacing(1)
|
3146
3157
|
},
|
3147
3158
|
backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
|
3148
|
-
}
|
3149
|
-
|
3150
|
-
|
3151
|
-
|
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)
|
3152
3172
|
},
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
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)
|
3159
3183
|
},
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3177
|
-
|
3178
|
-
|
3179
|
-
'& .MuiTab-root.Mui-selected': {
|
3180
|
-
borderRadius: 4,
|
3181
|
-
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
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)
|
3182
3203
|
},
|
3183
|
-
|
3184
|
-
|
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)
|
3185
3211
|
},
|
3186
|
-
|
3187
|
-
|
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' ? {
|
3188
3224
|
width: '100%'
|
3189
|
-
}
|
3225
|
+
} : {};
|
3226
|
+
// Orientation-specific styles
|
3227
|
+
var orientationStyles = orientation === 'vertical' ? {
|
3190
3228
|
'& .MuiTab-root::after': {
|
3191
3229
|
content: 'unset',
|
3192
3230
|
display: 'none'
|
3193
3231
|
}
|
3194
|
-
}
|
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);
|
3195
3245
|
},
|
3196
|
-
indicator: function indicator(
|
3197
|
-
var ownerState =
|
3246
|
+
indicator: function indicator(_ref3) {
|
3247
|
+
var ownerState = _ref3.ownerState;
|
3198
3248
|
return {
|
3199
|
-
display: ownerState.mode === 'underline' ? 'show' : 'none'
|
3249
|
+
display: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.mode) === 'underline' ? 'show' : 'none'
|
3200
3250
|
};
|
3201
3251
|
}
|
3202
3252
|
},
|
@@ -5636,7 +5686,7 @@ var ClickAwayListener = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5636
5686
|
*
|
5637
5687
|
*
|
5638
5688
|
* ```typescript
|
5639
|
-
* import { ExpandableContent } from '@rabex-kit/
|
5689
|
+
* import { ExpandableContent } from '@rabex-kit/rabex-ui';
|
5640
5690
|
* ```
|
5641
5691
|
* @param props
|
5642
5692
|
* @returns
|