@rabex-kit/rabex-ui 0.2.24 → 0.2.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.
@@ -7,7 +7,7 @@ export declare type SwipeableDrawerProps = MuiSwipeableDrawerProps;
7
7
  * You can read Material-UI SwipeableDrawer Documentation [here](https://mui.com/material-ui/api/swipeable-drawer/).
8
8
  *
9
9
  * ```typescript
10
- * import { SwipeableDrawer } from '@rabex-kit/core';
10
+ * import { SwipeableDrawer } from '@rabex-kit/rabex-ui';
11
11
  * ```
12
12
  * @param props
13
13
  * @returns
@@ -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,24 @@ 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
+ gap: theme.spacing(2),
3275
+ '& .MuiTab-root': {
3276
+ borderRadius: theme.spacing(2),
3277
+ backgroundColor: theme.palette.secondary[500],
3278
+ color: theme.palette.textColor[900],
3279
+ '&:hover': {
3280
+ backgroundColor: theme.palette.primary[600],
3281
+ color: theme.palette.textColor[50]
3282
+ }
3283
+ },
3284
+ '& .MuiTab-root.Mui-selected': {
3285
+ borderRadius: theme.spacing(2),
3286
+ backgroundColor: theme.palette.primary[500],
3287
+ color: theme.palette.textColor[50]
3288
+ }
3279
3289
  },
3280
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
3290
+ backgroundColor: 'transparent'
3281
3291
  };
3282
3292
  // Size-specific styles
3283
3293
  var sizeMap = mode === 'underline' ? {
@@ -3316,28 +3326,22 @@ var RabexTabs = {
3316
3326
  }
3317
3327
  } : {
3318
3328
  sm: {
3319
- '& .MuiTabs-fixed': {
3320
- padding: theme.spacing(1, 2),
3321
- marginBottom: theme.spacing(2)
3322
- },
3323
- height: theme.spacing(8),
3324
- borderRadius: theme.spacing(2)
3329
+ '& .MuiTab-root': {
3330
+ height: theme.spacing(8),
3331
+ padding: theme.spacing(1, 3)
3332
+ }
3325
3333
  },
3326
3334
  md: {
3327
- '& .MuiTabs-fixed': {
3328
- padding: theme.spacing(2, 4),
3329
- marginBottom: theme.spacing(2)
3330
- },
3331
- height: theme.spacing(10),
3332
- borderRadius: theme.spacing(2)
3335
+ '& .MuiTab-root': {
3336
+ height: theme.spacing(10),
3337
+ padding: theme.spacing(2, 4)
3338
+ }
3333
3339
  },
3334
3340
  lg: {
3335
- '& .MuiTabs-fixed': {
3336
- padding: theme.spacing(3, 4),
3337
- marginBottom: theme.spacing(3)
3338
- },
3339
- height: theme.spacing(12),
3340
- borderRadius: theme.spacing(3)
3341
+ '& .MuiTab-root': {
3342
+ height: theme.spacing(12),
3343
+ padding: theme.spacing(3, 4)
3344
+ }
3341
3345
  }
3342
3346
  };
3343
3347
  var sizeStyles = sizeMap[size || 'sm'] || sizeMap.sm;
@@ -3363,7 +3367,7 @@ var RabexTabs = {
3363
3367
  border: "2px dotted " + theme.palette.base.A40
3364
3368
  } : {};
3365
3369
  // Return combined styles
3366
- return _extends({}, baseStyles, modeStyles, sizeStyles, variantStyles, orientationStyles, borderStyles);
3370
+ return _extends({}, baseStyles, modeStyles, variantStyles, sizeStyles, orientationStyles, borderStyles);
3367
3371
  },
3368
3372
  indicator: function indicator(_ref3) {
3369
3373
  var ownerState = _ref3.ownerState;
@@ -5937,7 +5941,7 @@ var Stepper = function Stepper(props) {
5937
5941
  * You can read Material-UI SwipeableDrawer Documentation [here](https://mui.com/material-ui/api/swipeable-drawer/).
5938
5942
  *
5939
5943
  * ```typescript
5940
- * import { SwipeableDrawer } from '@rabex-kit/core';
5944
+ * import { SwipeableDrawer } from '@rabex-kit/rabex-ui';
5941
5945
  * ```
5942
5946
  * @param props
5943
5947
  * @returns
@@ -6109,30 +6113,32 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
6109
6113
  minHeight: 'unset',
6110
6114
  display: 'flex',
6111
6115
  backgroundColor: theme.palette.backgroundColor[200],
6112
- // padding: theme.spacing(1),
6113
- // '& .MuiTabs-root': {
6114
- // padding: theme.spacing(1),
6115
- // },
6116
+ padding: theme.spacing(0),
6116
6117
  '& .MuiTabs-fixed': {
6117
- padding: theme.spacing(0)
6118
+ padding: theme.spacing(1)
6118
6119
  },
6119
6120
  '& .MuiTabs-flexContainer': {
6120
- gap: theme.spacing(1)
6121
+ gap: theme.spacing(1),
6122
+ '& .MuiTab-root.Mui-selected': {
6123
+ backgroundColor: theme.palette.base[50],
6124
+ color: theme.palette.textColor[900]
6125
+ }
6121
6126
  }
6122
6127
  }, ownerState.size === 'sm' && {
6123
6128
  height: theme.spacing(8),
6124
6129
  borderRadius: theme.spacing(2),
6125
- '&.MuiTab-root': {
6130
+ // padding: theme.spacing(1),
6131
+ '& .MuiTab-root': {
6126
6132
  borderRadius: theme.spacing(1),
6127
6133
  height: theme.spacing(6),
6128
6134
  padding: theme.spacing(0, 3)
6129
6135
  },
6130
- '&.MuiTab-root.Mui-selected': {
6131
- color: 'inherit',
6136
+ '& .MuiTab-root.Mui-selected': {
6132
6137
  borderRadius: theme.spacing(1),
6133
6138
  height: theme.spacing(6)
6134
6139
  }
6135
6140
  }, ownerState.size === 'md' && {
6141
+ // padding: theme.spacing(1),
6136
6142
  height: theme.spacing(12),
6137
6143
  borderRadius: theme.spacing(3),
6138
6144
  '& .MuiTab-root': {
@@ -6141,11 +6147,13 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
6141
6147
  padding: theme.spacing(2, 3)
6142
6148
  },
6143
6149
  '& .MuiTab-root.Mui-selected': {
6144
- color: 'inherit',
6150
+ // backgroundColor: theme.palette.base[50],
6151
+ // color: theme.palette.textColor[900],
6145
6152
  borderRadius: theme.spacing(2),
6146
6153
  height: theme.spacing(10)
6147
6154
  }
6148
6155
  }, ownerState.size === 'lg' && {
6156
+ // padding: theme.spacing(1),
6149
6157
  height: theme.spacing(14),
6150
6158
  borderRadius: theme.spacing(3),
6151
6159
  '& .MuiTab-root': {
@@ -6154,7 +6162,8 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
6154
6162
  padding: theme.spacing(3, 4)
6155
6163
  },
6156
6164
  '& .MuiTab-root.Mui-selected': {
6157
- color: 'inherit',
6165
+ // backgroundColor: theme.palette.base[50],
6166
+ // color: theme.palette.textColor[900],
6158
6167
  borderRadius: theme.spacing(2),
6159
6168
  height: theme.spacing(12)
6160
6169
  }