@solibo/solibo-ui 2.1.2 → 2.2.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/assets/Degular.woff2 +0 -0
- package/dist/assets/Geist.woff2 +0 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index50.css +1 -1
- package/dist/assets/index51.css +1 -1
- package/dist/assets/index52.css +1 -1
- package/dist/assets/index53.css +1 -1
- package/dist/assets/index54.css +1 -1
- package/dist/assets/index55.css +1 -1
- package/dist/assets/index56.css +1 -0
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/menu-popover.css +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +1 -1
- package/dist/components/app-shell/index.cjs +1 -1
- package/dist/components/app-shell/index.js +3 -3
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +5 -5
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.js +30 -30
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +4 -4
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +2 -2
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +29 -29
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.js +54 -46
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/chip/index.cjs +1 -1
- package/dist/components/chip/index.js +25 -25
- package/dist/components/collapsible/index.cjs +1 -1
- package/dist/components/collapsible/index.js +34 -18
- package/dist/components/controls/index.cjs +2 -2
- package/dist/components/controls/index.js +11 -11
- package/dist/components/croppable/index.cjs +1 -1
- package/dist/components/croppable/index.js +1 -1
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +38 -38
- package/dist/components/divider/index.cjs +1 -1
- package/dist/components/divider/index.js +3 -3
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +89 -89
- package/dist/components/dropzone/index.cjs +1 -1
- package/dist/components/dropzone/index.js +11 -11
- package/dist/components/editor/index.cjs +1 -55
- package/dist/components/editor/index.js +403 -16299
- package/dist/components/fieldset/index.cjs +1 -1
- package/dist/components/fieldset/index.js +3 -3
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.js +14 -12
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.js +1 -1
- package/dist/components/footer/index.cjs +1 -1
- package/dist/components/footer/index.js +12 -8
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +9 -9
- package/dist/components/graph/index.cjs +1 -1
- package/dist/components/graph/index.js +12 -12
- package/dist/components/group/index.cjs +1 -1
- package/dist/components/group/index.js +38 -11
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +49 -32
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +6 -6
- package/dist/components/iframe/index.cjs +1 -1
- package/dist/components/iframe/index.js +71 -66
- package/dist/components/image/index.cjs +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +2 -2
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +27 -14
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +62 -58
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +5 -5
- package/dist/components/menu/index.cjs +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.js +2 -2
- package/dist/components/messages/index.cjs +1 -1
- package/dist/components/messages/index.js +6 -6
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +31 -29
- package/dist/components/object/index.cjs +1 -1
- package/dist/components/object/index.js +1 -1
- package/dist/components/page-layout/index.cjs +1 -1
- package/dist/components/page-layout/index.js +33 -20
- package/dist/components/panel/index.cjs +2 -0
- package/dist/components/panel/index.js +25 -0
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +35 -35
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.js +22 -22
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.js +50 -50
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/sortable/index.cjs +1 -1
- package/dist/components/sortable/index.js +49 -49
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.js +29 -27
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.js +10 -10
- package/dist/components/toolbar/index.cjs +1 -1
- package/dist/components/toolbar/index.js +4 -4
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.js +2 -2
- package/dist/components/widget/index.cjs +1 -1
- package/dist/components/widget/index.js +22 -13
- package/dist/{index-CMPTHneU.js → index-BlirPoN9.js} +8 -8
- package/dist/{index-BIpgkB-u.js → index-C3NJXvlq.js} +11 -11
- package/dist/index-CireNaZt.cjs +2 -0
- package/dist/index-O1kh8Vnq.cjs +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +379 -14
- package/dist/index.js +59 -56
- package/dist/menu-popover-Ceb_9V67.js +77 -0
- package/dist/menu-popover-bqblnK6P.cjs +2 -0
- package/dist/styles/fonts.css +11 -0
- package/dist/tokens.json +1 -1
- package/package.json +15 -8
- package/dist/classix-5H4IWnMA.cjs +0 -2
- package/dist/classix-5H4IWnMA.cjs.map +0 -1
- package/dist/classix-DG18itHa.js +0 -9
- package/dist/classix-DG18itHa.js.map +0 -1
- package/dist/components/app-link/index.cjs.map +0 -1
- package/dist/components/app-link/index.js.map +0 -1
- package/dist/components/app-shell/index.cjs.map +0 -1
- package/dist/components/app-shell/index.js.map +0 -1
- package/dist/components/aside/index.cjs.map +0 -1
- package/dist/components/aside/index.js.map +0 -1
- package/dist/components/avatar/index.cjs.map +0 -1
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/badge/index.cjs.map +0 -1
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/banner/index.cjs.map +0 -1
- package/dist/components/banner/index.js.map +0 -1
- package/dist/components/branding/index.cjs.map +0 -1
- package/dist/components/branding/index.js.map +0 -1
- package/dist/components/button/index.cjs.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/card/index.cjs.map +0 -1
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/checkbox/index.cjs.map +0 -1
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/chip/index.cjs.map +0 -1
- package/dist/components/chip/index.js.map +0 -1
- package/dist/components/clipboard/index.cjs.map +0 -1
- package/dist/components/clipboard/index.js.map +0 -1
- package/dist/components/collapsible/index.cjs.map +0 -1
- package/dist/components/collapsible/index.js.map +0 -1
- package/dist/components/controls/index.cjs.map +0 -1
- package/dist/components/controls/index.js.map +0 -1
- package/dist/components/croppable/index.cjs.map +0 -1
- package/dist/components/croppable/index.js.map +0 -1
- package/dist/components/dialog/index.cjs.map +0 -1
- package/dist/components/dialog/index.js.map +0 -1
- package/dist/components/divider/index.cjs.map +0 -1
- package/dist/components/divider/index.js.map +0 -1
- package/dist/components/dropdown/index.cjs.map +0 -1
- package/dist/components/dropdown/index.js.map +0 -1
- package/dist/components/dropzone/index.cjs.map +0 -1
- package/dist/components/dropzone/index.js.map +0 -1
- package/dist/components/editor/index.cjs.map +0 -1
- package/dist/components/editor/index.js.map +0 -1
- package/dist/components/empty-state/index.cjs.map +0 -1
- package/dist/components/empty-state/index.js.map +0 -1
- package/dist/components/fieldset/index.cjs.map +0 -1
- package/dist/components/fieldset/index.js.map +0 -1
- package/dist/components/figure/index.cjs.map +0 -1
- package/dist/components/figure/index.js.map +0 -1
- package/dist/components/file/index.cjs.map +0 -1
- package/dist/components/file/index.js.map +0 -1
- package/dist/components/footer/index.cjs.map +0 -1
- package/dist/components/footer/index.js.map +0 -1
- package/dist/components/form/index.cjs.map +0 -1
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/graph/index.cjs.map +0 -1
- package/dist/components/graph/index.js.map +0 -1
- package/dist/components/group/index.cjs.map +0 -1
- package/dist/components/group/index.js.map +0 -1
- package/dist/components/header/index.cjs.map +0 -1
- package/dist/components/header/index.js.map +0 -1
- package/dist/components/icon/index.cjs.map +0 -1
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/iframe/index.cjs.map +0 -1
- package/dist/components/iframe/index.js.map +0 -1
- package/dist/components/image/index.cjs.map +0 -1
- package/dist/components/image/index.js.map +0 -1
- package/dist/components/input/index.cjs.map +0 -1
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/link/index.cjs.map +0 -1
- package/dist/components/link/index.js.map +0 -1
- package/dist/components/list/index.cjs.map +0 -1
- package/dist/components/list/index.js.map +0 -1
- package/dist/components/loading/index.cjs.map +0 -1
- package/dist/components/loading/index.js.map +0 -1
- package/dist/components/menu/index.cjs.map +0 -1
- package/dist/components/menu/index.js.map +0 -1
- package/dist/components/message/index.cjs.map +0 -1
- package/dist/components/message/index.js.map +0 -1
- package/dist/components/messages/index.cjs.map +0 -1
- package/dist/components/messages/index.js.map +0 -1
- package/dist/components/nav/index.cjs.map +0 -1
- package/dist/components/nav/index.js.map +0 -1
- package/dist/components/object/index.cjs.map +0 -1
- package/dist/components/object/index.js.map +0 -1
- package/dist/components/page-layout/index.cjs.map +0 -1
- package/dist/components/page-layout/index.js.map +0 -1
- package/dist/components/popover/index.cjs.map +0 -1
- package/dist/components/popover/index.js.map +0 -1
- package/dist/components/portal/index.cjs.map +0 -1
- package/dist/components/portal/index.js.map +0 -1
- package/dist/components/search/index.cjs.map +0 -1
- package/dist/components/search/index.js.map +0 -1
- package/dist/components/select/index.cjs.map +0 -1
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/sortable/index.cjs.map +0 -1
- package/dist/components/sortable/index.js.map +0 -1
- package/dist/components/table/index.cjs.map +0 -1
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/textarea/index.cjs.map +0 -1
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/toast/index.cjs.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toasts/index.cjs.map +0 -1
- package/dist/components/toasts/index.js.map +0 -1
- package/dist/components/toggle/index.cjs.map +0 -1
- package/dist/components/toggle/index.js.map +0 -1
- package/dist/components/toolbar/index.cjs.map +0 -1
- package/dist/components/toolbar/index.js.map +0 -1
- package/dist/components/tooltip/index.cjs.map +0 -1
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/widget/index.cjs.map +0 -1
- package/dist/components/widget/index.js.map +0 -1
- package/dist/icons-B3hIY9Bm.cjs.map +0 -1
- package/dist/icons-CTtWkF6z.js.map +0 -1
- package/dist/index-BIpgkB-u.js.map +0 -1
- package/dist/index-Bbauu1No.cjs +0 -2
- package/dist/index-Bbauu1No.cjs.map +0 -1
- package/dist/index-CMPTHneU.js.map +0 -1
- package/dist/index-DAjU2bTe.cjs +0 -2
- package/dist/index-DAjU2bTe.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/menu-popover-BV7nUXlb.js +0 -77
- package/dist/menu-popover-BV7nUXlb.js.map +0 -1
- package/dist/menu-popover-fGpFDJTo.cjs +0 -2
- package/dist/menu-popover-fGpFDJTo.cjs.map +0 -1
- package/dist/use-touched-B999bBr8.js.map +0 -1
- package/dist/use-touched-Bq5Gjbpz.cjs.map +0 -1
|
@@ -1,89 +1,94 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { useRef as H, useState as
|
|
1
|
+
import { jsxs as N, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import O from "classix";
|
|
3
|
+
import { useRef as H, useState as C, useCallback as E, useEffect as S } from "react";
|
|
4
4
|
import { Button as U } from "../button/index.js";
|
|
5
|
-
import { Controls as
|
|
6
|
-
import { Dialog as
|
|
7
|
-
import { Header as
|
|
8
|
-
import '../../assets/
|
|
9
|
-
wrapper:
|
|
10
|
-
toolbar:
|
|
11
|
-
iframe:
|
|
12
|
-
"fullscreen-iframe": "_fullscreen-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
accessibleLabel:
|
|
16
|
-
autoResize:
|
|
17
|
-
className:
|
|
18
|
-
closeFullscreenLabel:
|
|
19
|
-
fullscreenLabel:
|
|
20
|
-
hasFullscreenView:
|
|
21
|
-
loading:
|
|
5
|
+
import { Controls as K } from "../controls/index.js";
|
|
6
|
+
import { Dialog as Q } from "../dialog/index.js";
|
|
7
|
+
import { Header as W } from "../header/index.js";
|
|
8
|
+
import '../../assets/index19.css';const Y = "_wrapper_vtkwq_1", Z = "_toolbar_vtkwq_6", z = "_iframe_vtkwq_12", o = {
|
|
9
|
+
wrapper: Y,
|
|
10
|
+
toolbar: Z,
|
|
11
|
+
iframe: z,
|
|
12
|
+
"fullscreen-iframe": "_fullscreen-iframe_vtkwq_18",
|
|
13
|
+
"print-content": "_print-content_vtkwq_23"
|
|
14
|
+
}, f = 120, D = 12e3, L = 8, ie = ({
|
|
15
|
+
accessibleLabel: c,
|
|
16
|
+
autoResize: i = !1,
|
|
17
|
+
className: y,
|
|
18
|
+
closeFullscreenLabel: B = "Close fullscreen",
|
|
19
|
+
fullscreenLabel: G = "View in fullscreen",
|
|
20
|
+
hasFullscreenView: V = !0,
|
|
21
|
+
loading: $ = "lazy",
|
|
22
22
|
onLoad: d,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
printContent: M,
|
|
24
|
+
referrerPolicy: T = "no-referrer",
|
|
25
|
+
sandbox: k = "",
|
|
25
26
|
srcDoc: h,
|
|
26
|
-
style:
|
|
27
|
-
...
|
|
27
|
+
style: q,
|
|
28
|
+
...x
|
|
28
29
|
}) => {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
}, []), _ =
|
|
32
|
-
if (!
|
|
33
|
-
const
|
|
34
|
-
if (!
|
|
35
|
-
const m =
|
|
30
|
+
const p = H(null), a = H(null), l = H(null), [j, A] = C(f), [w, v] = C(!1), g = E(() => {
|
|
31
|
+
a.current !== null && (window.cancelAnimationFrame(a.current), a.current = null), l.current !== null && (window.clearTimeout(l.current), l.current = null);
|
|
32
|
+
}, []), _ = E(() => {
|
|
33
|
+
if (!i) return;
|
|
34
|
+
const t = p.current, e = t == null ? void 0 : t.contentDocument;
|
|
35
|
+
if (!t || !e) return;
|
|
36
|
+
const m = t.style.height;
|
|
36
37
|
try {
|
|
37
|
-
|
|
38
|
-
const s = e.querySelector("[data-iframe-content]") ?? e.body,
|
|
39
|
-
body:
|
|
40
|
-
documentElement:
|
|
41
|
-
} = e,
|
|
42
|
-
A(
|
|
38
|
+
t.style.height = `${f}px`;
|
|
39
|
+
const s = e.querySelector("[data-iframe-content]") ?? e.body, u = s.getBoundingClientRect(), {
|
|
40
|
+
body: F,
|
|
41
|
+
documentElement: I
|
|
42
|
+
} = e, J = Math.min(Math.max(Math.ceil(Math.max(s.scrollHeight, s.offsetHeight, u.height, F.scrollHeight, F.offsetHeight, I.scrollHeight, I.offsetHeight) + L), f), D);
|
|
43
|
+
A(J);
|
|
43
44
|
} catch {
|
|
44
45
|
} finally {
|
|
45
|
-
|
|
46
|
+
t.style.height = m;
|
|
46
47
|
}
|
|
47
|
-
}, [
|
|
48
|
-
!
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
}, [i]), n = E(() => {
|
|
49
|
+
!i || a.current !== null || (a.current = window.requestAnimationFrame(() => {
|
|
50
|
+
a.current = null, _(), l.current !== null && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
|
|
51
|
+
l.current = null, _();
|
|
51
52
|
}, 250);
|
|
52
53
|
}));
|
|
53
|
-
}, [
|
|
54
|
+
}, [i, _]), X = (t) => {
|
|
54
55
|
var m, s;
|
|
55
|
-
|
|
56
|
-
const e = (m =
|
|
57
|
-
Array.from((e == null ? void 0 : e.images) ?? []).forEach((
|
|
58
|
-
|
|
56
|
+
n();
|
|
57
|
+
const e = (m = p.current) == null ? void 0 : m.contentDocument;
|
|
58
|
+
Array.from((e == null ? void 0 : e.images) ?? []).forEach((u) => {
|
|
59
|
+
u.complete || (u.addEventListener("load", n, {
|
|
59
60
|
once: !0
|
|
60
|
-
}),
|
|
61
|
+
}), u.addEventListener("error", n, {
|
|
61
62
|
once: !0
|
|
62
63
|
}));
|
|
63
|
-
}), (s = e == null ? void 0 : e.fonts) == null || s.ready.then(
|
|
64
|
-
}), d == null || d(
|
|
64
|
+
}), (s = e == null ? void 0 : e.fonts) == null || s.ready.then(n).catch(() => {
|
|
65
|
+
}), d == null || d(t);
|
|
65
66
|
};
|
|
66
67
|
return S(() => {
|
|
67
|
-
if (
|
|
68
|
-
return
|
|
69
|
-
}, [
|
|
70
|
-
var
|
|
71
|
-
if (
|
|
72
|
-
return window.addEventListener("resize",
|
|
68
|
+
if (i)
|
|
69
|
+
return g(), A(f), n(), g;
|
|
70
|
+
}, [i, g, n, h]), S(() => {
|
|
71
|
+
var t;
|
|
72
|
+
if (i)
|
|
73
|
+
return window.addEventListener("resize", n), (t = window.visualViewport) == null || t.addEventListener("resize", n), () => {
|
|
73
74
|
var e;
|
|
74
|
-
window.removeEventListener("resize",
|
|
75
|
+
window.removeEventListener("resize", n), (e = window.visualViewport) == null || e.removeEventListener("resize", n);
|
|
75
76
|
};
|
|
76
|
-
}, [
|
|
77
|
-
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
...
|
|
80
|
-
height:
|
|
81
|
-
minHeight:
|
|
82
|
-
} :
|
|
83
|
-
|
|
77
|
+
}, [i, n]), /* @__PURE__ */ N("div", { className: o.wrapper, "data-component": "iframe", children: [
|
|
78
|
+
V && /* @__PURE__ */ r("div", { className: o.toolbar, children: /* @__PURE__ */ r(U, { "aria-expanded": w, "aria-haspopup": "dialog", onClick: () => v(!0), variant: "tertiary", children: G }) }),
|
|
79
|
+
/* @__PURE__ */ r("iframe", { ...x, className: O(o.iframe, y), loading: $, onLoad: X, ref: p, referrerPolicy: T, sandbox: k, srcDoc: h, style: i ? {
|
|
80
|
+
...q,
|
|
81
|
+
height: j,
|
|
82
|
+
minHeight: f
|
|
83
|
+
} : q, title: c }),
|
|
84
|
+
!w && /* @__PURE__ */ r("div", { className: o["print-content"], "data-iframe-print-content": !0, children: M ?? /* @__PURE__ */ r("p", { children: c }) }),
|
|
85
|
+
w && /* @__PURE__ */ N(Q, { "aria-label": `${c} fullscreen`, controls: /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(U, { onClick: () => v(!1), children: B }) }), fullscreen: !0, header: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("h2", { children: c }) }), open: !0, setOpen: v, children: [
|
|
86
|
+
/* @__PURE__ */ r("iframe", { ...x, className: O(o.iframe, o["fullscreen-iframe"], y), loading: "eager", referrerPolicy: T, sandbox: k, srcDoc: h, title: `${c} fullscreen` }),
|
|
87
|
+
/* @__PURE__ */ r("div", { className: o["print-content"], "data-iframe-print-content": !0, children: M ?? /* @__PURE__ */ r("p", { children: c }) })
|
|
88
|
+
] })
|
|
84
89
|
] });
|
|
85
90
|
};
|
|
86
91
|
export {
|
|
87
|
-
|
|
92
|
+
ie as Iframe
|
|
88
93
|
};
|
|
89
94
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const d=require("react/jsx-runtime"),c=require("react"),o="_image_14j8z_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:i,style:l,...t}){const u=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=u.current;e&&e.complete&&e.naturalWidth>0&&s(!0)},[t.src,t.srcSet]);const f=e=>{s(!0),a==null||a(e)},g=e=>{r&&s(!0),i==null||i(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:u,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as o, useState as h, useEffect as m } from "react";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index18.css';const y = "_image_14j8z_1", S = {
|
|
4
4
|
image: y
|
|
5
5
|
};
|
|
6
6
|
function x({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../../icons-B3hIY9Bm.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-O1kh8Vnq.cjs");exports.Input=e.Input;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "classix";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../icons-CTtWkF6z.js";
|
|
5
5
|
import "../../use-touched-B999bBr8.js";
|
|
6
|
-
import { I as a } from "../../index-
|
|
6
|
+
import { I as a } from "../../index-BlirPoN9.js";
|
|
7
7
|
export {
|
|
8
8
|
a as Input
|
|
9
9
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index51.css');const t=require("react/jsx-runtime"),o=require("classix"),c="_link_5i71r_1",l="_neutral_5i71r_19",m="_content_5i71r_24",_="_adornment_5i71r_33",d="_text_5i71r_37",u="_primary_5i71r_43",p="_danger_5i71r_49",x="_minimal_5i71r_57",n={link:c,neutral:l,content:m,adornment:_,text:d,primary:u,danger:p,minimal:x},k=({children:s,leading:e,trailing:r})=>t.jsxs("span",{className:n.content,"data-component":"linkcontent",children:[e!=null&&t.jsx("span",{className:n.adornment,children:e}),t.jsx("span",{className:n.text,children:s}),r!=null&&t.jsx("span",{className:n.adornment,children:r})]}),j=({children:s,className:e,to:r="#",variant:a="primary",...i})=>t.jsx("a",{className:o(e,n.link,n[a]),href:r,...i,"data-component":"link",children:s});exports.Link=j;exports.LinkContent=k;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import '../../assets/
|
|
4
|
-
link:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import c from "classix";
|
|
3
|
+
import '../../assets/index51.css';const m = "_link_5i71r_1", _ = "_neutral_5i71r_19", l = "_content_5i71r_24", p = "_adornment_5i71r_33", d = "_text_5i71r_37", k = "_primary_5i71r_43", x = "_danger_5i71r_49", u = "_minimal_5i71r_57", n = {
|
|
4
|
+
link: m,
|
|
5
|
+
neutral: _,
|
|
6
|
+
content: l,
|
|
7
|
+
adornment: p,
|
|
8
|
+
text: d,
|
|
9
|
+
primary: k,
|
|
10
|
+
danger: x,
|
|
11
|
+
minimal: u
|
|
12
|
+
}, h = ({
|
|
13
|
+
children: e,
|
|
14
|
+
leading: t,
|
|
15
|
+
trailing: r
|
|
16
|
+
}) => /* @__PURE__ */ i("span", { className: n.content, "data-component": "linkcontent", children: [
|
|
17
|
+
t != null && /* @__PURE__ */ a("span", { className: n.adornment, children: t }),
|
|
18
|
+
/* @__PURE__ */ a("span", { className: n.text, children: e }),
|
|
19
|
+
r != null && /* @__PURE__ */ a("span", { className: n.adornment, children: r })
|
|
20
|
+
] }), f = ({
|
|
21
|
+
children: e,
|
|
22
|
+
className: t,
|
|
23
|
+
to: r = "#",
|
|
24
|
+
variant: o = "primary",
|
|
13
25
|
...s
|
|
14
|
-
}) => /* @__PURE__ */
|
|
26
|
+
}) => /* @__PURE__ */ a("a", { className: c(t, n.link, n[o]), href: r, ...s, "data-component": "link", children: e });
|
|
15
27
|
export {
|
|
16
|
-
f as Link
|
|
28
|
+
f as Link,
|
|
29
|
+
h as LinkContent
|
|
17
30
|
};
|
|
18
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index52.css');const m=require("react/jsx-runtime"),H=require("classix"),r=require("react");function T(t){return r.isValidElement(t)&&t.type===r.Fragment}function O(t,n=[]){return r.Children.forEach(t,i=>{T(i)?O(i.props.children,n):n.push(i)}),n}function F(t,{wrapper:n="li"}={}){return O(t).filter(o=>o!==null).map((o,c)=>{if(r.isValidElement(o)&&o.type===n)return o;const u=r.isValidElement(o)&&o.key!=null?o.key:c;return r.createElement(n,{key:u,"data-component":"wrapchildren"},o)})}const V="_controls_1mogm_1",A="_horizontal_1mogm_9",I="_list_1mogm_20",D="_columns_1mogm_60",P="_masonry_1mogm_70",$="_scrollable_1mogm_80",G="_overflowing_1mogm_87",J="_sized_1mogm_110",K="_compact_1mogm_122",l={controls:V,horizontal:A,list:I,columns:D,masonry:P,scrollable:$,overflowing:G,sized:J,compact:K},M=(t,n)=>{typeof t=="function"?t(n):t&&(t.current=n)};function Q({children:t,className:n,columns:i=1,columnWidth:b,compact:o=!1,controls:c,horizontal:u,layout:h="grid",maxVisibleItems:f,ordered:B,ref:p,style:S,...d}){const v=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,y=r.useRef(null),[a,k]=r.useState(),s=h==="grid"&&v===1&&!u&&f!=null&&Number.isFinite(f)&&f>=1?Math.floor(f):void 0,w=!!s&&a!=null;r.useLayoutEffect(()=>{const e=y.current;if(!e||!s)return;const R=()=>{const _=Array.from(e.children).filter(j=>j instanceof HTMLElement&&getComputedStyle(j).display!=="none"),N=_[s-1],q=_.length>s&&N?N.getBoundingClientRect().bottom-e.getBoundingClientRect().top+e.scrollTop+(parseFloat(getComputedStyle(e).paddingBottom)||0):void 0;k(q)},g=new ResizeObserver(R),C=()=>{g.disconnect(),g.observe(e),Array.from(e.children).forEach(_=>g.observe(_)),R()},L=new MutationObserver(C);return L.observe(e,{childList:!0,subtree:!0,characterData:!0}),C(),()=>{g.disconnect(),L.disconnect()}},[t,s,w]);const x=H(n,l.list,h==="masonry"?l.masonry:v>1&&l.columns,!!s&&l.scrollable,w&&l.overflowing,u&&l.horizontal,o&&l.compact,b&&l.sized),z={...S,"--list-columns":v,"--list-column-width":b,"--list-max-height":s&&a!=null?`${a}px`:void 0},E=B?m.jsx("ol",{className:x,ref:e=>{y.current=e,M(p,e)},style:z,...d,tabIndex:d.tabIndex??(s&&a!=null?0:void 0),"data-component":"list",children:F(t)}):m.jsx("ul",{className:x,ref:e=>{y.current=e,M(p,e)},style:z,...d,tabIndex:d.tabIndex??(s&&a!=null?0:void 0),"data-component":"list",children:F(t)});return c==null?E:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:l.controls,"data-component":"list",children:c}),E]})}exports.List=Q;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,85 +1,89 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import i, { useRef as
|
|
4
|
-
import '../../assets/
|
|
1
|
+
import { jsx as b, jsxs as j, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import I from "classix";
|
|
3
|
+
import i, { useRef as T, useState as D, useLayoutEffect as $ } from "react";
|
|
4
|
+
import '../../assets/index52.css';function q(t) {
|
|
5
5
|
return i.isValidElement(t) && t.type === i.Fragment;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function O(t, n = []) {
|
|
8
8
|
return i.Children.forEach(t, (r) => {
|
|
9
|
-
|
|
10
|
-
}),
|
|
9
|
+
q(r) ? O(r.props.children, n) : n.push(r);
|
|
10
|
+
}), n;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
wrapper:
|
|
12
|
+
function B(t, {
|
|
13
|
+
wrapper: n = "li"
|
|
14
14
|
} = {}) {
|
|
15
|
-
return
|
|
16
|
-
if (i.isValidElement(
|
|
17
|
-
return
|
|
18
|
-
const
|
|
19
|
-
return i.createElement(
|
|
20
|
-
key:
|
|
21
|
-
|
|
15
|
+
return O(t).filter((o) => o !== null).map((o, c) => {
|
|
16
|
+
if (i.isValidElement(o) && o.type === n)
|
|
17
|
+
return o;
|
|
18
|
+
const m = i.isValidElement(o) && o.key != null ? o.key : c;
|
|
19
|
+
return i.createElement(n, {
|
|
20
|
+
key: m,
|
|
21
|
+
"data-component": "wrapchildren"
|
|
22
|
+
}, o);
|
|
22
23
|
});
|
|
23
24
|
}
|
|
24
|
-
const
|
|
25
|
-
controls:
|
|
26
|
-
horizontal:
|
|
27
|
-
list:
|
|
28
|
-
columns:
|
|
29
|
-
masonry:
|
|
30
|
-
scrollable:
|
|
31
|
-
overflowing:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
const G = "_controls_1mogm_1", J = "_horizontal_1mogm_9", K = "_list_1mogm_20", P = "_columns_1mogm_60", Q = "_masonry_1mogm_70", U = "_scrollable_1mogm_80", X = "_overflowing_1mogm_87", Y = "_sized_1mogm_110", Z = "_compact_1mogm_122", l = {
|
|
26
|
+
controls: G,
|
|
27
|
+
horizontal: J,
|
|
28
|
+
list: K,
|
|
29
|
+
columns: P,
|
|
30
|
+
masonry: Q,
|
|
31
|
+
scrollable: U,
|
|
32
|
+
overflowing: X,
|
|
33
|
+
sized: Y,
|
|
34
|
+
compact: Z
|
|
35
|
+
}, M = (t, n) => {
|
|
36
|
+
typeof t == "function" ? t(n) : t && (t.current = n);
|
|
35
37
|
};
|
|
36
|
-
function
|
|
38
|
+
function nt({
|
|
37
39
|
children: t,
|
|
38
|
-
className:
|
|
40
|
+
className: n,
|
|
39
41
|
columns: r = 1,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
columnWidth: _,
|
|
43
|
+
compact: o = !1,
|
|
44
|
+
controls: c,
|
|
45
|
+
horizontal: m,
|
|
46
|
+
layout: h = "grid",
|
|
47
|
+
maxVisibleItems: u,
|
|
48
|
+
ordered: k,
|
|
49
|
+
ref: y,
|
|
50
|
+
style: H,
|
|
51
|
+
...f
|
|
49
52
|
}) {
|
|
50
|
-
const p = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1,
|
|
51
|
-
|
|
52
|
-
const e =
|
|
53
|
+
const p = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1, v = T(null), [a, S] = D(), s = h === "grid" && p === 1 && !m && u != null && Number.isFinite(u) && u >= 1 ? Math.floor(u) : void 0, w = !!s && a != null;
|
|
54
|
+
$(() => {
|
|
55
|
+
const e = v.current;
|
|
53
56
|
if (!e || !s) return;
|
|
54
57
|
const C = () => {
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
58
|
+
const g = Array.from(e.children).filter((L) => L instanceof HTMLElement && getComputedStyle(L).display !== "none"), F = g[s - 1], V = g.length > s && F ? F.getBoundingClientRect().bottom - e.getBoundingClientRect().top + e.scrollTop + (parseFloat(getComputedStyle(e).paddingBottom) || 0) : void 0;
|
|
59
|
+
S(V);
|
|
60
|
+
}, d = new ResizeObserver(C), N = () => {
|
|
61
|
+
d.disconnect(), d.observe(e), Array.from(e.children).forEach((g) => d.observe(g)), C();
|
|
59
62
|
}, R = new MutationObserver(N);
|
|
60
63
|
return R.observe(e, {
|
|
61
64
|
childList: !0,
|
|
62
65
|
subtree: !0,
|
|
63
66
|
characterData: !0
|
|
64
67
|
}), N(), () => {
|
|
65
|
-
|
|
68
|
+
d.disconnect(), R.disconnect();
|
|
66
69
|
};
|
|
67
|
-
}, [t, s,
|
|
68
|
-
const
|
|
69
|
-
...
|
|
70
|
+
}, [t, s, w]);
|
|
71
|
+
const z = I(n, l.list, h === "masonry" ? l.masonry : p > 1 && l.columns, !!s && l.scrollable, w && l.overflowing, m && l.horizontal, o && l.compact, _ && l.sized), E = {
|
|
72
|
+
...H,
|
|
70
73
|
"--list-columns": p,
|
|
71
|
-
"--list-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
"--list-column-width": _,
|
|
75
|
+
"--list-max-height": s && a != null ? `${a}px` : void 0
|
|
76
|
+
}, x = k ? /* @__PURE__ */ b("ol", { className: z, ref: (e) => {
|
|
77
|
+
v.current = e, M(y, e);
|
|
78
|
+
}, style: E, ...f, tabIndex: f.tabIndex ?? (s && a != null ? 0 : void 0), "data-component": "list", children: B(t) }) : /* @__PURE__ */ b("ul", { className: z, ref: (e) => {
|
|
79
|
+
v.current = e, M(y, e);
|
|
80
|
+
}, style: E, ...f, tabIndex: f.tabIndex ?? (s && a != null ? 0 : void 0), "data-component": "list", children: B(t) });
|
|
81
|
+
return c == null ? x : /* @__PURE__ */ j(A, { children: [
|
|
82
|
+
/* @__PURE__ */ b("div", { className: l.controls, "data-component": "list", children: c }),
|
|
79
83
|
x
|
|
80
84
|
] });
|
|
81
85
|
}
|
|
82
86
|
export {
|
|
83
|
-
|
|
87
|
+
nt as List
|
|
84
88
|
};
|
|
85
89
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index53.css');const n=require("react/jsx-runtime"),l=require("classix"),o="_loading_107mr_23",c="_spin_107mr_1",m="_small_107mr_40",r="_large_107mr_46",_="_ping_107mr_52",d="_sticky_107mr_78",s={loading:o,default:"_default_107mr_29",spin:c,small:m,large:r,ping:_,sticky:d},g={large:s.large,medium:s.medium,small:s.small},u=({variant:a="default",size:e="medium",sticky:i=!1,...t})=>n.jsx("div",{className:l.cx(s.loading,i&&s.sticky),"data-component":"loading",children:n.jsx("span",{className:l.cx(s.loading,s[a],g[e]),...t})});exports.Loading=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import '../../assets/
|
|
4
|
-
loading:
|
|
2
|
+
import { cx as a } from "classix";
|
|
3
|
+
import '../../assets/index53.css';const t = "_loading_107mr_23", _ = "_spin_107mr_1", e = "_small_107mr_40", r = "_large_107mr_46", c = "_ping_107mr_52", d = "_sticky_107mr_78", s = {
|
|
4
|
+
loading: t,
|
|
5
5
|
default: "_default_107mr_29",
|
|
6
6
|
spin: _,
|
|
7
7
|
small: e,
|
|
@@ -16,8 +16,8 @@ import '../../assets/index52.css';const o = "_loading_107mr_23", _ = "_spin_107m
|
|
|
16
16
|
variant: n = "default",
|
|
17
17
|
size: i = "medium",
|
|
18
18
|
sticky: m = !1,
|
|
19
|
-
...
|
|
20
|
-
}) => /* @__PURE__ */ l("div", { className: a(s.loading, m && s.sticky), "data-component": "loading", children: /* @__PURE__ */ l("span", { className: a(s.loading, s[n], g[i]), ...
|
|
19
|
+
...o
|
|
20
|
+
}) => /* @__PURE__ */ l("div", { className: a(s.loading, m && s.sticky), "data-component": "loading", children: /* @__PURE__ */ l("span", { className: a(s.loading, s[n], g[i]), ...o }) });
|
|
21
21
|
export {
|
|
22
22
|
f as Loading
|
|
23
23
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),j=require("../button/index.cjs"),M=require("../icon/index.cjs"),i=require("../../menu-popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),j=require("../button/index.cjs"),M=require("../icon/index.cjs"),i=require("../../menu-popover-bqblnK6P.cjs");function v(e){return[...e].sort((n,a)=>+!!n.isDanger-+!!a.isDanger)}const D=e=>v(e).map(n=>({button:r.jsxs(j.Button,{"aria-label":n.accessibleLabel,disabled:n.disabled,children:[n.icon&&r.jsx(M.Icon,{gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),h=({inline:e=!1,items:n,menuAccessibleLabel:a="Menu",onItemSelect:s,triggerAccessibleLabel:l="Open menu",triggerIcon:p="DotsThreeVertical",triggerLabel:b,variant:g="popover"})=>{const d=D(n);return g==="simple"?r.jsx(i.MenuActionList,{actions:d,menuAccessibleLabel:a,onSelect:o=>{var u;(u=o.onSelect)==null||u.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(i.MenuPopover,{inline:e,triggerAccessibleLabel:l,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:u,isPositioned:x})=>r.jsx(i.MenuActionList,{actions:d,initialFocus:u,readyToFocus:x,menuAccessibleLabel:a,onSelect:c=>{var t;(t=c.onSelect)==null||t.call(c),s==null||s(c),o()},usesMenuSemantics:!0})})};exports.Menu=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as M } from "react/jsx-runtime";
|
|
2
2
|
import { Button as h } from "../button/index.js";
|
|
3
3
|
import { Icon as v } from "../icon/index.js";
|
|
4
|
-
import { M as l, a as t } from "../../menu-popover-
|
|
4
|
+
import { M as l, a as t } from "../../menu-popover-Ceb_9V67.js";
|
|
5
5
|
function x(o) {
|
|
6
6
|
return [...o].sort((n, u) => +!!n.isDanger - +!!u.isDanger);
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),j=require("classix"),h=require("../avatar/index.cjs"),N=require("../icon/index.cjs"),w="_attachments_1crfp_1",y="_footer_1crfp_27",S="_message_1crfp_11",b="_timestamp_1crfp_147",q="_actions_1crfp_152",I="_preview_1crfp_164",s={attachments:w,"message-group":"_message-group_1crfp_11",footer:y,message:S,timestamp:b,actions:q,preview:I},M=({actions:o,appearance:m="default",attachments:i,author:a,authorColor:l,authorImageUrl:d,authorLink:_,authorRole:p,content:g,iconName:f="Info",id:u,preview:v,timestamp:r,timestampText:x,type:t="default"})=>{const c=r?new Date(r):void 0,n=c?e.jsx("time",{className:s.timestamp,dateTime:c.toISOString(),children:x??c.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[a&&e.jsx(h.Avatar,{accessibleLabel:a,color:l,imageUrl:d,link:_,name:a,role:p}),t==="system"&&n,e.jsxs("div",{className:j(s.message,v&&s.preview),"data-appearance":m,"data-id":u,"data-type":t,children:[t=="system"&&e.jsx(N.Icon,{gap:"right",name:f,size:"tiny"}),g]}),i&&e.jsx("div",{className:s.attachments,children:i}),t!=="system"&&(o?e.jsxs("div",{className:s.footer,children:[n,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):n)]})};exports.Message=M;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import w from "classix";
|
|
3
3
|
import { Avatar as x } from "../avatar/index.js";
|
|
4
4
|
import { Icon as y } from "../icon/index.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index17.css';const I = "_attachments_1crfp_1", S = "_footer_1crfp_27", b = "_message_1crfp_11", j = "_timestamp_1crfp_147", L = "_actions_1crfp_152", k = "_preview_1crfp_164", e = {
|
|
6
6
|
attachments: I,
|
|
7
7
|
"message-group": "_message-group_1crfp_11",
|
|
8
8
|
footer: S,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const n=require("react/jsx-runtime"),D=require("classix"),r=require("react"),G=require("../editor/index.cjs"),I=require("../list/index.cjs"),J=require("../tooltip/index.cjs"),K=require("../message/index.cjs"),Q="_messages_6nen5_1",V="_fill_6nen5_20",j={messages:Q,fill:V},X=({fill:M=!1,files:u,handleUpload:y,inlineImages:c,maxEditorRows:Y=5,message:d="",messages:l,minEditorRows:b=1,onChange:H,onFilesChange:a,onInlineImagesChange:B,onSubmit:N,placeholder:O,sending:m,submitLabel:P="Send message",tooltipLabel:f})=>{var L;const v=r.useRef(null),o=r.useRef(!0),h=r.useRef(!1),[U,W]=r.useState([]),p=u??U,g=(L=l[l.length-1])==null?void 0:L.id,k=d.replace(/<[^>]*>/g,"").replace(/ /g," ").trim()==="";return r.useLayoutEffect(()=>{var q;const e=(q=v.current)==null?void 0:q.querySelector("[data-message-list]");if(!e||g===void 0)return;const z=e.scrollHeight-e.scrollTop-e.clientHeight<450,_=!h.current||z;o.current=_,h.current=!0;const A=window.setTimeout(()=>{o.current=!1},5e3),E=()=>{e.scrollTop=e.scrollHeight};_&&E();const T=t=>{o.current&&t.target instanceof HTMLImageElement&&E()},x=t=>{t.deltaY<0&&(o.current=!1)};let i;const w=t=>{var s;i=(s=t.touches[0])==null?void 0:s.clientY},R=t=>{var S;const s=(S=t.touches[0])==null?void 0:S.clientY;s!==void 0&&i!==void 0&&s>i&&(o.current=!1),i=s};return e.addEventListener("load",T,!0),e.addEventListener("wheel",x,{passive:!0}),e.addEventListener("touchstart",w,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),()=>{window.clearTimeout(A),e.removeEventListener("load",T,!0),e.removeEventListener("wheel",x),e.removeEventListener("touchstart",w),e.removeEventListener("touchmove",R)}},[g]),n.jsxs("div",{className:D(j.messages,M&&j.fill),ref:v,"data-component":"messages",children:[n.jsx(I.List,{"data-message-list":!0,children:l.map(e=>n.jsx(K.Message,{...e},e.id))}),f&&n.jsx(J.Tooltip,{variant:"static",children:f}),n.jsx(G.Editor,{autofocus:!0,content:d,disabled:m||k&&p.length===0&&!(c!=null&&c.length),files:p,inlineImages:c,isSubmitting:m,maxRows:Y,minRows:b,onChange:H,onFilesChange:e=>{u===void 0&&W(e),a==null||a(e)},onInlineImagesChange:B,onSubmit:N,onUpload:y,placeholder:O,submitLabel:P})]})};exports.Messages=X;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import J from "classix";
|
|
3
3
|
import { useRef as i, useState as K, useLayoutEffect as O } from "react";
|
|
4
4
|
import { Editor as P } from "../editor/index.js";
|
|
5
5
|
import { List as Q } from "../list/index.js";
|
|
6
6
|
import { Tooltip as V } from "../tooltip/index.js";
|
|
7
7
|
import { Message as X } from "../message/index.js";
|
|
8
|
-
import '../../assets/
|
|
8
|
+
import '../../assets/index15.css';const Z = "_messages_6nen5_1", $ = "_fill_6nen5_20", x = {
|
|
9
9
|
messages: Z,
|
|
10
10
|
fill: $
|
|
11
11
|
}, ne = ({
|
|
12
|
-
fill:
|
|
12
|
+
fill: y = !1,
|
|
13
13
|
files: u,
|
|
14
|
-
handleUpload:
|
|
14
|
+
handleUpload: H,
|
|
15
15
|
inlineImages: r,
|
|
16
16
|
maxEditorRows: B = 5,
|
|
17
17
|
message: d = "",
|
|
@@ -63,12 +63,12 @@ import '../../assets/index14.css';const Z = "_messages_6nen5_1", $ = "_fill_6nen
|
|
|
63
63
|
}), () => {
|
|
64
64
|
window.clearTimeout(G), e.removeEventListener("load", w, !0), e.removeEventListener("wheel", R), e.removeEventListener("touchstart", S), e.removeEventListener("touchmove", _);
|
|
65
65
|
};
|
|
66
|
-
}, [L]), /* @__PURE__ */ I("div", { className: J(
|
|
66
|
+
}, [L]), /* @__PURE__ */ I("div", { className: J(x.messages, y && x.fill), ref: h, "data-component": "messages", children: [
|
|
67
67
|
/* @__PURE__ */ c(Q, { "data-message-list": !0, children: l.map((e) => /* @__PURE__ */ c(X, { ...e }, e.id)) }),
|
|
68
68
|
f && /* @__PURE__ */ c(V, { variant: "static", children: f }),
|
|
69
69
|
/* @__PURE__ */ c(P, { autofocus: !0, content: d, disabled: m || A && p.length === 0 && !(r != null && r.length), files: p, inlineImages: r, isSubmitting: m, maxRows: B, minRows: b, onChange: j, onFilesChange: (e) => {
|
|
70
70
|
u === void 0 && z(e), a == null || a(e);
|
|
71
|
-
}, onInlineImagesChange: q, onSubmit: N, onUpload:
|
|
71
|
+
}, onInlineImagesChange: q, onSubmit: N, onUpload: H, placeholder: U, submitLabel: W })
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
74
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const i=require("react/jsx-runtime"),r=require("classix"),b=require("react"),m=require("../../icons-B3hIY9Bm.cjs"),v="_nav_1jlcq_3",p="_label_1jlcq_9",j="_item_1jlcq_17",q="_actions_1jlcq_36",g="_highlighted_1jlcq_60",f="_horizontal_1jlcq_64",N="_sidebar_1jlcq_74",w="_stacked_1jlcq_124",x="_tabs_1jlcq_141",k="_pills_1jlcq_161",t={nav:v,label:p,item:j,actions:q,highlighted:g,horizontal:f,sidebar:N,stacked:w,tabs:x,pills:k},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>i.jsx("span",{className:r(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:c,highlighted:n=!1,layout:s="row",...o})=>i.jsxs("div",{className:r(t.item,n&&t.highlighted,s==="stack"&&t.stacked,c),"data-nav-item":!0,...o,"data-component":"navitem",children:[e,a&&i.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:c,horizontal:n=!1,variant:s="default",...o})=>{const[_,d]=b.useState(!1),h={"--icon-svg":m.iconSVG("CaretDown")};return i.jsx("nav",{className:r(c,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:l=>{if(s!=="pills"||window.innerWidth>960)return;const u=l.relatedTarget;l.currentTarget.contains(u)||d(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||d(l=>!l)},style:h,...o,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|