@rabex-kit/rabex-ui 0.1.36 → 0.1.40
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/IconButton/index.d.ts +2 -0
- package/dist/Theme/IconButton/index.d.ts +55 -6
- package/dist/rabex-ui.cjs.development.js +103 -7
- 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 +103 -7
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -1262,14 +1262,15 @@ var Grid = function Grid(_ref) {
|
|
1262
1262
|
var IconButton = /*#__PURE__*/styled(MuiIconButton, {
|
1263
1263
|
name: 'MuiIconButton',
|
1264
1264
|
shouldForwardProp: function shouldForwardProp(prop) {
|
1265
|
-
return
|
1265
|
+
return !['hasBg', 'disableOpacity'].includes(prop.toString());
|
1266
1266
|
}
|
1267
1267
|
})(function () {
|
1268
1268
|
return {};
|
1269
1269
|
});
|
1270
1270
|
IconButton.defaultProps = {
|
1271
1271
|
variant: 'circular',
|
1272
|
-
hasBg: false
|
1272
|
+
hasBg: false,
|
1273
|
+
disableOpacity: false
|
1273
1274
|
};
|
1274
1275
|
|
1275
1276
|
function _handleHelperColor(props, key) {
|
@@ -3857,11 +3858,7 @@ var RabexIconButton = {
|
|
3857
3858
|
root: function root(_ref) {
|
3858
3859
|
var ownerState = _ref.ownerState,
|
3859
3860
|
theme = _ref.theme;
|
3860
|
-
return _extends({
|
3861
|
-
'& .MuiIconButton': {
|
3862
|
-
color: 'inherit'
|
3863
|
-
}
|
3864
|
-
}, ownerState.variant === 'circular' && {
|
3861
|
+
return _extends({}, ownerState.variant === 'circular' && {
|
3865
3862
|
borderRadius: '50%'
|
3866
3863
|
}, ownerState.variant === 'rounded' && {
|
3867
3864
|
borderRadius: 8
|
@@ -3885,6 +3882,105 @@ var RabexIconButton = {
|
|
3885
3882
|
}
|
3886
3883
|
};
|
3887
3884
|
}
|
3885
|
+
}, {
|
3886
|
+
props: {
|
3887
|
+
disableOpacity: true
|
3888
|
+
},
|
3889
|
+
style: function style() {
|
3890
|
+
return {
|
3891
|
+
color: 'inherit'
|
3892
|
+
};
|
3893
|
+
}
|
3894
|
+
}, {
|
3895
|
+
props: {
|
3896
|
+
size: 'xs'
|
3897
|
+
},
|
3898
|
+
style: function style(_ref3) {
|
3899
|
+
var theme = _ref3.theme;
|
3900
|
+
return {
|
3901
|
+
'& svg': {
|
3902
|
+
fontSize: '16px',
|
3903
|
+
width: '16px',
|
3904
|
+
height: '16px'
|
3905
|
+
},
|
3906
|
+
height: '24px',
|
3907
|
+
width: '24px',
|
3908
|
+
padding: theme.spacing(1),
|
3909
|
+
borderRadius: theme.spacing(1)
|
3910
|
+
};
|
3911
|
+
}
|
3912
|
+
}, {
|
3913
|
+
props: {
|
3914
|
+
size: 'sm'
|
3915
|
+
},
|
3916
|
+
style: function style(_ref4) {
|
3917
|
+
var theme = _ref4.theme;
|
3918
|
+
return {
|
3919
|
+
'& svg': {
|
3920
|
+
fontSize: '16px',
|
3921
|
+
width: '16px',
|
3922
|
+
height: '16px'
|
3923
|
+
},
|
3924
|
+
height: '32',
|
3925
|
+
width: '32',
|
3926
|
+
padding: theme.spacing(2),
|
3927
|
+
borderRadius: theme.spacing(2)
|
3928
|
+
};
|
3929
|
+
}
|
3930
|
+
}, {
|
3931
|
+
props: {
|
3932
|
+
size: 'md'
|
3933
|
+
},
|
3934
|
+
style: function style(_ref5) {
|
3935
|
+
var theme = _ref5.theme;
|
3936
|
+
return {
|
3937
|
+
'& svg': {
|
3938
|
+
fontSize: '24px',
|
3939
|
+
width: '24px',
|
3940
|
+
height: '24px'
|
3941
|
+
},
|
3942
|
+
height: '40px',
|
3943
|
+
width: '40px',
|
3944
|
+
padding: theme.spacing(2),
|
3945
|
+
borderRadius: theme.spacing(2)
|
3946
|
+
};
|
3947
|
+
}
|
3948
|
+
}, {
|
3949
|
+
props: {
|
3950
|
+
size: 'lg'
|
3951
|
+
},
|
3952
|
+
style: function style(_ref6) {
|
3953
|
+
var theme = _ref6.theme;
|
3954
|
+
return {
|
3955
|
+
'& svg': {
|
3956
|
+
fontSize: '24px',
|
3957
|
+
width: '24px',
|
3958
|
+
height: '24px'
|
3959
|
+
},
|
3960
|
+
height: '48px',
|
3961
|
+
width: '48px',
|
3962
|
+
padding: theme.spacing(3),
|
3963
|
+
borderRadius: theme.spacing(2)
|
3964
|
+
};
|
3965
|
+
}
|
3966
|
+
}, {
|
3967
|
+
props: {
|
3968
|
+
size: 'xl'
|
3969
|
+
},
|
3970
|
+
style: function style(_ref7) {
|
3971
|
+
var theme = _ref7.theme;
|
3972
|
+
return {
|
3973
|
+
'& svg': {
|
3974
|
+
fontSize: '24px',
|
3975
|
+
width: '24px',
|
3976
|
+
height: '24px'
|
3977
|
+
},
|
3978
|
+
height: '56px',
|
3979
|
+
width: '56px',
|
3980
|
+
borderRadius: theme.spacing(2),
|
3981
|
+
padding: theme.spacing(4)
|
3982
|
+
};
|
3983
|
+
}
|
3888
3984
|
}]
|
3889
3985
|
}
|
3890
3986
|
};
|