@apexcura/ui-components 0.0.16-Beta31 → 0.0.16-Beta32
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 +10 -24
- package/dist/index.mjs +11 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -774,20 +774,17 @@ var AddMoreTable = (props) => {
|
|
|
774
774
|
// src/Components/Sidebar.tsx
|
|
775
775
|
var import_react16 = __toESM(require("react"));
|
|
776
776
|
var import_antd11 = require("antd");
|
|
777
|
-
var {
|
|
778
|
-
function getItem(label, key, icon, children) {
|
|
779
|
-
return {
|
|
780
|
-
key,
|
|
781
|
-
icon,
|
|
782
|
-
children,
|
|
783
|
-
label
|
|
784
|
-
};
|
|
785
|
-
}
|
|
777
|
+
var { Sider } = import_antd11.Layout;
|
|
786
778
|
var Sidebar = (props) => {
|
|
787
779
|
const [collapsed, setCollapsed] = (0, import_react16.useState)(false);
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
780
|
+
function getItem(label, key, icon, children) {
|
|
781
|
+
return {
|
|
782
|
+
key,
|
|
783
|
+
icon: icon ? /* @__PURE__ */ import_react16.default.createElement("span", { className: props.iconsClassName }, icon) : null,
|
|
784
|
+
children,
|
|
785
|
+
label
|
|
786
|
+
};
|
|
787
|
+
}
|
|
791
788
|
const items = props.items?.map((eachItem, index) => {
|
|
792
789
|
return getItem(
|
|
793
790
|
eachItem.label,
|
|
@@ -815,18 +812,7 @@ var Sidebar = (props) => {
|
|
|
815
812
|
items
|
|
816
813
|
}
|
|
817
814
|
)
|
|
818
|
-
)
|
|
819
|
-
"div",
|
|
820
|
-
{
|
|
821
|
-
style: {
|
|
822
|
-
padding: 24,
|
|
823
|
-
minHeight: 360,
|
|
824
|
-
background: colorBgContainer,
|
|
825
|
-
borderRadius: borderRadiusLG
|
|
826
|
-
}
|
|
827
|
-
},
|
|
828
|
-
"Bill is a cat."
|
|
829
|
-
)), /* @__PURE__ */ import_react16.default.createElement(Footer, { style: { textAlign: "center" } }, "Ant Design \xA9", (/* @__PURE__ */ new Date()).getFullYear(), " Created by Ant UED")));
|
|
815
|
+
));
|
|
830
816
|
};
|
|
831
817
|
|
|
832
818
|
// src/Components/Navbar.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -702,21 +702,18 @@ var AddMoreTable = (props) => {
|
|
|
702
702
|
|
|
703
703
|
// src/Components/Sidebar.tsx
|
|
704
704
|
import React15, { useState as useState5 } from "react";
|
|
705
|
-
import {
|
|
706
|
-
var {
|
|
707
|
-
function getItem(label, key, icon, children) {
|
|
708
|
-
return {
|
|
709
|
-
key,
|
|
710
|
-
icon,
|
|
711
|
-
children,
|
|
712
|
-
label
|
|
713
|
-
};
|
|
714
|
-
}
|
|
705
|
+
import { Layout, Menu } from "antd";
|
|
706
|
+
var { Sider } = Layout;
|
|
715
707
|
var Sidebar = (props) => {
|
|
716
708
|
const [collapsed, setCollapsed] = useState5(false);
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
709
|
+
function getItem(label, key, icon, children) {
|
|
710
|
+
return {
|
|
711
|
+
key,
|
|
712
|
+
icon: icon ? /* @__PURE__ */ React15.createElement("span", { className: props.iconsClassName }, icon) : null,
|
|
713
|
+
children,
|
|
714
|
+
label
|
|
715
|
+
};
|
|
716
|
+
}
|
|
720
717
|
const items = props.items?.map((eachItem, index) => {
|
|
721
718
|
return getItem(
|
|
722
719
|
eachItem.label,
|
|
@@ -744,18 +741,7 @@ var Sidebar = (props) => {
|
|
|
744
741
|
items
|
|
745
742
|
}
|
|
746
743
|
)
|
|
747
|
-
)
|
|
748
|
-
"div",
|
|
749
|
-
{
|
|
750
|
-
style: {
|
|
751
|
-
padding: 24,
|
|
752
|
-
minHeight: 360,
|
|
753
|
-
background: colorBgContainer,
|
|
754
|
-
borderRadius: borderRadiusLG
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
|
-
"Bill is a cat."
|
|
758
|
-
)), /* @__PURE__ */ React15.createElement(Footer, { style: { textAlign: "center" } }, "Ant Design \xA9", (/* @__PURE__ */ new Date()).getFullYear(), " Created by Ant UED")));
|
|
744
|
+
));
|
|
759
745
|
};
|
|
760
746
|
|
|
761
747
|
// src/Components/Navbar.tsx
|