@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.
@@ -898,6 +898,13 @@ var Checkbox = function Checkbox(_ref) {
898
898
  }));
899
899
  };
900
900
 
901
+ var _excluded$4 = ["label", "size", "mode"];
902
+ var getTypography = function getTypography(size, mode) {
903
+ return {
904
+ variant: size === 'sm' ? 'body3' : 'body4',
905
+ weight: size === 'xs' ? 'regular' : mode === 'normal' ? 'regular' : 'semiBold'
906
+ };
907
+ };
901
908
  /**
902
909
  * Chip component of Material is somthing like Badge ,
903
910
  * Material Ui Chip is wrapper for content that has
@@ -905,26 +912,43 @@ var Checkbox = function Checkbox(_ref) {
905
912
  * you can see Chip Documentation api that I mentioned below [here](https://mui.com/material-ui/api/chip)
906
913
  *
907
914
  * ```typescript
908
- * import { Chip } from '@rabex-kit/core';
915
+ * import { Chip } from '@rabex-kit/rabex-ui';
909
916
  * ```
910
917
  *
911
918
  *
912
919
  * @param props
913
920
  * @returns
914
921
  */
915
- var Chip = /*#__PURE__*/styled(MuiChip, {
922
+ var StyledChip = /*#__PURE__*/styled(MuiChip, {
916
923
  name: 'MuiChip',
917
924
  shouldForwardProp: function shouldForwardProp(prop) {
918
- return !['hasBullet', 'bulletColor', 'labelColor'].includes(prop);
925
+ return !['hasBullet', 'bulletColor', 'labelColor', 'iconPosition', 'leadingIcon', 'trailingIcon'].includes(prop);
919
926
  }
920
927
  })(function () {
921
928
  return {};
922
929
  });
930
+ var Chip = function Chip(props) {
931
+ var label = props.label,
932
+ _props$size = props.size,
933
+ size = _props$size === void 0 ? 'sm' : _props$size,
934
+ _props$mode = props.mode,
935
+ mode = _props$mode === void 0 ? 'normal' : _props$mode,
936
+ other = _objectWithoutPropertiesLoose(props, _excluded$4);
937
+ return React.createElement(StyledChip, Object.assign({
938
+ label: React.createElement(Typography, {
939
+ variant: getTypography(size, mode).variant,
940
+ weight: getTypography(size, mode).weight
941
+ }, label),
942
+ size: size,
943
+ mode: mode
944
+ }, other));
945
+ };
923
946
  Chip.defaultProps = {
924
947
  hasBullet: false,
925
948
  mode: 'normal',
926
- size: 'medium',
927
- color: 'default'
949
+ size: 'sm',
950
+ color: 'default',
951
+ variant: 'filled'
928
952
  };
929
953
 
930
954
  /**
@@ -1026,7 +1050,7 @@ var Drawer = function Drawer(props) {
1026
1050
  return React.createElement(MuiDrawer, Object.assign({}, props));
1027
1051
  };
1028
1052
 
1029
- var _excluded$4 = ["widthPercent", "bgColor", "align"];
1053
+ var _excluded$5 = ["widthPercent", "bgColor", "align"];
1030
1054
  /**
1031
1055
  *
1032
1056
  * DynamicBackground is a wrapper for adding background
@@ -1040,7 +1064,7 @@ var DynamicBackground = function DynamicBackground(_ref) {
1040
1064
  widthPercent = _ref$widthPercent === void 0 ? 0 : _ref$widthPercent,
1041
1065
  bgColor = _ref.bgColor,
1042
1066
  align = _ref.align,
1043
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
1067
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1044
1068
  var calcPercent = widthPercent < 100 ? widthPercent : 100;
1045
1069
  return React.createElement(Box, Object.assign({
1046
1070
  width: calcPercent + "%",
@@ -1083,10 +1107,10 @@ var Stack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1083
1107
  }, props));
1084
1108
  });
1085
1109
 
1086
- var _excluded$5 = ["sx"];
1110
+ var _excluded$6 = ["sx"];
1087
1111
  var DynamicBackgroundContainer = function DynamicBackgroundContainer(_ref) {
1088
1112
  var sx = _ref.sx,
1089
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1113
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1090
1114
  return React.createElement(Stack, Object.assign({
1091
1115
  sx: _extends({
1092
1116
  position: 'relative',
@@ -1115,7 +1139,7 @@ var FormControl = function FormControl(_ref) {
1115
1139
  return React.createElement(MuiFormControl, Object.assign({}, props));
1116
1140
  };
1117
1141
 
1118
- var _excluded$6 = ["error"];
1142
+ var _excluded$7 = ["error"];
1119
1143
  /**
1120
1144
  * The name MuiFormControlLabel can be used when providing default props or style overrides in the theme.
1121
1145
  * Drop-in replacement of the Radio, Switch and Checkbox component. Use this component if you want to display an extra label.
@@ -1133,7 +1157,7 @@ var _excluded$6 = ["error"];
1133
1157
  */
1134
1158
  var FormControlLabel = function FormControlLabel(_ref) {
1135
1159
  var error = _ref.error,
1136
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1160
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
1137
1161
  return React.createElement(MuiFormControlLabel, Object.assign({}, props, {
1138
1162
  classes: {
1139
1163
  root: CN({
@@ -1625,7 +1649,7 @@ Paper.defaultProps = {
1625
1649
  elevation: 1
1626
1650
  };
1627
1651
 
1628
- var _excluded$7 = ["error"];
1652
+ var _excluded$8 = ["error"];
1629
1653
  /**
1630
1654
  * Radio buttons allow the user to select one option from a set.
1631
1655
  *
@@ -1642,7 +1666,7 @@ var _excluded$7 = ["error"];
1642
1666
  */
1643
1667
  var Radio = function Radio(_ref) {
1644
1668
  var error = _ref.error,
1645
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
1669
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
1646
1670
  return React.createElement(MuiRadio, Object.assign({}, props, {
1647
1671
  classes: {
1648
1672
  root: CN({
@@ -1760,7 +1784,7 @@ Slider.defaultProps = {
1760
1784
  size: 'medium'
1761
1785
  };
1762
1786
 
1763
- var _excluded$8 = ["sx"],
1787
+ var _excluded$9 = ["sx"],
1764
1788
  _excluded2 = ["sx", "className"];
1765
1789
  /**
1766
1790
  * SliderComponent is displayed in minimized way.
@@ -1847,7 +1871,7 @@ var SliderContent = function SliderContent(_ref) {
1847
1871
  };
1848
1872
  var _ref2 = containerProps || {},
1849
1873
  containerSx = _ref2.sx,
1850
- otherContainer = _objectWithoutPropertiesLoose(_ref2, _excluded$8);
1874
+ otherContainer = _objectWithoutPropertiesLoose(_ref2, _excluded$9);
1851
1875
  var _ref3 = itemsProps || {},
1852
1876
  itemSx = _ref3.sx,
1853
1877
  itemClassName = _ref3.className,
@@ -1936,10 +1960,10 @@ var SvgIcon = function SvgIcon(_ref) {
1936
1960
  return React.createElement(MuiSvgIcon, Object.assign({}, props));
1937
1961
  };
1938
1962
 
1939
- var _excluded$9 = ["size"];
1963
+ var _excluded$a = ["size"];
1940
1964
  var Tab = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1941
1965
  var size = _ref.size,
1942
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
1966
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
1943
1967
  return React.createElement(MuiTab, Object.assign({
1944
1968
  ref: ref,
1945
1969
  classes: {
@@ -2091,7 +2115,7 @@ var TableSortLabel = function TableSortLabel(props) {
2091
2115
  return React.createElement(MuiTableSortLabel, Object.assign({}, props));
2092
2116
  };
2093
2117
 
2094
- var _excluded$a = ["theme"],
2118
+ var _excluded$b = ["theme"],
2095
2119
  _excluded2$1 = ["variant", "border", "sx"];
2096
2120
  var Wrapper = /*#__PURE__*/styled(Stack, {
2097
2121
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -2099,7 +2123,7 @@ var Wrapper = /*#__PURE__*/styled(Stack, {
2099
2123
  }
2100
2124
  })(function (_ref) {
2101
2125
  var theme = _ref.theme,
2102
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
2126
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2103
2127
  return {
2104
2128
  '&>.table-row': {
2105
2129
  display: 'grid',
@@ -2148,7 +2172,7 @@ RTable.defaultProps = {
2148
2172
  variant: 'default'
2149
2173
  };
2150
2174
 
2151
- var _excluded$b = ["className"];
2175
+ var _excluded$c = ["className"];
2152
2176
  /**
2153
2177
  * API documentation for the React TableHead component. Learn about the available props and the CSS API.
2154
2178
  *
@@ -2162,7 +2186,7 @@ var _excluded$b = ["className"];
2162
2186
  */
2163
2187
  var RTableHead = function RTableHead(_ref) {
2164
2188
  var className = _ref.className,
2165
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2189
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2166
2190
  return React.createElement(Stack, Object.assign({
2167
2191
  p: 4,
2168
2192
  className: "table-row " + className
@@ -2174,7 +2198,7 @@ RTableHead.defaultProps = {
2174
2198
  className: ''
2175
2199
  };
2176
2200
 
2177
- var _excluded$c = ["className"];
2201
+ var _excluded$d = ["className"];
2178
2202
  /**
2179
2203
  * API documentation for the React TableRow component. Learn about the available props and the CSS API.
2180
2204
  *
@@ -2188,7 +2212,7 @@ var _excluded$c = ["className"];
2188
2212
  */
2189
2213
  var RTableRow = function RTableRow(_ref) {
2190
2214
  var className = _ref.className,
2191
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2215
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
2192
2216
  return React.createElement(Stack, Object.assign({
2193
2217
  p: 4,
2194
2218
  className: "table-row " + className
@@ -2218,13 +2242,13 @@ var TabPanel = function TabPanel(_ref) {
2218
2242
  * You can read Material-UI Tabs Documentation [here](https://mui.com/material-ui/api/tabs/).
2219
2243
  *
2220
2244
  * ```typescript
2221
- * import { Tabs } from '@rabex-kit/core';
2245
+ * import { Tabs } from '@rabex-kit/rabex-ui';
2222
2246
  * ```
2223
2247
  *
2224
2248
  * Also you can read Material-UI Tab Documentation [here](https://mui.com/material-ui/api/tab/).
2225
2249
  *
2226
2250
  * ```typescript
2227
- * import { Tab } from '@rabex-kit/core';
2251
+ * import { Tab } from '@rabex-kit/rabex-ui';
2228
2252
  * ```
2229
2253
  *
2230
2254
  *
@@ -2737,6 +2761,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2737
2761
  50: '#FCFEFF'
2738
2762
  },
2739
2763
  backgroundColor: {
2764
+ main: '#16181F',
2740
2765
  950: '#16181F',
2741
2766
  900: '#333640',
2742
2767
  800: '#3A3A3D',
@@ -2766,7 +2791,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2766
2791
  warning: {
2767
2792
  400: '#E8A700',
2768
2793
  300: '#FFD200',
2769
- 200: '#FFD200',
2794
+ 200: '#FCE7A4',
2770
2795
  100: '#FCF3D6',
2771
2796
  50: '#FFF9E5',
2772
2797
  contrastText: '#FFF',
@@ -2796,7 +2821,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2796
2821
  300: '#848EF5',
2797
2822
  200: '#9CA4FF',
2798
2823
  100: '#D9DCFF',
2799
- 50: '#FFEBEC',
2824
+ 50: '#EDEFFF',
2800
2825
  contrastText: '#FFF',
2801
2826
  main: '#717BEB',
2802
2827
  A100: '#717BEB',
@@ -2829,6 +2854,16 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
2829
2854
  A0: '#FFFFFF'
2830
2855
  },
2831
2856
  base: {
2857
+ 900: '#333640',
2858
+ 800: '#3A3A3D',
2859
+ 700: '#666666',
2860
+ 600: '#58667E',
2861
+ 500: '#808A9D',
2862
+ 400: '#A6B0C3',
2863
+ 300: '#CFD6E4',
2864
+ 200: '#EFF2F5',
2865
+ 100: '#F8FAFD',
2866
+ 50: '#FFFFFF',
2832
2867
  main: '#222531',
2833
2868
  A100: '#222531',
2834
2869
  A80: '#333640',
@@ -2934,6 +2969,33 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
2934
2969
  A20: '#A7A8AD',
2935
2970
  A10: '#ADAEB5',
2936
2971
  A0: '#FFFFFF'
2972
+ },
2973
+ neutral: {
2974
+ 950: '#10164A',
2975
+ 900: '#273073',
2976
+ 800: '#455099',
2977
+ 700: '#6B78BF',
2978
+ 600: '#9CA8E6',
2979
+ 500: '#BFCAFF',
2980
+ 400: '#D4E0FF',
2981
+ 300: '#E6F0FF',
2982
+ 200: '#F0F7FF',
2983
+ 100: '#FAFDFF',
2984
+ 50: '#FCFEFF'
2985
+ },
2986
+ backgroundColor: {
2987
+ main: '#16181F',
2988
+ 950: '#16181F',
2989
+ 900: '#333640',
2990
+ 800: '#3A3A3D',
2991
+ 700: '#666666',
2992
+ 600: '#58667E',
2993
+ 500: '#808A9D',
2994
+ 400: '#A6B0C3',
2995
+ 300: '#CFD6E4',
2996
+ 200: '#EFF2F5',
2997
+ 100: '#F8FAFD',
2998
+ 50: '#FFFFFF'
2937
2999
  }
2938
3000
  });
2939
3001
 
@@ -3063,119 +3125,203 @@ var RabexTab = {
3063
3125
  }
3064
3126
  };
3065
3127
 
3066
- var _excluded$d = ["theme", "ownerState"],
3128
+ var _excluded$e = ["theme", "ownerState"],
3067
3129
  _excluded2$2 = ["theme"],
3068
3130
  _excluded3 = ["theme"],
3069
3131
  _excluded4 = ["theme"],
3070
3132
  _excluded5 = ["theme"],
3071
3133
  _excluded6 = ["theme"],
3072
3134
  _excluded7 = ["theme"],
3073
- _excluded8 = ["theme"],
3074
- _excluded9 = ["theme"],
3075
- _excluded10 = ["theme"],
3076
- _excluded11 = ["theme"],
3077
- _excluded12 = ["theme", "ownerState"];
3078
- var ReduxChip = {
3079
- components: {
3080
- styleOverrides: {
3081
- root: function root(_ref) {
3082
- var theme = _ref.theme;
3083
- return {
3084
- display: 'inline-flex',
3085
- gap: theme.spacing(1.5),
3086
- borderRadius: 6,
3087
- fontWeight: 600,
3088
- fontSize: 14
3089
- };
3135
+ _excluded8 = ["theme", "ownerState"];
3136
+ var colorModeConfig = function colorModeConfig(theme) {
3137
+ return {
3138
+ "default": {
3139
+ normal: {
3140
+ color: theme.palette.textColor[50],
3141
+ backgroundColor: theme.palette.backgroundColor[900]
3090
3142
  },
3091
- label: function label(_ref2) {
3092
- var theme = _ref2.theme;
3093
- return {
3094
- overflow: 'visible',
3095
- position: 'relative',
3096
- padding: theme.spacing(0)
3097
- };
3143
+ light: {
3144
+ color: theme.palette.backgroundColor[900],
3145
+ backgroundColor: theme.palette.backgroundColor[200]
3098
3146
  }
3099
3147
  },
3100
- variants: [{
3101
- props: {
3102
- variant: 'default'
3148
+ warning: {
3149
+ normal: {
3150
+ color: theme.palette.textColor[900],
3151
+ backgroundColor: theme.palette.warning[200]
3103
3152
  },
3104
- style: function style(_ref3) {
3105
- var theme = _ref3.theme,
3106
- ownerState = _ref3.ownerState,
3107
- rest = _objectWithoutPropertiesLoose(_ref3, _excluded$d);
3108
- return {
3109
- border: 'unset',
3110
- backgroundColor: 'unset',
3111
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60
3112
- };
3153
+ light: {
3154
+ color: theme.palette.textColor[900],
3155
+ backgroundColor: theme.palette.warning[50],
3156
+ border: "1px solid " + theme.palette.warning[200]
3113
3157
  }
3114
- }, {
3115
- props: {
3116
- variant: 'filled',
3117
- mode: 'normal'
3158
+ },
3159
+ info: {
3160
+ normal: {
3161
+ color: theme.palette.textColor[50],
3162
+ backgroundColor: theme.palette.primary[500]
3118
3163
  },
3119
- style: function style(_ref4) {
3120
- var _theme$palette$ownerS;
3121
- var theme = _ref4.theme,
3122
- ownerState = _objectWithoutPropertiesLoose(_ref4, _excluded2$2);
3123
- return {
3124
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.base.A0,
3125
- 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
3126
- };
3164
+ light: {
3165
+ color: theme.palette.primary[500],
3166
+ backgroundColor: theme.palette.info[50],
3167
+ border: "1px solid " + theme.palette.info[200]
3127
3168
  }
3128
- }, {
3129
- props: {
3130
- variant: 'filled',
3131
- mode: 'normal',
3132
- color: 'secondary'
3169
+ },
3170
+ primary: {
3171
+ normal: {
3172
+ color: theme.palette.textColor[50],
3173
+ backgroundColor: theme.palette.primary[500]
3133
3174
  },
3134
- style: function style(_ref5) {
3135
- var _theme$palette$base;
3136
- var theme = _ref5.theme,
3137
- ownerState = _objectWithoutPropertiesLoose(_ref5, _excluded3);
3175
+ light: {
3176
+ color: theme.palette.primary[500],
3177
+ backgroundColor: theme.palette.info[50],
3178
+ border: "1px solid " + theme.palette.info[200]
3179
+ }
3180
+ },
3181
+ error: {
3182
+ normal: {
3183
+ color: theme.palette.textColor[50],
3184
+ backgroundColor: theme.palette.error[400]
3185
+ },
3186
+ light: {
3187
+ color: theme.palette.error[400],
3188
+ backgroundColor: theme.palette.error[50],
3189
+ border: "1px solid " + theme.palette.error[200]
3190
+ }
3191
+ },
3192
+ success: {
3193
+ normal: {
3194
+ color: theme.palette.textColor[50],
3195
+ backgroundColor: theme.palette.success[400]
3196
+ },
3197
+ light: {
3198
+ color: theme.palette.success[400],
3199
+ backgroundColor: theme.palette.success[50],
3200
+ border: "1px solid " + theme.palette.success[200]
3201
+ }
3202
+ }
3203
+ };
3204
+ };
3205
+ var chipStyles = function chipStyles(theme, ownerState) {
3206
+ var _theme$palette$ownerS;
3207
+ var baseStyles = {
3208
+ display: 'flex',
3209
+ alignItems: 'center',
3210
+ gap: theme.spacing(1),
3211
+ borderRadius: theme.spacing(1)
3212
+ };
3213
+ var sizeStyles = {
3214
+ sm: {
3215
+ height: theme.spacing(6),
3216
+ padding: theme.spacing(1, 2)
3217
+ },
3218
+ xs: {
3219
+ height: theme.spacing(4),
3220
+ padding: theme.spacing(0, 1)
3221
+ }
3222
+ };
3223
+ var variantStyles = {
3224
+ filled: {
3225
+ 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,
3226
+ 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
3227
+ },
3228
+ outlined: {
3229
+ 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),
3230
+ color: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor) || theme.palette.textColor[900]
3231
+ }
3232
+ };
3233
+ 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]);
3234
+ };
3235
+ var RabexChip = {
3236
+ components: {
3237
+ // defaultProps: {
3238
+ // size: 'sm', // You can change this to 'xs' or 'sm' as the default
3239
+ // },
3240
+ styleOverrides: {
3241
+ root: function root(_ref) {
3242
+ var theme = _ref.theme,
3243
+ ownerState = _ref.ownerState,
3244
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3245
+ return _extends({}, chipStyles(theme, ownerState));
3246
+ },
3247
+ icon: function icon(_ref2) {
3248
+ var theme = _ref2.theme,
3249
+ ownerState = _ref2.ownerState;
3138
3250
  return {
3139
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.base.A0,
3140
- backgroundColor: (_theme$palette$base = theme.palette.base) === null || _theme$palette$base === void 0 ? void 0 : _theme$palette$base.A100
3251
+ margin: 0,
3252
+ fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
3141
3253
  };
3142
- }
3143
- }, {
3144
- props: {
3145
- variant: 'filled',
3146
- mode: 'light'
3147
3254
  },
3148
- style: function style(_ref6) {
3149
- var theme = _ref6.theme,
3150
- other = _objectWithoutPropertiesLoose(_ref6, _excluded4);
3151
- var ownerState = other.as ? other.ownerState : other;
3255
+ deleteIcon: function deleteIcon(_ref3) {
3256
+ var theme = _ref3.theme,
3257
+ ownerState = _ref3.ownerState;
3152
3258
  return {
3153
- color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3154
- backgroundColor: theme.palette.mode === 'light' ? theme.palette[ownerState === null || ownerState === void 0 ? void 0 : ownerState.color].A20 : alpha(theme.palette[ownerState === null || ownerState === void 0 ? void 0 : ownerState.color].A100, 0.1)
3259
+ margin: 0,
3260
+ fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
3155
3261
  };
3156
- }
3157
- }, {
3158
- props: {
3159
- variant: 'filled',
3160
- mode: 'light',
3161
- color: 'secondary'
3162
3262
  },
3163
- style: function style(_ref7) {
3164
- var theme = _ref7.theme,
3165
- ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded5);
3263
+ label: function label(_ref4) {
3264
+ var theme = _ref4.theme;
3166
3265
  return {
3167
- 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,
3168
- backgroundColor: theme.palette.mode === 'light' ? alpha(theme.palette.grayBackground.A80, 0.1) : alpha(theme.palette.grayBackground.A20, 0.1)
3266
+ overflow: 'visible',
3267
+ position: 'relative',
3268
+ padding: theme.spacing(0)
3169
3269
  };
3170
3270
  }
3171
- }, {
3271
+ },
3272
+ variants: [
3273
+ // {
3274
+ // props: { variant: 'default' } as ChipProps,
3275
+ // style: ({ theme, ownerState }: any) => {
3276
+ // return {
3277
+ // border: 'unset',
3278
+ // backgroundColor: 'unset',
3279
+ // color: ownerState?.labelColor
3280
+ // ? ownerState?.labelColor
3281
+ // : theme.palette.textColor.A60,
3282
+ // };
3283
+ // },
3284
+ // },
3285
+ // {
3286
+ // props: { variant: 'filled' } as ChipProps,
3287
+ // style: ({ theme, ...ownerState }: any) => {
3288
+ // console.log(theme, ...ownerState);
3289
+ // return {
3290
+ // backgroundColor: ownerState?.color
3291
+ // ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].backgroundColor
3292
+ // : theme.palette.primary.main,
3293
+ // color: ownerState?.labelColor
3294
+ // ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].color
3295
+ // : theme.palette.textColor[50],
3296
+ // };
3297
+ // },
3298
+ // },
3299
+ // {
3300
+ // props: { size: 'sm' } as ChipProps,
3301
+ // style: ({ theme, ownerState }: any) => {
3302
+ // return {
3303
+ // height: theme.spacing(6),
3304
+ // paddingX: theme.spacing(2),
3305
+ // };
3306
+ // },
3307
+ // },
3308
+ // {
3309
+ // props: { size: 'xs' } as ChipProps,
3310
+ // style: ({ theme, ownerState }: any) => {
3311
+ // return {
3312
+ // height: theme.spacing(4),
3313
+ // paddingX: theme.spacing(1),
3314
+ // };
3315
+ // },
3316
+ // },
3317
+ {
3172
3318
  props: {
3173
3319
  variant: 'outlined'
3174
3320
  },
3175
- style: function style(_ref8) {
3321
+ style: function style(_ref5) {
3176
3322
  var _theme$palette$ownerS2;
3177
- var theme = _ref8.theme,
3178
- ownerState = _objectWithoutPropertiesLoose(_ref8, _excluded6);
3323
+ var theme = _ref5.theme,
3324
+ ownerState = _objectWithoutPropertiesLoose(_ref5, _excluded2$2);
3179
3325
  return {
3180
3326
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3181
3327
  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)
@@ -3187,13 +3333,13 @@ var ReduxChip = {
3187
3333
  color: 'secondary',
3188
3334
  mode: 'normal'
3189
3335
  },
3190
- style: function style(_ref9) {
3191
- var _theme$palette$base2;
3192
- var theme = _ref9.theme,
3193
- ownerState = _objectWithoutPropertiesLoose(_ref9, _excluded7);
3336
+ style: function style(_ref6) {
3337
+ var _theme$palette$base;
3338
+ var theme = _ref6.theme,
3339
+ ownerState = _objectWithoutPropertiesLoose(_ref6, _excluded3);
3194
3340
  return {
3195
3341
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3196
- border: "2px solid " + ((_theme$palette$base2 = theme.palette.base) === null || _theme$palette$base2 === void 0 ? void 0 : _theme$palette$base2.A100)
3342
+ border: "2px solid " + ((_theme$palette$base = theme.palette.base) === null || _theme$palette$base === void 0 ? void 0 : _theme$palette$base.A100)
3197
3343
  };
3198
3344
  }
3199
3345
  }, {
@@ -3202,10 +3348,10 @@ var ReduxChip = {
3202
3348
  color: 'secondary',
3203
3349
  mode: 'light'
3204
3350
  },
3205
- style: function style(_ref10) {
3351
+ style: function style(_ref7) {
3206
3352
  var _theme$palette$second;
3207
- var theme = _ref10.theme,
3208
- ownerState = _objectWithoutPropertiesLoose(_ref10, _excluded8);
3353
+ var theme = _ref7.theme,
3354
+ ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded4);
3209
3355
  return {
3210
3356
  color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
3211
3357
  border: "2px solid " + ((_theme$palette$second = theme.palette.secondary) === null || _theme$palette$second === void 0 ? void 0 : _theme$palette$second.A100)
@@ -3213,11 +3359,11 @@ var ReduxChip = {
3213
3359
  }
3214
3360
  }, {
3215
3361
  props: {
3216
- size: 'small',
3362
+ size: 'xs',
3217
3363
  hasBullet: true
3218
3364
  },
3219
- style: function style(_ref11) {
3220
- var theme = _ref11.theme;
3365
+ style: function style(_ref8) {
3366
+ var theme = _ref8.theme;
3221
3367
  return {
3222
3368
  height: 24,
3223
3369
  padding: theme.spacing(0.5, 2, 0.5, 4.5),
@@ -3226,77 +3372,42 @@ var ReduxChip = {
3226
3372
  }
3227
3373
  }, {
3228
3374
  props: {
3229
- size: 'medium',
3375
+ size: 'sm',
3230
3376
  hasBullet: true
3231
3377
  },
3232
- style: function style(_ref12) {
3233
- var theme = _ref12.theme;
3378
+ style: function style(_ref9) {
3379
+ var theme = _ref9.theme;
3234
3380
  return {
3235
3381
  height: 28,
3236
3382
  padding: theme.spacing(0.5, 2, 0.5, 4.5),
3237
3383
  fontSize: 14
3238
3384
  };
3239
3385
  }
3240
- }, {
3241
- props: {
3242
- size: 'large',
3243
- hasBullet: true
3244
- },
3245
- style: function style(_ref13) {
3246
- var theme = _ref13.theme;
3247
- return {
3248
- height: 32,
3249
- padding: theme.spacing(1, 2, 1, 4.5),
3250
- fontSize: 14
3251
- };
3252
- }
3253
- }, {
3254
- props: {
3255
- size: 'small',
3256
- hasBullet: false
3257
- },
3258
- style: function style(_ref14) {
3259
- var theme = _ref14.theme;
3260
- return {
3261
- height: 24,
3262
- padding: theme.spacing(0.5, 2),
3263
- fontSize: 12
3264
- };
3265
- }
3266
- }, {
3267
- props: {
3268
- size: 'medium',
3269
- hasBullet: false
3270
- },
3271
- style: function style(_ref15) {
3272
- var theme = _ref15.theme;
3273
- return {
3274
- height: 28,
3275
- padding: theme.spacing(0.5, 2),
3276
- fontSize: 14
3277
- };
3278
- }
3279
- }, {
3280
- props: {
3281
- size: 'large',
3282
- hasBullet: false
3283
- },
3284
- style: function style(_ref16) {
3285
- var theme = _ref16.theme;
3286
- return {
3287
- height: 32,
3288
- padding: theme.spacing(1, 2),
3289
- fontSize: 14
3290
- };
3291
- }
3292
- }, {
3386
+ },
3387
+ // {
3388
+ // props: { size: 'xs', hasBullet: false } as ChipProps,
3389
+ // style: ({ theme }) => ({
3390
+ // height: 24,
3391
+ // padding: theme.spacing(0.5, 2),
3392
+ // fontSize: 12,
3393
+ // }),
3394
+ // },
3395
+ // {
3396
+ // props: { size: 'sm', hasBullet: false } as ChipProps,
3397
+ // style: ({ theme }) => ({
3398
+ // height: 28,
3399
+ // padding: theme.spacing(0.5, 2),
3400
+ // fontSize: 14,
3401
+ // }),
3402
+ // },
3403
+ {
3293
3404
  props: {
3294
3405
  hasBullet: true
3295
3406
  },
3296
- style: function style(_ref17) {
3407
+ style: function style(_ref10) {
3297
3408
  var _theme$palette$ownerS3;
3298
- var theme = _ref17.theme,
3299
- ownerState = _objectWithoutPropertiesLoose(_ref17, _excluded9);
3409
+ var theme = _ref10.theme,
3410
+ ownerState = _objectWithoutPropertiesLoose(_ref10, _excluded5);
3300
3411
  return {
3301
3412
  '& > .MuiChip-label ': {
3302
3413
  '&::before': {
@@ -3330,9 +3441,9 @@ var ReduxChip = {
3330
3441
  variant: 'filled',
3331
3442
  mode: 'normal'
3332
3443
  },
3333
- style: function style(_ref18) {
3334
- var theme = _ref18.theme,
3335
- ownerState = _objectWithoutPropertiesLoose(_ref18, _excluded10);
3444
+ style: function style(_ref11) {
3445
+ var theme = _ref11.theme,
3446
+ ownerState = _objectWithoutPropertiesLoose(_ref11, _excluded6);
3336
3447
  return {
3337
3448
  '& > .MuiChip-label ': {
3338
3449
  '&::before': {
@@ -3348,14 +3459,14 @@ var ReduxChip = {
3348
3459
  mode: 'light',
3349
3460
  color: 'secondary'
3350
3461
  },
3351
- style: function style(_ref19) {
3352
- var _theme$palette$base3;
3353
- var theme = _ref19.theme,
3354
- ownerState = _objectWithoutPropertiesLoose(_ref19, _excluded11);
3462
+ style: function style(_ref12) {
3463
+ var _theme$palette$base2;
3464
+ var theme = _ref12.theme,
3465
+ ownerState = _objectWithoutPropertiesLoose(_ref12, _excluded7);
3355
3466
  return {
3356
3467
  '& > .MuiChip-label ': {
3357
3468
  '&::before': {
3358
- 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
3469
+ 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
3359
3470
  }
3360
3471
  }
3361
3472
  };
@@ -3364,8 +3475,8 @@ var ReduxChip = {
3364
3475
  props: {
3365
3476
  clickable: true
3366
3477
  },
3367
- style: function style(_ref20) {
3368
- var rest = _objectWithoutPropertiesLoose(_ref20, _excluded12);
3478
+ style: function style(_ref13) {
3479
+ var rest = _objectWithoutPropertiesLoose(_ref13, _excluded8);
3369
3480
  return {
3370
3481
  '& .MuiChip-icon': {
3371
3482
  margin: 0
@@ -3377,10 +3488,10 @@ var ReduxChip = {
3377
3488
  clickable: true,
3378
3489
  mode: 'light'
3379
3490
  },
3380
- style: function style(_ref21) {
3491
+ style: function style(_ref14) {
3381
3492
  var _theme$palette$ownerS4;
3382
- var theme = _ref21.theme,
3383
- ownerState = _ref21.ownerState;
3493
+ var theme = _ref14.theme,
3494
+ ownerState = _ref14.ownerState;
3384
3495
  return ownerState ? {
3385
3496
  '&:hover': {
3386
3497
  backgroundColor: alpha("" + ((_theme$palette$ownerS4 = theme.palette[ownerState.color]) === null || _theme$palette$ownerS4 === void 0 ? void 0 : _theme$palette$ownerS4.A100), 0.1)
@@ -4255,7 +4366,7 @@ var getDesignTokens = function getDesignTokens(_ref) {
4255
4366
  MuiTypography: RabexTypography.components,
4256
4367
  MuiTabs: RabexTabs.components,
4257
4368
  MuiTab: RabexTab.components,
4258
- MuiChip: ReduxChip.components,
4369
+ MuiChip: RabexChip.components,
4259
4370
  MuiPaper: RabexPaper.components,
4260
4371
  MuiDivider: RabexDivider.components,
4261
4372
  MuiTooltip: RabexTooltip.components,
@@ -4343,7 +4454,7 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
4343
4454
  };
4344
4455
 
4345
4456
  var _styled;
4346
- var _excluded$e = ["className"];
4457
+ var _excluded$f = ["className"];
4347
4458
  /**
4348
4459
  *
4349
4460
  * Tooltips display informative text when users hover over, focus on, or tap an element.
@@ -4368,7 +4479,7 @@ var MuiTooltipStyled = /*#__PURE__*/styled(MuiTooltip, {
4368
4479
  // tooltip popper hasn't permission for wrap text
4369
4480
  var NoMaxWidthTooltip = /*#__PURE__*/styled$1(function (_ref) {
4370
4481
  var className = _ref.className,
4371
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
4482
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4372
4483
  return React.createElement(MuiTooltipStyled, Object.assign({}, props, {
4373
4484
  classes: {
4374
4485
  popper: className
@@ -4555,7 +4666,7 @@ var Fade = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4555
4666
  }, props));
4556
4667
  });
4557
4668
 
4558
- var _excluded$f = ["name"];
4669
+ var _excluded$g = ["name"];
4559
4670
  /**
4560
4671
  * Formik Input let users enter and edit text.
4561
4672
  *
@@ -4567,7 +4678,7 @@ var _excluded$f = ["name"];
4567
4678
  */
4568
4679
  var FormikInput = function FormikInput(_ref) {
4569
4680
  var name = _ref.name,
4570
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4681
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4571
4682
  var _useField = useField(name),
4572
4683
  field = _useField[0],
4573
4684
  meta = _useField[1];
@@ -4578,7 +4689,7 @@ var FormikInput = function FormikInput(_ref) {
4578
4689
  }));
4579
4690
  };
4580
4691
 
4581
- var _excluded$g = ["helperText", "name"];
4692
+ var _excluded$h = ["helperText", "name"];
4582
4693
  /**
4583
4694
  * Formik Select let users enter and edit text.
4584
4695
  *
@@ -4591,7 +4702,7 @@ var _excluded$g = ["helperText", "name"];
4591
4702
  var FormikSelect = function FormikSelect(_ref) {
4592
4703
  var helperText = _ref.helperText,
4593
4704
  name = _ref.name,
4594
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4705
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4595
4706
  var _useField = useField(name),
4596
4707
  field = _useField[0],
4597
4708
  meta = _useField[1];
@@ -4609,7 +4720,7 @@ var FormikSelect = function FormikSelect(_ref) {
4609
4720
  }, text));
4610
4721
  };
4611
4722
 
4612
- var _excluded$h = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption"];
4723
+ var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption"];
4613
4724
  function _handleHelperColor$1(props, key) {
4614
4725
  var _props$key;
4615
4726
  if (props.error) return 'error.A100';
@@ -4650,7 +4761,7 @@ var TextField = function TextField(props) {
4650
4761
  onChange = _ref.onChange,
4651
4762
  valueFormat = _ref.valueFormat,
4652
4763
  valueFormatOption = _ref.valueFormatOption,
4653
- other = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4764
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4654
4765
  if (!valueFormat && !!valueFormatOption) {
4655
4766
  console.warn("'valueFormatOption' Only Work With known 'valueFormat's...");
4656
4767
  }
@@ -4714,7 +4825,7 @@ TextField.defaultProps = {
4714
4825
  }
4715
4826
  };
4716
4827
 
4717
- var _excluded$i = ["name"];
4828
+ var _excluded$j = ["name"];
4718
4829
  /**
4719
4830
  * Formik TextField let users enter and edit text.
4720
4831
  *
@@ -4726,7 +4837,7 @@ var _excluded$i = ["name"];
4726
4837
  */
4727
4838
  var FormikTextField = function FormikTextField(_ref) {
4728
4839
  var name = _ref.name,
4729
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4840
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4730
4841
  var _useField = useField(name),
4731
4842
  field = _useField[0],
4732
4843
  meta = _useField[1];
@@ -4840,7 +4951,7 @@ var Modal = function Modal(_ref) {
4840
4951
  return React.createElement(MuiModal, Object.assign({}, props));
4841
4952
  };
4842
4953
 
4843
- var _excluded$j = ["hasCloseButton", "iconCloseProps", "closeButtonProps", "headerProps"],
4954
+ var _excluded$k = ["hasCloseButton", "iconCloseProps", "closeButtonProps", "headerProps"],
4844
4955
  _excluded2$3 = ["sx"],
4845
4956
  _excluded3$1 = ["sx"],
4846
4957
  _excluded4$1 = ["sx"];
@@ -4854,7 +4965,7 @@ var ModalContent = function ModalContent(_ref) {
4854
4965
  iconCloseProps = _ref.iconCloseProps,
4855
4966
  closeButtonProps = _ref.closeButtonProps,
4856
4967
  headerProps = _ref.headerProps,
4857
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4968
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
4858
4969
  var _ref2 = props || {},
4859
4970
  rootSx = _ref2.sx,
4860
4971
  root = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
@@ -5228,7 +5339,7 @@ SeeMore.defaultProps = {
5228
5339
  height: '56%'
5229
5340
  };
5230
5341
 
5231
- var _excluded$k = ["inputProps", "children"];
5342
+ var _excluded$l = ["inputProps", "children"];
5232
5343
  /**
5233
5344
  * This is a custom wrapper component made of Material-UI Button.
5234
5345
  * Props of the Button component are also available.
@@ -5246,7 +5357,7 @@ var _excluded$k = ["inputProps", "children"];
5246
5357
  var UploadButton = function UploadButton(_ref) {
5247
5358
  var inputProps = _ref.inputProps,
5248
5359
  children = _ref.children,
5249
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
5360
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
5250
5361
  return React.createElement(Button, Object.assign({}, props), children, React.createElement("input", Object.assign({
5251
5362
  hidden: true,
5252
5363
  type: "file",
@@ -5275,5 +5386,135 @@ var Zoom = function Zoom(_ref) {
5275
5386
  return React.createElement(MuiZoom, Object.assign({}, props));
5276
5387
  };
5277
5388
 
5278
- export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertAction, AlertTimer, AlertTitle, Autocomplete, Avatar, Backdrop, Box, Breadcrumbs, Button, Checkbox, Chip, CircularProgress, ClickAwayListener, Collapse, Container, CurrencyPairsTitle, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Drawer, DynamicBackground, DynamicBackgroundContainer, Fade, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel, FormikInput, FormikSelect, FormikTextField, Grid, Grow, IconButton, Input, InputAdornment, InputLabel, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, listItemText as ListItemText, ListSubHeader, LoadingButton, Menu, MenuItem, MenuList, MobileStepper, Modal, ModalContent, NoSsr, Pagination, PaginationItem, Paper, Popover, Popper, RTable, RTableHead, RTableRow, Radio, RadioGroup, SeeMore, Select, SelectItem, Skeleton, Slide, Slider, SliderContent, Snackbar, SnackbarContent, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SvgIcon, SwipeableDrawer, Tab, TabContext, TabList, TabPanel, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, TextField, ToggleButton, ToggleButtonGroup, Tooltip, Typography, UploadButton, Zoom, numberUtils, handleSearch as searchUtils, theme, useCopyToClipboard, useOnScreen, useResponsive, useTime, useWindowSize };
5389
+ var _excluded$m = ["theme"];
5390
+ /**
5391
+ * SegmentedControl component for switching between views.
5392
+ *
5393
+ * This component is built on top of Material-UI Tabs and supports additional props
5394
+ * for customizing size, border, and separation of tabs.
5395
+ *
5396
+ * @param props
5397
+ * @returns JSX.Element
5398
+ */
5399
+ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
5400
+ name: 'SegmentedControl',
5401
+ shouldForwardProp: function shouldForwardProp(prop) {
5402
+ return !['size', 'isSeparate', 'hasBorder'].includes(prop);
5403
+ }
5404
+ })(function (_ref) {
5405
+ var theme = _ref.theme,
5406
+ ownerState = _objectWithoutPropertiesLoose(_ref, _excluded$m);
5407
+ return _extends({
5408
+ minHeight: 'unset',
5409
+ display: 'flex',
5410
+ backgroundColor: theme.palette.backgroundColor[200],
5411
+ '& .MuiTabs-flexContainer': {
5412
+ gap: theme.spacing(1)
5413
+ }
5414
+ }, ownerState.size === 'sm' && {
5415
+ height: theme.spacing(8),
5416
+ borderRadius: theme.spacing(2),
5417
+ '&.MuiTab-root': {
5418
+ borderRadius: theme.spacing(1),
5419
+ height: theme.spacing(6),
5420
+ padding: theme.spacing(0, 3)
5421
+ },
5422
+ '&.MuiTab-root.Mui-selected': {
5423
+ color: 'inherit',
5424
+ borderRadius: theme.spacing(1)
5425
+ }
5426
+ }, ownerState.size === 'md' && {
5427
+ height: theme.spacing(12),
5428
+ borderRadius: theme.spacing(3),
5429
+ '& .MuiTab-root': {
5430
+ borderRadius: theme.spacing(2),
5431
+ height: theme.spacing(10),
5432
+ padding: theme.spacing(2, 3)
5433
+ },
5434
+ '& .MuiTab-root.Mui-selected': {
5435
+ color: 'inherit',
5436
+ borderRadius: theme.spacing(2)
5437
+ }
5438
+ }, ownerState.size === 'lg' && {
5439
+ height: theme.spacing(14),
5440
+ borderRadius: theme.spacing(3),
5441
+ '& .MuiTab-root': {
5442
+ borderRadius: theme.spacing(2),
5443
+ height: theme.spacing(12),
5444
+ padding: theme.spacing(3, 4)
5445
+ },
5446
+ '& .MuiTab-root.Mui-selected': {
5447
+ color: 'inherit',
5448
+ borderRadius: theme.spacing(2)
5449
+ }
5450
+ }, ownerState.isSeparate && {
5451
+ '& .MuiTabs-flexContainer': {
5452
+ gap: theme.spacing(1),
5453
+ padding: theme.spacing(1)
5454
+ },
5455
+ '& .MuiTab-root': {
5456
+ borderRadius: theme.spacing(1),
5457
+ padding: theme.spacing(2, 3)
5458
+ }
5459
+ }, ownerState.hasBorder && {
5460
+ border: "2px dotted " + theme.palette.divider,
5461
+ '& .MuiTab-root': {
5462
+ borderRadius: theme.spacing(1),
5463
+ border: "2px dotted " + theme.palette.divider,
5464
+ lineHeight: theme.spacing(2)
5465
+ }
5466
+ }, ownerState.variant === 'fullWidth' && {
5467
+ width: '100%'
5468
+ }, {
5469
+ // Remove indicator
5470
+ '& .MuiTabs-indicator': {
5471
+ display: 'none'
5472
+ }
5473
+ });
5474
+ });
5475
+ SegmentedControl.defaultProps = {
5476
+ variant: 'fullWidth',
5477
+ size: 'sm',
5478
+ isSeparate: false,
5479
+ hasBorder: false
5480
+ };
5481
+
5482
+ // Custom SegmentedControlTab with styled applied based on size
5483
+ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
5484
+ return React.createElement(MuiTab, Object.assign({}, props, {
5485
+ label:
5486
+ // Render custom Typography for the label
5487
+ React.createElement(Typography, {
5488
+ variant: "body2",
5489
+ weight: "semiBold"
5490
+ }, props.label)
5491
+ }));
5492
+ })(function (_ref) {
5493
+ var theme = _ref.theme;
5494
+ return {
5495
+ minWidth: 80,
5496
+ color: theme.palette.mode === 'light' ? theme.palette.textColor[900] : theme.palette.textColor.A40,
5497
+ position: 'relative',
5498
+ minHeight: 24,
5499
+ borderRadius: 'unset',
5500
+ '&::after': {
5501
+ content: 'unset',
5502
+ display: 'none'
5503
+ },
5504
+ '&.MuiTab-root.Mui-selected': {
5505
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.base[50] : theme.palette.secondary.A80,
5506
+ color: theme.palette.textColor[900]
5507
+ },
5508
+ '&.Mui-disabled': {
5509
+ cursor: 'not-allowed',
5510
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A40 : theme.palette.textColor.A60
5511
+ },
5512
+ '& .MuiTab-iconWrapper': {
5513
+ fontSize: '14px'
5514
+ }
5515
+ };
5516
+ });
5517
+ SegmentedControlTab.defaultProps = {};
5518
+
5519
+ export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertAction, AlertTimer, AlertTitle, Autocomplete, Avatar, Backdrop, Box, Breadcrumbs, Button, Checkbox, Chip, CircularProgress, ClickAwayListener, Collapse, Container, CurrencyPairsTitle, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Drawer, DynamicBackground, DynamicBackgroundContainer, Fade, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel, FormikInput, FormikSelect, FormikTextField, Grid, Grow, IconButton, Input, InputAdornment, InputLabel, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, listItemText as ListItemText, ListSubHeader, LoadingButton, Menu, MenuItem, MenuList, MobileStepper, Modal, ModalContent, NoSsr, Pagination, PaginationItem, Paper, Popover, Popper, RTable, RTableHead, RTableRow, Radio, RadioGroup, SeeMore, SegmentedControl, SegmentedControlTab, Select, SelectItem, Skeleton, Slide, Slider, SliderContent, Snackbar, SnackbarContent, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SvgIcon, SwipeableDrawer, Tab, TabContext, TabList, TabPanel, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, TextField, ToggleButton, ToggleButtonGroup, Tooltip, Typography, UploadButton, Zoom, numberUtils, handleSearch as searchUtils, theme, useCopyToClipboard, useOnScreen, useResponsive, useTime, useWindowSize };
5279
5520
  //# sourceMappingURL=rabex-ui.esm.js.map