prometeo-design-system 7.2.8 → 7.3.0
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/AttachInput.es.js +8 -8
- package/dist/Autocomplete.d.ts +4 -0
- package/dist/Autocomplete.es.js +83 -0
- package/dist/Badge.d.ts +2 -0
- package/dist/Badge.es.js +48 -0
- package/dist/Card.es.js +12 -12
- package/dist/CardBackground.d.ts +6 -0
- package/dist/{CardBackground-D5SgTU1i.js → CardBackground.es.js} +4 -3
- package/dist/Chat.d.ts +6 -0
- package/dist/Chat.es.js +20 -0
- package/dist/ChatCard.d.ts +6 -0
- package/dist/ChatCard.es.js +167 -0
- package/dist/DesktopModal.d.ts +6 -0
- package/dist/DesktopModal.es.js +10 -0
- package/dist/DialogModal.es.js +4 -5
- package/dist/Divider.d.ts +6 -0
- package/dist/{Divider-BxsuAgUn.js → Divider.es.js} +1 -1
- package/dist/{DrawerMobile-CVujgYFG.js → DrawerMobile-BzwNbhK7.js} +1 -1
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/FAButton.d.ts +2 -0
- package/dist/FileCard.d.ts +6 -0
- package/dist/FileCard.es.js +176 -0
- package/dist/HelperComponent.d.ts +6 -0
- package/dist/{HelperComponent-DaFtt5zg.js → HelperComponent.es.js} +1 -1
- package/dist/Image.d.ts +2 -0
- package/dist/Input.es.js +9 -9
- package/dist/InputLegacy.d.ts +4 -0
- package/dist/InputLegacy.es.js +257 -0
- package/dist/InputMultiple.es.js +9 -9
- package/dist/InputPassword.d.ts +6 -0
- package/dist/InputPassword.es.js +42 -0
- package/dist/InputSearch.d.ts +6 -0
- package/dist/InputSearch.es.js +96 -0
- package/dist/Link.d.ts +6 -0
- package/dist/Link.es.js +143 -0
- package/dist/ListItem.d.ts +6 -0
- package/dist/{ListItem-DiQTFzmP.js → ListItem.es.js} +7 -7
- package/dist/Menu.d.ts +4 -0
- package/dist/Menu.es.js +3 -2
- package/dist/MenuList.css +1 -0
- package/dist/MenuList.d.ts +6 -0
- package/dist/MenuList.es.js +123 -0
- package/dist/MessageCard.d.ts +6 -0
- package/dist/MessageCard.es.js +83 -0
- package/dist/Modal.es.js +3 -3
- package/dist/NavigationDrawer-BaEoMYbB.js +335 -0
- package/dist/NavigationDrawer.d.ts +6 -0
- package/dist/NavigationDrawer.es.js +4 -0
- package/dist/NotificationCard.es.js +23 -23
- package/dist/PLNotificationsList.es.js +7 -7
- package/dist/PyrionLayout.es.js +591 -917
- package/dist/RadioButton.es.js +1 -1
- package/dist/RecurrentDatePicker.d.ts +4 -0
- package/dist/RecurrentDatePicker.es.js +4 -3
- package/dist/RecurrentDatePickerRRule.d.ts +4 -0
- package/dist/RecurrentDatePickerRRule.es.js +100 -99
- package/dist/Scrollable.es.js +13 -2
- package/dist/Select.css +1 -1
- package/dist/Select.es.js +1379 -2
- package/dist/SelectLegacy.es.js +1 -1
- package/dist/SelectSearch.es.js +13 -13
- package/dist/Switch.es.js +3 -78
- package/dist/TabLinks.es.js +3 -2
- package/dist/TabSwitch.es.js +86 -222
- package/dist/Table.es.js +2 -2
- package/dist/Tabs.d.ts +6 -0
- package/dist/{TabLinks-DCCTKkqk.js → Tabs.es.js} +83 -124
- package/dist/TextArea.es.js +5 -5
- package/dist/Toggle.d.ts +6 -0
- package/dist/Toggle.es.js +80 -0
- package/dist/UserAccountMenu.d.ts +6 -0
- package/dist/UserAccountMenu.es.js +142 -0
- package/dist/components/ActionInput/ActionInput.AttachFields.d.ts +6 -0
- package/dist/components/ActionInput/ActionInput.Footer.d.ts +6 -0
- package/dist/components/ActionInput/ActionInput.d.ts +14 -0
- package/dist/components/ActionInput/ActionInput.types.d.ts +28 -0
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/exports/ActionInput.d.ts +2 -0
- package/dist/exports/Badge.d.ts +2 -0
- package/dist/exports/CardBackground.d.ts +3 -0
- package/dist/exports/DialogModal.d.ts +1 -1
- package/dist/exports/Divider.d.ts +2 -0
- package/dist/exports/FAButton.d.ts +1 -0
- package/dist/exports/FileCard.d.ts +3 -0
- package/dist/exports/Image.d.ts +1 -0
- package/dist/exports/ImageGallery.d.ts +1 -0
- package/dist/exports/InputLegacy.d.ts +1 -0
- package/dist/exports/InputPassword.d.ts +2 -0
- package/dist/exports/ListItem.d.ts +1 -1
- package/dist/exports/Menu.d.ts +1 -0
- package/dist/exports/MenuList.d.ts +1 -0
- package/dist/exports/MessageCard.d.ts +2 -0
- package/dist/exports/NavigationDrawer.d.ts +2 -0
- package/dist/exports/RecurrentDatePicker.d.ts +2 -0
- package/dist/exports/RecurrentDatePickerRRule.d.ts +1 -0
- package/dist/exports/TabLinks.d.ts +1 -1
- package/dist/exports/Tabs.d.ts +4 -0
- package/dist/exports/Toggle.d.ts +1 -1
- package/dist/exports/UserAccountMenu.d.ts +2 -0
- package/dist/index.d.ts +124 -120
- package/dist/prometeo-design-system.es.js +407 -1088
- package/dist/styles.css +1 -1
- package/dist/useAutocomplete-5HfWBKc-.js +175 -0
- package/dist/{useModalControl-Bmu_6wf8.js → useModalControl-BE-IfhuR.js} +20 -20
- package/dist/useScrollable.d.ts +2 -0
- package/dist/{Scrollable-BaO4iaOO.js → useScrollable.es.js} +199 -210
- package/package.json +76 -4
- package/src/styles/tokens.css +11 -6
- package/dist/Select-BwLe1K7c.js +0 -1496
package/dist/AttachInput.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { c as s } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { memo as T, forwardRef as
|
|
4
|
-
import { useDropzone as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import { memo as T, forwardRef as P, useCallback as E } from "react";
|
|
4
|
+
import { useDropzone as G } from "react-dropzone";
|
|
5
|
+
import H from "./PlainTooltip.es.js";
|
|
6
|
+
import _ from "./HelperComponent.es.js";
|
|
7
7
|
import { c as i } from "./index-BOQuZ0gG.js";
|
|
8
8
|
import { UploadCloud as q } from "./Icons/UploadCloud.es.js";
|
|
9
9
|
import { Info as K } from "./Icons/Info.es.js";
|
|
@@ -76,7 +76,7 @@ const O = i(
|
|
|
76
76
|
return `Máximo ${e} ${e === 1 ? "archivo" : "archivos"} permitido${e === 1 ? "" : "s"}`;
|
|
77
77
|
const o = t.length;
|
|
78
78
|
return o === 1 ? "El archivo no pudo cargarse" : `${o} archivos no pudieron cargarse`;
|
|
79
|
-
}, Z = (t, e) => e ? "reject" : t ? "active" : "idle", N =
|
|
79
|
+
}, Z = (t, e) => e ? "reject" : t ? "active" : "idle", N = P(
|
|
80
80
|
({
|
|
81
81
|
onFilesAccepted: t,
|
|
82
82
|
onFilesRejected: e,
|
|
@@ -93,7 +93,7 @@ const O = i(
|
|
|
93
93
|
maxSize: p,
|
|
94
94
|
...M
|
|
95
95
|
}, C) => {
|
|
96
|
-
const D =
|
|
96
|
+
const D = E(
|
|
97
97
|
(g, j) => {
|
|
98
98
|
g.length > 0 && t?.(g), j.length > 0 && e?.(j);
|
|
99
99
|
},
|
|
@@ -104,7 +104,7 @@ const O = i(
|
|
|
104
104
|
isDragActive: k,
|
|
105
105
|
isDragReject: A,
|
|
106
106
|
fileRejections: b
|
|
107
|
-
} =
|
|
107
|
+
} = G({
|
|
108
108
|
onDrop: D,
|
|
109
109
|
accept: m,
|
|
110
110
|
maxFiles: h,
|
|
@@ -183,7 +183,7 @@ const O = i(
|
|
|
183
183
|
X(p)
|
|
184
184
|
] })
|
|
185
185
|
] }),
|
|
186
|
-
/* @__PURE__ */ r.jsx(
|
|
186
|
+
/* @__PURE__ */ r.jsx(H, { title: B, children: /* @__PURE__ */ r.jsx(
|
|
187
187
|
K,
|
|
188
188
|
{
|
|
189
189
|
size: 12,
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { j as b } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { useRef as x, useMemo as f } from "react";
|
|
3
|
+
import V from "./Select.es.js";
|
|
4
|
+
import { u as y } from "./useAutocomplete-5HfWBKc-.js";
|
|
5
|
+
import { g as l } from "./utils-X4-h3cum.js";
|
|
6
|
+
const _ = (e) => {
|
|
7
|
+
const a = x(void 0), { asyncMode: u = "fetch_in_open" } = e, { inputValue: r, setInputValue: i, filteredOptions: c, isLoading: s, value: n, onOptionClick: g } = y({
|
|
8
|
+
fetcher: e.fetcher,
|
|
9
|
+
asyncMode: u,
|
|
10
|
+
debounceDelay: e.debounceDelay,
|
|
11
|
+
disabled: e.disabled,
|
|
12
|
+
multiple: e.multiple,
|
|
13
|
+
optionValue: e.optionValue,
|
|
14
|
+
optionLabel: e.optionLabel,
|
|
15
|
+
onFetchingStart: () => {
|
|
16
|
+
u === "fetch_on_type" && a.current?.open();
|
|
17
|
+
},
|
|
18
|
+
onTypeStart: () => {
|
|
19
|
+
!e?.fetcher && a.current?.open();
|
|
20
|
+
}
|
|
21
|
+
}), d = e.multiple ? f(() => n.map((o) => l(o, e.optionValue)), [n, e.optionValue]) : f(() => l(n, e.optionValue), [n, e.optionValue]), h = (o) => {
|
|
22
|
+
const t = c.find((m) => l(m, e.optionValue) === o.id);
|
|
23
|
+
t && g(t);
|
|
24
|
+
}, S = (o) => {
|
|
25
|
+
o && h(o);
|
|
26
|
+
}, C = (o) => {
|
|
27
|
+
for (const t of o)
|
|
28
|
+
n.some(
|
|
29
|
+
(O) => l(O, e.optionValue) === t.id
|
|
30
|
+
) || h(t);
|
|
31
|
+
}, p = () => {
|
|
32
|
+
i("");
|
|
33
|
+
};
|
|
34
|
+
return e.multiple ? /* @__PURE__ */ b.jsx(
|
|
35
|
+
V,
|
|
36
|
+
{
|
|
37
|
+
multiple: !0,
|
|
38
|
+
label: e.label || "",
|
|
39
|
+
value: d,
|
|
40
|
+
options: c,
|
|
41
|
+
optionValue: e.optionValue,
|
|
42
|
+
optionLabel: e.optionLabel,
|
|
43
|
+
renderOption: e.renderOption,
|
|
44
|
+
onChange: C,
|
|
45
|
+
displayMode: "chips",
|
|
46
|
+
controls: a,
|
|
47
|
+
emptyMessage: "Use el buscador para obtener las opciones disponibles",
|
|
48
|
+
dropdownOptions: {
|
|
49
|
+
controledSearchValue: r,
|
|
50
|
+
onSearchValueChange: i,
|
|
51
|
+
onSearchClear: p,
|
|
52
|
+
dropdownHeight: "600px",
|
|
53
|
+
inputSearchPlaceholder: "Buscar pokemons"
|
|
54
|
+
},
|
|
55
|
+
isLoading: s
|
|
56
|
+
}
|
|
57
|
+
) : /* @__PURE__ */ b.jsx(
|
|
58
|
+
V,
|
|
59
|
+
{
|
|
60
|
+
label: e.label || "",
|
|
61
|
+
value: d,
|
|
62
|
+
options: c,
|
|
63
|
+
optionValue: e.optionValue,
|
|
64
|
+
optionLabel: e.optionLabel,
|
|
65
|
+
renderOption: e.renderOption,
|
|
66
|
+
onChange: S,
|
|
67
|
+
displayMode: "compact",
|
|
68
|
+
controls: a,
|
|
69
|
+
emptyMessage: "Use el buscador para obtener las opciones disponibles",
|
|
70
|
+
dropdownOptions: {
|
|
71
|
+
controledSearchValue: r,
|
|
72
|
+
onSearchValueChange: i,
|
|
73
|
+
onSearchClear: p,
|
|
74
|
+
dropdownHeight: "600px",
|
|
75
|
+
inputSearchPlaceholder: "Buscar pokemons"
|
|
76
|
+
},
|
|
77
|
+
isLoading: s
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
_ as default
|
|
83
|
+
};
|
package/dist/Badge.d.ts
ADDED
package/dist/Badge.es.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as l } from "./index-BOQuZ0gG.js";
|
|
3
|
+
import { c as m } from "./cn-B6yFEsav.js";
|
|
4
|
+
const u = "brand", o = 99, d = l("radius-full flex items-center justify-center font-medium select-none", {
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
small: "size-2",
|
|
8
|
+
medium: "size-[20px] p-1"
|
|
9
|
+
},
|
|
10
|
+
color: {
|
|
11
|
+
neutral: "bg-neutral-tertiary-default text-neutral-default-default icon-neutral-default-default",
|
|
12
|
+
brand: "bg-brand-primary-default text-neutral-default-default icon-brand-primary-default",
|
|
13
|
+
warning: "bg-warning-primary-default text-semantic-warning-primary-default icon-semantic-warning-primary-default",
|
|
14
|
+
success: "bg-success-primary-default text-semantic-success-primary-default icon-semantic-success-primary-default",
|
|
15
|
+
error: "bg-error-primary-default text-semantic-error-primary-default icon-semantic-error-primary-default"
|
|
16
|
+
},
|
|
17
|
+
isTextVariant: {
|
|
18
|
+
true: " min-w-max px-1 py-0.5",
|
|
19
|
+
false: ""
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
compoundVariants: []
|
|
23
|
+
}), N = (e) => {
|
|
24
|
+
const a = e.color ?? u;
|
|
25
|
+
if (x(e))
|
|
26
|
+
return /* @__PURE__ */ t.jsx(i, { size: "small", color: a, isTextVariant: !1, className: e.className });
|
|
27
|
+
if (y(e)) {
|
|
28
|
+
const n = e.icon;
|
|
29
|
+
return /* @__PURE__ */ t.jsx(i, { size: "medium", color: a, isTextVariant: !1, className: e.className, children: n && /* @__PURE__ */ t.jsx(n, { size: 14 }) });
|
|
30
|
+
}
|
|
31
|
+
const s = f(e), r = !c(e);
|
|
32
|
+
return /* @__PURE__ */ t.jsx(i, { size: "medium", color: a, isTextVariant: r, className: e.className, children: /* @__PURE__ */ t.jsx("span", { className: "pyrion-fonts-label-small text-center", children: s }) });
|
|
33
|
+
}, f = (e) => {
|
|
34
|
+
if (c(e)) {
|
|
35
|
+
const a = e.maxCount ?? o;
|
|
36
|
+
return e.count > a ? `+${a}` : e.count;
|
|
37
|
+
}
|
|
38
|
+
return e.text;
|
|
39
|
+
}, x = (e) => e.size === "small", y = (e) => e.variant === "icon", c = (e) => typeof e.count == "number", i = ({
|
|
40
|
+
size: e,
|
|
41
|
+
color: a,
|
|
42
|
+
isTextVariant: s,
|
|
43
|
+
children: r,
|
|
44
|
+
className: n
|
|
45
|
+
}) => /* @__PURE__ */ t.jsx("div", { className: m(d({ size: e, color: a, isTextVariant: s }), n), children: r });
|
|
46
|
+
export {
|
|
47
|
+
N as Badge
|
|
48
|
+
};
|
package/dist/Card.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { createContext as p, useContext as j, memo as
|
|
3
|
-
import { c as
|
|
2
|
+
import { createContext as p, useContext as j, memo as s, forwardRef as w, useMemo as z } from "react";
|
|
3
|
+
import { c as d } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { c as i } from "./index-BOQuZ0gG.js";
|
|
5
|
-
import
|
|
5
|
+
import F from "./CardBackground.es.js";
|
|
6
6
|
const l = p(null);
|
|
7
7
|
function C() {
|
|
8
8
|
const a = j(l);
|
|
@@ -55,14 +55,14 @@ const H = i(
|
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
57
57
|
ref: h,
|
|
58
|
-
className:
|
|
58
|
+
className: d(H({ direction: t }), x),
|
|
59
59
|
...v,
|
|
60
60
|
children: [
|
|
61
61
|
/* @__PURE__ */ o.jsx(
|
|
62
62
|
F,
|
|
63
63
|
{
|
|
64
64
|
...e,
|
|
65
|
-
className:
|
|
65
|
+
className: d(
|
|
66
66
|
"inset-0 absolute z-0",
|
|
67
67
|
e?.className
|
|
68
68
|
)
|
|
@@ -72,31 +72,31 @@ const H = i(
|
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
) });
|
|
75
|
-
}), m =
|
|
75
|
+
}), m = s(function({
|
|
76
76
|
children: r,
|
|
77
77
|
className: t,
|
|
78
78
|
...e
|
|
79
79
|
}) {
|
|
80
80
|
const { direction: n } = C();
|
|
81
|
-
return /* @__PURE__ */ o.jsx("div", { className:
|
|
82
|
-
}), u =
|
|
81
|
+
return /* @__PURE__ */ o.jsx("div", { className: d(V({ direction: n }), t), ...e, children: r });
|
|
82
|
+
}), u = s(function({
|
|
83
83
|
children: r,
|
|
84
84
|
className: t,
|
|
85
85
|
...e
|
|
86
86
|
}) {
|
|
87
|
-
return /* @__PURE__ */ o.jsx("div", { className:
|
|
88
|
-
}), f =
|
|
87
|
+
return /* @__PURE__ */ o.jsx("div", { className: d(k(), t), ...e, children: r });
|
|
88
|
+
}), f = s(function({
|
|
89
89
|
children: r,
|
|
90
90
|
className: t,
|
|
91
91
|
...e
|
|
92
92
|
}) {
|
|
93
93
|
const { direction: n } = C();
|
|
94
|
-
return /* @__PURE__ */ o.jsx("div", { className:
|
|
94
|
+
return /* @__PURE__ */ o.jsx("div", { className: d(b({ direction: n }), t), ...e, children: r });
|
|
95
95
|
});
|
|
96
96
|
function E(a, r) {
|
|
97
97
|
return a.variant === r.variant && a.direction === r.direction && a.className === r.className && a.children === r.children && a.cardBackground === r.cardBackground;
|
|
98
98
|
}
|
|
99
|
-
const c =
|
|
99
|
+
const c = s(y, E);
|
|
100
100
|
c.Header = m;
|
|
101
101
|
c.Content = u;
|
|
102
102
|
c.Footer = f;
|
package/dist/Chat.d.ts
ADDED
package/dist/Chat.es.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { memo as r, forwardRef as f } from "react";
|
|
3
|
+
import { c as e } from "./cn-B6yFEsav.js";
|
|
4
|
+
import i from "./CardBackground.es.js";
|
|
5
|
+
const c = f(function({ cardBackground: s, children: t, className: o, ...l }, m) {
|
|
6
|
+
return /* @__PURE__ */ a.jsxs("div", { className: e("relative w-full", o), ref: m, ...l, children: [
|
|
7
|
+
s && /* @__PURE__ */ a.jsx(
|
|
8
|
+
i,
|
|
9
|
+
{
|
|
10
|
+
...s,
|
|
11
|
+
className: e("absolute inset-0 z-0", s.className)
|
|
12
|
+
}
|
|
13
|
+
),
|
|
14
|
+
/* @__PURE__ */ a.jsx("div", { className: "relative z-10 flex flex-col w-full overflow-y-auto", children: t })
|
|
15
|
+
] });
|
|
16
|
+
}), n = r(c);
|
|
17
|
+
n.displayName = "Chat";
|
|
18
|
+
export {
|
|
19
|
+
n as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { j as r } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { useContext as p, createContext as C, memo as d, forwardRef as v, useMemo as g } from "react";
|
|
3
|
+
import { c as l } from "./cn-B6yFEsav.js";
|
|
4
|
+
import { c as m } from "./index-BOQuZ0gG.js";
|
|
5
|
+
import j from "./Avatar.es.js";
|
|
6
|
+
import y from "./CardBackground.es.js";
|
|
7
|
+
import N from "./Link.es.js";
|
|
8
|
+
const f = C(null);
|
|
9
|
+
function w() {
|
|
10
|
+
const t = p(f);
|
|
11
|
+
if (!t)
|
|
12
|
+
throw new Error("ChatCard must be used inside <ChatCard.Participant>");
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
function b(t) {
|
|
16
|
+
if (!t) return;
|
|
17
|
+
if (typeof t == "string") return t;
|
|
18
|
+
const a = String(t.getDate()).padStart(2, "0"), e = String(t.getMonth() + 1).padStart(2, "0"), n = t.getFullYear(), s = String(t.getHours()).padStart(2, "0"), i = String(t.getMinutes()).padStart(2, "0");
|
|
19
|
+
return `${a}/${e}/${n}, ${s}:${i}`;
|
|
20
|
+
}
|
|
21
|
+
const S = m("relative flex flex-col gap-1 justify-start", {
|
|
22
|
+
variants: {
|
|
23
|
+
direction: {
|
|
24
|
+
left: "items-start",
|
|
25
|
+
right: "items-end"
|
|
26
|
+
},
|
|
27
|
+
withAvatar: {
|
|
28
|
+
true: "",
|
|
29
|
+
false: ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
compoundVariants: [
|
|
33
|
+
{ direction: "left", withAvatar: !0, class: "pl-12" },
|
|
34
|
+
{ direction: "right", withAvatar: !0, class: "pr-12" }
|
|
35
|
+
]
|
|
36
|
+
}), P = m("flex gap-1", {
|
|
37
|
+
variants: {
|
|
38
|
+
direction: {
|
|
39
|
+
left: "flex-row",
|
|
40
|
+
right: "flex-row-reverse"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}), z = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)]", {
|
|
44
|
+
variants: {
|
|
45
|
+
direction: {
|
|
46
|
+
left: "[&:last-child]:rounded-bl-none",
|
|
47
|
+
right: "[&:last-child]:rounded-br-none"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}), V = m("flex flex-col gap-1 relative z-10 px-3 pt-3"), h = d(function({
|
|
51
|
+
children: a,
|
|
52
|
+
className: e,
|
|
53
|
+
...n
|
|
54
|
+
}) {
|
|
55
|
+
return /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-2", e), ...n, children: a });
|
|
56
|
+
}), x = d(function({
|
|
57
|
+
children: a,
|
|
58
|
+
className: e,
|
|
59
|
+
...n
|
|
60
|
+
}) {
|
|
61
|
+
return /* @__PURE__ */ r.jsx(
|
|
62
|
+
"p",
|
|
63
|
+
{
|
|
64
|
+
className: l(
|
|
65
|
+
"pyrion-fonts-body-medium text-neutral-primary-default",
|
|
66
|
+
e
|
|
67
|
+
),
|
|
68
|
+
...n,
|
|
69
|
+
children: a
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}), u = d(function({
|
|
73
|
+
date: a,
|
|
74
|
+
leftSlot: e,
|
|
75
|
+
actions: n,
|
|
76
|
+
className: s,
|
|
77
|
+
...i
|
|
78
|
+
}) {
|
|
79
|
+
const o = b(a);
|
|
80
|
+
return /* @__PURE__ */ r.jsxs(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
className: l(
|
|
84
|
+
"flex items-center pl-3 pr-1 pb-1 relative z-10 min-h-[28px]",
|
|
85
|
+
s
|
|
86
|
+
),
|
|
87
|
+
...i,
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1 flex-1 pyrion-fonts-body-small text-neutral-tertiary-default", children: [
|
|
90
|
+
e,
|
|
91
|
+
o && /* @__PURE__ */ r.jsx("span", { children: o })
|
|
92
|
+
] }),
|
|
93
|
+
n && /* @__PURE__ */ r.jsx("div", { className: "shrink-0", children: n })
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}), A = v(function({ cardBackground: a, children: e, className: n, ...s }, i) {
|
|
98
|
+
const { direction: o } = w();
|
|
99
|
+
return /* @__PURE__ */ r.jsxs(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
className: l(z({ direction: o }), n),
|
|
103
|
+
ref: i,
|
|
104
|
+
...s,
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ r.jsx(
|
|
107
|
+
y,
|
|
108
|
+
{
|
|
109
|
+
color: "neutral",
|
|
110
|
+
variant: "secondary",
|
|
111
|
+
...a,
|
|
112
|
+
className: l("absolute inset-0 z-0", a?.className)
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ r.jsx("div", { className: V(), children: e })
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}), c = d(A);
|
|
120
|
+
function F({
|
|
121
|
+
direction: t,
|
|
122
|
+
avatar: a,
|
|
123
|
+
link: e,
|
|
124
|
+
children: n,
|
|
125
|
+
className: s
|
|
126
|
+
}) {
|
|
127
|
+
const i = g(
|
|
128
|
+
() => ({ direction: t, avatar: a, link: e }),
|
|
129
|
+
[t, a, e]
|
|
130
|
+
), o = e.href ? { href: e.href } : { onClick: e.onClick };
|
|
131
|
+
return /* @__PURE__ */ r.jsx(f.Provider, { value: i, children: /* @__PURE__ */ r.jsxs(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
className: l(
|
|
135
|
+
S({ direction: t, withAvatar: !0 }),
|
|
136
|
+
s
|
|
137
|
+
),
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ r.jsxs("div", { className: P({ direction: t }), children: [
|
|
140
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex items-end shrink-0 self-end", children: /* @__PURE__ */ r.jsx(j, { ...a, size: a.size ?? "small" }) }),
|
|
141
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: n })
|
|
142
|
+
] }),
|
|
143
|
+
/* @__PURE__ */ r.jsx(
|
|
144
|
+
N,
|
|
145
|
+
{
|
|
146
|
+
color: "brand",
|
|
147
|
+
size: "medium",
|
|
148
|
+
withBackground: !1,
|
|
149
|
+
...o,
|
|
150
|
+
children: e.label
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
) });
|
|
156
|
+
}
|
|
157
|
+
c.Content = h;
|
|
158
|
+
c.Text = x;
|
|
159
|
+
c.Footer = u;
|
|
160
|
+
c.Participant = F;
|
|
161
|
+
c.displayName = "ChatCard";
|
|
162
|
+
h.displayName = "ChatCard.Content";
|
|
163
|
+
x.displayName = "ChatCard.Text";
|
|
164
|
+
u.displayName = "ChatCard.Footer";
|
|
165
|
+
export {
|
|
166
|
+
c as default
|
|
167
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a as o, u as t } from "./useModalControl-BE-IfhuR.js";
|
|
2
|
+
import { D as u } from "./useModalControl-BE-IfhuR.js";
|
|
3
|
+
const e = o, s = t;
|
|
4
|
+
export {
|
|
5
|
+
u as default,
|
|
6
|
+
e as useDesktopModalControl,
|
|
7
|
+
s as useDesktopModalState,
|
|
8
|
+
o as useModalControl,
|
|
9
|
+
t as useModalState
|
|
10
|
+
};
|
package/dist/DialogModal.es.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const s = o, e = t;
|
|
1
|
+
import { D as t } from "./useModalControl-BE-IfhuR.js";
|
|
2
|
+
import { useDesktopModalControl as s, useDesktopModalState as l } from "./DesktopModal.es.js";
|
|
4
3
|
export {
|
|
5
|
-
|
|
4
|
+
t as default,
|
|
6
5
|
s as useDialogControl,
|
|
7
|
-
|
|
6
|
+
l as useDialogState
|
|
8
7
|
};
|
|
@@ -2,7 +2,7 @@ import { j as l } from "./jsx-runtime-GkKLlHH4.js";
|
|
|
2
2
|
import qe, { useContext as pt, createContext as yt, useRef as f, useState as se, useMemo as ye, useCallback as n, useLayoutEffect as X, useEffect as A, forwardRef as xt, useImperativeHandle as bt } from "react";
|
|
3
3
|
import { createPortal as vt } from "react-dom";
|
|
4
4
|
import { c as E } from "./cn-B6yFEsav.js";
|
|
5
|
-
import
|
|
5
|
+
import wt from "./Divider.es.js";
|
|
6
6
|
import Ht from "./IconButton.es.js";
|
|
7
7
|
import { Close as St } from "./Icons/Close.es.js";
|
|
8
8
|
const Oe = yt(
|
package/dist/DrawerMobile.es.js
CHANGED
package/dist/FAButton.d.ts
CHANGED