@mw-kit/mw-ui 1.7.46 → 1.7.47
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/dist/components/Calendar/components/Basic/components/Main/styles.d.ts +4 -1
- package/dist/components/Calendar/components/Basic/interfaces.d.ts +4 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12582,7 +12582,15 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
|
12582
12582
|
bordered = props.bordered;
|
|
12583
12583
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'padding', 'bordered']);
|
|
12584
12584
|
|
|
12585
|
-
var _ref =
|
|
12585
|
+
var _ref = function () {
|
|
12586
|
+
if (!props.label) {
|
|
12587
|
+
return [function () {
|
|
12588
|
+
return null;
|
|
12589
|
+
}];
|
|
12590
|
+
}
|
|
12591
|
+
|
|
12592
|
+
return typeof props.label === 'function' ? [props.label] : [LabelContent, props.label];
|
|
12593
|
+
}(),
|
|
12586
12594
|
LabelComponent = _ref[0],
|
|
12587
12595
|
children = _ref[1];
|
|
12588
12596
|
|
|
@@ -12855,9 +12863,14 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12855
12863
|
var children = _ref2.children;
|
|
12856
12864
|
return React__default.createElement(Popup, Object.assign({
|
|
12857
12865
|
on: 'click',
|
|
12858
|
-
position: '
|
|
12866
|
+
position: 'left center',
|
|
12859
12867
|
inverted: true,
|
|
12860
|
-
wide: true
|
|
12868
|
+
wide: true,
|
|
12869
|
+
popperModifiers: {
|
|
12870
|
+
preventOverflow: {
|
|
12871
|
+
boundariesElement: 'window'
|
|
12872
|
+
}
|
|
12873
|
+
}
|
|
12861
12874
|
}, rule, {
|
|
12862
12875
|
trigger: React__default.createElement("div", null, children)
|
|
12863
12876
|
}));
|
|
@@ -13078,6 +13091,7 @@ var Header = styled.div(_templateObject3$a || (_templateObject3$a = _taggedTempl
|
|
|
13078
13091
|
var DayContainer = styled.button(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n overflow: hidden;\n\n ", ";\n\n ", "\n\n :disabled {\n color: ", ";\n }\n\n &,\n :after {\n transition-property: background-color, color, border-color;\n transition-timing-function: ease-in-out;\n transition-duration: 0.25s;\n }\n\n ", "\n"])), function (_ref8) {
|
|
13079
13092
|
var theme = _ref8.theme,
|
|
13080
13093
|
appearance = _ref8.appearance,
|
|
13094
|
+
activeColor = _ref8.activeColor,
|
|
13081
13095
|
onClick = _ref8.onClick;
|
|
13082
13096
|
|
|
13083
13097
|
if (!onClick) {
|
|
@@ -13093,9 +13107,9 @@ var DayContainer = styled.button(_templateObject4$8 || (_templateObject4$8 = _ta
|
|
|
13093
13107
|
} else if (appearance === 'highlight') {
|
|
13094
13108
|
return css(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n ", "\n "])), theme.getColor('blue', 30), hover('blue'));
|
|
13095
13109
|
} else if (appearance === 'active') {
|
|
13096
|
-
return css(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n color: ", ";\n :not(:last-child) {\n border-right-color: ", ";\n }\n ", "\n "])), theme.colors
|
|
13110
|
+
return css(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n color: ", ";\n :not(:last-child) {\n border-right-color: ", ";\n }\n ", "\n "])), theme.colors[activeColor], theme.colors.white, function (_ref9) {
|
|
13097
13111
|
var theme = _ref9.theme;
|
|
13098
|
-
return theme.colors
|
|
13112
|
+
return theme.colors[activeColor];
|
|
13099
13113
|
}, hover('white'));
|
|
13100
13114
|
}
|
|
13101
13115
|
|
|
@@ -13539,6 +13553,7 @@ var Main = React__default.forwardRef(function (props, ref) {
|
|
|
13539
13553
|
onMouseOut: onMouseOut,
|
|
13540
13554
|
disabled: disabled,
|
|
13541
13555
|
appearance: appearance,
|
|
13556
|
+
activeColor: details.activeColor || 'blue',
|
|
13542
13557
|
today: dateCompare(new Date(), date, 'eq', false) ? 1 : 0
|
|
13543
13558
|
}, day, details.indicator && React__default.createElement(DayIndicator, {
|
|
13544
13559
|
type: details.indicator
|