@undp/carbon-library 1.0.143-enablement-type-changes.0 → 1.0.144

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/cjs/index.js CHANGED
@@ -24515,7 +24515,7 @@ var EditableCell = function (_a) {
24515
24515
  return React.createElement("td", __assign({}, restProps), childNode);
24516
24516
  };
24517
24517
 
24518
- var css_248z$4 = ".steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n justify-content: center; }\n .steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n";
24518
+ var css_248z$4 = ".ndc-steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n justify-content: center; }\n .ndc-steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .ndc-steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .ndc-steps-actions .mg-left-1 {\n margin-left: 1rem; }\n";
24519
24519
  styleInject(css_248z$4);
24520
24520
 
24521
24521
  var NdcDetailsComponent = function (props) {
@@ -24658,7 +24658,7 @@ var NdcDetailsComponent = function (props) {
24658
24658
  }
24659
24659
  };
24660
24660
  React.useEffect(function () {
24661
- if (periodItems && periodItems.length > 1) {
24661
+ if (periodItems && periodItems.length > 3) {
24662
24662
  setSelectedTab(periodItems[periodItems.length - 1].key);
24663
24663
  }
24664
24664
  }, [periodItems]);
@@ -24674,7 +24674,7 @@ var NdcDetailsComponent = function (props) {
24674
24674
  React.createElement(antd.Row, null,
24675
24675
  React.createElement(RangePicker, { onChange: onDateRangeChanged, picker: "year" })),
24676
24676
  React.createElement(antd.Row, { className: "mg-top-1" },
24677
- React.createElement("div", { className: "steps-actions" },
24677
+ React.createElement("div", { className: "ndc-steps-actions" },
24678
24678
  React.createElement(antd.Button, { type: "primary", onClick: onAddNewPeriod, htmlType: "submit", loading: loading }, t("ndc:submit")),
24679
24679
  React.createElement(antd.Button, { className: "back-btn", onClick: onCancelPeriod, loading: loading }, t("ndc:back"))))));
24680
24680
  }