@sinco/react 1.2.3-rc.17 → 1.2.3-rc.18

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/index.esm.js CHANGED
@@ -7369,9 +7369,6 @@ var components = {
7369
7369
  outlined: {
7370
7370
  paddingBlock: "13px"
7371
7371
  },
7372
- standard: {
7373
- // padding: "2px 0 5px"
7374
- },
7375
7372
  iconStandard: {
7376
7373
  "&.MuiSelect-iconStandard.MuiSvgIcon-root": {
7377
7374
  top: "calc(50% - .4em)"
@@ -8141,15 +8138,66 @@ var components = {
8141
8138
  }
8142
8139
  }],
8143
8140
  styleOverrides: {
8144
- message: {
8145
- padding: "0px 0px",
8146
- minWidth: 0
8141
+ message: function message(_ref8) {
8142
+ var theme = _ref8.theme;
8143
+ return {
8144
+ padding: "0px 4px",
8145
+ minWidth: 0,
8146
+ variants: [{
8147
+ props: {
8148
+ variant: "standard"
8149
+ },
8150
+ style: {
8151
+ color: theme.palette.text.primary
8152
+ }
8153
+ }]
8154
+ };
8147
8155
  },
8148
- icon: {
8149
- padding: "4px",
8150
- marginRight: 0,
8151
- display: "flex",
8152
- alignItems: "center"
8156
+ icon: function icon(_ref9) {
8157
+ var theme = _ref9.theme;
8158
+ return {
8159
+ padding: "4px",
8160
+ marginRight: 0,
8161
+ display: "flex",
8162
+ alignItems: "center",
8163
+ variants: [{
8164
+ props: {
8165
+ variant: "standard",
8166
+ color: "success"
8167
+ },
8168
+ style: {
8169
+ backgroundColor: theme.palette.success[100],
8170
+ borderRadius: 100
8171
+ }
8172
+ }, {
8173
+ props: {
8174
+ variant: "standard",
8175
+ color: "error"
8176
+ },
8177
+ style: {
8178
+ backgroundColor: theme.palette.error[100],
8179
+ borderRadius: 100
8180
+ }
8181
+ }, {
8182
+ props: {
8183
+ variant: "standard",
8184
+ color: "info"
8185
+ },
8186
+ style: {
8187
+ backgroundColor: theme.palette.info[100],
8188
+ borderRadius: 100
8189
+ }
8190
+ }, {
8191
+ props: {
8192
+ variant: "standard",
8193
+ color: "warning"
8194
+ },
8195
+ style: {
8196
+ backgroundColor: theme.palette.warning[100],
8197
+ borderRadius: 100
8198
+ }
8199
+ }]
8200
+ };
8153
8201
  },
8154
8202
  action: {
8155
8203
  display: "flex",
@@ -8418,8 +8466,8 @@ var components = {
8418
8466
  },
8419
8467
  MuiInputLabel: {
8420
8468
  styleOverrides: {
8421
- asterisk: function asterisk(_ref8) {
8422
- var theme = _ref8.theme;
8469
+ asterisk: function asterisk(_ref10) {
8470
+ var theme = _ref10.theme;
8423
8471
  return {
8424
8472
  color: theme.palette.error.main
8425
8473
  };
@@ -17150,7 +17198,8 @@ var CardRadio = function CardRadio(_ref) {
17150
17198
  value = _ref.value,
17151
17199
  onChange = _ref.onChange,
17152
17200
  checked = _ref.checked,
17153
- sx = _ref.sx;
17201
+ sx = _ref.sx,
17202
+ sxContent = _ref.sxContent;
17154
17203
  var _useState = useState((_ref2 = checked || state === 'active') !== null && _ref2 !== void 0 ? _ref2 : false),
17155
17204
  _useState2 = _slicedToArray(_useState, 2),
17156
17205
  isChecked = _useState2[0],
@@ -17192,7 +17241,8 @@ var CardRadio = function CardRadio(_ref) {
17192
17241
  }, React__default.createElement(Stack, {
17193
17242
  justifyContent: 'space-between',
17194
17243
  flexDirection: RadioPosition === 'right' ? 'row' : 'row-reverse',
17195
- gap: RadioPosition === 'left' ? 1 : 0
17244
+ gap: RadioPosition === 'left' ? 1 : 0,
17245
+ sx: _objectSpread2({}, sxContent)
17196
17246
  }, React__default.createElement(Stack, {
17197
17247
  flexDirection: 'row',
17198
17248
  padding: '0px 16px 0 0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.2.3-rc.17",
3
+ "version": "1.2.3-rc.18",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -15,6 +15,7 @@ export interface CardRadioProps {
15
15
  value: string | number;
16
16
  checked?: boolean;
17
17
  sx?: SxProps;
18
+ sxContent?: SxProps;
18
19
  }
19
20
  export declare const CardRadio: FC<CardRadioProps>;
20
21
  export {};