@mw-kit/mw-ui 1.7.62 → 1.7.64
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/Input/components/Range/styles/Input/index.d.ts +4 -2
- package/dist/components/Input/components/Range/styles/NavBar/index.d.ts +2 -1
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tabs/interfaces.d.ts +6 -2
- package/dist/components/Tabs/styles.d.ts +8 -3
- package/dist/index.js +98 -109
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +98 -109
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/close~FwxcSsAB.svg +0 -1
package/dist/index.modern.js
CHANGED
|
@@ -15602,18 +15602,21 @@ var Switch = function Switch(props) {
|
|
|
15602
15602
|
};
|
|
15603
15603
|
|
|
15604
15604
|
var _templateObject$q, _templateObject2$m;
|
|
15605
|
-
var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n box-shadow: 0px 1px 3px ", ";\n\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n"])), function (_ref) {
|
|
15606
|
-
var
|
|
15607
|
-
return
|
|
15605
|
+
var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", "px;\n height: ", "px;\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n box-shadow: 0px 1px 3px ", ";\n box-sizing: border-box;\n\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n"])), function (_ref) {
|
|
15606
|
+
var bulletSize = _ref.$bulletSize;
|
|
15607
|
+
return bulletSize;
|
|
15608
15608
|
}, function (_ref2) {
|
|
15609
|
-
var
|
|
15610
|
-
return
|
|
15609
|
+
var bulletSize = _ref2.$bulletSize;
|
|
15610
|
+
return bulletSize;
|
|
15611
15611
|
}, function (_ref3) {
|
|
15612
15612
|
var theme = _ref3.theme;
|
|
15613
|
-
return theme.
|
|
15613
|
+
return theme.colors.platinum;
|
|
15614
15614
|
}, function (_ref4) {
|
|
15615
|
-
var theme = _ref4.theme
|
|
15616
|
-
|
|
15615
|
+
var theme = _ref4.theme;
|
|
15616
|
+
return theme.getColor('black', 10);
|
|
15617
|
+
}, function (_ref5) {
|
|
15618
|
+
var theme = _ref5.theme,
|
|
15619
|
+
activeBullet = _ref5.$activeBullet;
|
|
15617
15620
|
return theme.colors[activeBullet ? 'blue' : 'white'];
|
|
15618
15621
|
});
|
|
15619
15622
|
var Input$2 = styled.input(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: 100%;\n height: 10px;\n background-color: transparent;\n outline: none;\n position: relative;\n z-index: 3;\n margin: 0;\n\n :not(:disabled) {\n cursor: pointer;\n }\n\n /** firefox */\n ::-moz-range-thumb {\n ", "\n }\n /** ie */\n ::-ms-thumb {\n ", "\n }\n /** chrome */\n ::-webkit-slider-thumb {\n ", "\n }\n"])), bullet, bullet, bullet);
|
|
@@ -15646,47 +15649,26 @@ var LabelContainer$4 = styled.div(_templateObject$t || (_templateObject$t = _tag
|
|
|
15646
15649
|
});
|
|
15647
15650
|
|
|
15648
15651
|
var _templateObject$u, _templateObject2$o, _templateObject3$j;
|
|
15649
|
-
var NavBar = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 2;\n\n left: 0;\n width: 100%;\n height: calc(33px + ", ");\n transition: height 0.25s ease-in-out;\n overflow: hidden;\n\n ", "\n\n > div:nth-child(1) {\n position: absolute;\n z-index: 2;\n\n width:
|
|
15652
|
+
var NavBar = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 2;\n\n left: 0;\n width: 100%;\n height: calc(33px + ", ");\n transition: height 0.25s ease-in-out;\n overflow: hidden;\n\n ", "\n\n > div:nth-child(1) {\n position: absolute;\n z-index: 2;\n\n width: 93px;\n /* height: 30px; */\n padding: 9px 7px;\n font-size: 13px;\n line-height: 16px;\n border-radius: 1px;\n\n background-color: ", ";\n color: ", ";\n padding: ", ";\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n > div:nth-child(2) {\n position: absolute;\n width: 0px;\n height: 0px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 5px solid ", ";\n }\n"])), function (_ref) {
|
|
15650
15653
|
var theme = _ref.theme;
|
|
15651
15654
|
return theme.spacings.s3;
|
|
15652
15655
|
}, function (_ref2) {
|
|
15653
|
-
var
|
|
15654
|
-
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
},
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
}, function (_ref5) {
|
|
15661
|
-
var theme = _ref5.theme;
|
|
15662
|
-
return theme.spacings.s1;
|
|
15663
|
-
}) : css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n top: calc(100% + ", ");\n > div:nth-child(1) {\n top: ", ";\n }\n\n > div:nth-child(2) {\n bottom: calc(\n (100% - 19.8px / 2) - ", "\n );\n }\n "])), function (_ref6) {
|
|
15664
|
-
var theme = _ref6.theme;
|
|
15665
|
-
return theme.spacings.s1;
|
|
15666
|
-
}, function (_ref7) {
|
|
15667
|
-
var theme = _ref7.theme;
|
|
15668
|
-
return theme.spacings.s1;
|
|
15669
|
-
}, function (_ref8) {
|
|
15670
|
-
var theme = _ref8.theme;
|
|
15671
|
-
return theme.spacings.s1;
|
|
15672
|
-
});
|
|
15673
|
-
}, function (_ref9) {
|
|
15674
|
-
var theme = _ref9.theme;
|
|
15656
|
+
var theme = _ref2.theme,
|
|
15657
|
+
position = _ref2.$position,
|
|
15658
|
+
strict = _ref2.$strict;
|
|
15659
|
+
var distance = strict ? "calc(" + theme.spacings.s1 + " / 2)" : '0px';
|
|
15660
|
+
return position === 'bottom' ? css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n bottom: calc(100% + ", ");\n > div:nth-child(1) {\n bottom: ", ";\n }\n\n > div:nth-child(2) {\n top: calc(100% - 7px);\n }\n "])), distance, theme.spacings.s1) : css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n top: calc(100% + ", ");\n > div:nth-child(1) {\n top: ", ";\n }\n\n > div:nth-child(2) {\n bottom: calc(100% - 7px);\n transform: rotate(180deg);\n }\n "])), distance, theme.spacings.s1);
|
|
15661
|
+
}, function (_ref3) {
|
|
15662
|
+
var theme = _ref3.theme;
|
|
15675
15663
|
return theme.colors.blue;
|
|
15676
|
-
}, function (
|
|
15677
|
-
var theme =
|
|
15664
|
+
}, function (_ref4) {
|
|
15665
|
+
var theme = _ref4.theme;
|
|
15678
15666
|
return theme.colors.white;
|
|
15679
|
-
}, function (
|
|
15680
|
-
var theme =
|
|
15667
|
+
}, function (_ref5) {
|
|
15668
|
+
var theme = _ref5.theme;
|
|
15681
15669
|
return theme.spacings.s1;
|
|
15682
|
-
}, function (
|
|
15683
|
-
var theme =
|
|
15684
|
-
return theme.spacings.s3;
|
|
15685
|
-
}, function (_ref13) {
|
|
15686
|
-
var theme = _ref13.theme;
|
|
15687
|
-
return theme.spacings.s3;
|
|
15688
|
-
}, function (_ref14) {
|
|
15689
|
-
var theme = _ref14.theme;
|
|
15670
|
+
}, function (_ref6) {
|
|
15671
|
+
var theme = _ref6.theme;
|
|
15690
15672
|
return theme.colors.blue;
|
|
15691
15673
|
});
|
|
15692
15674
|
|
|
@@ -15725,10 +15707,10 @@ var LabelsContainer = styled.div(_templateObject$y || (_templateObject$y = _tagg
|
|
|
15725
15707
|
var position = _ref.position;
|
|
15726
15708
|
|
|
15727
15709
|
if (position === 'bottom') {
|
|
15728
|
-
return css(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% +
|
|
15710
|
+
return css(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
|
|
15729
15711
|
}
|
|
15730
15712
|
|
|
15731
|
-
return css(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% +
|
|
15713
|
+
return css(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 9px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
|
|
15732
15714
|
});
|
|
15733
15715
|
|
|
15734
15716
|
var _templateObject$z;
|
|
@@ -15814,12 +15796,18 @@ var getMarkerLeft = function getMarkerLeft(markers, range, index, value, min, st
|
|
|
15814
15796
|
return left;
|
|
15815
15797
|
};
|
|
15816
15798
|
|
|
15817
|
-
var
|
|
15818
|
-
|
|
15799
|
+
var getLeftCalc = function getLeftCalc(size, bullet, value, min, max) {
|
|
15800
|
+
var percent = (value - min) * 100 / (max - min);
|
|
15801
|
+
var calc = "calc(" + percent + "% - " + bullet * percent / 100 + "px + " + (bullet - size) / 2 + "px)";
|
|
15802
|
+
return calc;
|
|
15803
|
+
};
|
|
15804
|
+
|
|
15805
|
+
var getBarLeft = function getBarLeft(size, calc) {
|
|
15806
|
+
return "min(max(" + calc + ", 0%), calc(100% - " + size + "px))";
|
|
15819
15807
|
};
|
|
15820
15808
|
|
|
15821
|
-
var getIndicatorLeft = function getIndicatorLeft(size,
|
|
15822
|
-
return "min(max(
|
|
15809
|
+
var getIndicatorLeft = function getIndicatorLeft(size, calc) {
|
|
15810
|
+
return "min(max(" + calc + ", calc(0% - " + size + "px)), calc(100% - " + size + "px))";
|
|
15823
15811
|
};
|
|
15824
15812
|
|
|
15825
15813
|
var Range = React__default.forwardRef(function (props, ref) {
|
|
@@ -15920,6 +15908,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15920
15908
|
onChange: onChange,
|
|
15921
15909
|
value: value
|
|
15922
15910
|
});
|
|
15911
|
+
var bulletSize = strict === true ? 22 : 14;
|
|
15923
15912
|
return React__default.createElement(Label$5, {
|
|
15924
15913
|
required: required ? 1 : 0,
|
|
15925
15914
|
disabled: disabled ? 1 : 0,
|
|
@@ -15932,7 +15921,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15932
15921
|
invalid: invalid ? 1 : 0
|
|
15933
15922
|
}, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
|
|
15934
15923
|
var left = getMarkerLeft(markers.length, range, index, marker.value, min, strict);
|
|
15935
|
-
var bullet = marker.value > currentValue ? 1 : 0;
|
|
15924
|
+
var bullet = strict || marker.value > currentValue && marker.value < max ? 1 : 0;
|
|
15936
15925
|
return React__default.createElement(Marker, {
|
|
15937
15926
|
key: index,
|
|
15938
15927
|
left: left,
|
|
@@ -15941,26 +15930,34 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15941
15930
|
})), React__default.createElement("div", null, React__default.createElement(Input$2, Object.assign({
|
|
15942
15931
|
ref: ref
|
|
15943
15932
|
}, inputProps, {
|
|
15944
|
-
"$activeBullet": (strict === true ? markers[value].value : value) !== 0
|
|
15933
|
+
"$activeBullet": (strict === true ? markers[value].value : value) !== 0,
|
|
15934
|
+
"$bulletSize": bulletSize
|
|
15945
15935
|
})), React__default.createElement(NavBar, {
|
|
15946
|
-
position: position
|
|
15936
|
+
"$position": position,
|
|
15937
|
+
"$strict": strict
|
|
15947
15938
|
}, React__default.createElement("div", {
|
|
15948
15939
|
style: {
|
|
15949
|
-
left: getBarLeft(
|
|
15940
|
+
left: getBarLeft(93, getLeftCalc(93, bulletSize, value, min, max))
|
|
15950
15941
|
}
|
|
15951
15942
|
}, React__default.createElement(Icon, {
|
|
15952
15943
|
type: 'feather',
|
|
15953
15944
|
icon: 'minus_circle',
|
|
15954
15945
|
color: 'white',
|
|
15955
|
-
onClick: canDecrement ? decrement : undefined
|
|
15946
|
+
onClick: canDecrement ? decrement : undefined,
|
|
15947
|
+
width: '12px',
|
|
15948
|
+
height: '12px',
|
|
15949
|
+
strokeWidth: '2.5px'
|
|
15956
15950
|
}), currentValue, React__default.createElement(Icon, {
|
|
15957
15951
|
type: 'feather',
|
|
15958
15952
|
icon: 'plus_circle',
|
|
15959
15953
|
color: 'white',
|
|
15960
|
-
onClick: canIncrement ? increment : undefined
|
|
15954
|
+
onClick: canIncrement ? increment : undefined,
|
|
15955
|
+
width: '12px',
|
|
15956
|
+
height: '12px',
|
|
15957
|
+
strokeWidth: '2.5px'
|
|
15961
15958
|
})), React__default.createElement("div", {
|
|
15962
15959
|
style: {
|
|
15963
|
-
left: getIndicatorLeft(14, (value
|
|
15960
|
+
left: getIndicatorLeft(14, getLeftCalc(14, bulletSize, value, min, max))
|
|
15964
15961
|
}
|
|
15965
15962
|
})), React__default.createElement(SelectedArea, {
|
|
15966
15963
|
percent: percent
|
|
@@ -18867,56 +18864,42 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
18867
18864
|
return React__default.createElement(Container$m, null, React__default.createElement(Progress, Object.assign({}, props), React__default.createElement("div", null)), React__default.createElement("span", null, " ", props.value || '0', "%"));
|
|
18868
18865
|
};
|
|
18869
18866
|
|
|
18870
|
-
var
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18867
|
+
var _templateObject$13, _templateObject2$P, _templateObject3$I, _templateObject4$v, _templateObject5$s, _templateObject6$q, _templateObject7$q;
|
|
18868
|
+
var Container$n = styled.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
18869
|
+
var delimiters = {
|
|
18870
|
+
blue: ['blue'],
|
|
18871
|
+
grey: ['warningGray']
|
|
18872
|
+
};
|
|
18873
|
+
var Tabs = styled.ul(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n user-select: none;\n list-style: none;\n display: inline-flex;\n padding: 0;\n margin: 0;\n width: 100%;\n\n ", ";\n\n gap: ", ";\n"])), function (_ref) {
|
|
18874
|
+
var theme = _ref.theme,
|
|
18875
|
+
internal = _ref.$internal,
|
|
18876
|
+
delimiter = _ref.$delimiter;
|
|
18876
18877
|
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
}
|
|
18881
|
-
}
|
|
18878
|
+
var border = function () {
|
|
18879
|
+
if (delimiter === 'none') {
|
|
18880
|
+
return 'none';
|
|
18882
18881
|
}
|
|
18883
18882
|
|
|
18884
|
-
return
|
|
18885
|
-
};
|
|
18886
|
-
return _extends$4w.apply(this, arguments);
|
|
18887
|
-
}
|
|
18888
|
-
|
|
18889
|
-
function SvgClose(props) {
|
|
18890
|
-
return /*#__PURE__*/createElement("svg", _extends$4w({
|
|
18891
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18892
|
-
width: 24,
|
|
18893
|
-
height: 24,
|
|
18894
|
-
fill: "none",
|
|
18895
|
-
stroke: "currentColor",
|
|
18896
|
-
strokeWidth: 2,
|
|
18897
|
-
strokeLinecap: "round",
|
|
18898
|
-
strokeLinejoin: "round",
|
|
18899
|
-
className: "close_svg__feather close_svg__feather-x"
|
|
18900
|
-
}, props), _path$4n || (_path$4n = /*#__PURE__*/createElement("path", {
|
|
18901
|
-
d: "M18 6L6 18M6 6l12 12"
|
|
18902
|
-
})));
|
|
18903
|
-
}
|
|
18883
|
+
return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
18884
|
+
}();
|
|
18904
18885
|
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
var theme = _ref.theme,
|
|
18908
|
-
internal = _ref.internal;
|
|
18909
|
-
return css(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n border-bottom-width: ", ";\n border-bottom-color: ", ";\n "])), theme.spacings.s2, internal ? '1px' : '2px', internal ? theme.getColor('lightestGrey', 50) : theme.colors.blue);
|
|
18910
|
-
});
|
|
18911
|
-
var Tabs = styled.ul(_templateObject3$I || (_templateObject3$I = _taggedTemplateLiteralLoose(["\n user-select: none;\n list-style: none;\n display: inline-flex;\n gap: 1px;\n padding: 0;\n margin: 0;\n\n ", "\n"])), function (_ref2) {
|
|
18886
|
+
return css(_templateObject3$I || (_templateObject3$I = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n\n + div {\n border: 1px solid ", ";\n border-top-width: 0px;\n border-radius: 0px 0px 2px 2px;\n padding: ", ";\n }\n "])), border, theme.getColor.apply(theme, delimiters.grey), theme.spacings.s3);
|
|
18887
|
+
}, function (_ref2) {
|
|
18912
18888
|
var theme = _ref2.theme,
|
|
18913
|
-
internal = _ref2
|
|
18914
|
-
return
|
|
18889
|
+
internal = _ref2.$internal;
|
|
18890
|
+
return internal ? theme.spacings.s6 : 0;
|
|
18915
18891
|
});
|
|
18916
|
-
var Tab = styled.li(
|
|
18892
|
+
var Tab = styled.li(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ", "\n"])), function (_ref3) {
|
|
18917
18893
|
var theme = _ref3.theme,
|
|
18918
|
-
active = _ref3
|
|
18919
|
-
|
|
18894
|
+
active = _ref3.$active,
|
|
18895
|
+
internal = _ref3.$internal;
|
|
18896
|
+
return css(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: ", ";\n gap: ", ";\n\n ", "\n\n span {\n color: ", ";\n }\n "])), theme.colors[active ? 'blue' : 'white'], theme.spacings.s3, theme.spacings.s3, internal ? css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n border-radius: 4px 4px 0 0;\n\n > span {\n ", "\n line-height: 17px;\n }\n "])), function (_ref4) {
|
|
18897
|
+
var theme = _ref4.theme;
|
|
18898
|
+
return theme.useTypography('h4');
|
|
18899
|
+
}) : css(_templateObject7$q || (_templateObject7$q = _taggedTemplateLiteralLoose(["\n box-shadow: 0px 3px 6px ", ";\n\n > span {\n ", "\n line-height: 19px;\n }\n "])), theme.getColor('black', 15), function (_ref5) {
|
|
18900
|
+
var theme = _ref5.theme;
|
|
18901
|
+
return theme.useTypography('h2');
|
|
18902
|
+
}), theme.colors[active ? 'white' : 'darkBlue']);
|
|
18920
18903
|
});
|
|
18921
18904
|
|
|
18922
18905
|
var initialStatus = function initialStatus(active, length) {
|
|
@@ -18927,8 +18910,7 @@ var initialStatus = function initialStatus(active, length) {
|
|
|
18927
18910
|
|
|
18928
18911
|
var Tabs$1 = function Tabs$1(props) {
|
|
18929
18912
|
var options = props.options,
|
|
18930
|
-
activeState = props.activeState
|
|
18931
|
-
internal = props.internal;
|
|
18913
|
+
activeState = props.activeState;
|
|
18932
18914
|
var active = activeState[0],
|
|
18933
18915
|
setActive = activeState[1];
|
|
18934
18916
|
|
|
@@ -19014,25 +18996,32 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19014
18996
|
});
|
|
19015
18997
|
};
|
|
19016
18998
|
|
|
19017
|
-
var Close = props.alwaysOpen ? function () {
|
|
19018
|
-
return null;
|
|
19019
|
-
} : SvgClose;
|
|
19020
18999
|
return React__default.createElement(Container$n, null, React__default.createElement(Tabs, {
|
|
19021
|
-
internal:
|
|
19000
|
+
"$internal": props.internal,
|
|
19001
|
+
"$delimiter": props.delimiter
|
|
19022
19002
|
}, options.reduce(function (elements, tab, index) {
|
|
19023
19003
|
if (status[index] === 'closed') return elements;
|
|
19024
19004
|
return [].concat(elements, [React__default.createElement(Tab, {
|
|
19025
19005
|
key: index,
|
|
19026
|
-
active:
|
|
19006
|
+
"$active": status[index] === 'active',
|
|
19007
|
+
"$internal": props.internal,
|
|
19027
19008
|
onClick: function onClick(event) {
|
|
19028
19009
|
return onClickActivate(index, event);
|
|
19029
19010
|
}
|
|
19030
|
-
}, React__default.createElement("span", null, tab.label), React__default.createElement(
|
|
19011
|
+
}, React__default.createElement("span", null, tab.label), !props.alwaysOpen && React__default.createElement(Icon, {
|
|
19012
|
+
type: 'feather',
|
|
19013
|
+
icon: 'x',
|
|
19031
19014
|
onClick: function onClick() {
|
|
19032
19015
|
return onClickClose(index);
|
|
19033
|
-
}
|
|
19016
|
+
},
|
|
19017
|
+
width: '14px',
|
|
19018
|
+
height: '14px',
|
|
19019
|
+
strokeWidth: '3px',
|
|
19020
|
+
color: status[index] === 'active' ? 'white' : 'darkBlue'
|
|
19034
19021
|
}))]);
|
|
19035
|
-
}, []))
|
|
19022
|
+
}, [])), props.children && React__default.createElement("div", {
|
|
19023
|
+
children: props.children
|
|
19024
|
+
}));
|
|
19036
19025
|
};
|
|
19037
19026
|
|
|
19038
19027
|
var _templateObject$14;
|