@sinco/react 1.2.0-rc.0 → 1.2.0-rc.2

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
@@ -8500,6 +8500,9 @@ var components = {
8500
8500
  }
8501
8501
  },
8502
8502
  MuiChip: {
8503
+ defaultProps: {
8504
+ color: "primary"
8505
+ },
8503
8506
  styleOverrides: {
8504
8507
  sizeSmall: {
8505
8508
  height: 16
@@ -8527,101 +8530,70 @@ var components = {
8527
8530
  height: 20,
8528
8531
  width: 20
8529
8532
  },
8530
- color: SincoTheme.palette.text.primary
8533
+ color: "#101840de",
8534
+ ".MuiChip-deleteIcon": {
8535
+ color: "#1018408a",
8536
+ "&:hover": {
8537
+ color: "#1018408a"
8538
+ }
8539
+ }
8531
8540
  },
8532
8541
  filled: {
8533
8542
  "&.MuiChip-filledPrimary": {
8534
- backgroundColor: SincoTheme.palette.primary[100],
8535
- ".MuiChip-deleteIconColorPrimary": {
8536
- color: SincoTheme.palette.action.active,
8537
- "&:hover": {
8538
- color: SincoTheme.palette.action.active
8539
- }
8540
- },
8543
+ backgroundColor: "#BCD0E3",
8541
8544
  "&:hover": {
8542
- backgroundColor: "".concat(SincoTheme.palette.primary[100], " !important"),
8545
+ backgroundColor: "#BCD0E3 !important",
8543
8546
  "&.MuiChip-clickableColorPrimary": {
8544
- backgroundColor: "".concat(SincoTheme.palette.primary[200], " !important")
8547
+ backgroundColor: "#8FB1D0 !important"
8545
8548
  }
8546
8549
  }
8547
8550
  },
8548
8551
  "&.MuiChip-filledSecondary": {
8549
- backgroundColor: SincoTheme.palette.secondary[100],
8550
- ".MuiChip-deleteIconColorSecondary": {
8551
- color: SincoTheme.palette.action.active,
8552
- "&:hover": {
8553
- color: SincoTheme.palette.action.active
8554
- }
8555
- },
8552
+ backgroundColor: "#B3EBF2",
8556
8553
  "&:hover": {
8557
- backgroundColor: "".concat(SincoTheme.palette.secondary[100], " !important"),
8554
+ backgroundColor: "#B3EBF2 !important",
8558
8555
  "&.MuiChip-clickableColorSecondary": {
8559
- backgroundColor: "".concat(SincoTheme.palette.secondary[200], " !important")
8556
+ backgroundColor: "#80DEEA !important"
8560
8557
  }
8561
8558
  }
8562
8559
  },
8563
8560
  "&.MuiChip-filledError": {
8564
- backgroundColor: SincoTheme.palette.error[100],
8565
- ".MuiChip-deleteIconColorError": {
8566
- color: SincoTheme.palette.action.active,
8567
- "&:hover": {
8568
- color: SincoTheme.palette.action.active
8569
- }
8570
- },
8561
+ backgroundColor: "#F1C7C7",
8571
8562
  "&:hover": {
8572
- backgroundColor: "".concat(SincoTheme.palette.error[100], " !important"),
8563
+ backgroundColor: "#F1C7C7 !important",
8573
8564
  "&.MuiChip-clickableColorError": {
8574
- backgroundColor: "".concat(SincoTheme.palette.error[200], " !important")
8565
+ backgroundColor: "#E8A1A1 !important"
8575
8566
  }
8576
8567
  }
8577
8568
  },
8578
8569
  "&.MuiChip-filledSuccess": {
8579
- backgroundColor: SincoTheme.palette.success[100],
8580
- ".MuiChip-deleteIconColorSuccess": {
8581
- color: SincoTheme.palette.action.active,
8582
- "&:hover": {
8583
- color: SincoTheme.palette.action.active
8584
- }
8585
- },
8570
+ backgroundColor: "#DDEFC4",
8586
8571
  "&:hover": {
8587
- backgroundColor: "".concat(SincoTheme.palette.success[100], " !important"),
8572
+ backgroundColor: "#DDEFC4 !important",
8588
8573
  "&.MuiChip-clickableColorSuccess": {
8589
- backgroundColor: "".concat(SincoTheme.palette.success[200], " !important")
8574
+ backgroundColor: "#C7E49D !important"
8590
8575
  }
8591
8576
  }
8592
8577
  },
8593
8578
  "&.MuiChip-filledInfo": {
8594
- backgroundColor: SincoTheme.palette.info[100],
8595
- ".MuiChip-deleteIconColorInfo": {
8596
- color: SincoTheme.palette.action.active,
8597
- "&:hover": {
8598
- color: SincoTheme.palette.action.active
8599
- }
8600
- },
8579
+ backgroundColor: "#C0E2EE",
8601
8580
  "&:hover": {
8602
- backgroundColor: "".concat(SincoTheme.palette.info[100], " !important"),
8581
+ backgroundColor: "#C0E2EE !important",
8603
8582
  "&.MuiChip-clickableColorInfo": {
8604
- backgroundColor: "".concat(SincoTheme.palette.info[200], " !important")
8583
+ backgroundColor: "#96CFE2 !important"
8605
8584
  }
8606
8585
  }
8607
8586
  },
8608
8587
  "&.MuiChip-filledWarning": {
8609
- backgroundColor: SincoTheme.palette.warning[100],
8610
- ".MuiChip-deleteIconColorWarning": {
8611
- color: SincoTheme.palette.action.active,
8612
- "&:hover": {
8613
- color: SincoTheme.palette.action.active
8614
- }
8615
- },
8588
+ backgroundColor: "#FEDAB3",
8616
8589
  "&:hover": {
8617
- backgroundColor: "".concat(SincoTheme.palette.warning[100], " !important"),
8590
+ backgroundColor: "#FEDAB3 !important",
8618
8591
  "&.MuiChip-clickableColorWarning": {
8619
- backgroundColor: "".concat(SincoTheme.palette.warning[200], " !important")
8592
+ backgroundColor: "#FDC280 !important"
8620
8593
  }
8621
8594
  }
8622
8595
  }
8623
- },
8624
- outlined: {}
8596
+ }
8625
8597
  }
8626
8598
  },
8627
8599
  MuiAlert: {
@@ -16827,7 +16799,8 @@ var CardRadio = function CardRadio(_ref) {
16827
16799
  var _ref2;
16828
16800
  var _ref$RadioPosition = _ref.RadioPosition,
16829
16801
  RadioPosition = _ref$RadioPosition === void 0 ? 'right' : _ref$RadioPosition,
16830
- state = _ref.state,
16802
+ _ref$state = _ref.state,
16803
+ state = _ref$state === void 0 ? 'default' : _ref$state,
16831
16804
  media = _ref.media,
16832
16805
  header = _ref.header,
16833
16806
  content = _ref.content,
@@ -16887,13 +16860,13 @@ var CardRadio = function CardRadio(_ref) {
16887
16860
  }, media && React__default.createElement(Stack, null, media), React__default.createElement(Stack, null, header && React__default.createElement(Typography, {
16888
16861
  variant: "subtitle2",
16889
16862
  color: state === 'disabled' ? 'text.disabled' : isActive ? 'text.primary' : 'text.primary'
16890
- }, content), content && React__default.createElement(Typography, {
16863
+ }, header), content && React__default.createElement(Typography, {
16891
16864
  variant: "caption",
16892
16865
  color: state === 'disabled' ? 'text.disabled' : isActive ? 'text.secondary' : 'text.secondary'
16893
16866
  }, content))), React__default.createElement(Stack, {
16894
16867
  justifyContent: topRadioPosition === true ? 'flex-start' : 'center'
16895
16868
  }, React__default.createElement(Radio, {
16896
- checked: isChecked || isActive,
16869
+ checked: isChecked || isChecked,
16897
16870
  color: color,
16898
16871
  disabled: state === 'disabled'
16899
16872
  }))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.2.0-rc.0",
3
+ "version": "1.2.0-rc.2",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,3 +1,4 @@
1
1
  import { PaletteOptions } from "@mui/material";
2
2
  export declare const palette: PaletteOptions;
3
3
  export declare const paletteAdpro: PaletteOptions;
4
+ export declare const paletteADC: PaletteOptions;
@@ -1,3 +1,4 @@
1
1
  import { ThemeOptions } from "@mui/material/styles";
2
2
  export declare const themeOptions: ThemeOptions;
3
3
  export declare const themeAdproOptions: ThemeOptions;
4
+ export declare const themeAdcOptions: ThemeOptions;