@pnkx-lib/ui 1.9.416 → 1.9.418
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/es/ui/SelectSingleTable.js +6 -4
- package/es/ui/SidebarV2.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ const SelectSingleTable = ({
|
|
|
14
14
|
onSelectionChange,
|
|
15
15
|
onLoadMore,
|
|
16
16
|
onSearch,
|
|
17
|
-
hasMore =
|
|
17
|
+
hasMore = true,
|
|
18
18
|
loading = false,
|
|
19
19
|
rowKey = "key",
|
|
20
20
|
tableProps = {},
|
|
@@ -97,7 +97,7 @@ const SelectSingleTable = ({
|
|
|
97
97
|
if (isEmpty(value) && !selectedRow) {
|
|
98
98
|
return null;
|
|
99
99
|
}
|
|
100
|
-
if (!value)
|
|
100
|
+
if (!value && selectedRow)
|
|
101
101
|
return selectedRow[displayField];
|
|
102
102
|
return value[displayField];
|
|
103
103
|
}, [selectedRow, displayField, value]);
|
|
@@ -115,10 +115,12 @@ const SelectSingleTable = ({
|
|
|
115
115
|
}
|
|
116
116
|
if (onSelectionChange) {
|
|
117
117
|
onSelectionChange(void 0, void 0);
|
|
118
|
-
|
|
118
|
+
}
|
|
119
|
+
if (field && onChange) {
|
|
120
|
+
onChange({
|
|
119
121
|
target: {
|
|
120
122
|
name,
|
|
121
|
-
value:
|
|
123
|
+
value: null
|
|
122
124
|
}
|
|
123
125
|
});
|
|
124
126
|
}
|
package/es/ui/SidebarV2.js
CHANGED
|
@@ -101,7 +101,7 @@ const SidebarV2 = ({ menu, children }) => {
|
|
|
101
101
|
boxShadow: "0 1px 2px rgba(0, 0, 0, 0.15)",
|
|
102
102
|
height: "56px",
|
|
103
103
|
position: "fixed",
|
|
104
|
-
zIndex:
|
|
104
|
+
zIndex: 1e3
|
|
105
105
|
},
|
|
106
106
|
children: /* @__PURE__ */ jsxs("div", { className: "w-full flex items-center justify-between", children: [
|
|
107
107
|
/* @__PURE__ */ jsx("div", { className: "flex items-center ml-[-2rem]", children: /* @__PURE__ */ jsx("img", { src: logoHeaderText, alt: "logo", width: 200 }) }),
|