@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/index169.mjs
CHANGED
|
@@ -1,114 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const [U, f] = I(!1), i = W(null), c = a(
|
|
17
|
-
(e) => {
|
|
18
|
-
if (!e || e.length === 0) return;
|
|
19
|
-
const o = [];
|
|
20
|
-
Array.from(e).forEach((t) => {
|
|
21
|
-
if (r && t.size > r) {
|
|
22
|
-
console.warn(
|
|
23
|
-
`File ${t.name} exceeds max size of ${g(r)}`
|
|
24
|
-
);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const j = s.includes("*/*"), w = s.flatMap((n) => (n.endsWith("/*"), n));
|
|
28
|
-
if (!(j || w.some((n) => {
|
|
29
|
-
if (n.endsWith("/*")) {
|
|
30
|
-
const x = n.split("/")[0];
|
|
31
|
-
return t.type.startsWith(`${x}/`);
|
|
32
|
-
}
|
|
33
|
-
return t.type === n || t.name.endsWith(n);
|
|
34
|
-
}))) {
|
|
35
|
-
console.warn(`File ${t.name} type not accepted`);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
o.push(t);
|
|
39
|
-
}), o.length > 0 && h?.(o);
|
|
40
|
-
},
|
|
41
|
-
[s, r, h]
|
|
42
|
-
), C = a((e) => {
|
|
43
|
-
e.preventDefault(), e.stopPropagation(), f(!0);
|
|
44
|
-
}, []), k = a((e) => {
|
|
45
|
-
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
46
|
-
}, []), F = a(
|
|
47
|
-
(e) => {
|
|
48
|
-
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
49
|
-
const { files: o } = e.dataTransfer;
|
|
50
|
-
c(o);
|
|
51
|
-
},
|
|
52
|
-
[c]
|
|
53
|
-
), N = a(
|
|
54
|
-
(e) => {
|
|
55
|
-
c(e.target.files), i.current && (i.current.value = "");
|
|
56
|
-
},
|
|
57
|
-
[c]
|
|
58
|
-
), u = a(() => {
|
|
59
|
-
i.current?.click();
|
|
60
|
-
}, []), b = a(
|
|
61
|
-
(e) => {
|
|
62
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
|
|
63
|
-
},
|
|
64
|
-
[u]
|
|
65
|
-
);
|
|
66
|
-
return /* @__PURE__ */ d(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: [
|
|
70
|
-
l.fileUpload,
|
|
71
|
-
U && l.fileUploadDragging,
|
|
72
|
-
v
|
|
73
|
-
].filter(Boolean).join(" "),
|
|
74
|
-
onDragOver: C,
|
|
75
|
-
onDragLeave: k,
|
|
76
|
-
onDrop: F,
|
|
77
|
-
onClick: u,
|
|
78
|
-
onKeyDown: b,
|
|
79
|
-
role: "button",
|
|
80
|
-
tabIndex: 0,
|
|
81
|
-
"aria-label": "Upload files",
|
|
82
|
-
...y,
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ p(
|
|
85
|
-
"input",
|
|
86
|
-
{
|
|
87
|
-
ref: i,
|
|
88
|
-
type: "file",
|
|
89
|
-
accept: s.join(","),
|
|
90
|
-
multiple: m,
|
|
91
|
-
onChange: N,
|
|
92
|
-
style: { display: "none" },
|
|
93
|
-
"aria-hidden": "true"
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
D || /* @__PURE__ */ d(A, { children: [
|
|
97
|
-
/* @__PURE__ */ p("div", { className: l.fileUploadIcon, children: /* @__PURE__ */ p($, { size: 32 }) }),
|
|
98
|
-
/* @__PURE__ */ d("div", { className: l.fileUploadText, children: [
|
|
99
|
-
/* @__PURE__ */ p("strong", { children: "Click to upload" }),
|
|
100
|
-
" or drag and drop"
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ d("div", { className: l.fileUploadHint, children: [
|
|
103
|
-
"Max file size: ",
|
|
104
|
-
g(r)
|
|
105
|
-
] })
|
|
106
|
-
] })
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
);
|
|
1
|
+
const e = "_container_1e3cp_8", c = "_labelWrapper_1e3cp_16", _ = "_percentage_1e3cp_25", r = "_track_1e3cp_31", n = "_bar_1e3cp_40", t = "_sm_1e3cp_50", s = "_md_1e3cp_54", a = "_lg_1e3cp_58", p = "_primary_1e3cp_66", o = "_success_1e3cp_70", i = "_warning_1e3cp_74", m = "_error_1e3cp_78", l = "_info_1e3cp_82", g = "_indeterminate_1e3cp_90", d = {
|
|
2
|
+
container: e,
|
|
3
|
+
labelWrapper: c,
|
|
4
|
+
percentage: _,
|
|
5
|
+
track: r,
|
|
6
|
+
bar: n,
|
|
7
|
+
sm: t,
|
|
8
|
+
md: s,
|
|
9
|
+
lg: a,
|
|
10
|
+
primary: p,
|
|
11
|
+
success: o,
|
|
12
|
+
warning: i,
|
|
13
|
+
error: m,
|
|
14
|
+
info: l,
|
|
15
|
+
indeterminate: g
|
|
110
16
|
};
|
|
111
|
-
P.displayName = "ChatFileUpload";
|
|
112
17
|
export {
|
|
113
|
-
|
|
18
|
+
n as bar,
|
|
19
|
+
e as container,
|
|
20
|
+
d as default,
|
|
21
|
+
m as error,
|
|
22
|
+
g as indeterminate,
|
|
23
|
+
l as info,
|
|
24
|
+
c as labelWrapper,
|
|
25
|
+
a as lg,
|
|
26
|
+
s as md,
|
|
27
|
+
_ as percentage,
|
|
28
|
+
p as primary,
|
|
29
|
+
t as sm,
|
|
30
|
+
o as success,
|
|
31
|
+
r as track,
|
|
32
|
+
i as warning
|
|
114
33
|
};
|
package/dist/index17.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),tt=require("./index18.cjs"),q=require("lucide-react"),p=require("./index83.cjs"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),tt=require("./index18.cjs"),q=require("lucide-react"),p=require("./index83.cjs"),r=require("./index117.cjs"),et=parseInt(p.spacing[6],10),rt=parseInt(p.spacing[4],10),st=parseInt(p.spacing[6],10),lt=parseInt(p.spacing[8],10),T=l.forwardRef(({items:n,variant:_="editorial",aspectRatio:B="16/9",peek:D=!0,autoScroll:R=!1,autoScrollInterval:j=5e3,gap:i="md",align:I="edge",alignOffset:S,showNavigation:$=!0,showPagination:w=!1,onSlideChange:W,renderNavigation:N,highlightActive:y=!1,loop:x=!1,className:z,...H},F)=>{const s=l.useRef(null),[K,J]=l.useState(!1),[Q,U]=l.useState(!0),[f,V]=l.useState(0),M=l.useRef(0),u=l.useCallback(()=>i==="sm"?rt:i==="lg"?lt:st,[i]),d=l.useCallback(t=>{const e=t.children[0];return e?e.offsetWidth:0},[]),v=l.useCallback(()=>{if(!s.current)return;const{scrollLeft:t,scrollWidth:e,clientWidth:c}=s.current,h=d(s.current),g=u(),b=t>=e-c-1,m=t<=1;J(!m),U(!b);let o;if(b)o=n.length-1;else{const L=Math.round(t/(h+g));o=Math.min(Math.max(0,L),n.length-1)}o!==M.current&&(M.current=o,V(o),W?.(o))},[i,n.length,W,u,d]),C=l.useCallback(t=>{if(!s.current)return;const{scrollLeft:e,scrollWidth:c,clientWidth:h}=s.current,g=d(s.current),b=u(),m=g+b,o=e<=1,L=e>=c-h-1;if(x){if(t==="right"&&L){s.current.scrollTo({left:0,behavior:"smooth"});return}if(t==="left"&&o){s.current.scrollTo({left:c-h,behavior:"smooth"});return}}s.current.scrollBy({left:t==="left"?-m:m,behavior:"smooth"})},[i,x,u,d]),k=l.useCallback(t=>{if(!s.current)return;const e=d(s.current),c=u();s.current.scrollTo({left:t*(e+c),behavior:"smooth"})},[u,d]);l.useEffect(()=>{const t=s.current;if(t)return v(),t.addEventListener("scroll",v),()=>{t.removeEventListener("scroll",v)}},[v]),l.useEffect(()=>{if(!R||n.length<=1)return;const t=setInterval(()=>{const e=(f+1)%n.length;k(e)},j);return()=>clearInterval(t)},[R,j,f,n.length,k]);const P=I==="container"&&S!==void 0,E=P?Math.max(0,S-et):0,X=i==="sm"?r.default.gapSm:i==="lg"?r.default.gapLg:r.default.gapMd,Y=I==="container"?r.default.trackContainer:r.default.trackEdge,Z=[r.default.carousel,D&&r.default.peek,y&&r.default.highlightActive,X,z].filter(Boolean).join(" "),O=[r.default.track,Y].filter(Boolean).join(" "),G=x&&n.length>1,A={canScrollLeft:G||K,canScrollRight:G||Q,scrollLeft:()=>C("left"),scrollRight:()=>C("right"),activeIndex:f,totalItems:n.length};return a.jsxs("div",{ref:F,className:Z,...H,children:[a.jsx("div",{ref:s,className:O,style:P?{scrollPaddingInlineStart:S}:void 0,role:"region","aria-label":"Carousel",children:n.map((t,e)=>{const c=e===0,g=e===f&&y;return a.jsx(tt.CarouselCard,{item:t,aspectRatio:B,variant:_,className:g?r.default.cardHighlighted:void 0,style:c&&E>0?{marginLeft:E}:void 0},t.title||e)})}),$&&n.length>1&&(N?N(A):a.jsxs("div",{className:r.default.navigation,children:[a.jsx("button",{type:"button",className:r.default.navButton,onClick:()=>C("left"),disabled:!A.canScrollLeft,"aria-label":"Previous",children:a.jsx(q.ChevronLeft,{size:24})}),a.jsx("button",{type:"button",className:r.default.navButton,onClick:()=>C("right"),disabled:!A.canScrollRight,"aria-label":"Next",children:a.jsx(q.ChevronRight,{size:24})})]})),w&&n.length>1&&a.jsx("div",{className:r.default.pagination,children:n.map((t,e)=>a.jsx("button",{type:"button",className:`${r.default.dot} ${e===f?r.default.dotActive:""}`,onClick:()=>k(e),"aria-label":`Go to slide ${e+1}`},e))})]})});T.displayName="Carousel";exports.Carousel=T;
|
package/dist/index17.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as et, useRef as j, useState as k, useCallback as f, useEffe
|
|
|
3
3
|
import { CarouselCard as nt } from "./index18.mjs";
|
|
4
4
|
import { ChevronLeft as ot, ChevronRight as st } from "lucide-react";
|
|
5
5
|
import { spacing as b } from "./index83.mjs";
|
|
6
|
-
import e from "./
|
|
6
|
+
import e from "./index117.mjs";
|
|
7
7
|
const lt = parseInt(b[6], 10), ct = parseInt(b[4], 10), at = parseInt(b[6], 10), it = parseInt(b[8], 10), dt = et(
|
|
8
8
|
({
|
|
9
9
|
items: o,
|
package/dist/index170.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n="_link_1ch8i_9",i="_subtle_1ch8i_38",c="_brand_1ch8i_46",o="_sm_1ch8i_58",_="_md_1ch8i_63",t="_lg_1ch8i_68",e="_underline_1ch8i_77",r="_icon_1ch8i_92",l="_iconRight_1ch8i_124",s="_iconExternal_1ch8i_129",d="_iconArrow_1ch8i_134",h="_iconArrowLeft_1ch8i_139",u={link:n,default:"_default_1ch8i_30",subtle:i,brand:c,sm:o,md:_,lg:t,underline:e,icon:r,iconRight:l,iconExternal:s,iconArrow:d,iconArrowLeft:h};exports.brand=c;exports.default=u;exports.icon=r;exports.iconArrow=d;exports.iconArrowLeft=h;exports.iconExternal=s;exports.iconRight=l;exports.lg=t;exports.link=n;exports.md=_;exports.sm=o;exports.subtle=i;exports.underline=e;
|
package/dist/index170.mjs
CHANGED
|
@@ -1,125 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return /* @__PURE__ */ e(w, { size: 18 });
|
|
16
|
-
default:
|
|
17
|
-
return /* @__PURE__ */ e(P, { size: 18 });
|
|
18
|
-
}
|
|
19
|
-
}, $ = ({
|
|
20
|
-
attachment: d,
|
|
21
|
-
removable: h = !1,
|
|
22
|
-
onRemove: a,
|
|
23
|
-
onClick: n,
|
|
24
|
-
className: s,
|
|
25
|
-
...c
|
|
26
|
-
}) => {
|
|
27
|
-
const { type: p, name: i, url: l, content: v, language: b, size: f, duration: m, thumbnail: g } = d;
|
|
28
|
-
switch (p) {
|
|
29
|
-
case "image":
|
|
30
|
-
if (l)
|
|
31
|
-
return /* @__PURE__ */ o("div", { className: s, style: { position: "relative" }, ...c, children: [
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
C,
|
|
34
|
-
{
|
|
35
|
-
src: l,
|
|
36
|
-
alt: i,
|
|
37
|
-
thumbnail: g,
|
|
38
|
-
onClick: n
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
h && a && /* @__PURE__ */ e(
|
|
42
|
-
"button",
|
|
43
|
-
{
|
|
44
|
-
className: t.attachmentPreviewRemove,
|
|
45
|
-
onClick: (r) => {
|
|
46
|
-
r.stopPropagation(), a();
|
|
47
|
-
},
|
|
48
|
-
"aria-label": `Remove ${i}`,
|
|
49
|
-
style: {
|
|
50
|
-
position: "absolute",
|
|
51
|
-
top: 4,
|
|
52
|
-
right: 4,
|
|
53
|
-
background: "var(--surface-base)"
|
|
54
|
-
},
|
|
55
|
-
children: /* @__PURE__ */ e(u, { size: 14 })
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] });
|
|
59
|
-
break;
|
|
60
|
-
case "audio":
|
|
61
|
-
if (l)
|
|
62
|
-
return /* @__PURE__ */ o("div", { className: s, style: { position: "relative" }, ...c, children: [
|
|
63
|
-
/* @__PURE__ */ e(N, { src: l, duration: m, title: i }),
|
|
64
|
-
h && a && /* @__PURE__ */ e(
|
|
65
|
-
"button",
|
|
66
|
-
{
|
|
67
|
-
className: t.attachmentPreviewRemove,
|
|
68
|
-
onClick: (r) => {
|
|
69
|
-
r.stopPropagation(), a();
|
|
70
|
-
},
|
|
71
|
-
"aria-label": `Remove ${i}`,
|
|
72
|
-
children: /* @__PURE__ */ e(u, { size: 14 })
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] });
|
|
76
|
-
break;
|
|
77
|
-
case "code":
|
|
78
|
-
if (v)
|
|
79
|
-
return /* @__PURE__ */ e(
|
|
80
|
-
I,
|
|
81
|
-
{
|
|
82
|
-
code: v,
|
|
83
|
-
language: b,
|
|
84
|
-
className: s,
|
|
85
|
-
...c
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
return /* @__PURE__ */ o(
|
|
91
|
-
"div",
|
|
92
|
-
{
|
|
93
|
-
className: [t.attachmentPreview, s].filter(Boolean).join(" "),
|
|
94
|
-
onClick: n,
|
|
95
|
-
role: n ? "button" : void 0,
|
|
96
|
-
tabIndex: n ? 0 : void 0,
|
|
97
|
-
...c,
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ e("div", { className: t.attachmentPreviewIcon, children: x(p) }),
|
|
100
|
-
/* @__PURE__ */ o("div", { className: t.attachmentPreviewInfo, children: [
|
|
101
|
-
/* @__PURE__ */ e("span", { className: t.attachmentPreviewName, children: i }),
|
|
102
|
-
f && /* @__PURE__ */ o("span", { className: t.attachmentPreviewMeta, children: [
|
|
103
|
-
k(f),
|
|
104
|
-
m && ` · ${Math.floor(m / 60)}:${(m % 60).toString().padStart(2, "0")}`
|
|
105
|
-
] })
|
|
106
|
-
] }),
|
|
107
|
-
h && a && /* @__PURE__ */ e(
|
|
108
|
-
"button",
|
|
109
|
-
{
|
|
110
|
-
className: t.attachmentPreviewRemove,
|
|
111
|
-
onClick: (r) => {
|
|
112
|
-
r.stopPropagation(), a();
|
|
113
|
-
},
|
|
114
|
-
"aria-label": `Remove ${i}`,
|
|
115
|
-
children: /* @__PURE__ */ e(u, { size: 14 })
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
);
|
|
1
|
+
const n = "_link_1ch8i_9", c = "_subtle_1ch8i_38", _ = "_brand_1ch8i_46", i = "_sm_1ch8i_58", o = "_md_1ch8i_63", t = "_lg_1ch8i_68", r = "_underline_1ch8i_77", s = "_icon_1ch8i_92", e = "_iconRight_1ch8i_124", l = "_iconExternal_1ch8i_129", h = "_iconArrow_1ch8i_134", d = "_iconArrowLeft_1ch8i_139", a = {
|
|
2
|
+
link: n,
|
|
3
|
+
default: "_default_1ch8i_30",
|
|
4
|
+
subtle: c,
|
|
5
|
+
brand: _,
|
|
6
|
+
sm: i,
|
|
7
|
+
md: o,
|
|
8
|
+
lg: t,
|
|
9
|
+
underline: r,
|
|
10
|
+
icon: s,
|
|
11
|
+
iconRight: e,
|
|
12
|
+
iconExternal: l,
|
|
13
|
+
iconArrow: h,
|
|
14
|
+
iconArrowLeft: d
|
|
121
15
|
};
|
|
122
|
-
$.displayName = "ChatAttachment";
|
|
123
16
|
export {
|
|
124
|
-
|
|
17
|
+
_ as brand,
|
|
18
|
+
a as default,
|
|
19
|
+
s as icon,
|
|
20
|
+
h as iconArrow,
|
|
21
|
+
d as iconArrowLeft,
|
|
22
|
+
l as iconExternal,
|
|
23
|
+
e as iconRight,
|
|
24
|
+
t as lg,
|
|
25
|
+
n as link,
|
|
26
|
+
o as md,
|
|
27
|
+
i as sm,
|
|
28
|
+
c as subtle,
|
|
29
|
+
r as underline
|
|
125
30
|
};
|
package/dist/index171.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_container_1xu4i_8",e="_borderless_1xu4i_17",_="_table_1xu4i_23",o="_caption_1xu4i_32",i="_thead_1xu4i_44",n="_th_1xu4i_44",r="_alignCenter_1xu4i_59",s="_alignRight_1xu4i_63",c="_sortable_1xu4i_68",a="_sortIndicator_1xu4i_84",l="_active_1xu4i_91",d="_tbody_1xu4i_99",b="_tr_1xu4i_103",u="_td_1xu4i_113",x="_hoverable_1xu4i_131",g="_clickable_1xu4i_136",h="_striped_1xu4i_148",m="_bordered_1xu4i_160",p="_sm_1xu4i_178",v="_md_1xu4i_188",y="_lg_1xu4i_198",k="_empty_1xu4i_212",C={container:t,borderless:e,table:_,caption:o,thead:i,th:n,alignCenter:r,alignRight:s,sortable:c,sortIndicator:a,active:l,tbody:d,tr:b,td:u,hoverable:x,clickable:g,striped:h,bordered:m,sm:p,md:v,lg:y,empty:k};exports.active=l;exports.alignCenter=r;exports.alignRight=s;exports.bordered=m;exports.borderless=e;exports.caption=o;exports.clickable=g;exports.container=t;exports.default=C;exports.empty=k;exports.hoverable=x;exports.lg=y;exports.md=v;exports.sm=p;exports.sortIndicator=a;exports.sortable=c;exports.striped=h;exports.table=_;exports.tbody=d;exports.td=u;exports.th=n;exports.thead=i;exports.tr=b;
|
package/dist/index171.mjs
CHANGED
|
@@ -1,217 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
] });
|
|
1
|
+
const t = "_container_1xu4i_8", _ = "_borderless_1xu4i_17", e = "_table_1xu4i_23", o = "_caption_1xu4i_32", i = "_thead_1xu4i_44", n = "_th_1xu4i_44", s = "_alignCenter_1xu4i_59", c = "_alignRight_1xu4i_63", r = "_sortable_1xu4i_68", a = "_sortIndicator_1xu4i_84", l = "_active_1xu4i_91", d = "_tbody_1xu4i_99", u = "_tr_1xu4i_103", x = "_td_1xu4i_113", b = "_hoverable_1xu4i_131", g = "_clickable_1xu4i_136", h = "_striped_1xu4i_148", p = "_bordered_1xu4i_160", m = "_sm_1xu4i_178", y = "_md_1xu4i_188", v = "_lg_1xu4i_198", k = "_empty_1xu4i_212", C = {
|
|
2
|
+
container: t,
|
|
3
|
+
borderless: _,
|
|
4
|
+
table: e,
|
|
5
|
+
caption: o,
|
|
6
|
+
thead: i,
|
|
7
|
+
th: n,
|
|
8
|
+
alignCenter: s,
|
|
9
|
+
alignRight: c,
|
|
10
|
+
sortable: r,
|
|
11
|
+
sortIndicator: a,
|
|
12
|
+
active: l,
|
|
13
|
+
tbody: d,
|
|
14
|
+
tr: u,
|
|
15
|
+
td: x,
|
|
16
|
+
hoverable: b,
|
|
17
|
+
clickable: g,
|
|
18
|
+
striped: h,
|
|
19
|
+
bordered: p,
|
|
20
|
+
sm: m,
|
|
21
|
+
md: y,
|
|
22
|
+
lg: v,
|
|
23
|
+
empty: k
|
|
213
24
|
};
|
|
214
|
-
R.displayName = "ChatSidebar";
|
|
215
25
|
export {
|
|
216
|
-
|
|
26
|
+
l as active,
|
|
27
|
+
s as alignCenter,
|
|
28
|
+
c as alignRight,
|
|
29
|
+
p as bordered,
|
|
30
|
+
_ as borderless,
|
|
31
|
+
o as caption,
|
|
32
|
+
g as clickable,
|
|
33
|
+
t as container,
|
|
34
|
+
C as default,
|
|
35
|
+
k as empty,
|
|
36
|
+
b as hoverable,
|
|
37
|
+
v as lg,
|
|
38
|
+
y as md,
|
|
39
|
+
m as sm,
|
|
40
|
+
a as sortIndicator,
|
|
41
|
+
r as sortable,
|
|
42
|
+
h as striped,
|
|
43
|
+
e as table,
|
|
44
|
+
d as tbody,
|
|
45
|
+
x as td,
|
|
46
|
+
n as th,
|
|
47
|
+
i as thead,
|
|
48
|
+
u as tr
|
|
217
49
|
};
|
package/dist/index172.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 s="_alert_1sgpf_8",e="_icon_1sgpf_25",t="_content_1sgpf_35",n="_title_1sgpf_43",o="_message_1sgpf_50",_="_closeButton_1sgpf_56",c="_success_1sgpf_99",r="_error_1sgpf_106",i="_warning_1sgpf_113",g="_info_1sgpf_120",l="_inverse_1sgpf_128",f={alert:s,icon:e,content:t,title:n,message:o,closeButton:_,success:c,error:r,warning:i,info:g,inverse:l};exports.alert=s;exports.closeButton=_;exports.content=t;exports.default=f;exports.error=r;exports.icon=e;exports.info=g;exports.inverse=l;exports.message=o;exports.success=c;exports.title=n;exports.warning=i;
|