@orion-ds/react 4.2.8 → 4.2.10
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/components/Accordion/Accordion.module.css +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.module.css +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +2 -0
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.types.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.module.css +1 -1
- package/dist/components/NavTree/NavTree.stories.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.types.d.ts +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.module.css +1 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts +5 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.module.css +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/components/UserMenu/UserMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.types.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/examples/LandingPage.example.d.ts.map +1 -1
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.mjs +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.mjs +46 -33
- package/dist/index101.cjs +1 -1
- package/dist/index101.mjs +30 -24
- package/dist/index102.cjs +1 -1
- package/dist/index102.mjs +28 -28
- package/dist/index103.cjs +1 -1
- package/dist/index103.mjs +54 -40
- package/dist/index104.cjs +1 -1
- package/dist/index104.mjs +33 -53
- package/dist/index105.cjs +1 -1
- package/dist/index105.mjs +40 -58
- package/dist/index106.cjs +1 -1
- package/dist/index106.mjs +52 -30
- package/dist/index107.cjs +1 -1
- package/dist/index107.mjs +40 -20
- package/dist/index108.cjs +1 -1
- package/dist/index108.mjs +40 -18
- package/dist/index109.cjs +1 -1
- package/dist/index109.mjs +40 -30
- package/dist/index11.cjs +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index111.cjs +1 -1
- package/dist/index111.mjs +30 -46
- package/dist/index112.cjs +1 -1
- package/dist/index112.mjs +30 -52
- package/dist/index113.cjs +1 -1
- package/dist/index113.mjs +22 -28
- package/dist/index114.cjs +1 -1
- package/dist/index114.mjs +18 -44
- package/dist/index116.cjs +1 -1
- package/dist/index116.mjs +62 -30
- package/dist/index117.cjs +1 -1
- package/dist/index117.mjs +57 -32
- package/dist/index118.cjs +1 -1
- package/dist/index118.mjs +42 -33
- package/dist/index119.cjs +1 -1
- package/dist/index119.mjs +28 -30
- package/dist/index12.cjs +1 -1
- package/dist/index12.mjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.mjs +24 -35
- package/dist/index121.cjs +1 -1
- package/dist/index121.mjs +18 -36
- package/dist/index122.cjs +1 -1
- package/dist/index122.mjs +32 -20
- package/dist/index123.cjs +1 -1
- package/dist/index123.mjs +46 -14
- package/dist/index124.cjs +1 -1
- package/dist/index124.mjs +28 -27
- package/dist/index125.cjs +1 -1
- package/dist/index125.mjs +16 -14
- package/dist/index126.cjs +1 -1
- package/dist/index126.mjs +15 -37
- package/dist/index127.cjs +1 -1
- package/dist/index127.mjs +16 -28
- package/dist/index128.cjs +1 -1
- package/dist/index128.mjs +20 -24
- package/dist/index129.cjs +1 -1
- package/dist/index129.mjs +28 -28
- package/dist/index13.cjs +1 -1
- package/dist/index13.mjs +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.mjs +36 -28
- package/dist/index131.cjs +1 -1
- package/dist/index131.mjs +50 -28
- package/dist/index132.cjs +1 -1
- package/dist/index132.mjs +29 -41
- package/dist/index133.cjs +1 -1
- package/dist/index133.mjs +28 -52
- package/dist/index134.cjs +1 -1
- package/dist/index134.mjs +37 -37
- package/dist/index135.cjs +1 -1
- package/dist/index135.mjs +28 -50
- package/dist/index136.cjs +1 -1
- package/dist/index136.mjs +26 -18
- package/dist/index137.cjs +1 -1
- package/dist/index137.mjs +18 -154
- package/dist/index138.cjs +1 -1
- package/dist/index138.mjs +38 -218
- package/dist/index139.cjs +1 -1
- package/dist/index139.mjs +24 -28
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +1 -1
- package/dist/index140.cjs +1 -1
- package/dist/index140.mjs +35 -42
- package/dist/index141.cjs +1 -1
- package/dist/index141.mjs +234 -44
- package/dist/index142.cjs +1 -1
- package/dist/index142.mjs +34 -17
- package/dist/index143.cjs +1 -1
- package/dist/index143.mjs +44 -47
- package/dist/index144.cjs +1 -1
- package/dist/index144.mjs +170 -64
- package/dist/index145.cjs +1 -1
- package/dist/index145.mjs +186 -31
- package/dist/index146.cjs +1 -1
- package/dist/index146.mjs +29 -41
- package/dist/index147.cjs +1 -1
- package/dist/index147.mjs +90 -32
- package/dist/index148.cjs +1 -1
- package/dist/index148.mjs +53 -57
- package/dist/index149.cjs +1 -1
- package/dist/index149.mjs +66 -62
- package/dist/index15.cjs +1 -1
- package/dist/index15.mjs +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.mjs +124 -42
- package/dist/index151.cjs +1 -1
- package/dist/index151.mjs +108 -24
- package/dist/index152.cjs +1 -1
- package/dist/index152.mjs +111 -40
- package/dist/index153.cjs +1 -1
- package/dist/index153.mjs +122 -20
- package/dist/index154.cjs +1 -1
- package/dist/index154.mjs +214 -76
- package/dist/index155.cjs +1 -1
- package/dist/index155.mjs +18 -67
- package/dist/index156.cjs +1 -1
- package/dist/index156.mjs +67 -65
- package/dist/index157.cjs +1 -1
- package/dist/index157.mjs +55 -40
- package/dist/index158.cjs +1 -1
- package/dist/index158.mjs +20 -234
- package/dist/index159.cjs +1 -1
- package/dist/index159.mjs +33 -34
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +73 -69
- package/dist/index160.cjs +1 -1
- package/dist/index160.mjs +57 -44
- package/dist/index161.cjs +1 -1
- package/dist/index161.mjs +28 -170
- package/dist/index162.cjs +1 -1
- package/dist/index162.mjs +25 -186
- package/dist/index163.cjs +1 -1
- package/dist/index163.mjs +53 -29
- package/dist/index164.cjs +1 -1
- package/dist/index164.mjs +65 -90
- package/dist/index165.cjs +1 -1
- package/dist/index165.mjs +63 -53
- package/dist/index166.cjs +1 -1
- package/dist/index166.mjs +106 -66
- package/dist/index167.cjs +1 -1
- package/dist/index167.mjs +45 -124
- package/dist/index168.cjs +1 -1
- package/dist/index168.mjs +20 -108
- package/dist/index169.cjs +1 -1
- package/dist/index169.mjs +30 -111
- package/dist/index17.cjs +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index170.cjs +1 -1
- package/dist/index170.mjs +27 -122
- package/dist/index171.cjs +1 -1
- package/dist/index171.mjs +46 -214
- package/dist/index172.cjs +1 -1
- package/dist/index172.mjs +24 -106
- package/dist/index173.cjs +1 -1
- package/dist/index173.mjs +12 -22
- package/dist/index174.cjs +1 -1
- package/dist/index174.mjs +33 -18
- package/dist/index175.cjs +1 -1
- package/dist/index175.mjs +42 -64
- package/dist/index176.cjs +1 -1
- package/dist/index176.mjs +64 -18
- package/dist/index177.cjs +1 -1
- package/dist/index177.mjs +51 -55
- package/dist/index178.cjs +1 -1
- package/dist/index178.mjs +76 -12
- package/dist/index179.cjs +1 -1
- package/dist/index179.mjs +42 -38
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index180.cjs +1 -1
- package/dist/index180.mjs +64 -26
- package/dist/index181.cjs +1 -1
- package/dist/index181.mjs +44 -45
- package/dist/index182.cjs +1 -1
- package/dist/index182.mjs +17 -17
- package/dist/index183.cjs +1 -1
- package/dist/index183.mjs +17 -17
- package/dist/index185.cjs +1 -1
- package/dist/index185.mjs +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.mjs +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.mjs +14 -14
- package/dist/index21.cjs +1 -1
- package/dist/index21.mjs +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.mjs +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.mjs +56 -36
- package/dist/index25.cjs +1 -1
- package/dist/index25.mjs +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.mjs +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.mjs +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.mjs +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.mjs +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.mjs +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.mjs +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.mjs +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.mjs +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.mjs +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.mjs +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.mjs +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.mjs +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.mjs +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.mjs +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.mjs +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.mjs +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.mjs +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index48.mjs +95 -31
- package/dist/index49.cjs +1 -1
- package/dist/index49.mjs +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.mjs +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.mjs +1 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.mjs +1 -1
- package/dist/index52.cjs +1 -1
- package/dist/index52.mjs +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.mjs +82 -78
- package/dist/index54.cjs +1 -1
- package/dist/index54.mjs +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.mjs +1 -1
- package/dist/index56.cjs +1 -1
- package/dist/index56.mjs +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.mjs +1 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.mjs +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.mjs +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.mjs +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.mjs +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.mjs +42 -39
- package/dist/index63.cjs +1 -1
- package/dist/index63.mjs +1 -1
- package/dist/index64.cjs +1 -1
- package/dist/index64.mjs +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.mjs +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.mjs +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.mjs +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.mjs +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.mjs +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.mjs +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.mjs +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.mjs +16 -14
- package/dist/index73.cjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index76.cjs +1 -1
- package/dist/index76.mjs +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.mjs +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.mjs +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.mjs +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.mjs +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.mjs +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.mjs +21 -3
- package/dist/index82.cjs +1 -1
- package/dist/index82.mjs +2 -2
- package/dist/index9.cjs +1 -1
- package/dist/index9.mjs +1 -1
- package/dist/index94.mjs +3 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.mjs +154 -24
- package/dist/index98.cjs +1 -1
- package/dist/index98.mjs +218 -46
- package/dist/index99.cjs +1 -1
- package/dist/index99.mjs +36 -55
- package/dist/styles.css +6 -5
- package/dist/theme.css +1 -0
- package/dist/tokens/brands.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index154.mjs
CHANGED
|
@@ -1,79 +1,217 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import { jsxs as l, Fragment as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as Y, useEffect as x, useMemo as S, useCallback as y } from "react";
|
|
3
|
+
import { Plus as A, X as U, Search as $, MessageSquare as T, Trash2 as q } from "lucide-react";
|
|
4
|
+
import e from "./index141.mjs";
|
|
5
|
+
const G = {
|
|
6
|
+
today: "Today",
|
|
7
|
+
yesterday: "Yesterday",
|
|
8
|
+
previous7: "Previous 7 days",
|
|
9
|
+
previous30: "Previous 30 days",
|
|
10
|
+
older: "Older"
|
|
11
|
+
}, N = [
|
|
12
|
+
"today",
|
|
13
|
+
"yesterday",
|
|
14
|
+
"previous7",
|
|
15
|
+
"previous30",
|
|
16
|
+
"older"
|
|
17
|
+
], B = (t) => {
|
|
18
|
+
const a = /* @__PURE__ */ new Date(), d = (new Date(
|
|
19
|
+
a.getFullYear(),
|
|
20
|
+
a.getMonth(),
|
|
21
|
+
a.getDate()
|
|
22
|
+
).getTime() - new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime()) / (1e3 * 60 * 60 * 24);
|
|
23
|
+
return d < 1 ? "today" : d < 2 ? "yesterday" : d < 7 ? "previous7" : d < 30 ? "previous30" : "older";
|
|
24
|
+
}, H = (t) => {
|
|
25
|
+
const a = B(t);
|
|
26
|
+
return a === "today" ? new Intl.DateTimeFormat("en-US", {
|
|
27
|
+
hour: "numeric",
|
|
28
|
+
minute: "2-digit"
|
|
29
|
+
}).format(t) : a === "yesterday" ? "Yesterday" : a === "previous7" ? new Intl.DateTimeFormat("en-US", {
|
|
30
|
+
weekday: "short"
|
|
31
|
+
}).format(t) : new Intl.DateTimeFormat("en-US", {
|
|
32
|
+
month: "short",
|
|
33
|
+
day: "numeric"
|
|
34
|
+
}).format(t);
|
|
35
|
+
}, Q = (t) => {
|
|
36
|
+
const a = /* @__PURE__ */ new Map();
|
|
37
|
+
return N.forEach((o) => a.set(o, [])), t.forEach((o) => {
|
|
38
|
+
const f = B(o.updatedAt);
|
|
39
|
+
a.get(f)?.push(o);
|
|
40
|
+
}), a;
|
|
41
|
+
}, R = ({
|
|
42
|
+
conversations: t = [],
|
|
43
|
+
activeConversationId: a,
|
|
44
|
+
onSelectConversation: o,
|
|
45
|
+
onNewConversation: f,
|
|
46
|
+
onDeleteConversation: d,
|
|
47
|
+
onSearch: g,
|
|
48
|
+
header: j,
|
|
49
|
+
footer: v,
|
|
50
|
+
collapsed: u = !1,
|
|
51
|
+
onCollapsedChange: m,
|
|
52
|
+
className: k,
|
|
53
|
+
...F
|
|
54
|
+
}) => {
|
|
55
|
+
const [h, z] = D(""), [p, b] = D(null), c = Y(
|
|
56
|
+
void 0
|
|
57
|
+
);
|
|
58
|
+
x(() => () => {
|
|
59
|
+
c.current && clearTimeout(c.current);
|
|
60
|
+
}, []);
|
|
61
|
+
const w = S(() => {
|
|
62
|
+
if (!h.trim()) return t;
|
|
63
|
+
const s = h.toLowerCase();
|
|
64
|
+
return t.filter(
|
|
65
|
+
(n) => n.title.toLowerCase().includes(s) || n.preview?.toLowerCase().includes(s)
|
|
66
|
+
);
|
|
67
|
+
}, [t, h]), I = S(() => Q(w), [w]), O = y(
|
|
68
|
+
(s) => {
|
|
69
|
+
const n = s.target.value;
|
|
70
|
+
z(n), g?.(n);
|
|
71
|
+
},
|
|
72
|
+
[g]
|
|
73
|
+
), P = y(
|
|
74
|
+
(s) => {
|
|
75
|
+
o?.(s), u && m && m(!0);
|
|
76
|
+
},
|
|
77
|
+
[o, u, m]
|
|
78
|
+
), E = y(
|
|
79
|
+
(s, n) => {
|
|
80
|
+
s.stopPropagation(), p === n ? (d?.(n), b(null), c.current && clearTimeout(c.current)) : (b(n), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
81
|
+
b(null);
|
|
82
|
+
}, 3e3));
|
|
83
|
+
},
|
|
84
|
+
[p, d]
|
|
85
|
+
), L = N.some(
|
|
86
|
+
(s) => (I.get(s)?.length ?? 0) > 0
|
|
87
|
+
);
|
|
88
|
+
return /* @__PURE__ */ l(C, { children: [
|
|
89
|
+
!u && /* @__PURE__ */ r(
|
|
90
|
+
"div",
|
|
91
|
+
{
|
|
92
|
+
className: e.sidebarOverlay,
|
|
93
|
+
onClick: () => m?.(!0),
|
|
94
|
+
"aria-hidden": "true"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ l(
|
|
98
|
+
"aside",
|
|
99
|
+
{
|
|
100
|
+
className: [
|
|
101
|
+
e.sidebar,
|
|
102
|
+
u && e.sidebarCollapsed,
|
|
103
|
+
!u && e.sidebarOpen,
|
|
104
|
+
k
|
|
105
|
+
].filter(Boolean).join(" "),
|
|
106
|
+
...F,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ r("div", { className: e.sidebarHeader, children: j || /* @__PURE__ */ l(C, { children: [
|
|
109
|
+
/* @__PURE__ */ r(
|
|
110
|
+
"button",
|
|
111
|
+
{
|
|
112
|
+
className: [
|
|
113
|
+
e.inputButton,
|
|
114
|
+
e.inputButtonPrimary,
|
|
115
|
+
e.sidebarNewButton
|
|
116
|
+
].filter(Boolean).join(" "),
|
|
117
|
+
onClick: f,
|
|
118
|
+
"aria-label": "New conversation",
|
|
119
|
+
children: /* @__PURE__ */ l("span", { className: e.sidebarNewButtonInner, children: [
|
|
120
|
+
/* @__PURE__ */ r(A, { size: 18 }),
|
|
121
|
+
/* @__PURE__ */ r("span", { children: "New Chat" })
|
|
122
|
+
] })
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ r(
|
|
126
|
+
"button",
|
|
127
|
+
{
|
|
128
|
+
className: [e.inputButton, e.sidebarCloseButton].join(
|
|
129
|
+
" "
|
|
130
|
+
),
|
|
131
|
+
onClick: () => m?.(!0),
|
|
132
|
+
"aria-label": "Close sidebar",
|
|
133
|
+
children: /* @__PURE__ */ r(U, { size: 20 })
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
] }) }),
|
|
137
|
+
/* @__PURE__ */ r("div", { className: e.sidebarSearch, children: /* @__PURE__ */ l("div", { className: e.sidebarSearchWrapper, children: [
|
|
138
|
+
/* @__PURE__ */ r($, { size: 16, className: e.sidebarSearchIcon }),
|
|
139
|
+
/* @__PURE__ */ r(
|
|
140
|
+
"input",
|
|
141
|
+
{
|
|
142
|
+
type: "search",
|
|
143
|
+
className: [
|
|
144
|
+
e.sidebarSearchInput,
|
|
145
|
+
e.sidebarSearchInputWithIcon
|
|
146
|
+
].join(" "),
|
|
147
|
+
placeholder: "Search conversations...",
|
|
148
|
+
value: h,
|
|
149
|
+
onChange: O,
|
|
150
|
+
"aria-label": "Search conversations"
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] }) }),
|
|
154
|
+
/* @__PURE__ */ r(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
className: e.sidebarList,
|
|
158
|
+
role: "list",
|
|
159
|
+
"aria-label": "Conversations",
|
|
160
|
+
children: L ? N.map((s) => {
|
|
161
|
+
const n = I.get(s) ?? [];
|
|
162
|
+
return n.length === 0 ? null : /* @__PURE__ */ l("div", { children: [
|
|
163
|
+
/* @__PURE__ */ r("div", { className: e.sidebarGroupHeader, children: G[s] }),
|
|
164
|
+
n.map((i) => /* @__PURE__ */ l(
|
|
165
|
+
"button",
|
|
166
|
+
{
|
|
167
|
+
className: [
|
|
168
|
+
e.sidebarItem,
|
|
169
|
+
i.id === a && e.sidebarItemActive
|
|
170
|
+
].filter(Boolean).join(" "),
|
|
171
|
+
onClick: () => P(i.id),
|
|
172
|
+
role: "listitem",
|
|
173
|
+
"aria-selected": i.id === a,
|
|
174
|
+
"aria-label": `Conversation: ${i.title}`,
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ r(
|
|
177
|
+
T,
|
|
178
|
+
{
|
|
179
|
+
size: 18,
|
|
180
|
+
className: e.sidebarItemIcon
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ l("div", { className: e.sidebarItemContent, children: [
|
|
184
|
+
/* @__PURE__ */ r("span", { className: e.sidebarItemTitle, children: i.title }),
|
|
185
|
+
i.preview && /* @__PURE__ */ r("span", { className: e.sidebarItemPreview, children: i.preview })
|
|
186
|
+
] }),
|
|
187
|
+
/* @__PURE__ */ r("span", { className: e.sidebarItemDate, children: H(i.updatedAt) }),
|
|
188
|
+
d && /* @__PURE__ */ r(
|
|
189
|
+
"button",
|
|
190
|
+
{
|
|
191
|
+
className: e.sidebarItemDelete,
|
|
192
|
+
onClick: (M) => E(M, i.id),
|
|
193
|
+
"aria-label": p === i.id ? `Confirm delete ${i.title}` : `Delete ${i.title}`,
|
|
194
|
+
children: p === i.id ? /* @__PURE__ */ r("span", { className: e.sidebarItemDeleteConfirm, children: "Delete?" }) : /* @__PURE__ */ r(q, { size: 16 })
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
i.id
|
|
200
|
+
))
|
|
201
|
+
] }, s);
|
|
202
|
+
}) : /* @__PURE__ */ l("div", { className: e.sidebarEmpty, children: [
|
|
203
|
+
/* @__PURE__ */ r(T, { size: 32, className: e.sidebarEmptyIcon }),
|
|
204
|
+
/* @__PURE__ */ r("p", { children: h ? "No conversations found" : "No conversations yet" })
|
|
205
|
+
] })
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
v && /* @__PURE__ */ r("div", { className: e.sidebarFooter, children: v })
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
] });
|
|
47
213
|
};
|
|
214
|
+
R.displayName = "ChatSidebar";
|
|
48
215
|
export {
|
|
49
|
-
|
|
50
|
-
H as addColumnButton,
|
|
51
|
-
h as assignee,
|
|
52
|
-
w as assigneeMore,
|
|
53
|
-
k as assignees,
|
|
54
|
-
i as card,
|
|
55
|
-
m as cardCompact,
|
|
56
|
-
p as cardContent,
|
|
57
|
-
b as cardCover,
|
|
58
|
-
T as cardDescription,
|
|
59
|
-
v as cardFooter,
|
|
60
|
-
B as cardTitle,
|
|
61
|
-
n as column,
|
|
62
|
-
r as columnAction,
|
|
63
|
-
a as columnActions,
|
|
64
|
-
u as columnCards,
|
|
65
|
-
l as columnCount,
|
|
66
|
-
c as columnCountOver,
|
|
67
|
-
t as columnDot,
|
|
68
|
-
e as columnHeader,
|
|
69
|
-
d as columnTitle,
|
|
70
|
-
s as columnTitleWrapper,
|
|
71
|
-
_ as columns,
|
|
72
|
-
M as default,
|
|
73
|
-
A as dueDate,
|
|
74
|
-
y as emptyColumn,
|
|
75
|
-
o as kanbanBoard,
|
|
76
|
-
g as label,
|
|
77
|
-
C as labels,
|
|
78
|
-
D as priority
|
|
216
|
+
R as ChatSidebar
|
|
79
217
|
};
|
package/dist/index155.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="_trigger_1xlzd_16",t="_triggerFullWidth_1xlzd_21",o="_popover_1xlzd_28",e="_visible_1xlzd_46",_="_content_1xlzd_57",l="_arrow_1xlzd_68",i={trigger:r,triggerFullWidth:t,popover:o,visible:e,content:_,arrow:l,"arrow-top":"_arrow-top_1xlzd_78","arrow-bottom":"_arrow-bottom_1xlzd_86","arrow-left":"_arrow-left_1xlzd_94","arrow-right":"_arrow-right_1xlzd_102"};exports.arrow=l;exports.content=_;exports.default=i;exports.popover=o;exports.trigger=r;exports.triggerFullWidth=t;exports.visible=e;
|
package/dist/index155.mjs
CHANGED
|
@@ -1,70 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
itemClickable: p,
|
|
13
|
-
itemRead: m,
|
|
14
|
-
itemLeft: d,
|
|
15
|
-
itemAvatar: l,
|
|
16
|
-
itemIcon: A,
|
|
17
|
-
"icon-info": "_icon-info_1i45p_146",
|
|
18
|
-
"icon-success": "_icon-success_1i45p_151",
|
|
19
|
-
"icon-warning": "_icon-warning_1i45p_156",
|
|
20
|
-
"icon-error": "_icon-error_1i45p_161",
|
|
21
|
-
"icon-default": "_icon-default_1i45p_166",
|
|
22
|
-
itemContent: f,
|
|
23
|
-
itemHeader: g,
|
|
24
|
-
itemTitle: u,
|
|
25
|
-
unreadDot: h,
|
|
26
|
-
itemMessage: T,
|
|
27
|
-
itemTime: C,
|
|
28
|
-
itemActions: y,
|
|
29
|
-
itemAction: b,
|
|
30
|
-
empty: k,
|
|
31
|
-
loading: v,
|
|
32
|
-
spinner: D,
|
|
33
|
-
spin: H,
|
|
34
|
-
footer: I,
|
|
35
|
-
footerAction: L,
|
|
36
|
-
footerActionPrimary: M
|
|
1
|
+
const r = "_trigger_1xlzd_16", t = "_triggerFullWidth_1xlzd_21", o = "_popover_1xlzd_28", _ = "_visible_1xlzd_46", l = "_content_1xlzd_57", e = "_arrow_1xlzd_68", i = {
|
|
2
|
+
trigger: r,
|
|
3
|
+
triggerFullWidth: t,
|
|
4
|
+
popover: o,
|
|
5
|
+
visible: _,
|
|
6
|
+
content: l,
|
|
7
|
+
arrow: e,
|
|
8
|
+
"arrow-top": "_arrow-top_1xlzd_78",
|
|
9
|
+
"arrow-bottom": "_arrow-bottom_1xlzd_86",
|
|
10
|
+
"arrow-left": "_arrow-left_1xlzd_94",
|
|
11
|
+
"arrow-right": "_arrow-right_1xlzd_102"
|
|
37
12
|
};
|
|
38
13
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
s as group,
|
|
47
|
-
r as groupTitle,
|
|
48
|
-
i as header,
|
|
49
|
-
n as headerAction,
|
|
50
|
-
_ as headerActions,
|
|
51
|
-
e as headerTitle,
|
|
52
|
-
a as item,
|
|
53
|
-
b as itemAction,
|
|
54
|
-
y as itemActions,
|
|
55
|
-
l as itemAvatar,
|
|
56
|
-
p as itemClickable,
|
|
57
|
-
f as itemContent,
|
|
58
|
-
g as itemHeader,
|
|
59
|
-
A as itemIcon,
|
|
60
|
-
d as itemLeft,
|
|
61
|
-
T as itemMessage,
|
|
62
|
-
m as itemRead,
|
|
63
|
-
C as itemTime,
|
|
64
|
-
u as itemTitle,
|
|
65
|
-
v as loading,
|
|
66
|
-
t as notificationCenter,
|
|
67
|
-
H as spin,
|
|
68
|
-
D as spinner,
|
|
69
|
-
h as unreadDot
|
|
14
|
+
e as arrow,
|
|
15
|
+
l as content,
|
|
16
|
+
i as default,
|
|
17
|
+
o as popover,
|
|
18
|
+
r as trigger,
|
|
19
|
+
t as triggerFullWidth,
|
|
20
|
+
_ as visible
|
|
70
21
|
};
|
package/dist/index156.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_notificationCenter_1i45p_8",t="_header_1i45p_23",i="_headerTitle_1i45p_31",o="_badge_1i45p_41",n="_headerActions_1i45p_52",_="_headerAction_1i45p_52",c="_content_1i45p_76",r="_group_1i45p_80",a="_groupTitle_1i45p_84",s="_item_1i45p_99",m="_itemClickable_1i45p_113",p="_itemRead_1i45p_122",d="_itemLeft_1i45p_126",l="_itemAvatar_1i45p_130",A="_itemIcon_1i45p_137",f="_itemContent_1i45p_171",g="_itemHeader_1i45p_176",u="_itemTitle_1i45p_182",T="_unreadDot_1i45p_189",h="_itemMessage_1i45p_197",C="_itemTime_1i45p_209",b="_itemActions_1i45p_217",y="_itemAction_1i45p_217",v="_empty_1i45p_252",M="_loading_1i45p_271",P="_spinner_1i45p_278",k="_spin_1i45p_278",D="_footer_1i45p_297",H="_footerAction_1i45p_306",I="_footerActionPrimary_1i45p_321",L={notificationCenter:e,header:t,headerTitle:i,badge:o,headerActions:n,headerAction:_,content:c,group:r,groupTitle:a,item:s,itemClickable:m,itemRead:p,itemLeft:d,itemAvatar:l,itemIcon:A,"icon-info":"_icon-info_1i45p_146","icon-success":"_icon-success_1i45p_151","icon-warning":"_icon-warning_1i45p_156","icon-error":"_icon-error_1i45p_161","icon-default":"_icon-default_1i45p_166",itemContent:f,itemHeader:g,itemTitle:u,unreadDot:T,itemMessage:h,itemTime:C,itemActions:b,itemAction:y,empty:v,loading:M,spinner:P,spin:k,footer:D,footerAction:H,footerActionPrimary:I};exports.badge=o;exports.content=c;exports.default=L;exports.empty=v;exports.footer=D;exports.footerAction=H;exports.footerActionPrimary=I;exports.group=r;exports.groupTitle=a;exports.header=t;exports.headerAction=_;exports.headerActions=n;exports.headerTitle=i;exports.item=s;exports.itemAction=y;exports.itemActions=b;exports.itemAvatar=l;exports.itemClickable=m;exports.itemContent=f;exports.itemHeader=g;exports.itemIcon=A;exports.itemLeft=d;exports.itemMessage=h;exports.itemRead=p;exports.itemTime=C;exports.itemTitle=u;exports.loading=M;exports.notificationCenter=e;exports.spin=k;exports.spinner=P;exports.unreadDot=T;
|
package/dist/index156.mjs
CHANGED
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
const t = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
const t = "_notificationCenter_1i45p_8", i = "_header_1i45p_23", e = "_headerTitle_1i45p_31", o = "_badge_1i45p_41", _ = "_headerActions_1i45p_52", n = "_headerAction_1i45p_52", c = "_content_1i45p_76", s = "_group_1i45p_80", r = "_groupTitle_1i45p_84", a = "_item_1i45p_99", p = "_itemClickable_1i45p_113", m = "_itemRead_1i45p_122", d = "_itemLeft_1i45p_126", l = "_itemAvatar_1i45p_130", A = "_itemIcon_1i45p_137", f = "_itemContent_1i45p_171", g = "_itemHeader_1i45p_176", u = "_itemTitle_1i45p_182", h = "_unreadDot_1i45p_189", T = "_itemMessage_1i45p_197", C = "_itemTime_1i45p_209", y = "_itemActions_1i45p_217", b = "_itemAction_1i45p_217", k = "_empty_1i45p_252", v = "_loading_1i45p_271", D = "_spinner_1i45p_278", H = "_spin_1i45p_278", I = "_footer_1i45p_297", L = "_footerAction_1i45p_306", M = "_footerActionPrimary_1i45p_321", P = {
|
|
2
|
+
notificationCenter: t,
|
|
3
|
+
header: i,
|
|
4
|
+
headerTitle: e,
|
|
5
|
+
badge: o,
|
|
6
|
+
headerActions: _,
|
|
7
|
+
headerAction: n,
|
|
8
|
+
content: c,
|
|
9
|
+
group: s,
|
|
10
|
+
groupTitle: r,
|
|
11
|
+
item: a,
|
|
12
|
+
itemClickable: p,
|
|
13
|
+
itemRead: m,
|
|
14
|
+
itemLeft: d,
|
|
15
|
+
itemAvatar: l,
|
|
16
|
+
itemIcon: A,
|
|
17
|
+
"icon-info": "_icon-info_1i45p_146",
|
|
18
|
+
"icon-success": "_icon-success_1i45p_151",
|
|
19
|
+
"icon-warning": "_icon-warning_1i45p_156",
|
|
20
|
+
"icon-error": "_icon-error_1i45p_161",
|
|
21
|
+
"icon-default": "_icon-default_1i45p_166",
|
|
22
|
+
itemContent: f,
|
|
23
|
+
itemHeader: g,
|
|
24
|
+
itemTitle: u,
|
|
25
|
+
unreadDot: h,
|
|
26
|
+
itemMessage: T,
|
|
27
|
+
itemTime: C,
|
|
28
|
+
itemActions: y,
|
|
29
|
+
itemAction: b,
|
|
30
|
+
empty: k,
|
|
31
|
+
loading: v,
|
|
32
|
+
spinner: D,
|
|
33
|
+
spin: H,
|
|
34
|
+
footer: I,
|
|
35
|
+
footerAction: L,
|
|
36
|
+
footerActionPrimary: M
|
|
36
37
|
};
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
39
|
+
o as badge,
|
|
40
|
+
c as content,
|
|
41
|
+
P as default,
|
|
42
|
+
k as empty,
|
|
43
|
+
I as footer,
|
|
44
|
+
L as footerAction,
|
|
45
|
+
M as footerActionPrimary,
|
|
46
|
+
s as group,
|
|
47
|
+
r as groupTitle,
|
|
48
|
+
i as header,
|
|
49
|
+
n as headerAction,
|
|
50
|
+
_ as headerActions,
|
|
51
|
+
e as headerTitle,
|
|
52
|
+
a as item,
|
|
53
|
+
b as itemAction,
|
|
54
|
+
y as itemActions,
|
|
55
|
+
l as itemAvatar,
|
|
56
|
+
p as itemClickable,
|
|
57
|
+
f as itemContent,
|
|
58
|
+
g as itemHeader,
|
|
59
|
+
A as itemIcon,
|
|
60
|
+
d as itemLeft,
|
|
61
|
+
T as itemMessage,
|
|
62
|
+
m as itemRead,
|
|
63
|
+
C as itemTime,
|
|
64
|
+
u as itemTitle,
|
|
65
|
+
v as loading,
|
|
66
|
+
t as notificationCenter,
|
|
67
|
+
H as spin,
|
|
68
|
+
D as spinner,
|
|
69
|
+
h as unreadDot
|
|
68
70
|
};
|
package/dist/index157.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_pageHeader_1wcp9_8",c="_bordered_1wcp9_15",a="_sticky_1wcp9_19",e="_backLink_1wcp9_29",r="_backLinkAnchor_1wcp9_33",b="_backLinkButton_1wcp9_34",_="_breadcrumbs_1wcp9_59",n="_breadcrumbList_1wcp9_63",i="_breadcrumbItem_1wcp9_72",o="_breadcrumbSeparator_1wcp9_78",s="_breadcrumbLink_1wcp9_83",d="_breadcrumbButton_1wcp9_84",u="_breadcrumbCurrent_1wcp9_101",p="_main_1wcp9_111",m="_titleSection_1wcp9_119",w="_titleRow_1wcp9_124",k="_title_1wcp9_119",l="_badge_1wcp9_141",L="_description_1wcp9_145",g="_actions_1wcp9_158",v="_tabs_1wcp9_170",B="_tab_1wcp9_170",S="_tabActive_1wcp9_205",A="_tabBadge_1wcp9_210",h={pageHeader:t,bordered:c,sticky:a,backLink:e,backLinkAnchor:r,backLinkButton:b,breadcrumbs:_,breadcrumbList:n,breadcrumbItem:i,breadcrumbSeparator:o,breadcrumbLink:s,breadcrumbButton:d,breadcrumbCurrent:u,main:p,titleSection:m,titleRow:w,title:k,badge:l,description:L,actions:g,tabs:v,tab:B,tabActive:S,tabBadge:A,"size-sm":"_size-sm_1wcp9_228","size-lg":"_size-lg_1wcp9_240","variant-compact":"_variant-compact_1wcp9_252","variant-with-tabs":"_variant-with-tabs_1wcp9_277","variant-transparent":"_variant-transparent_1wcp9_285"};exports.actions=g;exports.backLink=e;exports.backLinkAnchor=r;exports.backLinkButton=b;exports.badge=l;exports.bordered=c;exports.breadcrumbButton=d;exports.breadcrumbCurrent=u;exports.breadcrumbItem=i;exports.breadcrumbLink=s;exports.breadcrumbList=n;exports.breadcrumbSeparator=o;exports.breadcrumbs=_;exports.default=h;exports.description=L;exports.main=p;exports.pageHeader=t;exports.sticky=a;exports.tab=B;exports.tabActive=S;exports.tabBadge=A;exports.tabs=v;exports.title=k;exports.titleRow=w;exports.titleSection=m;
|