framepexls-ui-lib 0.1.18 → 0.1.20
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/Dialog.js +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/Dropdown.mjs +1 -1
- package/package.json +1 -1
package/dist/Dialog.js
CHANGED
|
@@ -246,7 +246,7 @@ function DialogField({
|
|
|
246
246
|
children,
|
|
247
247
|
className
|
|
248
248
|
}) {
|
|
249
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: cx("grid gap-1 text-sm content-start
|
|
249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: cx("grid gap-1 text-sm content-start", className), children: [
|
|
250
250
|
label && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "font-medium", children: [
|
|
251
251
|
label,
|
|
252
252
|
" ",
|
package/dist/Dialog.mjs
CHANGED
|
@@ -206,7 +206,7 @@ function DialogField({
|
|
|
206
206
|
children,
|
|
207
207
|
className
|
|
208
208
|
}) {
|
|
209
|
-
return /* @__PURE__ */ jsxs("label", { className: cx("grid gap-1 text-sm content-start
|
|
209
|
+
return /* @__PURE__ */ jsxs("label", { className: cx("grid gap-1 text-sm content-start", className), children: [
|
|
210
210
|
label && /* @__PURE__ */ jsxs("span", { className: "font-medium", children: [
|
|
211
211
|
label,
|
|
212
212
|
" ",
|
package/dist/Dropdown.js
CHANGED
|
@@ -220,7 +220,6 @@ function Content({
|
|
|
220
220
|
(_e = items[(i - 1 + items.length) % items.length]) == null ? void 0 : _e.focus();
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
if (!open) return null;
|
|
224
223
|
const normalizedChildren = (0, import_react.useMemo)(() => {
|
|
225
224
|
const arr = import_react.default.Children.toArray(children);
|
|
226
225
|
const list = arr.map((ch) => {
|
|
@@ -264,6 +263,7 @@ function Content({
|
|
|
264
263
|
}
|
|
265
264
|
return out;
|
|
266
265
|
}, [children, isAllowed, defaultHideUnauthorized]);
|
|
266
|
+
if (!open) return null;
|
|
267
267
|
return (0, import_react_dom.createPortal)(
|
|
268
268
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
269
269
|
"div",
|
package/dist/Dropdown.mjs
CHANGED
|
@@ -190,7 +190,6 @@ function Content({
|
|
|
190
190
|
(_e = items[(i - 1 + items.length) % items.length]) == null ? void 0 : _e.focus();
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
|
-
if (!open) return null;
|
|
194
193
|
const normalizedChildren = useMemo(() => {
|
|
195
194
|
const arr = React.Children.toArray(children);
|
|
196
195
|
const list = arr.map((ch) => {
|
|
@@ -234,6 +233,7 @@ function Content({
|
|
|
234
233
|
}
|
|
235
234
|
return out;
|
|
236
235
|
}, [children, isAllowed, defaultHideUnauthorized]);
|
|
236
|
+
if (!open) return null;
|
|
237
237
|
return createPortal(
|
|
238
238
|
/* @__PURE__ */ jsx(
|
|
239
239
|
"div",
|