ywana-core8 0.0.474 → 0.0.475
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/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TabbedTablePage.js +1 -1
- package/src/html/tab.js +3 -2
package/dist/index.modern.js
CHANGED
@@ -861,7 +861,11 @@ var Section = function Section(props) {
|
|
861
861
|
var Tabs = function Tabs(props) {
|
862
862
|
var children = props.children,
|
863
863
|
selected = props.selected,
|
864
|
-
onChange = props.onChange
|
864
|
+
onChange = props.onChange,
|
865
|
+
_props$fillLeft = props.fillLeft,
|
866
|
+
fillLeft = _props$fillLeft === void 0 ? false : _props$fillLeft,
|
867
|
+
_props$fillRight = props.fillRight,
|
868
|
+
fillRight = _props$fillRight === void 0 ? true : _props$fillRight;
|
865
869
|
var tabs = React.Children.map(children, function (child, index) {
|
866
870
|
function select(id) {
|
867
871
|
if (onChange) onChange(id || index);
|
@@ -874,9 +878,11 @@ var Tabs = function Tabs(props) {
|
|
874
878
|
});
|
875
879
|
return /*#__PURE__*/React.createElement("div", {
|
876
880
|
className: "tabs"
|
877
|
-
},
|
881
|
+
}, fillLeft ? /*#__PURE__*/React.createElement("div", {
|
878
882
|
className: "tab-filler"
|
879
|
-
})
|
883
|
+
}) : null, tabs, fillRight ? /*#__PURE__*/React.createElement("div", {
|
884
|
+
className: "tab-filler"
|
885
|
+
}) : null);
|
880
886
|
};
|
881
887
|
/**
|
882
888
|
* Tab
|
@@ -6644,7 +6650,9 @@ var TabbedTablePage = function TabbedTablePage(props) {
|
|
6644
6650
|
var selected = tab ? tab.value : null;
|
6645
6651
|
return /*#__PURE__*/React.createElement(Tabs, {
|
6646
6652
|
selected: selected,
|
6647
|
-
onChange: changeTab
|
6653
|
+
onChange: changeTab,
|
6654
|
+
fillRight: true,
|
6655
|
+
fillLeft: false
|
6648
6656
|
}, tabs.map(function (tab) {
|
6649
6657
|
return /*#__PURE__*/React.createElement(Tab, {
|
6650
6658
|
id: tab.value,
|