Skip to content

Commit 31e1e4f

Browse files
committed
v0.15.12
1 parent 888b949 commit 31e1e4f

9 files changed

+54
-22
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.15.12](https://github.com/linewalks/MDwalks-UI/compare/v0.15.11...v0.15.12) (2022-09-21)
2+
3+
4+
15
## [0.15.11](https://github.com/linewalks/MDwalks-UI/compare/v0.15.10...v0.15.11) (2022-08-29)
26

37

dist/index.esm.js

+22-8
Original file line numberDiff line numberDiff line change
@@ -29725,9 +29725,21 @@ var BtnSize = {
2972529725
fontSize: 14,
2972629726
padding: '7px 18px'
2972729727
}
29728+
},
29729+
small: {
29730+
box: {
29731+
height: 32,
29732+
padding: 2
29733+
},
29734+
button: {
29735+
minWidth: 85,
29736+
height: 28,
29737+
fontSize: 14,
29738+
padding: '5px 16px'
29739+
}
2972829740
}
2972929741
};
29730-
var BoxShadow = css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n box-shadow: ", "\n"], ["\n box-shadow: ", "\n"])), function (props) {
29742+
var BoxShadow = css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n box-shadow: ", ";\n"], ["\n box-shadow: ", ";\n"])), function (props) {
2973129743
return props.selected ? '0 1px 8px 0 rgba(117, 127, 139, 0.36);' : null;
2973229744
});
2973329745
var ButtonContainer = styled.section(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n padding: 2px;\n display: table;\n"], ["\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n padding: 2px;\n display: table;\n"])), function (props) {
@@ -29763,15 +29775,14 @@ function (_super) {
2976329775
function ToggleButton(props) {
2976429776
var _this = _super.call(this, props) || this;
2976529777

29766-
_this.changeBtn = function (e) {
29767-
var value = e.target.value;
29778+
_this.changeBtn = function (type) {
2976829779
var onChange = _this.props.onChange;
2976929780

2977029781
_this.setState({
29771-
active: value
29782+
active: type
2977229783
});
2977329784

29774-
onChange(value);
29785+
onChange(type);
2977529786
};
2977629787

2977729788
var data = _this.props.data;
@@ -29792,7 +29803,8 @@ function (_super) {
2979229803
size = _a.size;
2979329804
var BtnSizeObject = {
2979429805
md: BtnSize.middle,
29795-
lg: BtnSize.large
29806+
lg: BtnSize.large,
29807+
sm: BtnSize.small
2979629808
}[size];
2979729809
return /*#__PURE__*/React.createElement(ButtonContainer, {
2979829810
height: BtnSizeObject.box.height
@@ -29803,7 +29815,9 @@ function (_super) {
2980329815
var selectedCheck = active === type;
2980429816
return /*#__PURE__*/React.createElement(ToggleBtn, {
2980529817
key: type,
29806-
onClick: _this.changeBtn,
29818+
onClick: function () {
29819+
return _this.changeBtn(type);
29820+
},
2980729821
selected: selectedCheck,
2980829822
disabled: selectedCheck,
2980929823
value: type,
@@ -29992,7 +30006,7 @@ ProgressBar.defaultProps = {
2999230006
strokeColor: null
2999330007
};
2999430008

29995-
var version = "0.15.11";
30009+
var version = "0.15.12";
2999630010

2999730011
export { BarChart, BarChartMulti, BarGauge, Button, ButtonLink, ButtonTextLink, ChartColor$1 as ChartColor, CheckBox, CheckList, DateUtility, Descriptions, EmptyPlaceHolder, Footer$1 as Footer, Heading, Histogram, Image, LineChart, LineMergeTimeline, Modal, Navbar, Pagination, PieChart, ProgressBar, RadarChart, RadioList, RadiusGauge, SankeyChart, SelectBox, SelectedCard, SummaryCard, Table$1 as Table, Tabs, TextLink, TimeToEvent, Timeline, index as Toast, ToggleButton, Tooltip, TooltipBox, TreeMap, chartUtility, commonTag, font$1 as font, tableProperties, variables, version };
2999830012
//# sourceMappingURL=index.esm.js.map

dist/index.esm.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

+22-8
Original file line numberDiff line numberDiff line change
@@ -29756,9 +29756,21 @@ var BtnSize = {
2975629756
fontSize: 14,
2975729757
padding: '7px 18px'
2975829758
}
29759+
},
29760+
small: {
29761+
box: {
29762+
height: 32,
29763+
padding: 2
29764+
},
29765+
button: {
29766+
minWidth: 85,
29767+
height: 28,
29768+
fontSize: 14,
29769+
padding: '5px 16px'
29770+
}
2975929771
}
2976029772
};
29761-
var BoxShadow = styled.css(templateObject_1$1 || (templateObject_1$1 = tslib.__makeTemplateObject(["\n box-shadow: ", "\n"], ["\n box-shadow: ", "\n"])), function (props) {
29773+
var BoxShadow = styled.css(templateObject_1$1 || (templateObject_1$1 = tslib.__makeTemplateObject(["\n box-shadow: ", ";\n"], ["\n box-shadow: ", ";\n"])), function (props) {
2976229774
return props.selected ? '0 1px 8px 0 rgba(117, 127, 139, 0.36);' : null;
2976329775
});
2976429776
var ButtonContainer = styled__default["default"].section(templateObject_2 || (templateObject_2 = tslib.__makeTemplateObject(["\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n padding: 2px;\n display: table;\n"], ["\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n padding: 2px;\n display: table;\n"])), function (props) {
@@ -29794,15 +29806,14 @@ function (_super) {
2979429806
function ToggleButton(props) {
2979529807
var _this = _super.call(this, props) || this;
2979629808

29797-
_this.changeBtn = function (e) {
29798-
var value = e.target.value;
29809+
_this.changeBtn = function (type) {
2979929810
var onChange = _this.props.onChange;
2980029811

2980129812
_this.setState({
29802-
active: value
29813+
active: type
2980329814
});
2980429815

29805-
onChange(value);
29816+
onChange(type);
2980629817
};
2980729818

2980829819
var data = _this.props.data;
@@ -29823,7 +29834,8 @@ function (_super) {
2982329834
size = _a.size;
2982429835
var BtnSizeObject = {
2982529836
md: BtnSize.middle,
29826-
lg: BtnSize.large
29837+
lg: BtnSize.large,
29838+
sm: BtnSize.small
2982729839
}[size];
2982829840
return /*#__PURE__*/React__default["default"].createElement(ButtonContainer, {
2982929841
height: BtnSizeObject.box.height
@@ -29834,7 +29846,9 @@ function (_super) {
2983429846
var selectedCheck = active === type;
2983529847
return /*#__PURE__*/React__default["default"].createElement(ToggleBtn, {
2983629848
key: type,
29837-
onClick: _this.changeBtn,
29849+
onClick: function () {
29850+
return _this.changeBtn(type);
29851+
},
2983829852
selected: selectedCheck,
2983929853
disabled: selectedCheck,
2984029854
value: type,
@@ -30023,7 +30037,7 @@ ProgressBar.defaultProps = {
3002330037
strokeColor: null
3002430038
};
3002530039

30026-
var version = "0.15.11";
30040+
var version = "0.15.12";
3002730041

3002830042
exports.BarChart = BarChart;
3002930043
exports.BarChartMulti = BarChartMulti;

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/bundle.2f780007.js docs/build/bundle.40ae8829.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
</head>
1010
<body>
1111
<div id="rsg-root"></div>
12-
<script src="build/bundle.2f780007.js"></script>
12+
<script src="build/bundle.40ae8829.js"></script>
1313
</body>
1414
</html>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MDwalks-UI",
3-
"version": "0.15.11",
3+
"version": "0.15.12",
44
"main": "dist/index.js",
55
"module": "dist/index.esm.js",
66
"scripts": {

0 commit comments

Comments
 (0)