@apexcura/ui-components 0.0.16-Beta39 → 0.0.16-Beta40

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.js CHANGED
@@ -792,21 +792,20 @@ var Sidebar = (props) => {
792
792
  onClick: () => handleChange(item || { label, key })
793
793
  };
794
794
  }
795
- const items = props.items?.map((eachItem, index) => {
795
+ const items = (props.items || []).map((eachItem, index) => {
796
796
  return getItem(
797
797
  eachItem.label,
798
798
  index.toString(),
799
799
  eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: eachItem.icon }) : "",
800
- eachItem,
801
- eachItem.items?.map(
800
+ eachItem.items ? eachItem.items.map(
802
801
  (child, childIndex) => getItem(
803
802
  child.label,
804
803
  `${index}-${childIndex}`,
805
- eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: eachItem.icon }) : "",
804
+ child.icon ? icons[child.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: child.icon }) : "",
806
805
  void 0,
807
806
  child
808
807
  )
809
- )
808
+ ) : void 0
810
809
  );
811
810
  });
812
811
  return /* @__PURE__ */ import_react16.default.createElement(import_antd11.Layout, { style: { minHeight: "100vh" } }, /* @__PURE__ */ import_react16.default.createElement(
package/dist/index.mjs CHANGED
@@ -721,21 +721,20 @@ var Sidebar = (props) => {
721
721
  onClick: () => handleChange(item || { label, key })
722
722
  };
723
723
  }
724
- const items = props.items?.map((eachItem, index) => {
724
+ const items = (props.items || []).map((eachItem, index) => {
725
725
  return getItem(
726
726
  eachItem.label,
727
727
  index.toString(),
728
728
  eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ React15.createElement("img", { src: eachItem.icon }) : "",
729
- eachItem,
730
- eachItem.items?.map(
729
+ eachItem.items ? eachItem.items.map(
731
730
  (child, childIndex) => getItem(
732
731
  child.label,
733
732
  `${index}-${childIndex}`,
734
- eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ React15.createElement("img", { src: eachItem.icon }) : "",
733
+ child.icon ? icons[child.icon] || /* @__PURE__ */ React15.createElement("img", { src: child.icon }) : "",
735
734
  void 0,
736
735
  child
737
736
  )
738
- )
737
+ ) : void 0
739
738
  );
740
739
  });
741
740
  return /* @__PURE__ */ React15.createElement(Layout, { style: { minHeight: "100vh" } }, /* @__PURE__ */ React15.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.16-Beta39",
3
+ "version": "0.0.16-Beta40",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",