@apexcura/ui-components 0.0.16-Beta41 → 0.0.16-Beta42

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
@@ -779,6 +779,7 @@ var { Sider } = import_antd11.Layout;
779
779
  var Sidebar = (props) => {
780
780
  const [collapsed, setCollapsed] = (0, import_react16.useState)(false);
781
781
  const handleChange = (item) => {
782
+ console.log(item);
782
783
  if (props.onChange) {
783
784
  props.onChange(item);
784
785
  }
@@ -796,18 +797,17 @@ var Sidebar = (props) => {
796
797
  return getItem(
797
798
  eachItem.label,
798
799
  index.toString(),
799
- eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: eachItem.icon, alt: "", style: { filter: "brightness(0) invert(1)" } }) : null,
800
+ eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: eachItem.icon, alt: "" }) : null,
800
801
  eachItem.items?.map(
801
802
  (child, childIndex) => getItem(
802
803
  child.label,
803
804
  `${index}-${childIndex}`,
804
- child.icon ? icons[child.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: child.icon, alt: "", style: { filter: "brightness(0) invert(1)" } }) : null,
805
+ child.icon ? icons[child.icon] || /* @__PURE__ */ import_react16.default.createElement("img", { src: child.icon, alt: "" }) : null,
805
806
  void 0,
806
807
  child
807
808
  )
808
809
  ),
809
810
  eachItem
810
- // Pass the parent item directly to getItem
811
811
  );
812
812
  });
813
813
  return /* @__PURE__ */ import_react16.default.createElement(import_antd11.Layout, { style: { minHeight: "100vh" } }, /* @__PURE__ */ import_react16.default.createElement(
package/dist/index.mjs CHANGED
@@ -708,6 +708,7 @@ var { Sider } = Layout;
708
708
  var Sidebar = (props) => {
709
709
  const [collapsed, setCollapsed] = useState5(false);
710
710
  const handleChange = (item) => {
711
+ console.log(item);
711
712
  if (props.onChange) {
712
713
  props.onChange(item);
713
714
  }
@@ -725,18 +726,17 @@ var Sidebar = (props) => {
725
726
  return getItem(
726
727
  eachItem.label,
727
728
  index.toString(),
728
- eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ React15.createElement("img", { src: eachItem.icon, alt: "", style: { filter: "brightness(0) invert(1)" } }) : null,
729
+ eachItem.icon ? icons[eachItem.icon] || /* @__PURE__ */ React15.createElement("img", { src: eachItem.icon, alt: "" }) : null,
729
730
  eachItem.items?.map(
730
731
  (child, childIndex) => getItem(
731
732
  child.label,
732
733
  `${index}-${childIndex}`,
733
- child.icon ? icons[child.icon] || /* @__PURE__ */ React15.createElement("img", { src: child.icon, alt: "", style: { filter: "brightness(0) invert(1)" } }) : null,
734
+ child.icon ? icons[child.icon] || /* @__PURE__ */ React15.createElement("img", { src: child.icon, alt: "" }) : null,
734
735
  void 0,
735
736
  child
736
737
  )
737
738
  ),
738
739
  eachItem
739
- // Pass the parent item directly to getItem
740
740
  );
741
741
  });
742
742
  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-Beta41",
3
+ "version": "0.0.16-Beta42",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",