@sinco/react 1.2.4-rc.6 → 1.2.4-rc.8

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 +91 -39
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -7356,9 +7356,6 @@ var components = {
7356
7356
  outlined: {
7357
7357
  paddingBlock: "13px"
7358
7358
  },
7359
- standard: {
7360
- // padding: "2px 0 5px"
7361
- },
7362
7359
  iconStandard: {
7363
7360
  "&.MuiSelect-iconStandard.MuiSvgIcon-root": {
7364
7361
  top: "calc(50% - .4em)"
@@ -7713,8 +7710,7 @@ var components = {
7713
7710
  }), ".MuiPaper-elevation", {
7714
7711
  boxShadow: "0px 1px 5px rgba(24, 39, 75, 0.12), 0px 2px 2px rgba(24, 39, 75, 0.14), 0px 3px 1px -2px rgba(24, 39, 75, 0.2) "
7715
7712
  }), ".MuiBackdrop-root", {
7716
- backgroundColor: "#f0f0f099",
7717
- backdropFilter: "blur(2px) !important"
7713
+ backgroundColor: "#00000047"
7718
7714
  });
7719
7715
  }
7720
7716
  }
@@ -8128,20 +8124,93 @@ var components = {
8128
8124
  }
8129
8125
  }],
8130
8126
  styleOverrides: {
8131
- message: {
8132
- padding: "0px 0px",
8133
- minWidth: 0
8127
+ message: function message(_ref8) {
8128
+ var theme = _ref8.theme;
8129
+ return {
8130
+ padding: "0px 4px",
8131
+ minWidth: 0,
8132
+ variants: [{
8133
+ props: {
8134
+ variant: "standard"
8135
+ },
8136
+ style: {
8137
+ color: theme.palette.text.primary
8138
+ }
8139
+ }, {
8140
+ props: {
8141
+ variant: "outlined"
8142
+ },
8143
+ style: {
8144
+ color: theme.palette.text.primary
8145
+ }
8146
+ }]
8147
+ };
8134
8148
  },
8135
- icon: {
8136
- padding: "4px",
8137
- marginRight: 0,
8138
- display: "flex",
8139
- alignItems: "center"
8149
+ icon: function icon(_ref9) {
8150
+ var theme = _ref9.theme;
8151
+ return {
8152
+ padding: "4px",
8153
+ marginRight: 0,
8154
+ display: "flex",
8155
+ alignItems: "center",
8156
+ borderRadius: 100,
8157
+ variants: [{
8158
+ props: {
8159
+ variant: "standard",
8160
+ color: "success"
8161
+ },
8162
+ style: {
8163
+ backgroundColor: theme.palette.success[100]
8164
+ }
8165
+ }, {
8166
+ props: {
8167
+ variant: "standard",
8168
+ color: "error"
8169
+ },
8170
+ style: {
8171
+ backgroundColor: theme.palette.error[100]
8172
+ }
8173
+ }, {
8174
+ props: {
8175
+ variant: "standard",
8176
+ color: "info"
8177
+ },
8178
+ style: {
8179
+ backgroundColor: theme.palette.info[100]
8180
+ }
8181
+ }, {
8182
+ props: {
8183
+ variant: "standard",
8184
+ color: "warning"
8185
+ },
8186
+ style: {
8187
+ backgroundColor: theme.palette.warning[100]
8188
+ }
8189
+ }]
8190
+ };
8140
8191
  },
8141
- action: {
8142
- display: "flex",
8143
- gap: 1.5,
8144
- padding: "0px"
8192
+ action: function action(_ref10) {
8193
+ var theme = _ref10.theme;
8194
+ return {
8195
+ display: "flex",
8196
+ gap: 1.5,
8197
+ padding: "0px",
8198
+ variants: [{
8199
+ props: {
8200
+ variant: "standard"
8201
+ },
8202
+ style: {
8203
+ color: theme.palette.action.active
8204
+ }
8205
+ }, {
8206
+ props: {
8207
+ variant: "outlined"
8208
+ },
8209
+ style: {
8210
+ color: theme.palette.action.active
8211
+ }
8212
+ }]
8213
+ };
8145
8214
  },
8146
8215
  root: {
8147
8216
  padding: "8px 12px 8px 12px",
@@ -8307,6 +8376,9 @@ var components = {
8307
8376
  }
8308
8377
  },
8309
8378
  MuiSvgIcon: {
8379
+ defaultProps: {
8380
+ color: "action"
8381
+ },
8310
8382
  styleOverrides: {
8311
8383
  fontSizeLarge: {
8312
8384
  width: 35,
@@ -8326,27 +8398,7 @@ var components = {
8326
8398
  }
8327
8399
  },
8328
8400
  MuiIconButton: {
8329
- defaultProps: {
8330
- color: "primary"
8331
- },
8332
8401
  styleOverrides: {
8333
- colorInherit: function colorInherit(_ref8) {
8334
- var theme = _ref8.theme;
8335
- return {
8336
- color: theme.palette.action.active
8337
- };
8338
- },
8339
- root: function root(_ref9) {
8340
- var theme = _ref9.theme;
8341
- return {
8342
- "&:hover": {
8343
- backgroundColor: "rgba(16, 24, 64, 0.04)"
8344
- },
8345
- "&>.MuiSvgIcon-root": {
8346
- color: theme.palette.action.active
8347
- }
8348
- };
8349
- },
8350
8402
  sizeSmall: {
8351
8403
  padding: 3
8352
8404
  },
@@ -8425,8 +8477,8 @@ var components = {
8425
8477
  },
8426
8478
  MuiInputLabel: {
8427
8479
  styleOverrides: {
8428
- asterisk: function asterisk(_ref10) {
8429
- var theme = _ref10.theme;
8480
+ asterisk: function asterisk(_ref11) {
8481
+ var theme = _ref11.theme;
8430
8482
  return {
8431
8483
  color: theme.palette.error.main
8432
8484
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.2.4-rc.6",
3
+ "version": "1.2.4-rc.8",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",