@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.
- package/dist/Chip/index.d.ts +1 -15
- package/dist/SegmentedControl/index.d.ts +18 -0
- package/dist/SegmentedControlTab/index.d.ts +5 -0
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Theme/Chip/index.d.ts +18 -15
- package/dist/Theme/Palette/base.d.ts +7 -3
- package/dist/Theme/Palette/dark.d.ts +27 -0
- package/dist/Theme/Palette/light.d.ts +11 -0
- package/dist/Theme/SegmentedControl/index.d.ts +491 -0
- package/dist/Theme/SegmentedControlTab/index.d.ts +41 -0
- package/dist/Theme/Typography/index.d.ts +18 -0
- package/dist/Typography/index.d.ts +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/rabex-ui.cjs.development.js +467 -212
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +466 -213
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -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/
|
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
|
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: '
|
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$
|
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$
|
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$
|
1110
|
+
var _excluded$6 = ["sx"];
|
1087
1111
|
var DynamicBackgroundContainer = function DynamicBackgroundContainer(_ref) {
|
1088
1112
|
var sx = _ref.sx,
|
1089
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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/
|
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/
|
2251
|
+
* import { Tab } from '@rabex-kit/rabex-ui';
|
2228
2252
|
* ```
|
2229
2253
|
*
|
2230
2254
|
*
|
@@ -2298,7 +2322,9 @@ var RabexTypography = {
|
|
2298
2322
|
smallButton: 'span',
|
2299
2323
|
helperText: 'span',
|
2300
2324
|
inputLabel2: 'span',
|
2301
|
-
body4: 'span'
|
2325
|
+
body4: 'span',
|
2326
|
+
body5: 'span',
|
2327
|
+
paragraph: 'span'
|
2302
2328
|
}
|
2303
2329
|
}
|
2304
2330
|
},
|
@@ -2396,6 +2422,16 @@ var RabexTypography = {
|
|
2396
2422
|
fontSize: '10px',
|
2397
2423
|
lineHeight: '16px',
|
2398
2424
|
fontFamily: 'Yekan, Arial'
|
2425
|
+
},
|
2426
|
+
body5: {
|
2427
|
+
fontSize: '12px',
|
2428
|
+
lineHeight: '24px',
|
2429
|
+
fontFamily: 'Yekan, Arial'
|
2430
|
+
},
|
2431
|
+
paragraph: {
|
2432
|
+
fontSize: '12px',
|
2433
|
+
lineHeight: '24px',
|
2434
|
+
fontFamily: 'Yekan, Arial'
|
2399
2435
|
}
|
2400
2436
|
}
|
2401
2437
|
};
|
@@ -2737,6 +2773,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
|
|
2737
2773
|
50: '#FCFEFF'
|
2738
2774
|
},
|
2739
2775
|
backgroundColor: {
|
2776
|
+
main: '#16181F',
|
2740
2777
|
950: '#16181F',
|
2741
2778
|
900: '#333640',
|
2742
2779
|
800: '#3A3A3D',
|
@@ -2766,7 +2803,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
|
|
2766
2803
|
warning: {
|
2767
2804
|
400: '#E8A700',
|
2768
2805
|
300: '#FFD200',
|
2769
|
-
200: '#
|
2806
|
+
200: '#FCE7A4',
|
2770
2807
|
100: '#FCF3D6',
|
2771
2808
|
50: '#FFF9E5',
|
2772
2809
|
contrastText: '#FFF',
|
@@ -2796,7 +2833,7 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
|
|
2796
2833
|
300: '#848EF5',
|
2797
2834
|
200: '#9CA4FF',
|
2798
2835
|
100: '#D9DCFF',
|
2799
|
-
50: '#
|
2836
|
+
50: '#EDEFFF',
|
2800
2837
|
contrastText: '#FFF',
|
2801
2838
|
main: '#717BEB',
|
2802
2839
|
A100: '#717BEB',
|
@@ -2829,6 +2866,16 @@ var RabexLightPalette = /*#__PURE__*/_extends({}, base, {
|
|
2829
2866
|
A0: '#FFFFFF'
|
2830
2867
|
},
|
2831
2868
|
base: {
|
2869
|
+
900: '#333640',
|
2870
|
+
800: '#3A3A3D',
|
2871
|
+
700: '#666666',
|
2872
|
+
600: '#58667E',
|
2873
|
+
500: '#808A9D',
|
2874
|
+
400: '#A6B0C3',
|
2875
|
+
300: '#CFD6E4',
|
2876
|
+
200: '#EFF2F5',
|
2877
|
+
100: '#F8FAFD',
|
2878
|
+
50: '#FFFFFF',
|
2832
2879
|
main: '#222531',
|
2833
2880
|
A100: '#222531',
|
2834
2881
|
A80: '#333640',
|
@@ -2934,6 +2981,33 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
|
|
2934
2981
|
A20: '#A7A8AD',
|
2935
2982
|
A10: '#ADAEB5',
|
2936
2983
|
A0: '#FFFFFF'
|
2984
|
+
},
|
2985
|
+
neutral: {
|
2986
|
+
950: '#10164A',
|
2987
|
+
900: '#273073',
|
2988
|
+
800: '#455099',
|
2989
|
+
700: '#6B78BF',
|
2990
|
+
600: '#9CA8E6',
|
2991
|
+
500: '#BFCAFF',
|
2992
|
+
400: '#D4E0FF',
|
2993
|
+
300: '#E6F0FF',
|
2994
|
+
200: '#F0F7FF',
|
2995
|
+
100: '#FAFDFF',
|
2996
|
+
50: '#FCFEFF'
|
2997
|
+
},
|
2998
|
+
backgroundColor: {
|
2999
|
+
main: '#16181F',
|
3000
|
+
950: '#16181F',
|
3001
|
+
900: '#333640',
|
3002
|
+
800: '#3A3A3D',
|
3003
|
+
700: '#666666',
|
3004
|
+
600: '#58667E',
|
3005
|
+
500: '#808A9D',
|
3006
|
+
400: '#A6B0C3',
|
3007
|
+
300: '#CFD6E4',
|
3008
|
+
200: '#EFF2F5',
|
3009
|
+
100: '#F8FAFD',
|
3010
|
+
50: '#FFFFFF'
|
2937
3011
|
}
|
2938
3012
|
});
|
2939
3013
|
|
@@ -3063,119 +3137,203 @@ var RabexTab = {
|
|
3063
3137
|
}
|
3064
3138
|
};
|
3065
3139
|
|
3066
|
-
var _excluded$
|
3140
|
+
var _excluded$e = ["theme", "ownerState"],
|
3067
3141
|
_excluded2$2 = ["theme"],
|
3068
3142
|
_excluded3 = ["theme"],
|
3069
3143
|
_excluded4 = ["theme"],
|
3070
3144
|
_excluded5 = ["theme"],
|
3071
3145
|
_excluded6 = ["theme"],
|
3072
3146
|
_excluded7 = ["theme"],
|
3073
|
-
_excluded8 = ["theme"]
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3077
|
-
|
3078
|
-
|
3079
|
-
|
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
|
-
};
|
3147
|
+
_excluded8 = ["theme", "ownerState"];
|
3148
|
+
var colorModeConfig = function colorModeConfig(theme) {
|
3149
|
+
return {
|
3150
|
+
"default": {
|
3151
|
+
normal: {
|
3152
|
+
color: theme.palette.textColor[50],
|
3153
|
+
backgroundColor: theme.palette.backgroundColor[900]
|
3090
3154
|
},
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3094
|
-
overflow: 'visible',
|
3095
|
-
position: 'relative',
|
3096
|
-
padding: theme.spacing(0)
|
3097
|
-
};
|
3155
|
+
light: {
|
3156
|
+
color: theme.palette.backgroundColor[900],
|
3157
|
+
backgroundColor: theme.palette.backgroundColor[200]
|
3098
3158
|
}
|
3099
3159
|
},
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3160
|
+
warning: {
|
3161
|
+
normal: {
|
3162
|
+
color: theme.palette.textColor[900],
|
3163
|
+
backgroundColor: theme.palette.warning[200]
|
3103
3164
|
},
|
3104
|
-
|
3105
|
-
|
3106
|
-
|
3107
|
-
|
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
|
-
};
|
3165
|
+
light: {
|
3166
|
+
color: theme.palette.textColor[900],
|
3167
|
+
backgroundColor: theme.palette.warning[50],
|
3168
|
+
border: "1px solid " + theme.palette.warning[200]
|
3113
3169
|
}
|
3114
|
-
},
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3170
|
+
},
|
3171
|
+
info: {
|
3172
|
+
normal: {
|
3173
|
+
color: theme.palette.textColor[50],
|
3174
|
+
backgroundColor: theme.palette.primary[500]
|
3118
3175
|
},
|
3119
|
-
|
3120
|
-
|
3121
|
-
|
3122
|
-
|
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
|
-
};
|
3176
|
+
light: {
|
3177
|
+
color: theme.palette.primary[500],
|
3178
|
+
backgroundColor: theme.palette.info[50],
|
3179
|
+
border: "1px solid " + theme.palette.info[200]
|
3127
3180
|
}
|
3128
|
-
},
|
3129
|
-
|
3130
|
-
|
3131
|
-
|
3132
|
-
|
3181
|
+
},
|
3182
|
+
primary: {
|
3183
|
+
normal: {
|
3184
|
+
color: theme.palette.textColor[50],
|
3185
|
+
backgroundColor: theme.palette.primary[500]
|
3133
3186
|
},
|
3134
|
-
|
3135
|
-
|
3136
|
-
|
3137
|
-
|
3187
|
+
light: {
|
3188
|
+
color: theme.palette.primary[500],
|
3189
|
+
backgroundColor: theme.palette.info[50],
|
3190
|
+
border: "1px solid " + theme.palette.info[200]
|
3191
|
+
}
|
3192
|
+
},
|
3193
|
+
error: {
|
3194
|
+
normal: {
|
3195
|
+
color: theme.palette.textColor[50],
|
3196
|
+
backgroundColor: theme.palette.error[400]
|
3197
|
+
},
|
3198
|
+
light: {
|
3199
|
+
color: theme.palette.error[400],
|
3200
|
+
backgroundColor: theme.palette.error[50],
|
3201
|
+
border: "1px solid " + theme.palette.error[200]
|
3202
|
+
}
|
3203
|
+
},
|
3204
|
+
success: {
|
3205
|
+
normal: {
|
3206
|
+
color: theme.palette.textColor[50],
|
3207
|
+
backgroundColor: theme.palette.success[400]
|
3208
|
+
},
|
3209
|
+
light: {
|
3210
|
+
color: theme.palette.success[400],
|
3211
|
+
backgroundColor: theme.palette.success[50],
|
3212
|
+
border: "1px solid " + theme.palette.success[200]
|
3213
|
+
}
|
3214
|
+
}
|
3215
|
+
};
|
3216
|
+
};
|
3217
|
+
var chipStyles = function chipStyles(theme, ownerState) {
|
3218
|
+
var _theme$palette$ownerS;
|
3219
|
+
var baseStyles = {
|
3220
|
+
display: 'flex',
|
3221
|
+
alignItems: 'center',
|
3222
|
+
gap: theme.spacing(1),
|
3223
|
+
borderRadius: theme.spacing(1)
|
3224
|
+
};
|
3225
|
+
var sizeStyles = {
|
3226
|
+
sm: {
|
3227
|
+
height: theme.spacing(6),
|
3228
|
+
padding: theme.spacing(1, 2)
|
3229
|
+
},
|
3230
|
+
xs: {
|
3231
|
+
height: theme.spacing(4),
|
3232
|
+
padding: theme.spacing(0, 1)
|
3233
|
+
}
|
3234
|
+
};
|
3235
|
+
var variantStyles = {
|
3236
|
+
filled: {
|
3237
|
+
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,
|
3238
|
+
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
|
3239
|
+
},
|
3240
|
+
outlined: {
|
3241
|
+
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),
|
3242
|
+
color: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor) || theme.palette.textColor[900]
|
3243
|
+
}
|
3244
|
+
};
|
3245
|
+
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]);
|
3246
|
+
};
|
3247
|
+
var RabexChip = {
|
3248
|
+
components: {
|
3249
|
+
// defaultProps: {
|
3250
|
+
// size: 'sm', // You can change this to 'xs' or 'sm' as the default
|
3251
|
+
// },
|
3252
|
+
styleOverrides: {
|
3253
|
+
root: function root(_ref) {
|
3254
|
+
var theme = _ref.theme,
|
3255
|
+
ownerState = _ref.ownerState,
|
3256
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
3257
|
+
return _extends({}, chipStyles(theme, ownerState));
|
3258
|
+
},
|
3259
|
+
icon: function icon(_ref2) {
|
3260
|
+
var theme = _ref2.theme,
|
3261
|
+
ownerState = _ref2.ownerState;
|
3138
3262
|
return {
|
3139
|
-
|
3140
|
-
|
3263
|
+
margin: 0,
|
3264
|
+
fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
|
3141
3265
|
};
|
3142
|
-
}
|
3143
|
-
}, {
|
3144
|
-
props: {
|
3145
|
-
variant: 'filled',
|
3146
|
-
mode: 'light'
|
3147
3266
|
},
|
3148
|
-
|
3149
|
-
var theme =
|
3150
|
-
|
3151
|
-
var ownerState = other.as ? other.ownerState : other;
|
3267
|
+
deleteIcon: function deleteIcon(_ref3) {
|
3268
|
+
var theme = _ref3.theme,
|
3269
|
+
ownerState = _ref3.ownerState;
|
3152
3270
|
return {
|
3153
|
-
|
3154
|
-
|
3271
|
+
margin: 0,
|
3272
|
+
fontSize: (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) === 'xs' ? theme.spacing(3) : theme.spacing(4)
|
3155
3273
|
};
|
3156
|
-
}
|
3157
|
-
}, {
|
3158
|
-
props: {
|
3159
|
-
variant: 'filled',
|
3160
|
-
mode: 'light',
|
3161
|
-
color: 'secondary'
|
3162
3274
|
},
|
3163
|
-
|
3164
|
-
var theme =
|
3165
|
-
ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded5);
|
3275
|
+
label: function label(_ref4) {
|
3276
|
+
var theme = _ref4.theme;
|
3166
3277
|
return {
|
3167
|
-
|
3168
|
-
|
3278
|
+
overflow: 'visible',
|
3279
|
+
position: 'relative',
|
3280
|
+
padding: theme.spacing(0)
|
3169
3281
|
};
|
3170
3282
|
}
|
3171
|
-
},
|
3283
|
+
},
|
3284
|
+
variants: [
|
3285
|
+
// {
|
3286
|
+
// props: { variant: 'default' } as ChipProps,
|
3287
|
+
// style: ({ theme, ownerState }: any) => {
|
3288
|
+
// return {
|
3289
|
+
// border: 'unset',
|
3290
|
+
// backgroundColor: 'unset',
|
3291
|
+
// color: ownerState?.labelColor
|
3292
|
+
// ? ownerState?.labelColor
|
3293
|
+
// : theme.palette.textColor.A60,
|
3294
|
+
// };
|
3295
|
+
// },
|
3296
|
+
// },
|
3297
|
+
// {
|
3298
|
+
// props: { variant: 'filled' } as ChipProps,
|
3299
|
+
// style: ({ theme, ...ownerState }: any) => {
|
3300
|
+
// console.log(theme, ...ownerState);
|
3301
|
+
// return {
|
3302
|
+
// backgroundColor: ownerState?.color
|
3303
|
+
// ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].backgroundColor
|
3304
|
+
// : theme.palette.primary.main,
|
3305
|
+
// color: ownerState?.labelColor
|
3306
|
+
// ? colorModeConfig(theme)[ownerState?.color || 'default'][ownerState?.mode || 'normal'].color
|
3307
|
+
// : theme.palette.textColor[50],
|
3308
|
+
// };
|
3309
|
+
// },
|
3310
|
+
// },
|
3311
|
+
// {
|
3312
|
+
// props: { size: 'sm' } as ChipProps,
|
3313
|
+
// style: ({ theme, ownerState }: any) => {
|
3314
|
+
// return {
|
3315
|
+
// height: theme.spacing(6),
|
3316
|
+
// paddingX: theme.spacing(2),
|
3317
|
+
// };
|
3318
|
+
// },
|
3319
|
+
// },
|
3320
|
+
// {
|
3321
|
+
// props: { size: 'xs' } as ChipProps,
|
3322
|
+
// style: ({ theme, ownerState }: any) => {
|
3323
|
+
// return {
|
3324
|
+
// height: theme.spacing(4),
|
3325
|
+
// paddingX: theme.spacing(1),
|
3326
|
+
// };
|
3327
|
+
// },
|
3328
|
+
// },
|
3329
|
+
{
|
3172
3330
|
props: {
|
3173
3331
|
variant: 'outlined'
|
3174
3332
|
},
|
3175
|
-
style: function style(
|
3333
|
+
style: function style(_ref5) {
|
3176
3334
|
var _theme$palette$ownerS2;
|
3177
|
-
var theme =
|
3178
|
-
ownerState = _objectWithoutPropertiesLoose(
|
3335
|
+
var theme = _ref5.theme,
|
3336
|
+
ownerState = _objectWithoutPropertiesLoose(_ref5, _excluded2$2);
|
3179
3337
|
return {
|
3180
3338
|
color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
|
3181
3339
|
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 +3345,13 @@ var ReduxChip = {
|
|
3187
3345
|
color: 'secondary',
|
3188
3346
|
mode: 'normal'
|
3189
3347
|
},
|
3190
|
-
style: function style(
|
3191
|
-
var _theme$palette$
|
3192
|
-
var theme =
|
3193
|
-
ownerState = _objectWithoutPropertiesLoose(
|
3348
|
+
style: function style(_ref6) {
|
3349
|
+
var _theme$palette$base;
|
3350
|
+
var theme = _ref6.theme,
|
3351
|
+
ownerState = _objectWithoutPropertiesLoose(_ref6, _excluded3);
|
3194
3352
|
return {
|
3195
3353
|
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$
|
3354
|
+
border: "2px solid " + ((_theme$palette$base = theme.palette.base) === null || _theme$palette$base === void 0 ? void 0 : _theme$palette$base.A100)
|
3197
3355
|
};
|
3198
3356
|
}
|
3199
3357
|
}, {
|
@@ -3202,10 +3360,10 @@ var ReduxChip = {
|
|
3202
3360
|
color: 'secondary',
|
3203
3361
|
mode: 'light'
|
3204
3362
|
},
|
3205
|
-
style: function style(
|
3363
|
+
style: function style(_ref7) {
|
3206
3364
|
var _theme$palette$second;
|
3207
|
-
var theme =
|
3208
|
-
ownerState = _objectWithoutPropertiesLoose(
|
3365
|
+
var theme = _ref7.theme,
|
3366
|
+
ownerState = _objectWithoutPropertiesLoose(_ref7, _excluded4);
|
3209
3367
|
return {
|
3210
3368
|
color: ownerState !== null && ownerState !== void 0 && ownerState.labelColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.labelColor : theme.palette.textColor.A60,
|
3211
3369
|
border: "2px solid " + ((_theme$palette$second = theme.palette.secondary) === null || _theme$palette$second === void 0 ? void 0 : _theme$palette$second.A100)
|
@@ -3213,11 +3371,11 @@ var ReduxChip = {
|
|
3213
3371
|
}
|
3214
3372
|
}, {
|
3215
3373
|
props: {
|
3216
|
-
size: '
|
3374
|
+
size: 'xs',
|
3217
3375
|
hasBullet: true
|
3218
3376
|
},
|
3219
|
-
style: function style(
|
3220
|
-
var theme =
|
3377
|
+
style: function style(_ref8) {
|
3378
|
+
var theme = _ref8.theme;
|
3221
3379
|
return {
|
3222
3380
|
height: 24,
|
3223
3381
|
padding: theme.spacing(0.5, 2, 0.5, 4.5),
|
@@ -3226,77 +3384,42 @@ var ReduxChip = {
|
|
3226
3384
|
}
|
3227
3385
|
}, {
|
3228
3386
|
props: {
|
3229
|
-
size: '
|
3387
|
+
size: 'sm',
|
3230
3388
|
hasBullet: true
|
3231
3389
|
},
|
3232
|
-
style: function style(
|
3233
|
-
var theme =
|
3390
|
+
style: function style(_ref9) {
|
3391
|
+
var theme = _ref9.theme;
|
3234
3392
|
return {
|
3235
3393
|
height: 28,
|
3236
3394
|
padding: theme.spacing(0.5, 2, 0.5, 4.5),
|
3237
3395
|
fontSize: 14
|
3238
3396
|
};
|
3239
3397
|
}
|
3240
|
-
},
|
3241
|
-
|
3242
|
-
|
3243
|
-
|
3244
|
-
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3254
|
-
|
3255
|
-
|
3256
|
-
|
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
|
-
}, {
|
3398
|
+
},
|
3399
|
+
// {
|
3400
|
+
// props: { size: 'xs', hasBullet: false } as ChipProps,
|
3401
|
+
// style: ({ theme }) => ({
|
3402
|
+
// height: 24,
|
3403
|
+
// padding: theme.spacing(0.5, 2),
|
3404
|
+
// fontSize: 12,
|
3405
|
+
// }),
|
3406
|
+
// },
|
3407
|
+
// {
|
3408
|
+
// props: { size: 'sm', hasBullet: false } as ChipProps,
|
3409
|
+
// style: ({ theme }) => ({
|
3410
|
+
// height: 28,
|
3411
|
+
// padding: theme.spacing(0.5, 2),
|
3412
|
+
// fontSize: 14,
|
3413
|
+
// }),
|
3414
|
+
// },
|
3415
|
+
{
|
3293
3416
|
props: {
|
3294
3417
|
hasBullet: true
|
3295
3418
|
},
|
3296
|
-
style: function style(
|
3419
|
+
style: function style(_ref10) {
|
3297
3420
|
var _theme$palette$ownerS3;
|
3298
|
-
var theme =
|
3299
|
-
ownerState = _objectWithoutPropertiesLoose(
|
3421
|
+
var theme = _ref10.theme,
|
3422
|
+
ownerState = _objectWithoutPropertiesLoose(_ref10, _excluded5);
|
3300
3423
|
return {
|
3301
3424
|
'& > .MuiChip-label ': {
|
3302
3425
|
'&::before': {
|
@@ -3330,9 +3453,9 @@ var ReduxChip = {
|
|
3330
3453
|
variant: 'filled',
|
3331
3454
|
mode: 'normal'
|
3332
3455
|
},
|
3333
|
-
style: function style(
|
3334
|
-
var theme =
|
3335
|
-
ownerState = _objectWithoutPropertiesLoose(
|
3456
|
+
style: function style(_ref11) {
|
3457
|
+
var theme = _ref11.theme,
|
3458
|
+
ownerState = _objectWithoutPropertiesLoose(_ref11, _excluded6);
|
3336
3459
|
return {
|
3337
3460
|
'& > .MuiChip-label ': {
|
3338
3461
|
'&::before': {
|
@@ -3348,14 +3471,14 @@ var ReduxChip = {
|
|
3348
3471
|
mode: 'light',
|
3349
3472
|
color: 'secondary'
|
3350
3473
|
},
|
3351
|
-
style: function style(
|
3352
|
-
var _theme$palette$
|
3353
|
-
var theme =
|
3354
|
-
ownerState = _objectWithoutPropertiesLoose(
|
3474
|
+
style: function style(_ref12) {
|
3475
|
+
var _theme$palette$base2;
|
3476
|
+
var theme = _ref12.theme,
|
3477
|
+
ownerState = _objectWithoutPropertiesLoose(_ref12, _excluded7);
|
3355
3478
|
return {
|
3356
3479
|
'& > .MuiChip-label ': {
|
3357
3480
|
'&::before': {
|
3358
|
-
backgroundColor: ownerState !== null && ownerState !== void 0 && ownerState.bulletColor ? ownerState === null || ownerState === void 0 ? void 0 : ownerState.bulletColor : (_theme$palette$
|
3481
|
+
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
3482
|
}
|
3360
3483
|
}
|
3361
3484
|
};
|
@@ -3364,8 +3487,8 @@ var ReduxChip = {
|
|
3364
3487
|
props: {
|
3365
3488
|
clickable: true
|
3366
3489
|
},
|
3367
|
-
style: function style(
|
3368
|
-
var rest = _objectWithoutPropertiesLoose(
|
3490
|
+
style: function style(_ref13) {
|
3491
|
+
var rest = _objectWithoutPropertiesLoose(_ref13, _excluded8);
|
3369
3492
|
return {
|
3370
3493
|
'& .MuiChip-icon': {
|
3371
3494
|
margin: 0
|
@@ -3377,10 +3500,10 @@ var ReduxChip = {
|
|
3377
3500
|
clickable: true,
|
3378
3501
|
mode: 'light'
|
3379
3502
|
},
|
3380
|
-
style: function style(
|
3503
|
+
style: function style(_ref14) {
|
3381
3504
|
var _theme$palette$ownerS4;
|
3382
|
-
var theme =
|
3383
|
-
ownerState =
|
3505
|
+
var theme = _ref14.theme,
|
3506
|
+
ownerState = _ref14.ownerState;
|
3384
3507
|
return ownerState ? {
|
3385
3508
|
'&:hover': {
|
3386
3509
|
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 +4378,7 @@ var getDesignTokens = function getDesignTokens(_ref) {
|
|
4255
4378
|
MuiTypography: RabexTypography.components,
|
4256
4379
|
MuiTabs: RabexTabs.components,
|
4257
4380
|
MuiTab: RabexTab.components,
|
4258
|
-
MuiChip:
|
4381
|
+
MuiChip: RabexChip.components,
|
4259
4382
|
MuiPaper: RabexPaper.components,
|
4260
4383
|
MuiDivider: RabexDivider.components,
|
4261
4384
|
MuiTooltip: RabexTooltip.components,
|
@@ -4343,7 +4466,7 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
|
|
4343
4466
|
};
|
4344
4467
|
|
4345
4468
|
var _styled;
|
4346
|
-
var _excluded$
|
4469
|
+
var _excluded$f = ["className"];
|
4347
4470
|
/**
|
4348
4471
|
*
|
4349
4472
|
* Tooltips display informative text when users hover over, focus on, or tap an element.
|
@@ -4368,7 +4491,7 @@ var MuiTooltipStyled = /*#__PURE__*/styled(MuiTooltip, {
|
|
4368
4491
|
// tooltip popper hasn't permission for wrap text
|
4369
4492
|
var NoMaxWidthTooltip = /*#__PURE__*/styled$1(function (_ref) {
|
4370
4493
|
var className = _ref.className,
|
4371
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
4494
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
4372
4495
|
return React.createElement(MuiTooltipStyled, Object.assign({}, props, {
|
4373
4496
|
classes: {
|
4374
4497
|
popper: className
|
@@ -4555,7 +4678,7 @@ var Fade = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4555
4678
|
}, props));
|
4556
4679
|
});
|
4557
4680
|
|
4558
|
-
var _excluded$
|
4681
|
+
var _excluded$g = ["name"];
|
4559
4682
|
/**
|
4560
4683
|
* Formik Input let users enter and edit text.
|
4561
4684
|
*
|
@@ -4567,7 +4690,7 @@ var _excluded$f = ["name"];
|
|
4567
4690
|
*/
|
4568
4691
|
var FormikInput = function FormikInput(_ref) {
|
4569
4692
|
var name = _ref.name,
|
4570
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
4693
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
4571
4694
|
var _useField = useField(name),
|
4572
4695
|
field = _useField[0],
|
4573
4696
|
meta = _useField[1];
|
@@ -4578,7 +4701,7 @@ var FormikInput = function FormikInput(_ref) {
|
|
4578
4701
|
}));
|
4579
4702
|
};
|
4580
4703
|
|
4581
|
-
var _excluded$
|
4704
|
+
var _excluded$h = ["helperText", "name"];
|
4582
4705
|
/**
|
4583
4706
|
* Formik Select let users enter and edit text.
|
4584
4707
|
*
|
@@ -4591,7 +4714,7 @@ var _excluded$g = ["helperText", "name"];
|
|
4591
4714
|
var FormikSelect = function FormikSelect(_ref) {
|
4592
4715
|
var helperText = _ref.helperText,
|
4593
4716
|
name = _ref.name,
|
4594
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
4717
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
4595
4718
|
var _useField = useField(name),
|
4596
4719
|
field = _useField[0],
|
4597
4720
|
meta = _useField[1];
|
@@ -4609,7 +4732,7 @@ var FormikSelect = function FormikSelect(_ref) {
|
|
4609
4732
|
}, text));
|
4610
4733
|
};
|
4611
4734
|
|
4612
|
-
var _excluded$
|
4735
|
+
var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption"];
|
4613
4736
|
function _handleHelperColor$1(props, key) {
|
4614
4737
|
var _props$key;
|
4615
4738
|
if (props.error) return 'error.A100';
|
@@ -4650,7 +4773,7 @@ var TextField = function TextField(props) {
|
|
4650
4773
|
onChange = _ref.onChange,
|
4651
4774
|
valueFormat = _ref.valueFormat,
|
4652
4775
|
valueFormatOption = _ref.valueFormatOption,
|
4653
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
4776
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
4654
4777
|
if (!valueFormat && !!valueFormatOption) {
|
4655
4778
|
console.warn("'valueFormatOption' Only Work With known 'valueFormat's...");
|
4656
4779
|
}
|
@@ -4714,7 +4837,7 @@ TextField.defaultProps = {
|
|
4714
4837
|
}
|
4715
4838
|
};
|
4716
4839
|
|
4717
|
-
var _excluded$
|
4840
|
+
var _excluded$j = ["name"];
|
4718
4841
|
/**
|
4719
4842
|
* Formik TextField let users enter and edit text.
|
4720
4843
|
*
|
@@ -4726,7 +4849,7 @@ var _excluded$i = ["name"];
|
|
4726
4849
|
*/
|
4727
4850
|
var FormikTextField = function FormikTextField(_ref) {
|
4728
4851
|
var name = _ref.name,
|
4729
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
4852
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
4730
4853
|
var _useField = useField(name),
|
4731
4854
|
field = _useField[0],
|
4732
4855
|
meta = _useField[1];
|
@@ -4840,7 +4963,7 @@ var Modal = function Modal(_ref) {
|
|
4840
4963
|
return React.createElement(MuiModal, Object.assign({}, props));
|
4841
4964
|
};
|
4842
4965
|
|
4843
|
-
var _excluded$
|
4966
|
+
var _excluded$k = ["hasCloseButton", "iconCloseProps", "closeButtonProps", "headerProps"],
|
4844
4967
|
_excluded2$3 = ["sx"],
|
4845
4968
|
_excluded3$1 = ["sx"],
|
4846
4969
|
_excluded4$1 = ["sx"];
|
@@ -4854,7 +4977,7 @@ var ModalContent = function ModalContent(_ref) {
|
|
4854
4977
|
iconCloseProps = _ref.iconCloseProps,
|
4855
4978
|
closeButtonProps = _ref.closeButtonProps,
|
4856
4979
|
headerProps = _ref.headerProps,
|
4857
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
4980
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
4858
4981
|
var _ref2 = props || {},
|
4859
4982
|
rootSx = _ref2.sx,
|
4860
4983
|
root = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
@@ -5228,7 +5351,7 @@ SeeMore.defaultProps = {
|
|
5228
5351
|
height: '56%'
|
5229
5352
|
};
|
5230
5353
|
|
5231
|
-
var _excluded$
|
5354
|
+
var _excluded$l = ["inputProps", "children"];
|
5232
5355
|
/**
|
5233
5356
|
* This is a custom wrapper component made of Material-UI Button.
|
5234
5357
|
* Props of the Button component are also available.
|
@@ -5246,7 +5369,7 @@ var _excluded$k = ["inputProps", "children"];
|
|
5246
5369
|
var UploadButton = function UploadButton(_ref) {
|
5247
5370
|
var inputProps = _ref.inputProps,
|
5248
5371
|
children = _ref.children,
|
5249
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
5372
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
5250
5373
|
return React.createElement(Button, Object.assign({}, props), children, React.createElement("input", Object.assign({
|
5251
5374
|
hidden: true,
|
5252
5375
|
type: "file",
|
@@ -5275,5 +5398,135 @@ var Zoom = function Zoom(_ref) {
|
|
5275
5398
|
return React.createElement(MuiZoom, Object.assign({}, props));
|
5276
5399
|
};
|
5277
5400
|
|
5278
|
-
|
5401
|
+
var _excluded$m = ["theme"];
|
5402
|
+
/**
|
5403
|
+
* SegmentedControl component for switching between views.
|
5404
|
+
*
|
5405
|
+
* This component is built on top of Material-UI Tabs and supports additional props
|
5406
|
+
* for customizing size, border, and separation of tabs.
|
5407
|
+
*
|
5408
|
+
* @param props
|
5409
|
+
* @returns JSX.Element
|
5410
|
+
*/
|
5411
|
+
var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
|
5412
|
+
name: 'SegmentedControl',
|
5413
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
5414
|
+
return !['size', 'isSeparate', 'hasBorder'].includes(prop);
|
5415
|
+
}
|
5416
|
+
})(function (_ref) {
|
5417
|
+
var theme = _ref.theme,
|
5418
|
+
ownerState = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
5419
|
+
return _extends({
|
5420
|
+
minHeight: 'unset',
|
5421
|
+
display: 'flex',
|
5422
|
+
backgroundColor: theme.palette.backgroundColor[200],
|
5423
|
+
'& .MuiTabs-flexContainer': {
|
5424
|
+
gap: theme.spacing(1)
|
5425
|
+
}
|
5426
|
+
}, ownerState.size === 'sm' && {
|
5427
|
+
height: theme.spacing(8),
|
5428
|
+
borderRadius: theme.spacing(2),
|
5429
|
+
'&.MuiTab-root': {
|
5430
|
+
borderRadius: theme.spacing(1),
|
5431
|
+
height: theme.spacing(6),
|
5432
|
+
padding: theme.spacing(0, 3)
|
5433
|
+
},
|
5434
|
+
'&.MuiTab-root.Mui-selected': {
|
5435
|
+
color: 'inherit',
|
5436
|
+
borderRadius: theme.spacing(1)
|
5437
|
+
}
|
5438
|
+
}, ownerState.size === 'md' && {
|
5439
|
+
height: theme.spacing(12),
|
5440
|
+
borderRadius: theme.spacing(3),
|
5441
|
+
'& .MuiTab-root': {
|
5442
|
+
borderRadius: theme.spacing(2),
|
5443
|
+
height: theme.spacing(10),
|
5444
|
+
padding: theme.spacing(2, 3)
|
5445
|
+
},
|
5446
|
+
'& .MuiTab-root.Mui-selected': {
|
5447
|
+
color: 'inherit',
|
5448
|
+
borderRadius: theme.spacing(2)
|
5449
|
+
}
|
5450
|
+
}, ownerState.size === 'lg' && {
|
5451
|
+
height: theme.spacing(14),
|
5452
|
+
borderRadius: theme.spacing(3),
|
5453
|
+
'& .MuiTab-root': {
|
5454
|
+
borderRadius: theme.spacing(2),
|
5455
|
+
height: theme.spacing(12),
|
5456
|
+
padding: theme.spacing(3, 4)
|
5457
|
+
},
|
5458
|
+
'& .MuiTab-root.Mui-selected': {
|
5459
|
+
color: 'inherit',
|
5460
|
+
borderRadius: theme.spacing(2)
|
5461
|
+
}
|
5462
|
+
}, ownerState.isSeparate && {
|
5463
|
+
'& .MuiTabs-flexContainer': {
|
5464
|
+
gap: theme.spacing(1),
|
5465
|
+
padding: theme.spacing(1)
|
5466
|
+
},
|
5467
|
+
'& .MuiTab-root': {
|
5468
|
+
borderRadius: theme.spacing(1),
|
5469
|
+
padding: theme.spacing(2, 3)
|
5470
|
+
}
|
5471
|
+
}, ownerState.hasBorder && {
|
5472
|
+
border: "2px dotted " + theme.palette.divider,
|
5473
|
+
'& .MuiTab-root': {
|
5474
|
+
borderRadius: theme.spacing(1),
|
5475
|
+
border: "2px dotted " + theme.palette.divider,
|
5476
|
+
lineHeight: theme.spacing(2)
|
5477
|
+
}
|
5478
|
+
}, ownerState.variant === 'fullWidth' && {
|
5479
|
+
width: '100%'
|
5480
|
+
}, {
|
5481
|
+
// Remove indicator
|
5482
|
+
'& .MuiTabs-indicator': {
|
5483
|
+
display: 'none'
|
5484
|
+
}
|
5485
|
+
});
|
5486
|
+
});
|
5487
|
+
SegmentedControl.defaultProps = {
|
5488
|
+
variant: 'fullWidth',
|
5489
|
+
size: 'sm',
|
5490
|
+
isSeparate: false,
|
5491
|
+
hasBorder: false
|
5492
|
+
};
|
5493
|
+
|
5494
|
+
// Custom SegmentedControlTab with styled applied based on size
|
5495
|
+
var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
|
5496
|
+
return React.createElement(MuiTab, Object.assign({}, props, {
|
5497
|
+
label:
|
5498
|
+
// Render custom Typography for the label
|
5499
|
+
React.createElement(Typography, {
|
5500
|
+
variant: "body2",
|
5501
|
+
weight: "semiBold"
|
5502
|
+
}, props.label)
|
5503
|
+
}));
|
5504
|
+
})(function (_ref) {
|
5505
|
+
var theme = _ref.theme;
|
5506
|
+
return {
|
5507
|
+
minWidth: 80,
|
5508
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor[900] : theme.palette.textColor.A40,
|
5509
|
+
position: 'relative',
|
5510
|
+
minHeight: 24,
|
5511
|
+
borderRadius: 'unset',
|
5512
|
+
'&::after': {
|
5513
|
+
content: 'unset',
|
5514
|
+
display: 'none'
|
5515
|
+
},
|
5516
|
+
'&.MuiTab-root.Mui-selected': {
|
5517
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.base[50] : theme.palette.secondary.A80,
|
5518
|
+
color: theme.palette.textColor[900]
|
5519
|
+
},
|
5520
|
+
'&.Mui-disabled': {
|
5521
|
+
cursor: 'not-allowed',
|
5522
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A40 : theme.palette.textColor.A60
|
5523
|
+
},
|
5524
|
+
'& .MuiTab-iconWrapper': {
|
5525
|
+
fontSize: '14px'
|
5526
|
+
}
|
5527
|
+
};
|
5528
|
+
});
|
5529
|
+
SegmentedControlTab.defaultProps = {};
|
5530
|
+
|
5531
|
+
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
5532
|
//# sourceMappingURL=rabex-ui.esm.js.map
|