@rabex-kit/rabex-ui 0.0.2 → 0.0.5

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
  *
@@ -2742,6 +2766,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2742
2766
  50: '#FCFEFF'
2743
2767
  },
2744
2768
  backgroundColor: {
2769
+ main: '#16181F',
2745
2770
  950: '#16181F',
2746
2771
  900: '#333640',
2747
2772
  800: '#3A3A3D',
@@ -2771,7 +2796,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2771
2796
  warning: {
2772
2797
  400: '#E8A700',
2773
2798
  300: '#FFD200',
2774
- 200: '#FFD200',
2799
+ 200: '#FCE7A4',
2775
2800
  100: '#FCF3D6',
2776
2801
  50: '#FFF9E5',
2777
2802
  contrastText: '#FFF',
@@ -2801,7 +2826,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2801
2826
  300: '#848EF5',
2802
2827
  200: '#9CA4FF',
2803
2828
  100: '#D9DCFF',
2804
- 50: '#FFEBEC',
2829
+ 50: '#EDEFFF',
2805
2830
  contrastText: '#FFF',
2806
2831
  main: '#717BEB',
2807
2832
  A100: '#717BEB',
@@ -2834,6 +2859,16 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2834
2859
  A0: '#FFFFFF'
2835
2860
  },
2836
2861
  base: {
2862
+ 900: '#333640',
2863
+ 800: '#3A3A3D',
2864
+ 700: '#666666',
2865
+ 600: '#58667E',
2866
+ 500: '#808A9D',
2867
+ 400: '#A6B0C3',
2868
+ 300: '#CFD6E4',
2869
+ 200: '#EFF2F5',
2870
+ 100: '#F8FAFD',
2871
+ 50: '#FFFFFF',
2837
2872
  main: '#222531',
2838
2873
  A100: '#222531',
2839
2874
  A80: '#333640',
@@ -2939,6 +2974,33 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
2939
2974
  A20: '#A7A8AD',
2940
2975
  A10: '#ADAEB5',
2941
2976
  A0: '#FFFFFF'
2977
+ },
2978
+ neutral: {
2979
+ 950: '#10164A',
2980
+ 900: '#273073',
2981
+ 800: '#455099',
2982
+ 700: '#6B78BF',
2983
+ 600: '#9CA8E6',
2984
+ 500: '#BFCAFF',
2985
+ 400: '#D4E0FF',
2986
+ 300: '#E6F0FF',
2987
+ 200: '#F0F7FF',
2988
+ 100: '#FAFDFF',
2989
+ 50: '#FCFEFF'
2990
+ },
2991
+ backgroundColor: {
2992
+ main: '#16181F',
2993
+ 950: '#16181F',
2994
+ 900: '#333640',
2995
+ 800: '#3A3A3D',
2996
+ 700: '#666666',
2997
+ 600: '#58667E',
2998
+ 500: '#808A9D',
2999
+ 400: '#A6B0C3',
3000
+ 300: '#CFD6E4',
3001
+ 200: '#EFF2F5',
3002
+ 100: '#F8FAFD',
3003
+ 50: '#FFFFFF'
2942
3004
  }
2943
3005
  });
2944
3006
 
@@ -3068,119 +3130,203 @@ var RabexTab = {
3068
3130
  }
3069
3131
  };
3070
3132
 
3071
- var _excluded$d = ["theme", "ownerState"],
3133
+ var _excluded$e = ["theme", "ownerState"],
3072
3134
  _excluded2$2 = ["theme"],
3073
3135
  _excluded3 = ["theme"],
3074
3136
  _excluded4 = ["theme"],
3075
3137
  _excluded5 = ["theme"],
3076
3138
  _excluded6 = ["theme"],
3077
3139
  _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
- };
3140
+ _excluded8 = ["theme", "ownerState"];
3141
+ var colorModeConfig = function colorModeConfig(theme) {
3142
+ return {
3143
+ "default": {
3144
+ normal: {
3145
+ color: theme.palette.textColor[50],
3146
+ backgroundColor: theme.palette.backgroundColor[900]
3095
3147
  },
3096
- label: function label(_ref2) {
3097
- var theme = _ref2.theme;
3098
- return {
3099
- overflow: 'visible',
3100
- position: 'relative',
3101
- padding: theme.spacing(0)
3102
- };
3148
+ light: {
3149
+ color: theme.palette.backgroundColor[900],
3150
+ backgroundColor: theme.palette.backgroundColor[200]
3103
3151
  }
3104
3152
  },
3105
- variants: [{
3106
- props: {
3107
- variant: 'default'
3153
+ warning: {
3154
+ normal: {
3155
+ color: theme.palette.textColor[900],
3156
+ backgroundColor: theme.palette.warning[200]
3108
3157
  },
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
- };
3158
+ light: {
3159
+ color: theme.palette.textColor[900],
3160
+ backgroundColor: theme.palette.warning[50],
3161
+ border: "1px solid " + theme.palette.warning[200]
3118
3162
  }
3119
- }, {
3120
- props: {
3121
- variant: 'filled',
3122
- mode: 'normal'
3163
+ },
3164
+ info: {
3165
+ normal: {
3166
+ color: theme.palette.textColor[50],
3167
+ backgroundColor: theme.palette.primary[500]
3123
3168
  },
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
- };
3169
+ light: {
3170
+ color: theme.palette.primary[500],
3171
+ backgroundColor: theme.palette.info[50],
3172
+ border: "1px solid " + theme.palette.info[200]
3132
3173
  }
3133
- }, {
3134
- props: {
3135
- variant: 'filled',
3136
- mode: 'normal',
3137
- color: 'secondary'
3174
+ },
3175
+ primary: {
3176
+ normal: {
3177
+ color: theme.palette.textColor[50],
3178
+ backgroundColor: theme.palette.primary[500]
3138
3179
  },
3139
- style: function style(_ref5) {
3140
- var _theme$palette$base;
3141
- var theme = _ref5.theme,
3142
- ownerState = _objectWithoutPropertiesLoose(_ref5, _excluded3);
3180
+ light: {
3181
+ color: theme.palette.primary[500],
3182
+ backgroundColor: theme.palette.info[50],
3183
+ border: "1px solid " + theme.palette.info[200]
3184
+ }
3185
+ },
3186
+ error: {
3187
+ normal: {
3188
+ color: theme.palette.textColor[50],
3189
+ backgroundColor: theme.palette.error[400]
3190
+ },
3191
+ light: {
3192
+ color: theme.palette.error[400],
3193
+ backgroundColor: theme.palette.error[50],
3194
+ border: "1px solid " + theme.palette.error[200]
3195
+ }
3196
+ },
3197
+ success: {
3198
+ normal: {
3199
+ color: theme.palette.textColor[50],
3200
+ backgroundColor: theme.palette.success[400]
3201
+ },
3202
+ light: {
3203
+ color: theme.palette.success[400],
3204
+ backgroundColor: theme.palette.success[50],
3205
+ border: "1px solid " + theme.palette.success[200]
3206
+ }
3207
+ }
3208
+ };
3209
+ };
3210
+ var chipStyles = function chipStyles(theme, ownerState) {
3211
+ var _theme$palette$ownerS;
3212
+ var baseStyles = {
3213
+ display: 'flex',
3214
+ alignItems: 'center',
3215
+ gap: theme.spacing(1),
3216
+ borderRadius: theme.spacing(1)
3217
+ };
3218
+ var sizeStyles = {
3219
+ sm: {
3220
+ height: theme.spacing(6),
3221
+ padding: theme.spacing(1, 2)
3222
+ },
3223
+ xs: {
3224
+ height: theme.spacing(4),
3225
+ padding: theme.spacing(0, 1)
3226
+ }
3227
+ };
3228
+ var variantStyles = {
3229
+ filled: {
3230
+ 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,
3231
+ 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
3232
+ },
3233
+ outlined: {
3234
+ 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),
3235
+ color: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor) || theme.palette.textColor[900]
3236
+ }
3237
+ };
3238
+ 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]);
3239
+ };
3240
+ var RabexChip = {
3241
+ components: {
3242
+ // defaultProps: {
3243
+ // size: 'sm', // You can change this to 'xs' or 'sm' as the default
3244
+ // },
3245
+ styleOverrides: {
3246
+ root: function root(_ref) {
3247
+ var theme = _ref.theme,
3248
+ ownerState = _ref.ownerState,
3249
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3250
+ return _extends({}, chipStyles(theme, ownerState));
3251
+ },
3252
+ icon: function icon(_ref2) {
3253
+ var theme = _ref2.theme,
3254
+ ownerState = _ref2.ownerState;
3143
3255
  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
3256
+ margin: 0,
3257
+ fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
3146
3258
  };
3147
- }
3148
- }, {
3149
- props: {
3150
- variant: 'filled',
3151
- mode: 'light'
3152
3259
  },
3153
- style: function style(_ref6) {
3154
- var theme = _ref6.theme,
3155
- other = _objectWithoutPropertiesLoose(_ref6, _excluded4);
3156
- var ownerState = other.as ? other.ownerState : other;
3260
+ deleteIcon: function deleteIcon(_ref3) {
3261
+ var theme = _ref3.theme,
3262
+ ownerState = _ref3.ownerState;
3157
3263
  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)
3264
+ margin: 0,
3265
+ fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
3160
3266
  };
3161
- }
3162
- }, {
3163
- props: {
3164
- variant: 'filled',
3165
- mode: 'light',
3166
- color: 'secondary'
3167
3267
  },
3168
- style: function style(_ref7) {
3169
- var theme = _ref7.theme,
3170
- ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded5);
3268
+ label: function label(_ref4) {
3269
+ var theme = _ref4.theme;
3171
3270
  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)
3271
+ overflow: 'visible',
3272
+ position: 'relative',
3273
+ padding: theme.spacing(0)
3174
3274
  };
3175
3275
  }
3176
- }, {
3276
+ },
3277
+ variants: [
3278
+ // {
3279
+ // props: { variant: 'default' } as ChipProps,
3280
+ // style: ({ theme, ownerState }: any) => {
3281
+ // return {
3282
+ // border: 'unset',
3283
+ // backgroundColor: 'unset',
3284
+ // color: ownerState?.labelColor
3285
+ // ? ownerState?.labelColor
3286
+ // : theme.palette.textColor.A60,
3287
+ // };
3288
+ // },
3289
+ // },
3290
+ // {
3291
+ // props: { variant: 'filled' } as ChipProps,
3292
+ // style: ({ theme, ...ownerState }: any) => {
3293
+ // console.log(theme, ...ownerState);
3294
+ // return {
3295
+ // backgroundColor: ownerState?.color
3296
+ // ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].backgroundColor
3297
+ // : theme.palette.primary.main,
3298
+ // color: ownerState?.labelColor
3299
+ // ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].color
3300
+ // : theme.palette.textColor[50],
3301
+ // };
3302
+ // },
3303
+ // },
3304
+ // {
3305
+ // props: { size: 'sm' } as ChipProps,
3306
+ // style: ({ theme, ownerState }: any) => {
3307
+ // return {
3308
+ // height: theme.spacing(6),
3309
+ // paddingX: theme.spacing(2),
3310
+ // };
3311
+ // },
3312
+ // },
3313
+ // {
3314
+ // props: { size: 'xs' } as ChipProps,
3315
+ // style: ({ theme, ownerState }: any) => {
3316
+ // return {
3317
+ // height: theme.spacing(4),
3318
+ // paddingX: theme.spacing(1),
3319
+ // };
3320
+ // },
3321
+ // },
3322
+ {
3177
3323
  props: {
3178
3324
  variant: 'outlined'
3179
3325
  },
3180
- style: function style(_ref8) {
3326
+ style: function style(_ref5) {
3181
3327
  var _theme$palette$ownerS2;
3182
- var theme = _ref8.theme,
3183
- ownerState = _objectWithoutPropertiesLoose(_ref8, _excluded6);
3328
+ var theme = _ref5.theme,
3329
+ ownerState = _objectWithoutPropertiesLoose(_ref5, _excluded2$2);
3184
3330
  return {
3185
3331
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3186
3332
  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 +3338,13 @@ var ReduxChip = {
3192
3338
  color: 'secondary',
3193
3339
  mode: 'normal'
3194
3340
  },
3195
- style: function style(_ref9) {
3196
- var _theme$palette$base2;
3197
- var theme = _ref9.theme,
3198
- ownerState = _objectWithoutPropertiesLoose(_ref9, _excluded7);
3341
+ style: function style(_ref6) {
3342
+ var _theme$palette$base;
3343
+ var theme = _ref6.theme,
3344
+ ownerState = _objectWithoutPropertiesLoose(_ref6, _excluded3);
3199
3345
  return {
3200
3346
  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)
3347
+ border: "2px solid " + ((_theme$palette$base = theme.palette.base) === null || _theme$palette$base === void 0 ? void 0 : _theme$palette$base.A100)
3202
3348
  };
3203
3349
  }
3204
3350
  }, {
@@ -3207,10 +3353,10 @@ var ReduxChip = {
3207
3353
  color: 'secondary',
3208
3354
  mode: 'light'
3209
3355
  },
3210
- style: function style(_ref10) {
3356
+ style: function style(_ref7) {
3211
3357
  var _theme$palette$second;
3212
- var theme = _ref10.theme,
3213
- ownerState = _objectWithoutPropertiesLoose(_ref10, _excluded8);
3358
+ var theme = _ref7.theme,
3359
+ ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded4);
3214
3360
  return {
3215
3361
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3216
3362
  border: "2px solid " + ((_theme$palette$second = theme.palette.secondary) === null || _theme$palette$second === void 0 ? void 0 : _theme$palette$second.A100)
@@ -3218,11 +3364,11 @@ var ReduxChip = {
3218
3364
  }
3219
3365
  }, {
3220
3366
  props: {
3221
- size: 'small',
3367
+ size: 'xs',
3222
3368
  hasBullet: true
3223
3369
  },
3224
- style: function style(_ref11) {
3225
- var theme = _ref11.theme;
3370
+ style: function style(_ref8) {
3371
+ var theme = _ref8.theme;
3226
3372
  return {
3227
3373
  height: 24,
3228
3374
  padding: theme.spacing(0.5, 2, 0.5, 4.5),
@@ -3231,77 +3377,42 @@ var ReduxChip = {
3231
3377
  }
3232
3378
  }, {
3233
3379
  props: {
3234
- size: 'medium',
3380
+ size: 'sm',
3235
3381
  hasBullet: true
3236
3382
  },
3237
- style: function style(_ref12) {
3238
- var theme = _ref12.theme;
3383
+ style: function style(_ref9) {
3384
+ var theme = _ref9.theme;
3239
3385
  return {
3240
3386
  height: 28,
3241
3387
  padding: theme.spacing(0.5, 2, 0.5, 4.5),
3242
3388
  fontSize: 14
3243
3389
  };
3244
3390
  }
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
- }, {
3391
+ },
3392
+ // {
3393
+ // props: { size: 'xs', hasBullet: false } as ChipProps,
3394
+ // style: ({ theme }) => ({
3395
+ // height: 24,
3396
+ // padding: theme.spacing(0.5, 2),
3397
+ // fontSize: 12,
3398
+ // }),
3399
+ // },
3400
+ // {
3401
+ // props: { size: 'sm', hasBullet: false } as ChipProps,
3402
+ // style: ({ theme }) => ({
3403
+ // height: 28,
3404
+ // padding: theme.spacing(0.5, 2),
3405
+ // fontSize: 14,
3406
+ // }),
3407
+ // },
3408
+ {
3298
3409
  props: {
3299
3410
  hasBullet: true
3300
3411
  },
3301
- style: function style(_ref17) {
3412
+ style: function style(_ref10) {
3302
3413
  var _theme$palette$ownerS3;
3303
- var theme = _ref17.theme,
3304
- ownerState = _objectWithoutPropertiesLoose(_ref17, _excluded9);
3414
+ var theme = _ref10.theme,
3415
+ ownerState = _objectWithoutPropertiesLoose(_ref10, _excluded5);
3305
3416
  return {
3306
3417
  '& > .MuiChip-label ': {
3307
3418
  '&::before': {
@@ -3335,9 +3446,9 @@ var ReduxChip = {
3335
3446
  variant: 'filled',
3336
3447
  mode: 'normal'
3337
3448
  },
3338
- style: function style(_ref18) {
3339
- var theme = _ref18.theme,
3340
- ownerState = _objectWithoutPropertiesLoose(_ref18, _excluded10);
3449
+ style: function style(_ref11) {
3450
+ var theme = _ref11.theme,
3451
+ ownerState = _objectWithoutPropertiesLoose(_ref11, _excluded6);
3341
3452
  return {
3342
3453
  '& > .MuiChip-label ': {
3343
3454
  '&::before': {
@@ -3353,14 +3464,14 @@ var ReduxChip = {
3353
3464
  mode: 'light',
3354
3465
  color: 'secondary'
3355
3466
  },
3356
- style: function style(_ref19) {
3357
- var _theme$palette$base3;
3358
- var theme = _ref19.theme,
3359
- ownerState = _objectWithoutPropertiesLoose(_ref19, _excluded11);
3467
+ style: function style(_ref12) {
3468
+ var _theme$palette$base2;
3469
+ var theme = _ref12.theme,
3470
+ ownerState = _objectWithoutPropertiesLoose(_ref12, _excluded7);
3360
3471
  return {
3361
3472
  '& > .MuiChip-label ': {
3362
3473
  '&::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
3474
+ 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
3475
  }
3365
3476
  }
3366
3477
  };
@@ -3369,8 +3480,8 @@ var ReduxChip = {
3369
3480
  props: {
3370
3481
  clickable: true
3371
3482
  },
3372
- style: function style(_ref20) {
3373
- var rest = _objectWithoutPropertiesLoose(_ref20, _excluded12);
3483
+ style: function style(_ref13) {
3484
+ var rest = _objectWithoutPropertiesLoose(_ref13, _excluded8);
3374
3485
  return {
3375
3486
  '& .MuiChip-icon': {
3376
3487
  margin: 0
@@ -3382,10 +3493,10 @@ var ReduxChip = {
3382
3493
  clickable: true,
3383
3494
  mode: 'light'
3384
3495
  },
3385
- style: function style(_ref21) {
3496
+ style: function style(_ref14) {
3386
3497
  var _theme$palette$ownerS4;
3387
- var theme = _ref21.theme,
3388
- ownerState = _ref21.ownerState;
3498
+ var theme = _ref14.theme,
3499
+ ownerState = _ref14.ownerState;
3389
3500
  return ownerState ? {
3390
3501
  '&:hover': {
3391
3502
  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 +4371,7 @@ var getDesignTokens = function getDesignTokens(_ref) {
4260
4371
  MuiTypography: RabexTypography.components,
4261
4372
  MuiTabs: RabexTabs.components,
4262
4373
  MuiTab: RabexTab.components,
4263
- MuiChip: ReduxChip.components,
4374
+ MuiChip: RabexChip.components,
4264
4375
  MuiPaper: RabexPaper.components,
4265
4376
  MuiDivider: RabexDivider.components,
4266
4377
  MuiTooltip: RabexTooltip.components,
@@ -4348,7 +4459,7 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
4348
4459
  };
4349
4460
 
4350
4461
  var _styled;
4351
- var _excluded$e = ["className"];
4462
+ var _excluded$f = ["className"];
4352
4463
  /**
4353
4464
  *
4354
4465
  * Tooltips display informative text when users hover over, focus on, or tap an element.
@@ -4373,7 +4484,7 @@ var MuiTooltipStyled = /*#__PURE__*/styled(MuiTooltip, {
4373
4484
  // tooltip popper hasn't permission for wrap text
4374
4485
  var NoMaxWidthTooltip = /*#__PURE__*/styled$1(function (_ref) {
4375
4486
  var className = _ref.className,
4376
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
4487
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4377
4488
  return React__default.createElement(MuiTooltipStyled, Object.assign({}, props, {
4378
4489
  classes: {
4379
4490
  popper: className
@@ -4560,7 +4671,7 @@ var Fade = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
4560
4671
  }, props));
4561
4672
  });
4562
4673
 
4563
- var _excluded$f = ["name"];
4674
+ var _excluded$g = ["name"];
4564
4675
  /**
4565
4676
  * Formik Input let users enter and edit text.
4566
4677
  *
@@ -4572,7 +4683,7 @@ var _excluded$f = ["name"];
4572
4683
  */
4573
4684
  var FormikInput = function FormikInput(_ref) {
4574
4685
  var name = _ref.name,
4575
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4686
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4576
4687
  var _useField = formik.useField(name),
4577
4688
  field = _useField[0],
4578
4689
  meta = _useField[1];
@@ -4583,7 +4694,7 @@ var FormikInput = function FormikInput(_ref) {
4583
4694
  }));
4584
4695
  };
4585
4696
 
4586
- var _excluded$g = ["helperText", "name"];
4697
+ var _excluded$h = ["helperText", "name"];
4587
4698
  /**
4588
4699
  * Formik Select let users enter and edit text.
4589
4700
  *
@@ -4596,7 +4707,7 @@ var _excluded$g = ["helperText", "name"];
4596
4707
  var FormikSelect = function FormikSelect(_ref) {
4597
4708
  var helperText = _ref.helperText,
4598
4709
  name = _ref.name,
4599
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4710
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4600
4711
  var _useField = formik.useField(name),
4601
4712
  field = _useField[0],
4602
4713
  meta = _useField[1];
@@ -4614,7 +4725,7 @@ var FormikSelect = function FormikSelect(_ref) {
4614
4725
  }, text));
4615
4726
  };
4616
4727
 
4617
- var _excluded$h = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption"];
4728
+ var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption"];
4618
4729
  function _handleHelperColor$1(props, key) {
4619
4730
  var _props$key;
4620
4731
  if (props.error) return 'error.A100';
@@ -4655,7 +4766,7 @@ var TextField = function TextField(props) {
4655
4766
  onChange = _ref.onChange,
4656
4767
  valueFormat = _ref.valueFormat,
4657
4768
  valueFormatOption = _ref.valueFormatOption,
4658
- other = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4769
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4659
4770
  if (!valueFormat && !!valueFormatOption) {
4660
4771
  console.warn("'valueFormatOption' Only Work With known 'valueFormat's...");
4661
4772
  }
@@ -4719,7 +4830,7 @@ TextField.defaultProps = {
4719
4830
  }
4720
4831
  };
4721
4832
 
4722
- var _excluded$i = ["name"];
4833
+ var _excluded$j = ["name"];
4723
4834
  /**
4724
4835
  * Formik TextField let users enter and edit text.
4725
4836
  *
@@ -4731,7 +4842,7 @@ var _excluded$i = ["name"];
4731
4842
  */
4732
4843
  var FormikTextField = function FormikTextField(_ref) {
4733
4844
  var name = _ref.name,
4734
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4845
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4735
4846
  var _useField = formik.useField(name),
4736
4847
  field = _useField[0],
4737
4848
  meta = _useField[1];
@@ -4845,7 +4956,7 @@ var Modal = function Modal(_ref) {
4845
4956
  return React__default.createElement(MuiModal, Object.assign({}, props));
4846
4957
  };
4847
4958
 
4848
- var _excluded$j = ["hasCloseButton", "iconCloseProps", "closeButtonProps", "headerProps"],
4959
+ var _excluded$k = ["hasCloseButton", "iconCloseProps", "closeButtonProps", "headerProps"],
4849
4960
  _excluded2$3 = ["sx"],
4850
4961
  _excluded3$1 = ["sx"],
4851
4962
  _excluded4$1 = ["sx"];
@@ -4859,7 +4970,7 @@ var ModalContent = function ModalContent(_ref) {
4859
4970
  iconCloseProps = _ref.iconCloseProps,
4860
4971
  closeButtonProps = _ref.closeButtonProps,
4861
4972
  headerProps = _ref.headerProps,
4862
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4973
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
4863
4974
  var _ref2 = props || {},
4864
4975
  rootSx = _ref2.sx,
4865
4976
  root = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
@@ -5233,7 +5344,7 @@ SeeMore.defaultProps = {
5233
5344
  height: '56%'
5234
5345
  };
5235
5346
 
5236
- var _excluded$k = ["inputProps", "children"];
5347
+ var _excluded$l = ["inputProps", "children"];
5237
5348
  /**
5238
5349
  * This is a custom wrapper component made of Material-UI Button.
5239
5350
  * Props of the Button component are also available.
@@ -5251,7 +5362,7 @@ var _excluded$k = ["inputProps", "children"];
5251
5362
  var UploadButton = function UploadButton(_ref) {
5252
5363
  var inputProps = _ref.inputProps,
5253
5364
  children = _ref.children,
5254
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
5365
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
5255
5366
  return React__default.createElement(Button, Object.assign({}, props), children, React__default.createElement("input", Object.assign({
5256
5367
  hidden: true,
5257
5368
  type: "file",
@@ -5280,6 +5391,136 @@ var Zoom = function Zoom(_ref) {
5280
5391
  return React__default.createElement(MuiZoom, Object.assign({}, props));
5281
5392
  };
5282
5393
 
5394
+ var _excluded$m = ["theme"];
5395
+ /**
5396
+ * SegmentedControl component for switching between views.
5397
+ *
5398
+ * This component is built on top of Material-UI Tabs and supports additional props
5399
+ * for customizing size, border, and separation of tabs.
5400
+ *
5401
+ * @param props
5402
+ * @returns JSX.Element
5403
+ */
5404
+ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
5405
+ name: 'SegmentedControl',
5406
+ shouldForwardProp: function shouldForwardProp(prop) {
5407
+ return !['size', 'isSeparate', 'hasBorder'].includes(prop);
5408
+ }
5409
+ })(function (_ref) {
5410
+ var theme = _ref.theme,
5411
+ ownerState = _objectWithoutPropertiesLoose(_ref, _excluded$m);
5412
+ return _extends({
5413
+ minHeight: 'unset',
5414
+ display: 'flex',
5415
+ backgroundColor: theme.palette.backgroundColor[200],
5416
+ '& .MuiTabs-flexContainer': {
5417
+ gap: theme.spacing(1)
5418
+ }
5419
+ }, ownerState.size === 'sm' && {
5420
+ height: theme.spacing(8),
5421
+ borderRadius: theme.spacing(2),
5422
+ '&.MuiTab-root': {
5423
+ borderRadius: theme.spacing(1),
5424
+ height: theme.spacing(6),
5425
+ padding: theme.spacing(0, 3)
5426
+ },
5427
+ '&.MuiTab-root.Mui-selected': {
5428
+ color: 'inherit',
5429
+ borderRadius: theme.spacing(1)
5430
+ }
5431
+ }, ownerState.size === 'md' && {
5432
+ height: theme.spacing(12),
5433
+ borderRadius: theme.spacing(3),
5434
+ '& .MuiTab-root': {
5435
+ borderRadius: theme.spacing(2),
5436
+ height: theme.spacing(10),
5437
+ padding: theme.spacing(2, 3)
5438
+ },
5439
+ '& .MuiTab-root.Mui-selected': {
5440
+ color: 'inherit',
5441
+ borderRadius: theme.spacing(2)
5442
+ }
5443
+ }, ownerState.size === 'lg' && {
5444
+ height: theme.spacing(14),
5445
+ borderRadius: theme.spacing(3),
5446
+ '& .MuiTab-root': {
5447
+ borderRadius: theme.spacing(2),
5448
+ height: theme.spacing(12),
5449
+ padding: theme.spacing(3, 4)
5450
+ },
5451
+ '& .MuiTab-root.Mui-selected': {
5452
+ color: 'inherit',
5453
+ borderRadius: theme.spacing(2)
5454
+ }
5455
+ }, ownerState.isSeparate && {
5456
+ '& .MuiTabs-flexContainer': {
5457
+ gap: theme.spacing(1),
5458
+ padding: theme.spacing(1)
5459
+ },
5460
+ '& .MuiTab-root': {
5461
+ borderRadius: theme.spacing(1),
5462
+ padding: theme.spacing(2, 3)
5463
+ }
5464
+ }, ownerState.hasBorder && {
5465
+ border: "2px dotted " + theme.palette.divider,
5466
+ '& .MuiTab-root': {
5467
+ borderRadius: theme.spacing(1),
5468
+ border: "2px dotted " + theme.palette.divider,
5469
+ lineHeight: theme.spacing(2)
5470
+ }
5471
+ }, ownerState.variant === 'fullWidth' && {
5472
+ width: '100%'
5473
+ }, {
5474
+ // Remove indicator
5475
+ '& .MuiTabs-indicator': {
5476
+ display: 'none'
5477
+ }
5478
+ });
5479
+ });
5480
+ SegmentedControl.defaultProps = {
5481
+ variant: 'fullWidth',
5482
+ size: 'sm',
5483
+ isSeparate: false,
5484
+ hasBorder: false
5485
+ };
5486
+
5487
+ // Custom SegmentedControlTab with styled applied based on size
5488
+ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
5489
+ return React__default.createElement(MuiTab, Object.assign({}, props, {
5490
+ label:
5491
+ // Render custom Typography for the label
5492
+ React__default.createElement(Typography, {
5493
+ variant: "body2",
5494
+ weight: "semiBold"
5495
+ }, props.label)
5496
+ }));
5497
+ })(function (_ref) {
5498
+ var theme = _ref.theme;
5499
+ return {
5500
+ minWidth: 80,
5501
+ color: theme.palette.mode === 'light' ? theme.palette.textColor[900] : theme.palette.textColor.A40,
5502
+ position: 'relative',
5503
+ minHeight: 24,
5504
+ borderRadius: 'unset',
5505
+ '&::after': {
5506
+ content: 'unset',
5507
+ display: 'none'
5508
+ },
5509
+ '&.MuiTab-root.Mui-selected': {
5510
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.base[50] : theme.palette.secondary.A80,
5511
+ color: theme.palette.textColor[900]
5512
+ },
5513
+ '&.Mui-disabled': {
5514
+ cursor: 'not-allowed',
5515
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A40 : theme.palette.textColor.A60
5516
+ },
5517
+ '& .MuiTab-iconWrapper': {
5518
+ fontSize: '14px'
5519
+ }
5520
+ };
5521
+ });
5522
+ SegmentedControlTab.defaultProps = {};
5523
+
5283
5524
  exports.useMediaQuery = useMediaQuery;
5284
5525
  exports.useScrollTrigger = useScrollTrigger_js;
5285
5526
  exports.useTheme = useTheme;
@@ -5359,6 +5600,8 @@ exports.RTableRow = RTableRow;
5359
5600
  exports.Radio = Radio;
5360
5601
  exports.RadioGroup = RadioGroup;
5361
5602
  exports.SeeMore = SeeMore;
5603
+ exports.SegmentedControl = SegmentedControl;
5604
+ exports.SegmentedControlTab = SegmentedControlTab;
5362
5605
  exports.Select = Select;
5363
5606
  exports.SelectItem = SelectItem;
5364
5607
  exports.Skeleton = Skeleton;