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 CHANGED
@@ -869,7 +869,11 @@ var Section = function Section(props) {
869
869
  var Tabs = function Tabs(props) {
870
870
  var children = props.children,
871
871
  selected = props.selected,
872
- onChange = props.onChange;
872
+ onChange = props.onChange,
873
+ _props$fillLeft = props.fillLeft,
874
+ fillLeft = _props$fillLeft === void 0 ? false : _props$fillLeft,
875
+ _props$fillRight = props.fillRight,
876
+ fillRight = _props$fillRight === void 0 ? true : _props$fillRight;
873
877
  var tabs = React__default["default"].Children.map(children, function (child, index) {
874
878
  function select(id) {
875
879
  if (onChange) onChange(id || index);
@@ -882,9 +886,11 @@ var Tabs = function Tabs(props) {
882
886
  });
883
887
  return /*#__PURE__*/React__default["default"].createElement("div", {
884
888
  className: "tabs"
885
- }, tabs, /*#__PURE__*/React__default["default"].createElement("div", {
889
+ }, fillLeft ? /*#__PURE__*/React__default["default"].createElement("div", {
886
890
  className: "tab-filler"
887
- }));
891
+ }) : null, tabs, fillRight ? /*#__PURE__*/React__default["default"].createElement("div", {
892
+ className: "tab-filler"
893
+ }) : null);
888
894
  };
889
895
  /**
890
896
  * Tab
@@ -6652,7 +6658,9 @@ var TabbedTablePage = function TabbedTablePage(props) {
6652
6658
  var selected = tab ? tab.value : null;
6653
6659
  return /*#__PURE__*/React__default["default"].createElement(Tabs, {
6654
6660
  selected: selected,
6655
- onChange: changeTab
6661
+ onChange: changeTab,
6662
+ fillRight: true,
6663
+ fillLeft: false
6656
6664
  }, tabs.map(function (tab) {
6657
6665
  return /*#__PURE__*/React__default["default"].createElement(Tab, {
6658
6666
  id: tab.value,