@sinco/react 1.2.0-rc.0 → 1.2.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.esm.js +33 -60
- package/package.json +1 -1
- package/src/lib/Theme/palette.d.ts +1 -0
- package/src/lib/Theme/theme.d.ts +1 -0
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:
|
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:
|
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: "
|
8545
|
+
backgroundColor: "#BCD0E3 !important",
|
8543
8546
|
"&.MuiChip-clickableColorPrimary": {
|
8544
|
-
backgroundColor: "
|
8547
|
+
backgroundColor: "#8FB1D0 !important"
|
8545
8548
|
}
|
8546
8549
|
}
|
8547
8550
|
},
|
8548
8551
|
"&.MuiChip-filledSecondary": {
|
8549
|
-
backgroundColor:
|
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: "
|
8554
|
+
backgroundColor: "#B3EBF2 !important",
|
8558
8555
|
"&.MuiChip-clickableColorSecondary": {
|
8559
|
-
backgroundColor: "
|
8556
|
+
backgroundColor: "#80DEEA !important"
|
8560
8557
|
}
|
8561
8558
|
}
|
8562
8559
|
},
|
8563
8560
|
"&.MuiChip-filledError": {
|
8564
|
-
backgroundColor:
|
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: "
|
8563
|
+
backgroundColor: "#F1C7C7 !important",
|
8573
8564
|
"&.MuiChip-clickableColorError": {
|
8574
|
-
backgroundColor: "
|
8565
|
+
backgroundColor: "#E8A1A1 !important"
|
8575
8566
|
}
|
8576
8567
|
}
|
8577
8568
|
},
|
8578
8569
|
"&.MuiChip-filledSuccess": {
|
8579
|
-
backgroundColor:
|
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: "
|
8572
|
+
backgroundColor: "#DDEFC4 !important",
|
8588
8573
|
"&.MuiChip-clickableColorSuccess": {
|
8589
|
-
backgroundColor: "
|
8574
|
+
backgroundColor: "#C7E49D !important"
|
8590
8575
|
}
|
8591
8576
|
}
|
8592
8577
|
},
|
8593
8578
|
"&.MuiChip-filledInfo": {
|
8594
|
-
backgroundColor:
|
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: "
|
8581
|
+
backgroundColor: "#C0E2EE !important",
|
8603
8582
|
"&.MuiChip-clickableColorInfo": {
|
8604
|
-
backgroundColor: "
|
8583
|
+
backgroundColor: "#96CFE2 !important"
|
8605
8584
|
}
|
8606
8585
|
}
|
8607
8586
|
},
|
8608
8587
|
"&.MuiChip-filledWarning": {
|
8609
|
-
backgroundColor:
|
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: "
|
8590
|
+
backgroundColor: "#FEDAB3 !important",
|
8618
8591
|
"&.MuiChip-clickableColorWarning": {
|
8619
|
-
backgroundColor: "
|
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
|
-
},
|
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 ||
|
16869
|
+
checked: isChecked || isChecked,
|
16897
16870
|
color: color,
|
16898
16871
|
disabled: state === 'disabled'
|
16899
16872
|
}))));
|
package/package.json
CHANGED
package/src/lib/Theme/theme.d.ts
CHANGED