@vention/machine-ui 3.30.1 → 3.30.3

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.
Files changed (2) hide show
  1. package/index.esm.js +9 -21
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -1683,7 +1683,7 @@ function getButtonStylingPropertiesGivenProps(variant, size, theme) {
1683
1683
  button,
1684
1684
  border
1685
1685
  } = theme.palette;
1686
- const borderRadius = getBorderRadius$2(size);
1686
+ const borderRadius = getBorderRadius$2();
1687
1687
  switch (variant) {
1688
1688
  case "simple":
1689
1689
  {
@@ -1785,13 +1785,8 @@ function getButtonHeight(size, theme) {
1785
1785
  // 80px
1786
1786
  }
1787
1787
  }
1788
- function getBorderRadius$2(size) {
1789
- switch (size) {
1790
- case "small":
1791
- return "2px";
1792
- default:
1793
- return "4px";
1794
- }
1788
+ function getBorderRadius$2() {
1789
+ return "4px";
1795
1790
  }
1796
1791
 
1797
1792
  const defaultProps$8 = {
@@ -6917,7 +6912,7 @@ const useStyles$r = tss.withParams().create(({
6917
6912
  minWidth: theme.spacing(9),
6918
6913
  margin: 0,
6919
6914
  padding: 0,
6920
- borderRadius: getBorderRadius$1(size),
6915
+ borderRadius: getBorderRadius$1(),
6921
6916
  height: getInputHeight(size, theme),
6922
6917
  // Default state
6923
6918
  "& .MuiOutlinedInput-notchedOutline": {
@@ -6969,8 +6964,8 @@ const useStyles$r = tss.withParams().create(({
6969
6964
  boxSizing: "border-box",
6970
6965
  paddingRight: theme.spacing(2),
6971
6966
  paddingLeft: theme.spacing(2),
6972
- borderTopRightRadius: getBorderRadius$1(size),
6973
- borderBottomRightRadius: getBorderRadius$1(size),
6967
+ borderTopRightRadius: getBorderRadius$1(),
6968
+ borderBottomRightRadius: getBorderRadius$1(),
6974
6969
  backgroundColor: theme.palette.background.surface1,
6975
6970
  border: `1px solid ${theme.palette.divider}`,
6976
6971
  margin: 0
@@ -6984,8 +6979,8 @@ const useStyles$r = tss.withParams().create(({
6984
6979
  boxSizing: "border-box",
6985
6980
  paddingLeft: theme.spacing(2),
6986
6981
  paddingRight: theme.spacing(2),
6987
- borderTopLeftRadius: getBorderRadius$1(size),
6988
- borderBottomLeftRadius: getBorderRadius$1(size),
6982
+ borderTopLeftRadius: getBorderRadius$1(),
6983
+ borderBottomLeftRadius: getBorderRadius$1(),
6989
6984
  backgroundColor: theme.palette.background.surface1,
6990
6985
  border: `1px solid ${theme.palette.divider}`,
6991
6986
  margin: 0
@@ -6997,14 +6992,7 @@ const useStyles$r = tss.withParams().create(({
6997
6992
  };
6998
6993
  });
6999
6994
  const getBorderRadius$1 = size => {
7000
- switch (size) {
7001
- case "x-small":
7002
- return "2px";
7003
- case "small":
7004
- return "2px";
7005
- default:
7006
- return "4px";
7007
- }
6995
+ return "4px";
7008
6996
  };
7009
6997
  const getLabelColor = (state, theme) => {
7010
6998
  switch (state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-ui",
3
- "version": "3.30.1",
3
+ "version": "3.30.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"