@rabex-kit/rabex-ui 0.0.3 → 0.0.6

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.
@@ -903,6 +903,13 @@ var Checkbox = function Checkbox(_ref) {
903
903
  }));
904
904
  };
905
905
 
906
+ var _excluded$4 = ["label", "size", "mode"];
907
+ var getTypography = function getTypography(size, mode) {
908
+ return {
909
+ variant: size === 'sm' ? 'body3' : 'body4',
910
+ weight: size === 'xs' ? 'regular' : mode === 'normal' ? 'regular' : 'semiBold'
911
+ };
912
+ };
906
913
  /**
907
914
  * Chip component of Material is somthing like Badge ,
908
915
  * Material Ui Chip is wrapper for content that has
@@ -910,26 +917,43 @@ var Checkbox = function Checkbox(_ref) {
910
917
  * you can see Chip Documentation api that I mentioned below [here](https://mui.com/material-ui/api/chip)
911
918
  *
912
919
  * ```typescript
913
- * import { Chip } from '@rabex-kit/core';
920
+ * import { Chip } from '@rabex-kit/rabex-ui';
914
921
  * ```
915
922
  *
916
923
  *
917
924
  * @param props
918
925
  * @returns
919
926
  */
920
- var Chip = /*#__PURE__*/styled(MuiChip, {
927
+ var StyledChip = /*#__PURE__*/styled(MuiChip, {
921
928
  name: 'MuiChip',
922
929
  shouldForwardProp: function shouldForwardProp(prop) {
923
- return !['hasBullet', 'bulletColor', 'labelColor'].includes(prop);
930
+ return !['hasBullet', 'bulletColor', 'labelColor', 'iconPosition', 'leadingIcon', 'trailingIcon'].includes(prop);
924
931
  }
925
932
  })(function () {
926
933
  return {};
927
934
  });
935
+ var Chip = function Chip(props) {
936
+ var label = props.label,
937
+ _props$size = props.size,
938
+ size = _props$size === void 0 ? 'sm' : _props$size,
939
+ _props$mode = props.mode,
940
+ mode = _props$mode === void 0 ? 'normal' : _props$mode,
941
+ other = _objectWithoutPropertiesLoose(props, _excluded$4);
942
+ return React__default.createElement(StyledChip, Object.assign({
943
+ label: React__default.createElement(Typography, {
944
+ variant: getTypography(size, mode).variant,
945
+ weight: getTypography(size, mode).weight
946
+ }, label),
947
+ size: size,
948
+ mode: mode
949
+ }, other));
950
+ };
928
951
  Chip.defaultProps = {
929
952
  hasBullet: false,
930
953
  mode: 'normal',
931
- size: 'medium',
932
- color: 'default'
954
+ size: 'sm',
955
+ color: 'default',
956
+ variant: 'filled'
933
957
  };
934
958
 
935
959
  /**
@@ -1031,7 +1055,7 @@ var Drawer = function Drawer(props) {
1031
1055
  return React__default.createElement(MuiDrawer, Object.assign({}, props));
1032
1056
  };
1033
1057
 
1034
- var _excluded$4 = ["widthPercent", "bgColor", "align"];
1058
+ var _excluded$5 = ["widthPercent", "bgColor", "align"];
1035
1059
  /**
1036
1060
  *
1037
1061
  * DynamicBackground is a wrapper for adding background
@@ -1045,7 +1069,7 @@ var DynamicBackground = function DynamicBackground(_ref) {
1045
1069
  widthPercent = _ref$widthPercent === void 0 ? 0 : _ref$widthPercent,
1046
1070
  bgColor = _ref.bgColor,
1047
1071
  align = _ref.align,
1048
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
1072
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1049
1073
  var calcPercent = widthPercent < 100 ? widthPercent : 100;
1050
1074
  return React__default.createElement(Box, Object.assign({
1051
1075
  width: calcPercent + "%",
@@ -1088,10 +1112,10 @@ var Stack = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1088
1112
  }, props));
1089
1113
  });
1090
1114
 
1091
- var _excluded$5 = ["sx"];
1115
+ var _excluded$6 = ["sx"];
1092
1116
  var DynamicBackgroundContainer = function DynamicBackgroundContainer(_ref) {
1093
1117
  var sx = _ref.sx,
1094
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1118
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1095
1119
  return React__default.createElement(Stack, Object.assign({
1096
1120
  sx: _extends({
1097
1121
  position: 'relative',
@@ -1120,7 +1144,7 @@ var FormControl = function FormControl(_ref) {
1120
1144
  return React__default.createElement(MuiFormControl, Object.assign({}, props));
1121
1145
  };
1122
1146
 
1123
- var _excluded$6 = ["error"];
1147
+ var _excluded$7 = ["error"];
1124
1148
  /**
1125
1149
  * The name MuiFormControlLabel can be used when providing default props or style overrides in the theme.
1126
1150
  * Drop-in replacement of the Radio, Switch and Checkbox component. Use this component if you want to display an extra label.
@@ -1138,7 +1162,7 @@ var _excluded$6 = ["error"];
1138
1162
  */
1139
1163
  var FormControlLabel = function FormControlLabel(_ref) {
1140
1164
  var error = _ref.error,
1141
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1165
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
1142
1166
  return React__default.createElement(MuiFormControlLabel, Object.assign({}, props, {
1143
1167
  classes: {
1144
1168
  root: CN({
@@ -1630,7 +1654,7 @@ Paper.defaultProps = {
1630
1654
  elevation: 1
1631
1655
  };
1632
1656
 
1633
- var _excluded$7 = ["error"];
1657
+ var _excluded$8 = ["error"];
1634
1658
  /**
1635
1659
  * Radio buttons allow the user to select one option from a set.
1636
1660
  *
@@ -1647,7 +1671,7 @@ var _excluded$7 = ["error"];
1647
1671
  */
1648
1672
  var Radio = function Radio(_ref) {
1649
1673
  var error = _ref.error,
1650
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
1674
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
1651
1675
  return React__default.createElement(MuiRadio, Object.assign({}, props, {
1652
1676
  classes: {
1653
1677
  root: CN({
@@ -1765,7 +1789,7 @@ Slider.defaultProps = {
1765
1789
  size: 'medium'
1766
1790
  };
1767
1791
 
1768
- var _excluded$8 = ["sx"],
1792
+ var _excluded$9 = ["sx"],
1769
1793
  _excluded2 = ["sx", "className"];
1770
1794
  /**
1771
1795
  * SliderComponent is displayed in minimized way.
@@ -1852,7 +1876,7 @@ var SliderContent = function SliderContent(_ref) {
1852
1876
  };
1853
1877
  var _ref2 = containerProps || {},
1854
1878
  containerSx = _ref2.sx,
1855
- otherContainer = _objectWithoutPropertiesLoose(_ref2, _excluded$8);
1879
+ otherContainer = _objectWithoutPropertiesLoose(_ref2, _excluded$9);
1856
1880
  var _ref3 = itemsProps || {},
1857
1881
  itemSx = _ref3.sx,
1858
1882
  itemClassName = _ref3.className,
@@ -1941,10 +1965,10 @@ var SvgIcon = function SvgIcon(_ref) {
1941
1965
  return React__default.createElement(MuiSvgIcon, Object.assign({}, props));
1942
1966
  };
1943
1967
 
1944
- var _excluded$9 = ["size"];
1968
+ var _excluded$a = ["size"];
1945
1969
  var Tab = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1946
1970
  var size = _ref.size,
1947
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
1971
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
1948
1972
  return React__default.createElement(MuiTab, Object.assign({
1949
1973
  ref: ref,
1950
1974
  classes: {
@@ -2096,7 +2120,7 @@ var TableSortLabel = function TableSortLabel(props) {
2096
2120
  return React__default.createElement(MuiTableSortLabel, Object.assign({}, props));
2097
2121
  };
2098
2122
 
2099
- var _excluded$a = ["theme"],
2123
+ var _excluded$b = ["theme"],
2100
2124
  _excluded2$1 = ["variant", "border", "sx"];
2101
2125
  var Wrapper = /*#__PURE__*/styled(Stack, {
2102
2126
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -2104,7 +2128,7 @@ var Wrapper = /*#__PURE__*/styled(Stack, {
2104
2128
  }
2105
2129
  })(function (_ref) {
2106
2130
  var theme = _ref.theme,
2107
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
2131
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2108
2132
  return {
2109
2133
  '&>.table-row': {
2110
2134
  display: 'grid',
@@ -2153,7 +2177,7 @@ RTable.defaultProps = {
2153
2177
  variant: 'default'
2154
2178
  };
2155
2179
 
2156
- var _excluded$b = ["className"];
2180
+ var _excluded$c = ["className"];
2157
2181
  /**
2158
2182
  * API documentation for the React TableHead component. Learn about the available props and the CSS API.
2159
2183
  *
@@ -2167,7 +2191,7 @@ var _excluded$b = ["className"];
2167
2191
  */
2168
2192
  var RTableHead = function RTableHead(_ref) {
2169
2193
  var className = _ref.className,
2170
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2194
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2171
2195
  return React__default.createElement(Stack, Object.assign({
2172
2196
  p: 4,
2173
2197
  className: "table-row " + className
@@ -2179,7 +2203,7 @@ RTableHead.defaultProps = {
2179
2203
  className: ''
2180
2204
  };
2181
2205
 
2182
- var _excluded$c = ["className"];
2206
+ var _excluded$d = ["className"];
2183
2207
  /**
2184
2208
  * API documentation for the React TableRow component. Learn about the available props and the CSS API.
2185
2209
  *
@@ -2193,7 +2217,7 @@ var _excluded$c = ["className"];
2193
2217
  */
2194
2218
  var RTableRow = function RTableRow(_ref) {
2195
2219
  var className = _ref.className,
2196
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2220
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
2197
2221
  return React__default.createElement(Stack, Object.assign({
2198
2222
  p: 4,
2199
2223
  className: "table-row " + className
@@ -2223,13 +2247,13 @@ var TabPanel = function TabPanel(_ref) {
2223
2247
  * You can read Material-UI Tabs Documentation [here](https://mui.com/material-ui/api/tabs/).
2224
2248
  *
2225
2249
  * ```typescript
2226
- * import { Tabs } from '@rabex-kit/core';
2250
+ * import { Tabs } from '@rabex-kit/rabex-ui';
2227
2251
  * ```
2228
2252
  *
2229
2253
  * Also you can read Material-UI Tab Documentation [here](https://mui.com/material-ui/api/tab/).
2230
2254
  *
2231
2255
  * ```typescript
2232
- * import { Tab } from '@rabex-kit/core';
2256
+ * import { Tab } from '@rabex-kit/rabex-ui';
2233
2257
  * ```
2234
2258
  *
2235
2259
  *
@@ -2303,7 +2327,9 @@ var RabexTypography = {
2303
2327
  smallButton: 'span',
2304
2328
  helperText: 'span',
2305
2329
  inputLabel2: 'span',
2306
- body4: 'span'
2330
+ body4: 'span',
2331
+ body5: 'span',
2332
+ paragraph: 'span'
2307
2333
  }
2308
2334
  }
2309
2335
  },
@@ -2401,6 +2427,16 @@ var RabexTypography = {
2401
2427
  fontSize: '10px',
2402
2428
  lineHeight: '16px',
2403
2429
  fontFamily: 'Yekan, Arial'
2430
+ },
2431
+ body5: {
2432
+ fontSize: '12px',
2433
+ lineHeight: '24px',
2434
+ fontFamily: 'Yekan, Arial'
2435
+ },
2436
+ paragraph: {
2437
+ fontSize: '12px',
2438
+ lineHeight: '24px',
2439
+ fontFamily: 'Yekan, Arial'
2404
2440
  }
2405
2441
  }
2406
2442
  };
@@ -2742,6 +2778,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2742
2778
  50: '#FCFEFF'
2743
2779
  },
2744
2780
  backgroundColor: {
2781
+ main: '#16181F',
2745
2782
  950: '#16181F',
2746
2783
  900: '#333640',
2747
2784
  800: '#3A3A3D',
@@ -2771,7 +2808,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2771
2808
  warning: {
2772
2809
  400: '#E8A700',
2773
2810
  300: '#FFD200',
2774
- 200: '#FFD200',
2811
+ 200: '#FCE7A4',
2775
2812
  100: '#FCF3D6',
2776
2813
  50: '#FFF9E5',
2777
2814
  contrastText: '#FFF',
@@ -2801,7 +2838,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2801
2838
  300: '#848EF5',
2802
2839
  200: '#9CA4FF',
2803
2840
  100: '#D9DCFF',
2804
- 50: '#FFEBEC',
2841
+ 50: '#EDEFFF',
2805
2842
  contrastText: '#FFF',
2806
2843
  main: '#717BEB',
2807
2844
  A100: '#717BEB',
@@ -2834,6 +2871,16 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2834
2871
  A0: '#FFFFFF'
2835
2872
  },
2836
2873
  base: {
2874
+ 900: '#333640',
2875
+ 800: '#3A3A3D',
2876
+ 700: '#666666',
2877
+ 600: '#58667E',
2878
+ 500: '#808A9D',
2879
+ 400: '#A6B0C3',
2880
+ 300: '#CFD6E4',
2881
+ 200: '#EFF2F5',
2882
+ 100: '#F8FAFD',
2883
+ 50: '#FFFFFF',
2837
2884
  main: '#222531',
2838
2885
  A100: '#222531',
2839
2886
  A80: '#333640',
@@ -2939,6 +2986,33 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
2939
2986
  A20: '#A7A8AD',
2940
2987
  A10: '#ADAEB5',
2941
2988
  A0: '#FFFFFF'
2989
+ },
2990
+ neutral: {
2991
+ 950: '#10164A',
2992
+ 900: '#273073',
2993
+ 800: '#455099',
2994
+ 700: '#6B78BF',
2995
+ 600: '#9CA8E6',
2996
+ 500: '#BFCAFF',
2997
+ 400: '#D4E0FF',
2998
+ 300: '#E6F0FF',
2999
+ 200: '#F0F7FF',
3000
+ 100: '#FAFDFF',
3001
+ 50: '#FCFEFF'
3002
+ },
3003
+ backgroundColor: {
3004
+ main: '#16181F',
3005
+ 950: '#16181F',
3006
+ 900: '#333640',
3007
+ 800: '#3A3A3D',
3008
+ 700: '#666666',
3009
+ 600: '#58667E',
3010
+ 500: '#808A9D',
3011
+ 400: '#A6B0C3',
3012
+ 300: '#CFD6E4',
3013
+ 200: '#EFF2F5',
3014
+ 100: '#F8FAFD',
3015
+ 50: '#FFFFFF'
2942
3016
  }
2943
3017
  });
2944
3018
 
@@ -3068,119 +3142,203 @@ var RabexTab = {
3068
3142
  }
3069
3143
  };
3070
3144
 
3071
- var _excluded$d = ["theme", "ownerState"],
3145
+ var _excluded$e = ["theme", "ownerState"],
3072
3146
  _excluded2$2 = ["theme"],
3073
3147
  _excluded3 = ["theme"],
3074
3148
  _excluded4 = ["theme"],
3075
3149
  _excluded5 = ["theme"],
3076
3150
  _excluded6 = ["theme"],
3077
3151
  _excluded7 = ["theme"],
3078
- _excluded8 = ["theme"],
3079
- _excluded9 = ["theme"],
3080
- _excluded10 = ["theme"],
3081
- _excluded11 = ["theme"],
3082
- _excluded12 = ["theme", "ownerState"];
3083
- var ReduxChip = {
3084
- components: {
3085
- styleOverrides: {
3086
- root: function root(_ref) {
3087
- var theme = _ref.theme;
3088
- return {
3089
- display: 'inline-flex',
3090
- gap: theme.spacing(1.5),
3091
- borderRadius: 6,
3092
- fontWeight: 600,
3093
- fontSize: 14
3094
- };
3152
+ _excluded8 = ["theme", "ownerState"];
3153
+ var colorModeConfig = function colorModeConfig(theme) {
3154
+ return {
3155
+ "default": {
3156
+ normal: {
3157
+ color: theme.palette.textColor[50],
3158
+ backgroundColor: theme.palette.backgroundColor[900]
3095
3159
  },
3096
- label: function label(_ref2) {
3097
- var theme = _ref2.theme;
3098
- return {
3099
- overflow: 'visible',
3100
- position: 'relative',
3101
- padding: theme.spacing(0)
3102
- };
3160
+ light: {
3161
+ color: theme.palette.backgroundColor[900],
3162
+ backgroundColor: theme.palette.backgroundColor[200]
3103
3163
  }
3104
3164
  },
3105
- variants: [{
3106
- props: {
3107
- variant: 'default'
3165
+ warning: {
3166
+ normal: {
3167
+ color: theme.palette.textColor[900],
3168
+ backgroundColor: theme.palette.warning[200]
3108
3169
  },
3109
- style: function style(_ref3) {
3110
- var theme = _ref3.theme,
3111
- ownerState = _ref3.ownerState,
3112
- rest = _objectWithoutPropertiesLoose(_ref3, _excluded$d);
3113
- return {
3114
- border: 'unset',
3115
- backgroundColor: 'unset',
3116
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60
3117
- };
3170
+ light: {
3171
+ color: theme.palette.textColor[900],
3172
+ backgroundColor: theme.palette.warning[50],
3173
+ border: "1px solid " + theme.palette.warning[200]
3118
3174
  }
3119
- }, {
3120
- props: {
3121
- variant: 'filled',
3122
- mode: 'normal'
3175
+ },
3176
+ info: {
3177
+ normal: {
3178
+ color: theme.palette.textColor[50],
3179
+ backgroundColor: theme.palette.primary[500]
3123
3180
  },
3124
- style: function style(_ref4) {
3125
- var _theme$palette$ownerS;
3126
- var theme = _ref4.theme,
3127
- ownerState = _objectWithoutPropertiesLoose(_ref4, _excluded2$2);
3128
- return {
3129
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.base.A0,
3130
- backgroundColor: (_theme$palette$ownerS = theme.palette[ownerState === null || ownerState === void 0 ? void 0 : ownerState.color]) === null || _theme$palette$ownerS === void 0 ? void 0 : _theme$palette$ownerS.A100
3131
- };
3181
+ light: {
3182
+ color: theme.palette.primary[500],
3183
+ backgroundColor: theme.palette.info[50],
3184
+ border: "1px solid " + theme.palette.info[200]
3132
3185
  }
3133
- }, {
3134
- props: {
3135
- variant: 'filled',
3136
- mode: 'normal',
3137
- color: 'secondary'
3186
+ },
3187
+ primary: {
3188
+ normal: {
3189
+ color: theme.palette.textColor[50],
3190
+ backgroundColor: theme.palette.primary[500]
3138
3191
  },
3139
- style: function style(_ref5) {
3140
- var _theme$palette$base;
3141
- var theme = _ref5.theme,
3142
- ownerState = _objectWithoutPropertiesLoose(_ref5, _excluded3);
3192
+ light: {
3193
+ color: theme.palette.primary[500],
3194
+ backgroundColor: theme.palette.info[50],
3195
+ border: "1px solid " + theme.palette.info[200]
3196
+ }
3197
+ },
3198
+ error: {
3199
+ normal: {
3200
+ color: theme.palette.textColor[50],
3201
+ backgroundColor: theme.palette.error[400]
3202
+ },
3203
+ light: {
3204
+ color: theme.palette.error[400],
3205
+ backgroundColor: theme.palette.error[50],
3206
+ border: "1px solid " + theme.palette.error[200]
3207
+ }
3208
+ },
3209
+ success: {
3210
+ normal: {
3211
+ color: theme.palette.textColor[50],
3212
+ backgroundColor: theme.palette.success[400]
3213
+ },
3214
+ light: {
3215
+ color: theme.palette.success[400],
3216
+ backgroundColor: theme.palette.success[50],
3217
+ border: "1px solid " + theme.palette.success[200]
3218
+ }
3219
+ }
3220
+ };
3221
+ };
3222
+ var chipStyles = function chipStyles(theme, ownerState) {
3223
+ var _theme$palette$ownerS;
3224
+ var baseStyles = {
3225
+ display: 'flex',
3226
+ alignItems: 'center',
3227
+ gap: theme.spacing(1),
3228
+ borderRadius: theme.spacing(1)
3229
+ };
3230
+ var sizeStyles = {
3231
+ sm: {
3232
+ height: theme.spacing(6),
3233
+ padding: theme.spacing(1, 2)
3234
+ },
3235
+ xs: {
3236
+ height: theme.spacing(4),
3237
+ padding: theme.spacing(0, 1)
3238
+ }
3239
+ };
3240
+ var variantStyles = {
3241
+ filled: {
3242
+ backgroundColor: ownerState !== null && ownerState !== void 0 && ownerState.color ? colorModeConfig(theme)[(ownerState === null || ownerState === void 0 ? void 0 : ownerState.color) || 'default'][(ownerState === null || ownerState === void 0 ? void 0 : ownerState.mode) || 'normal'].backgroundColor : theme.palette.primary.main,
3243
+ color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : colorModeConfig(theme)[(ownerState === null || ownerState === void 0 ? void 0 : ownerState.color) || 'default'][(ownerState === null || ownerState === void 0 ? void 0 : ownerState.mode) || 'normal'].color
3244
+ },
3245
+ outlined: {
3246
+ border: "2px solid " + ((_theme$palette$ownerS = theme.palette[ownerState === null || ownerState === void 0 ? void 0 : ownerState.color]) === null || _theme$palette$ownerS === void 0 ? void 0 : _theme$palette$ownerS.main),
3247
+ color: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor) || theme.palette.textColor[900]
3248
+ }
3249
+ };
3250
+ return _extends({}, baseStyles, (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) && sizeStyles[ownerState.size], (ownerState === null || ownerState === void 0 ? void 0 : ownerState.variant) && variantStyles[ownerState.variant]);
3251
+ };
3252
+ var RabexChip = {
3253
+ components: {
3254
+ // defaultProps: {
3255
+ // size: 'sm', // You can change this to 'xs' or 'sm' as the default
3256
+ // },
3257
+ styleOverrides: {
3258
+ root: function root(_ref) {
3259
+ var theme = _ref.theme,
3260
+ ownerState = _ref.ownerState,
3261
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3262
+ return _extends({}, chipStyles(theme, ownerState));
3263
+ },
3264
+ icon: function icon(_ref2) {
3265
+ var theme = _ref2.theme,
3266
+ ownerState = _ref2.ownerState;
3143
3267
  return {
3144
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.base.A0,
3145
- backgroundColor: (_theme$palette$base = theme.palette.base) === null || _theme$palette$base === void 0 ? void 0 : _theme$palette$base.A100
3268
+ margin: 0,
3269
+ fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
3146
3270
  };
3147
- }
3148
- }, {
3149
- props: {
3150
- variant: 'filled',
3151
- mode: 'light'
3152
3271
  },
3153
- style: function style(_ref6) {
3154
- var theme = _ref6.theme,
3155
- other = _objectWithoutPropertiesLoose(_ref6, _excluded4);
3156
- var ownerState = other.as ? other.ownerState : other;
3272
+ deleteIcon: function deleteIcon(_ref3) {
3273
+ var theme = _ref3.theme,
3274
+ ownerState = _ref3.ownerState;
3157
3275
  return {
3158
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3159
- backgroundColor: theme.palette.mode === 'light' ? theme.palette[ownerState === null || ownerState === void 0 ? void 0 : ownerState.color].A20 : colorManipulator_js.alpha(theme.palette[ownerState === null || ownerState === void 0 ? void 0 : ownerState.color].A100, 0.1)
3276
+ margin: 0,
3277
+ fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
3160
3278
  };
3161
- }
3162
- }, {
3163
- props: {
3164
- variant: 'filled',
3165
- mode: 'light',
3166
- color: 'secondary'
3167
3279
  },
3168
- style: function style(_ref7) {
3169
- var theme = _ref7.theme,
3170
- ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded5);
3280
+ label: function label(_ref4) {
3281
+ var theme = _ref4.theme;
3171
3282
  return {
3172
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.mode === 'light' ? theme.palette.textColor.A40 : theme.palette.grayBackground.A20,
3173
- backgroundColor: theme.palette.mode === 'light' ? colorManipulator_js.alpha(theme.palette.grayBackground.A80, 0.1) : colorManipulator_js.alpha(theme.palette.grayBackground.A20, 0.1)
3283
+ overflow: 'visible',
3284
+ position: 'relative',
3285
+ padding: theme.spacing(0)
3174
3286
  };
3175
3287
  }
3176
- }, {
3288
+ },
3289
+ variants: [
3290
+ // {
3291
+ // props: { variant: 'default' } as ChipProps,
3292
+ // style: ({ theme, ownerState }: any) => {
3293
+ // return {
3294
+ // border: 'unset',
3295
+ // backgroundColor: 'unset',
3296
+ // color: ownerState?.labelColor
3297
+ // ? ownerState?.labelColor
3298
+ // : theme.palette.textColor.A60,
3299
+ // };
3300
+ // },
3301
+ // },
3302
+ // {
3303
+ // props: { variant: 'filled' } as ChipProps,
3304
+ // style: ({ theme, ...ownerState }: any) => {
3305
+ // console.log(theme, ...ownerState);
3306
+ // return {
3307
+ // backgroundColor: ownerState?.color
3308
+ // ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].backgroundColor
3309
+ // : theme.palette.primary.main,
3310
+ // color: ownerState?.labelColor
3311
+ // ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].color
3312
+ // : theme.palette.textColor[50],
3313
+ // };
3314
+ // },
3315
+ // },
3316
+ // {
3317
+ // props: { size: 'sm' } as ChipProps,
3318
+ // style: ({ theme, ownerState }: any) => {
3319
+ // return {
3320
+ // height: theme.spacing(6),
3321
+ // paddingX: theme.spacing(2),
3322
+ // };
3323
+ // },
3324
+ // },
3325
+ // {
3326
+ // props: { size: 'xs' } as ChipProps,
3327
+ // style: ({ theme, ownerState }: any) => {
3328
+ // return {
3329
+ // height: theme.spacing(4),
3330
+ // paddingX: theme.spacing(1),
3331
+ // };
3332
+ // },
3333
+ // },
3334
+ {
3177
3335
  props: {
3178
3336
  variant: 'outlined'
3179
3337
  },
3180
- style: function style(_ref8) {
3338
+ style: function style(_ref5) {
3181
3339
  var _theme$palette$ownerS2;
3182
- var theme = _ref8.theme,
3183
- ownerState = _objectWithoutPropertiesLoose(_ref8, _excluded6);
3340
+ var theme = _ref5.theme,
3341
+ ownerState = _objectWithoutPropertiesLoose(_ref5, _excluded2$2);
3184
3342
  return {
3185
3343
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3186
3344
  border: "2px solid " + ((_theme$palette$ownerS2 = theme.palette[ownerState === null || ownerState === void 0 ? void 0 : ownerState.color]) === null || _theme$palette$ownerS2 === void 0 ? void 0 : _theme$palette$ownerS2.A60)
@@ -3192,13 +3350,13 @@ var ReduxChip = {
3192
3350
  color: 'secondary',
3193
3351
  mode: 'normal'
3194
3352
  },
3195
- style: function style(_ref9) {
3196
- var _theme$palette$base2;
3197
- var theme = _ref9.theme,
3198
- ownerState = _objectWithoutPropertiesLoose(_ref9, _excluded7);
3353
+ style: function style(_ref6) {
3354
+ var _theme$palette$base;
3355
+ var theme = _ref6.theme,
3356
+ ownerState = _objectWithoutPropertiesLoose(_ref6, _excluded3);
3199
3357
  return {
3200
3358
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3201
- border: "2px solid " + ((_theme$palette$base2 = theme.palette.base) === null || _theme$palette$base2 === void 0 ? void 0 : _theme$palette$base2.A100)
3359
+ border: "2px solid " + ((_theme$palette$base = theme.palette.base) === null || _theme$palette$base === void 0 ? void 0 : _theme$palette$base.A100)
3202
3360
  };
3203
3361
  }
3204
3362
  }, {
@@ -3207,10 +3365,10 @@ var ReduxChip = {
3207
3365
  color: 'secondary',
3208
3366
  mode: 'light'
3209
3367
  },
3210
- style: function style(_ref10) {
3368
+ style: function style(_ref7) {
3211
3369
  var _theme$palette$second;
3212
- var theme = _ref10.theme,
3213
- ownerState = _objectWithoutPropertiesLoose(_ref10, _excluded8);
3370
+ var theme = _ref7.theme,
3371
+ ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded4);
3214
3372
  return {
3215
3373
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3216
3374
  border: "2px solid " + ((_theme$palette$second = theme.palette.secondary) === null || _theme$palette$second === void 0 ? void 0 : _theme$palette$second.A100)
@@ -3218,11 +3376,11 @@ var ReduxChip = {
3218
3376
  }
3219
3377
  }, {
3220
3378
  props: {
3221
- size: 'small',
3379
+ size: 'xs',
3222
3380
  hasBullet: true
3223
3381
  },
3224
- style: function style(_ref11) {
3225
- var theme = _ref11.theme;
3382
+ style: function style(_ref8) {
3383
+ var theme = _ref8.theme;
3226
3384
  return {
3227
3385
  height: 24,
3228
3386
  padding: theme.spacing(0.5, 2, 0.5, 4.5),
@@ -3231,77 +3389,42 @@ var ReduxChip = {
3231
3389
  }
3232
3390
  }, {
3233
3391
  props: {
3234
- size: 'medium',
3392
+ size: 'sm',
3235
3393
  hasBullet: true
3236
3394
  },
3237
- style: function style(_ref12) {
3238
- var theme = _ref12.theme;
3395
+ style: function style(_ref9) {
3396
+ var theme = _ref9.theme;
3239
3397
  return {
3240
3398
  height: 28,
3241
3399
  padding: theme.spacing(0.5, 2, 0.5, 4.5),
3242
3400
  fontSize: 14
3243
3401
  };
3244
3402
  }
3245
- }, {
3246
- props: {
3247
- size: 'large',
3248
- hasBullet: true
3249
- },
3250
- style: function style(_ref13) {
3251
- var theme = _ref13.theme;
3252
- return {
3253
- height: 32,
3254
- padding: theme.spacing(1, 2, 1, 4.5),
3255
- fontSize: 14
3256
- };
3257
- }
3258
- }, {
3259
- props: {
3260
- size: 'small',
3261
- hasBullet: false
3262
- },
3263
- style: function style(_ref14) {
3264
- var theme = _ref14.theme;
3265
- return {
3266
- height: 24,
3267
- padding: theme.spacing(0.5, 2),
3268
- fontSize: 12
3269
- };
3270
- }
3271
- }, {
3272
- props: {
3273
- size: 'medium',
3274
- hasBullet: false
3275
- },
3276
- style: function style(_ref15) {
3277
- var theme = _ref15.theme;
3278
- return {
3279
- height: 28,
3280
- padding: theme.spacing(0.5, 2),
3281
- fontSize: 14
3282
- };
3283
- }
3284
- }, {
3285
- props: {
3286
- size: 'large',
3287
- hasBullet: false
3288
- },
3289
- style: function style(_ref16) {
3290
- var theme = _ref16.theme;
3291
- return {
3292
- height: 32,
3293
- padding: theme.spacing(1, 2),
3294
- fontSize: 14
3295
- };
3296
- }
3297
- }, {
3403
+ },
3404
+ // {
3405
+ // props: { size: 'xs', hasBullet: false } as ChipProps,
3406
+ // style: ({ theme }) => ({
3407
+ // height: 24,
3408
+ // padding: theme.spacing(0.5, 2),
3409
+ // fontSize: 12,
3410
+ // }),
3411
+ // },
3412
+ // {
3413
+ // props: { size: 'sm', hasBullet: false } as ChipProps,
3414
+ // style: ({ theme }) => ({
3415
+ // height: 28,
3416
+ // padding: theme.spacing(0.5, 2),
3417
+ // fontSize: 14,
3418
+ // }),
3419
+ // },
3420
+ {
3298
3421
  props: {
3299
3422
  hasBullet: true
3300
3423
  },
3301
- style: function style(_ref17) {
3424
+ style: function style(_ref10) {
3302
3425
  var _theme$palette$ownerS3;
3303
- var theme = _ref17.theme,
3304
- ownerState = _objectWithoutPropertiesLoose(_ref17, _excluded9);
3426
+ var theme = _ref10.theme,
3427
+ ownerState = _objectWithoutPropertiesLoose(_ref10, _excluded5);
3305
3428
  return {
3306
3429
  '& > .MuiChip-label ': {
3307
3430
  '&::before': {
@@ -3335,9 +3458,9 @@ var ReduxChip = {
3335
3458
  variant: 'filled',
3336
3459
  mode: 'normal'
3337
3460
  },
3338
- style: function style(_ref18) {
3339
- var theme = _ref18.theme,
3340
- ownerState = _objectWithoutPropertiesLoose(_ref18, _excluded10);
3461
+ style: function style(_ref11) {
3462
+ var theme = _ref11.theme,
3463
+ ownerState = _objectWithoutPropertiesLoose(_ref11, _excluded6);
3341
3464
  return {
3342
3465
  '& > .MuiChip-label ': {
3343
3466
  '&::before': {
@@ -3353,14 +3476,14 @@ var ReduxChip = {
3353
3476
  mode: 'light',
3354
3477
  color: 'secondary'
3355
3478
  },
3356
- style: function style(_ref19) {
3357
- var _theme$palette$base3;
3358
- var theme = _ref19.theme,
3359
- ownerState = _objectWithoutPropertiesLoose(_ref19, _excluded11);
3479
+ style: function style(_ref12) {
3480
+ var _theme$palette$base2;
3481
+ var theme = _ref12.theme,
3482
+ ownerState = _objectWithoutPropertiesLoose(_ref12, _excluded7);
3360
3483
  return {
3361
3484
  '& > .MuiChip-label ': {
3362
3485
  '&::before': {
3363
- backgroundColor: ownerState !== null && ownerState !== void 0 && ownerState.bulletColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.bulletColor : (_theme$palette$base3 = theme.palette.base) === null || _theme$palette$base3 === void 0 ? void 0 : _theme$palette$base3.A100
3486
+ backgroundColor: ownerState !== null && ownerState !== void 0 && ownerState.bulletColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.bulletColor : (_theme$palette$base2 = theme.palette.base) === null || _theme$palette$base2 === void 0 ? void 0 : _theme$palette$base2.A100
3364
3487
  }
3365
3488
  }
3366
3489
  };
@@ -3369,8 +3492,8 @@ var ReduxChip = {
3369
3492
  props: {
3370
3493
  clickable: true
3371
3494
  },
3372
- style: function style(_ref20) {
3373
- var rest = _objectWithoutPropertiesLoose(_ref20, _excluded12);
3495
+ style: function style(_ref13) {
3496
+ var rest = _objectWithoutPropertiesLoose(_ref13, _excluded8);
3374
3497
  return {
3375
3498
  '& .MuiChip-icon': {
3376
3499
  margin: 0
@@ -3382,10 +3505,10 @@ var ReduxChip = {
3382
3505
  clickable: true,
3383
3506
  mode: 'light'
3384
3507
  },
3385
- style: function style(_ref21) {
3508
+ style: function style(_ref14) {
3386
3509
  var _theme$palette$ownerS4;
3387
- var theme = _ref21.theme,
3388
- ownerState = _ref21.ownerState;
3510
+ var theme = _ref14.theme,
3511
+ ownerState = _ref14.ownerState;
3389
3512
  return ownerState ? {
3390
3513
  '&:hover': {
3391
3514
  backgroundColor: colorManipulator_js.alpha("" + ((_theme$palette$ownerS4 = theme.palette[ownerState.color]) === null || _theme$palette$ownerS4 === void 0 ? void 0 : _theme$palette$ownerS4.A100), 0.1)
@@ -4260,7 +4383,7 @@ var getDesignTokens = function getDesignTokens(_ref) {
4260
4383
  MuiTypography: RabexTypography.components,
4261
4384
  MuiTabs: RabexTabs.components,
4262
4385
  MuiTab: RabexTab.components,
4263
- MuiChip: ReduxChip.components,
4386
+ MuiChip: RabexChip.components,
4264
4387
  MuiPaper: RabexPaper.components,
4265
4388
  MuiDivider: RabexDivider.components,
4266
4389
  MuiTooltip: RabexTooltip.components,
@@ -4348,7 +4471,7 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
4348
4471
  };
4349
4472
 
4350
4473
  var _styled;
4351
- var _excluded$e = ["className"];
4474
+ var _excluded$f = ["className"];
4352
4475
  /**
4353
4476
  *
4354
4477
  * Tooltips display informative text when users hover over, focus on, or tap an element.
@@ -4373,7 +4496,7 @@ var MuiTooltipStyled = /*#__PURE__*/styled(MuiTooltip, {
4373
4496
  // tooltip popper hasn't permission for wrap text
4374
4497
  var NoMaxWidthTooltip = /*#__PURE__*/styled$1(function (_ref) {
4375
4498
  var className = _ref.className,
4376
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
4499
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4377
4500
  return React__default.createElement(MuiTooltipStyled, Object.assign({}, props, {
4378
4501
  classes: {
4379
4502
  popper: className
@@ -4560,7 +4683,7 @@ var Fade = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
4560
4683
  }, props));
4561
4684
  });
4562
4685
 
4563
- var _excluded$f = ["name"];
4686
+ var _excluded$g = ["name"];
4564
4687
  /**
4565
4688
  * Formik Input let users enter and edit text.
4566
4689
  *
@@ -4572,7 +4695,7 @@ var _excluded$f = ["name"];
4572
4695
  */
4573
4696
  var FormikInput = function FormikInput(_ref) {
4574
4697
  var name = _ref.name,
4575
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4698
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4576
4699
  var _useField = formik.useField(name),
4577
4700
  field = _useField[0],
4578
4701
  meta = _useField[1];
@@ -4583,7 +4706,7 @@ var FormikInput = function FormikInput(_ref) {
4583
4706
  }));
4584
4707
  };
4585
4708
 
4586
- var _excluded$g = ["helperText", "name"];
4709
+ var _excluded$h = ["helperText", "name"];
4587
4710
  /**
4588
4711
  * Formik Select let users enter and edit text.
4589
4712
  *
@@ -4596,7 +4719,7 @@ var _excluded$g = ["helperText", "name"];
4596
4719
  var FormikSelect = function FormikSelect(_ref) {
4597
4720
  var helperText = _ref.helperText,
4598
4721
  name = _ref.name,
4599
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4722
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4600
4723
  var _useField = formik.useField(name),
4601
4724
  field = _useField[0],
4602
4725
  meta = _useField[1];
@@ -4614,7 +4737,7 @@ var FormikSelect = function FormikSelect(_ref) {
4614
4737
  }, text));
4615
4738
  };
4616
4739
 
4617
- var _excluded$h = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption"];
4740
+ var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption"];
4618
4741
  function _handleHelperColor$1(props, key) {
4619
4742
  var _props$key;
4620
4743
  if (props.error) return 'error.A100';
@@ -4655,7 +4778,7 @@ var TextField = function TextField(props) {
4655
4778
  onChange = _ref.onChange,
4656
4779
  valueFormat = _ref.valueFormat,
4657
4780
  valueFormatOption = _ref.valueFormatOption,
4658
- other = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4781
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4659
4782
  if (!valueFormat && !!valueFormatOption) {
4660
4783
  console.warn("'valueFormatOption' Only Work With known 'valueFormat's...");
4661
4784
  }
@@ -4719,7 +4842,7 @@ TextField.defaultProps = {
4719
4842
  }
4720
4843
  };
4721
4844
 
4722
- var _excluded$i = ["name"];
4845
+ var _excluded$j = ["name"];
4723
4846
  /**
4724
4847
  * Formik TextField let users enter and edit text.
4725
4848
  *
@@ -4731,7 +4854,7 @@ var _excluded$i = ["name"];
4731
4854
  */
4732
4855
  var FormikTextField = function FormikTextField(_ref) {
4733
4856
  var name = _ref.name,
4734
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4857
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4735
4858
  var _useField = formik.useField(name),
4736
4859
  field = _useField[0],
4737
4860
  meta = _useField[1];
@@ -4845,7 +4968,7 @@ var Modal = function Modal(_ref) {
4845
4968
  return React__default.createElement(MuiModal, Object.assign({}, props));
4846
4969
  };
4847
4970
 
4848
- var _excluded$j = ["hasCloseButton", "iconCloseProps", "closeButtonProps", "headerProps"],
4971
+ var _excluded$k = ["hasCloseButton", "iconCloseProps", "closeButtonProps", "headerProps"],
4849
4972
  _excluded2$3 = ["sx"],
4850
4973
  _excluded3$1 = ["sx"],
4851
4974
  _excluded4$1 = ["sx"];
@@ -4859,7 +4982,7 @@ var ModalContent = function ModalContent(_ref) {
4859
4982
  iconCloseProps = _ref.iconCloseProps,
4860
4983
  closeButtonProps = _ref.closeButtonProps,
4861
4984
  headerProps = _ref.headerProps,
4862
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4985
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
4863
4986
  var _ref2 = props || {},
4864
4987
  rootSx = _ref2.sx,
4865
4988
  root = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
@@ -5233,7 +5356,7 @@ SeeMore.defaultProps = {
5233
5356
  height: '56%'
5234
5357
  };
5235
5358
 
5236
- var _excluded$k = ["inputProps", "children"];
5359
+ var _excluded$l = ["inputProps", "children"];
5237
5360
  /**
5238
5361
  * This is a custom wrapper component made of Material-UI Button.
5239
5362
  * Props of the Button component are also available.
@@ -5251,7 +5374,7 @@ var _excluded$k = ["inputProps", "children"];
5251
5374
  var UploadButton = function UploadButton(_ref) {
5252
5375
  var inputProps = _ref.inputProps,
5253
5376
  children = _ref.children,
5254
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
5377
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
5255
5378
  return React__default.createElement(Button, Object.assign({}, props), children, React__default.createElement("input", Object.assign({
5256
5379
  hidden: true,
5257
5380
  type: "file",
@@ -5280,6 +5403,136 @@ var Zoom = function Zoom(_ref) {
5280
5403
  return React__default.createElement(MuiZoom, Object.assign({}, props));
5281
5404
  };
5282
5405
 
5406
+ var _excluded$m = ["theme"];
5407
+ /**
5408
+ * SegmentedControl component for switching between views.
5409
+ *
5410
+ * This component is built on top of Material-UI Tabs and supports additional props
5411
+ * for customizing size, border, and separation of tabs.
5412
+ *
5413
+ * @param props
5414
+ * @returns JSX.Element
5415
+ */
5416
+ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
5417
+ name: 'SegmentedControl',
5418
+ shouldForwardProp: function shouldForwardProp(prop) {
5419
+ return !['size', 'isSeparate', 'hasBorder'].includes(prop);
5420
+ }
5421
+ })(function (_ref) {
5422
+ var theme = _ref.theme,
5423
+ ownerState = _objectWithoutPropertiesLoose(_ref, _excluded$m);
5424
+ return _extends({
5425
+ minHeight: 'unset',
5426
+ display: 'flex',
5427
+ backgroundColor: theme.palette.backgroundColor[200],
5428
+ '& .MuiTabs-flexContainer': {
5429
+ gap: theme.spacing(1)
5430
+ }
5431
+ }, ownerState.size === 'sm' && {
5432
+ height: theme.spacing(8),
5433
+ borderRadius: theme.spacing(2),
5434
+ '&.MuiTab-root': {
5435
+ borderRadius: theme.spacing(1),
5436
+ height: theme.spacing(6),
5437
+ padding: theme.spacing(0, 3)
5438
+ },
5439
+ '&.MuiTab-root.Mui-selected': {
5440
+ color: 'inherit',
5441
+ borderRadius: theme.spacing(1)
5442
+ }
5443
+ }, ownerState.size === 'md' && {
5444
+ height: theme.spacing(12),
5445
+ borderRadius: theme.spacing(3),
5446
+ '& .MuiTab-root': {
5447
+ borderRadius: theme.spacing(2),
5448
+ height: theme.spacing(10),
5449
+ padding: theme.spacing(2, 3)
5450
+ },
5451
+ '& .MuiTab-root.Mui-selected': {
5452
+ color: 'inherit',
5453
+ borderRadius: theme.spacing(2)
5454
+ }
5455
+ }, ownerState.size === 'lg' && {
5456
+ height: theme.spacing(14),
5457
+ borderRadius: theme.spacing(3),
5458
+ '& .MuiTab-root': {
5459
+ borderRadius: theme.spacing(2),
5460
+ height: theme.spacing(12),
5461
+ padding: theme.spacing(3, 4)
5462
+ },
5463
+ '& .MuiTab-root.Mui-selected': {
5464
+ color: 'inherit',
5465
+ borderRadius: theme.spacing(2)
5466
+ }
5467
+ }, ownerState.isSeparate && {
5468
+ '& .MuiTabs-flexContainer': {
5469
+ gap: theme.spacing(1),
5470
+ padding: theme.spacing(1)
5471
+ },
5472
+ '& .MuiTab-root': {
5473
+ borderRadius: theme.spacing(1),
5474
+ padding: theme.spacing(2, 3)
5475
+ }
5476
+ }, ownerState.hasBorder && {
5477
+ border: "2px dotted " + theme.palette.divider,
5478
+ '& .MuiTab-root': {
5479
+ borderRadius: theme.spacing(1),
5480
+ border: "2px dotted " + theme.palette.divider,
5481
+ lineHeight: theme.spacing(2)
5482
+ }
5483
+ }, ownerState.variant === 'fullWidth' && {
5484
+ width: '100%'
5485
+ }, {
5486
+ // Remove indicator
5487
+ '& .MuiTabs-indicator': {
5488
+ display: 'none'
5489
+ }
5490
+ });
5491
+ });
5492
+ SegmentedControl.defaultProps = {
5493
+ variant: 'fullWidth',
5494
+ size: 'sm',
5495
+ isSeparate: false,
5496
+ hasBorder: false
5497
+ };
5498
+
5499
+ // Custom SegmentedControlTab with styled applied based on size
5500
+ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
5501
+ return React__default.createElement(MuiTab, Object.assign({}, props, {
5502
+ label:
5503
+ // Render custom Typography for the label
5504
+ React__default.createElement(Typography, {
5505
+ variant: "body2",
5506
+ weight: "semiBold"
5507
+ }, props.label)
5508
+ }));
5509
+ })(function (_ref) {
5510
+ var theme = _ref.theme;
5511
+ return {
5512
+ minWidth: 80,
5513
+ color: theme.palette.mode === 'light' ? theme.palette.textColor[900] : theme.palette.textColor.A40,
5514
+ position: 'relative',
5515
+ minHeight: 24,
5516
+ borderRadius: 'unset',
5517
+ '&::after': {
5518
+ content: 'unset',
5519
+ display: 'none'
5520
+ },
5521
+ '&.MuiTab-root.Mui-selected': {
5522
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.base[50] : theme.palette.secondary.A80,
5523
+ color: theme.palette.textColor[900]
5524
+ },
5525
+ '&.Mui-disabled': {
5526
+ cursor: 'not-allowed',
5527
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A40 : theme.palette.textColor.A60
5528
+ },
5529
+ '& .MuiTab-iconWrapper': {
5530
+ fontSize: '14px'
5531
+ }
5532
+ };
5533
+ });
5534
+ SegmentedControlTab.defaultProps = {};
5535
+
5283
5536
  exports.useMediaQuery = useMediaQuery;
5284
5537
  exports.useScrollTrigger = useScrollTrigger_js;
5285
5538
  exports.useTheme = useTheme;
@@ -5359,6 +5612,8 @@ exports.RTableRow = RTableRow;
5359
5612
  exports.Radio = Radio;
5360
5613
  exports.RadioGroup = RadioGroup;
5361
5614
  exports.SeeMore = SeeMore;
5615
+ exports.SegmentedControl = SegmentedControl;
5616
+ exports.SegmentedControlTab = SegmentedControlTab;
5362
5617
  exports.Select = Select;
5363
5618
  exports.SelectItem = SelectItem;
5364
5619
  exports.Skeleton = Skeleton;