prometeo-design-system 6.0.2 → 6.0.4
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.
|
@@ -15,6 +15,7 @@ export interface MenuListItemProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
ref?: React.RefObject<HTMLButtonElement | HTMLAnchorElement | HTMLDivElement>;
|
|
17
17
|
isSelected?: boolean;
|
|
18
|
+
children?: React.ReactNode | (() => React.ReactNode);
|
|
18
19
|
}
|
|
19
20
|
declare const MenuListItem: (props: MenuListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export default MenuListItem;
|
|
@@ -2,7 +2,7 @@ import { default as me } from "./Avatar.es.js";
|
|
|
2
2
|
import { default as xe } from "./Button.es.js";
|
|
3
3
|
import { default as ge } from "./CardProfile.es.js";
|
|
4
4
|
import A from "./CheckBox.es.js";
|
|
5
|
-
import { default as ve, useDialogControl as
|
|
5
|
+
import { default as ve, useDialogControl as ye } from "./DialogModal.es.js";
|
|
6
6
|
import { default as De, useDrawerDesktop as Ne } from "./DrawerDesktop.es.js";
|
|
7
7
|
import { default as we, useDrawerMobile as Ie } from "./DrawerMobile.es.js";
|
|
8
8
|
import { default as ke } from "./Header.es.js";
|
|
@@ -26,7 +26,7 @@ import { T as mt } from "./TabLinks-DnoWdrdk.js";
|
|
|
26
26
|
import { default as xt } from "./TextArea.es.js";
|
|
27
27
|
import { default as gt } from "./Tooltip.es.js";
|
|
28
28
|
import { default as vt } from "./Skeleton.es.js";
|
|
29
|
-
import { default as
|
|
29
|
+
import { default as Ct } from "./SegmentedButton.es.js";
|
|
30
30
|
import { I as Nt } from "./ImageGallery-WVy6uNZc.js";
|
|
31
31
|
import { default as wt } from "./Image.es.js";
|
|
32
32
|
import { default as St, toastpyrion as kt } from "./Toast.es.js";
|
|
@@ -64,8 +64,8 @@ const b = {
|
|
|
64
64
|
fireOn: f,
|
|
65
65
|
minCharacters: x = b.minCharacters,
|
|
66
66
|
debounceDelay: h = b.debounceDelay,
|
|
67
|
-
onChange:
|
|
68
|
-
onClear:
|
|
67
|
+
onChange: y,
|
|
68
|
+
onClear: C,
|
|
69
69
|
onSearch: n,
|
|
70
70
|
onKeyDown: D,
|
|
71
71
|
onClickIcon: N,
|
|
@@ -96,13 +96,13 @@ const b = {
|
|
|
96
96
|
), M = c(
|
|
97
97
|
(o) => {
|
|
98
98
|
const g = o.target.value;
|
|
99
|
-
if (m || w(g),
|
|
99
|
+
if (m || w(g), y?.(o), g.length === 0 && O) {
|
|
100
100
|
t.current && clearTimeout(t.current), S();
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
f === "change" && n && g.length >= x && I(g);
|
|
104
104
|
},
|
|
105
|
-
[m, f, x,
|
|
105
|
+
[m, f, x, y, n, I]
|
|
106
106
|
), z = c(
|
|
107
107
|
(o) => {
|
|
108
108
|
o.key === "Enter" && n && (o.preventDefault(), s(p ?? "")), D?.(o);
|
|
@@ -114,8 +114,8 @@ const b = {
|
|
|
114
114
|
},
|
|
115
115
|
[n, N, p, s]
|
|
116
116
|
), S = c(() => {
|
|
117
|
-
m || w(""),
|
|
118
|
-
}, [m,
|
|
117
|
+
m || w(""), C?.(), n && s("");
|
|
118
|
+
}, [m, C, n, s]);
|
|
119
119
|
return /* @__PURE__ */ a.jsx(
|
|
120
120
|
H,
|
|
121
121
|
{
|
|
@@ -170,6 +170,7 @@ const le = U(P), q = {
|
|
|
170
170
|
), children: [
|
|
171
171
|
t && !e.checkbox && i(t, l),
|
|
172
172
|
e.checkbox && /* @__PURE__ */ a.jsx(A, { checked: u, readOnly: !0, disabled: e.disabled }),
|
|
173
|
+
e.children && typeof e.children == "function" ? e.children() : e.children,
|
|
173
174
|
e.label && /* @__PURE__ */ a.jsx("p", { className: v(
|
|
174
175
|
"prometeo-fonts-body-medium text-neutral-default-default flex-1 truncate",
|
|
175
176
|
"group-data-[selected=true]:text-primary-default-default group-data-[selected=true]:prometeo-fonts-label-large group-data-[selected=true]:group-hover:text-primary-default-hover",
|
|
@@ -268,7 +269,7 @@ export {
|
|
|
268
269
|
Vt as RadioButton,
|
|
269
270
|
Xe as RecurrentDatePicker,
|
|
270
271
|
et as RecurrentDatePickerRRule,
|
|
271
|
-
|
|
272
|
+
Ct as SegmentedButton,
|
|
272
273
|
Ke as Select,
|
|
273
274
|
Bt as SelectSearch,
|
|
274
275
|
vt as Skeleton,
|
|
@@ -290,7 +291,7 @@ export {
|
|
|
290
291
|
gt as Tooltip,
|
|
291
292
|
kt as toastpyrion,
|
|
292
293
|
de as useClickOutside,
|
|
293
|
-
|
|
294
|
+
ye as useDialogControl,
|
|
294
295
|
Ne as useDrawerDesktop,
|
|
295
296
|
Ie as useDrawerMobile,
|
|
296
297
|
ie as useFileDropzone,
|