@orion-ds/react 4.2.4 → 4.2.8
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/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.module.css +1 -1
- package/dist/components/Alert/Alert.stories.d.ts +2 -1
- package/dist/components/Alert/Alert.stories.d.ts.map +1 -1
- package/dist/components/Alert/Alert.types.d.ts +1 -1
- package/dist/components/Alert/Alert.types.d.ts.map +1 -1
- package/dist/components/Badge/Badge.module.css +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +2 -2
- package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/components/Badge/Badge.types.d.ts +2 -2
- package/dist/components/Badge/Badge.types.d.ts.map +1 -1
- package/dist/components/Button/Button.module.css +1 -1
- package/dist/components/Card/Card.module.css +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +1 -1
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/Chip/Chip.module.css +1 -1
- package/dist/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/Chip/Chip.types.d.ts +1 -1
- package/dist/components/Chip/Chip.types.d.ts.map +1 -1
- package/dist/components/Field/Field.module.css +1 -1
- package/dist/components/Field/Field.stories.d.ts +5 -0
- package/dist/components/Field/Field.stories.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.module.css +1 -1
- package/dist/components/Select/Select.module.css +1 -1
- package/dist/components/Textarea/Textarea.module.css +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.mjs +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.mjs +33 -30
- package/dist/index101.cjs +1 -1
- package/dist/index101.mjs +24 -40
- package/dist/index102.cjs +1 -1
- package/dist/index102.mjs +28 -46
- package/dist/index103.cjs +1 -1
- package/dist/index103.mjs +40 -24
- package/dist/index104.cjs +1 -1
- package/dist/index104.mjs +53 -12
- package/dist/index105.cjs +1 -1
- package/dist/index105.mjs +62 -44
- package/dist/index106.cjs +1 -1
- package/dist/index106.mjs +28 -20
- package/dist/index107.cjs +1 -1
- package/dist/index107.mjs +20 -38
- package/dist/index108.cjs +1 -1
- package/dist/index108.mjs +18 -14
- package/dist/index109.cjs +1 -1
- package/dist/index109.mjs +30 -18
- package/dist/index11.cjs +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.mjs +30 -28
- package/dist/index111.cjs +1 -1
- package/dist/index111.mjs +44 -28
- package/dist/index113.cjs +1 -1
- package/dist/index113.mjs +29 -37
- package/dist/index114.cjs +1 -1
- package/dist/index114.mjs +44 -28
- package/dist/index115.cjs +1 -1
- package/dist/index115.mjs +12 -40
- package/dist/index116.cjs +1 -1
- package/dist/index116.mjs +30 -46
- package/dist/index117.cjs +1 -1
- package/dist/index117.mjs +32 -28
- package/dist/index118.cjs +1 -1
- package/dist/index118.mjs +33 -22
- package/dist/index119.cjs +1 -1
- package/dist/index119.mjs +28 -26
- package/dist/index120.cjs +1 -1
- package/dist/index120.mjs +35 -62
- package/dist/index121.cjs +1 -1
- package/dist/index121.mjs +35 -31
- package/dist/index122.cjs +1 -1
- package/dist/index122.mjs +20 -45
- package/dist/index123.cjs +1 -1
- package/dist/index123.mjs +14 -28
- package/dist/index124.cjs +1 -1
- package/dist/index124.mjs +27 -33
- package/dist/index125.cjs +1 -1
- package/dist/index125.mjs +18 -38
- package/dist/index126.cjs +1 -1
- package/dist/index126.mjs +37 -33
- package/dist/index127.cjs +1 -1
- package/dist/index127.mjs +28 -42
- package/dist/index128.cjs +1 -1
- package/dist/index128.mjs +24 -40
- package/dist/index129.cjs +1 -1
- package/dist/index129.mjs +27 -29
- package/dist/index13.cjs +1 -1
- package/dist/index13.mjs +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.mjs +26 -60
- package/dist/index131.cjs +1 -1
- package/dist/index131.mjs +28 -106
- package/dist/index132.cjs +1 -1
- package/dist/index132.mjs +42 -57
- package/dist/index133.cjs +1 -1
- package/dist/index133.mjs +52 -24
- package/dist/index134.cjs +1 -1
- package/dist/index134.mjs +36 -30
- package/dist/index135.cjs +1 -1
- package/dist/index135.mjs +50 -18
- package/dist/index136.cjs +1 -1
- package/dist/index136.mjs +18 -52
- package/dist/index137.cjs +1 -1
- package/dist/index137.mjs +154 -30
- package/dist/index138.cjs +1 -1
- package/dist/index138.mjs +218 -28
- package/dist/index139.cjs +1 -1
- package/dist/index139.mjs +28 -42
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +1 -1
- package/dist/index140.cjs +1 -1
- package/dist/index140.mjs +42 -18
- package/dist/index141.cjs +1 -1
- package/dist/index141.mjs +44 -44
- package/dist/index142.cjs +1 -1
- package/dist/index142.mjs +16 -65
- package/dist/index143.cjs +1 -1
- package/dist/index143.mjs +46 -20
- package/dist/index144.cjs +1 -1
- package/dist/index144.mjs +64 -33
- package/dist/index145.cjs +1 -1
- package/dist/index145.mjs +30 -76
- package/dist/index146.cjs +1 -1
- package/dist/index146.mjs +40 -64
- package/dist/index147.cjs +1 -1
- package/dist/index147.mjs +32 -64
- package/dist/index148.cjs +1 -1
- package/dist/index148.mjs +56 -18
- package/dist/index149.cjs +1 -1
- package/dist/index149.mjs +62 -20
- package/dist/index15.cjs +1 -1
- package/dist/index15.mjs +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.mjs +42 -56
- package/dist/index152.cjs +1 -1
- package/dist/index152.mjs +38 -51
- package/dist/index153.cjs +1 -1
- package/dist/index153.mjs +18 -24
- package/dist/index154.cjs +1 -1
- package/dist/index154.mjs +76 -27
- package/dist/index155.cjs +1 -1
- package/dist/index155.mjs +67 -46
- package/dist/index156.cjs +1 -1
- package/dist/index156.mjs +65 -42
- package/dist/index157.cjs +1 -1
- package/dist/index157.mjs +36 -26
- package/dist/index158.cjs +1 -1
- package/dist/index158.mjs +234 -55
- package/dist/index159.cjs +1 -1
- package/dist/index159.mjs +34 -17
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +1 -1
- package/dist/index160.cjs +1 -1
- package/dist/index160.mjs +44 -13
- package/dist/index161.cjs +1 -1
- package/dist/index161.mjs +170 -50
- package/dist/index162.cjs +1 -1
- package/dist/index162.mjs +186 -21
- package/dist/index163.cjs +1 -1
- package/dist/index163.mjs +29 -34
- package/dist/index164.cjs +1 -1
- package/dist/index164.mjs +90 -36
- package/dist/index165.cjs +1 -1
- package/dist/index165.mjs +53 -68
- package/dist/index166.cjs +1 -1
- package/dist/index166.mjs +66 -28
- package/dist/index167.cjs +1 -1
- package/dist/index167.mjs +124 -18
- package/dist/index168.cjs +1 -1
- package/dist/index168.mjs +108 -234
- package/dist/index169.cjs +1 -1
- package/dist/index169.mjs +111 -33
- package/dist/index17.cjs +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index170.cjs +1 -1
- package/dist/index170.mjs +120 -41
- package/dist/index171.cjs +1 -1
- package/dist/index171.mjs +199 -155
- package/dist/index172.cjs +1 -1
- package/dist/index172.mjs +107 -186
- package/dist/index173.cjs +1 -1
- package/dist/index173.mjs +23 -29
- package/dist/index174.cjs +1 -1
- package/dist/index174.mjs +18 -90
- package/dist/index175.cjs +1 -1
- package/dist/index175.mjs +65 -53
- package/dist/index176.cjs +1 -1
- package/dist/index176.mjs +18 -66
- package/dist/index177.cjs +1 -1
- package/dist/index177.mjs +57 -124
- package/dist/index178.cjs +1 -1
- package/dist/index178.mjs +12 -108
- package/dist/index179.cjs +1 -1
- package/dist/index179.mjs +38 -111
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index180.cjs +1 -1
- package/dist/index180.mjs +26 -122
- package/dist/index181.cjs +1 -1
- package/dist/index181.mjs +45 -214
- 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 +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.mjs +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.mjs +2 -2
- 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/index3.cjs +1 -1
- package/dist/index3.mjs +2 -2
- 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/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 +1 -1
- 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 +1 -1
- 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/index67.cjs +1 -1
- package/dist/index67.mjs +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.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 +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.mjs +2 -2
- 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 +31 -30
- package/dist/index80.cjs +1 -1
- package/dist/index80.mjs +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.mjs +1 -1
- 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/index97.cjs +1 -1
- package/dist/index97.mjs +24 -154
- package/dist/index98.cjs +1 -1
- package/dist/index98.mjs +46 -218
- package/dist/index99.cjs +1 -1
- package/dist/index99.mjs +55 -36
- package/dist/styles.css +27 -9
- package/package.json +1 -1
package/dist/index180.mjs
CHANGED
|
@@ -1,125 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
case "code":
|
|
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 s = "_trigger_9nsdr_9", r = "_menu_9nsdr_14", _ = "_visible_9nsdr_31", n = "_group_9nsdr_45", t = "_groupLabel_9nsdr_49", e = "_separator_9nsdr_59", o = "_item_9nsdr_69", d = "_disabled_9nsdr_82", a = "_danger_9nsdr_98", c = "_icon_9nsdr_111", i = "_label_9nsdr_122", l = "_shortcut_9nsdr_126", g = {
|
|
2
|
+
trigger: s,
|
|
3
|
+
menu: r,
|
|
4
|
+
visible: _,
|
|
5
|
+
group: n,
|
|
6
|
+
groupLabel: t,
|
|
7
|
+
separator: e,
|
|
8
|
+
item: o,
|
|
9
|
+
disabled: d,
|
|
10
|
+
danger: a,
|
|
11
|
+
icon: c,
|
|
12
|
+
label: i,
|
|
13
|
+
shortcut: l
|
|
121
14
|
};
|
|
122
|
-
$.displayName = "ChatAttachment";
|
|
123
15
|
export {
|
|
124
|
-
|
|
16
|
+
a as danger,
|
|
17
|
+
g as default,
|
|
18
|
+
d as disabled,
|
|
19
|
+
n as group,
|
|
20
|
+
t as groupLabel,
|
|
21
|
+
c as icon,
|
|
22
|
+
o as item,
|
|
23
|
+
i as label,
|
|
24
|
+
r as menu,
|
|
25
|
+
e as separator,
|
|
26
|
+
l as shortcut,
|
|
27
|
+
s as trigger,
|
|
28
|
+
_ as visible
|
|
125
29
|
};
|
package/dist/index181.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_sidebar_18951_8",t="_collapsed_18951_20",i="_header_18951_28",o="_content_18951_45",s="_section_18951_56",_="_sectionTitle_18951_64",n="_sectionItems_18951_75",c="_itemWrapper_18951_85",a="_item_18951_85",m="_itemActive_18951_115",d="_itemDisabled_18951_126",l="_itemNested_18951_132",r="_itemIcon_18951_136",p="_itemLabel_18951_146",v="_itemBadge_18951_154",b="_itemChevron_18951_169",g="_chevronExpanded_18951_175",h="_subItems_18951_183",I="_footer_18951_214",u="_divider_18951_227",T="_collapseToggle_18951_237",f={sidebar:e,collapsed:t,header:i,content:o,section:s,sectionTitle:_,sectionItems:n,itemWrapper:c,item:a,itemActive:m,itemDisabled:d,itemNested:l,itemIcon:r,itemLabel:p,itemBadge:v,itemChevron:b,chevronExpanded:g,subItems:h,footer:I,divider:u,collapseToggle:T,"variant-floating":"_variant-floating_18951_267"};exports.chevronExpanded=g;exports.collapseToggle=T;exports.collapsed=t;exports.content=o;exports.default=f;exports.divider=u;exports.footer=I;exports.header=i;exports.item=a;exports.itemActive=m;exports.itemBadge=v;exports.itemChevron=b;exports.itemDisabled=d;exports.itemIcon=r;exports.itemLabel=p;exports.itemNested=l;exports.itemWrapper=c;exports.section=s;exports.sectionItems=n;exports.sectionTitle=_;exports.sidebar=e;exports.subItems=h;
|
package/dist/index181.mjs
CHANGED
|
@@ -1,217 +1,48 @@
|
|
|
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 e = "_sidebar_18951_8", t = "_collapsed_18951_20", _ = "_header_18951_28", o = "_content_18951_45", i = "_section_18951_56", s = "_sectionTitle_18951_64", n = "_sectionItems_18951_75", c = "_itemWrapper_18951_85", a = "_item_18951_85", m = "_itemActive_18951_115", d = "_itemDisabled_18951_126", l = "_itemNested_18951_132", r = "_itemIcon_18951_136", p = "_itemLabel_18951_146", v = "_itemBadge_18951_154", b = "_itemChevron_18951_169", g = "_chevronExpanded_18951_175", h = "_subItems_18951_183", I = "_footer_18951_214", f = "_divider_18951_227", T = "_collapseToggle_18951_237", u = {
|
|
2
|
+
sidebar: e,
|
|
3
|
+
collapsed: t,
|
|
4
|
+
header: _,
|
|
5
|
+
content: o,
|
|
6
|
+
section: i,
|
|
7
|
+
sectionTitle: s,
|
|
8
|
+
sectionItems: n,
|
|
9
|
+
itemWrapper: c,
|
|
10
|
+
item: a,
|
|
11
|
+
itemActive: m,
|
|
12
|
+
itemDisabled: d,
|
|
13
|
+
itemNested: l,
|
|
14
|
+
itemIcon: r,
|
|
15
|
+
itemLabel: p,
|
|
16
|
+
itemBadge: v,
|
|
17
|
+
itemChevron: b,
|
|
18
|
+
chevronExpanded: g,
|
|
19
|
+
subItems: h,
|
|
20
|
+
footer: I,
|
|
21
|
+
divider: f,
|
|
22
|
+
collapseToggle: T,
|
|
23
|
+
"variant-floating": "_variant-floating_18951_267"
|
|
213
24
|
};
|
|
214
|
-
R.displayName = "ChatSidebar";
|
|
215
25
|
export {
|
|
216
|
-
|
|
26
|
+
g as chevronExpanded,
|
|
27
|
+
T as collapseToggle,
|
|
28
|
+
t as collapsed,
|
|
29
|
+
o as content,
|
|
30
|
+
u as default,
|
|
31
|
+
f as divider,
|
|
32
|
+
I as footer,
|
|
33
|
+
_ as header,
|
|
34
|
+
a as item,
|
|
35
|
+
m as itemActive,
|
|
36
|
+
v as itemBadge,
|
|
37
|
+
b as itemChevron,
|
|
38
|
+
d as itemDisabled,
|
|
39
|
+
r as itemIcon,
|
|
40
|
+
p as itemLabel,
|
|
41
|
+
l as itemNested,
|
|
42
|
+
c as itemWrapper,
|
|
43
|
+
i as section,
|
|
44
|
+
n as sectionItems,
|
|
45
|
+
s as sectionTitle,
|
|
46
|
+
e as sidebar,
|
|
47
|
+
h as subItems
|
|
217
48
|
};
|
package/dist/index182.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 _="_section_f5l02_8",o="_borderTop_f5l02_71",e="_borderBottom_f5l02_75",n={section:_,"spacing-none":"_spacing-none_f5l02_17","spacing-sm":"_spacing-sm_f5l02_22","spacing-md":"_spacing-md_f5l02_27","spacing-lg":"_spacing-lg_f5l02_32","spacing-xl":"_spacing-xl_f5l02_37","bg-none":"_bg-none_f5l02_46","bg-base":"_bg-base_f5l02_50","bg-subtle":"_bg-subtle_f5l02_54","bg-sunken":"_bg-sunken_f5l02_58","bg-brand":"_bg-brand_f5l02_62",borderTop:o,borderBottom:e};exports.borderBottom=e;exports.borderTop=o;exports.default=n;exports.section=_;
|
package/dist/index182.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const _ = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const _ = "_section_f5l02_8", n = "_borderTop_f5l02_71", s = "_borderBottom_f5l02_75", o = {
|
|
2
|
+
section: _,
|
|
3
|
+
"spacing-none": "_spacing-none_f5l02_17",
|
|
4
|
+
"spacing-sm": "_spacing-sm_f5l02_22",
|
|
5
|
+
"spacing-md": "_spacing-md_f5l02_27",
|
|
6
|
+
"spacing-lg": "_spacing-lg_f5l02_32",
|
|
7
|
+
"spacing-xl": "_spacing-xl_f5l02_37",
|
|
8
|
+
"bg-none": "_bg-none_f5l02_46",
|
|
9
|
+
"bg-base": "_bg-base_f5l02_50",
|
|
10
|
+
"bg-subtle": "_bg-subtle_f5l02_54",
|
|
11
|
+
"bg-sunken": "_bg-sunken_f5l02_58",
|
|
12
|
+
"bg-brand": "_bg-brand_f5l02_62",
|
|
13
|
+
borderTop: n,
|
|
14
|
+
borderBottom: s
|
|
10
15
|
};
|
|
11
16
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
s as borderBottom,
|
|
18
|
+
n as borderTop,
|
|
14
19
|
o as default,
|
|
15
|
-
|
|
16
|
-
d as lg,
|
|
17
|
-
t as md,
|
|
18
|
-
e as padded,
|
|
19
|
-
n as sm,
|
|
20
|
-
c as xl
|
|
20
|
+
_ as section
|
|
21
21
|
};
|
package/dist/index183.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 e="_container_1l2wi_8",l="_centered_1l2wi_13",t="_padded_1l2wi_19",_="_sm_1l2wi_28",d="_md_1l2wi_32",n="_lg_1l2wi_36",c="_xl_1l2wi_40",s="_full_1l2wi_44",o={container:e,centered:l,padded:t,sm:_,md:d,lg:n,xl:c,full:s};exports.centered=l;exports.container=e;exports.default=o;exports.full=s;exports.lg=n;exports.md=d;exports.padded=t;exports.sm=_;exports.xl=c;
|
package/dist/index183.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const _ = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"bg-subtle": "_bg-subtle_f5l02_54",
|
|
11
|
-
"bg-sunken": "_bg-sunken_f5l02_58",
|
|
12
|
-
"bg-brand": "_bg-brand_f5l02_62",
|
|
13
|
-
borderTop: n,
|
|
14
|
-
borderBottom: s
|
|
1
|
+
const _ = "_container_1l2wi_8", l = "_centered_1l2wi_13", e = "_padded_1l2wi_19", n = "_sm_1l2wi_28", t = "_md_1l2wi_32", d = "_lg_1l2wi_36", c = "_xl_1l2wi_40", s = "_full_1l2wi_44", o = {
|
|
2
|
+
container: _,
|
|
3
|
+
centered: l,
|
|
4
|
+
padded: e,
|
|
5
|
+
sm: n,
|
|
6
|
+
md: t,
|
|
7
|
+
lg: d,
|
|
8
|
+
xl: c,
|
|
9
|
+
full: s
|
|
15
10
|
};
|
|
16
11
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
l as centered,
|
|
13
|
+
_ as container,
|
|
19
14
|
o as default,
|
|
20
|
-
|
|
15
|
+
s as full,
|
|
16
|
+
d as lg,
|
|
17
|
+
t as md,
|
|
18
|
+
e as padded,
|
|
19
|
+
n as sm,
|
|
20
|
+
c as xl
|
|
21
21
|
};
|
package/dist/index185.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),b=require("lucide-react"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),b=require("lucide-react"),i=require("./index158.cjs"),l=({src:s,alt:d="Image",isOpen:a,onClose:t,className:f,...m})=>{const u=n.useRef(null),r=n.useRef(null),c=n.useCallback(e=>{if(e.key==="Escape"){t();return}e.key==="Tab"&&(e.preventDefault(),u.current?.focus())},[t]),g=e=>{e.target===e.currentTarget&&t()};return n.useEffect(()=>(a&&(r.current=document.activeElement,document.addEventListener("keydown",c),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.current?.focus()})),()=>{document.removeEventListener("keydown",c),document.body.style.overflow="",r.current&&typeof r.current.focus=="function"&&r.current.focus()}),[a,c]),a?o.jsxs("div",{className:[i.default.lightbox,f].filter(Boolean).join(" "),onClick:g,role:"dialog","aria-modal":"true","aria-label":"Image viewer",...m,children:[o.jsx("button",{ref:u,className:i.default.lightboxClose,onClick:t,"aria-label":"Close image viewer",children:o.jsx(b.X,{size:24})}),o.jsx("img",{src:s,alt:d,className:i.default.lightboxImage})]}):null};l.displayName="ChatLightbox";exports.ChatLightbox=l;
|
package/dist/index185.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as c, useCallback as b, useEffect as h } from "react";
|
|
3
3
|
import { X as y } from "lucide-react";
|
|
4
|
-
import l from "./
|
|
4
|
+
import l from "./index158.mjs";
|
|
5
5
|
const v = ({
|
|
6
6
|
src: u,
|
|
7
7
|
alt: s = "Image",
|
package/dist/index19.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),p=require("recharts"),R=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),p=require("recharts"),R=require("./index126.cjs"),t=require("./index127.cjs"),f=h.createContext({}),j=({config:s,children:o,className:a,style:n,...l})=>{const{resolvedConfig:r,resolvedColorVars:i}=R.useResolvedChartColors(s),d=[t.default.container,a].filter(Boolean).join(" ");return e.jsx(f.Provider,{value:r,children:e.jsx("div",{role:"figure",className:d,style:{...i,...n},...l,children:e.jsx(p.ResponsiveContainer,{width:"100%",height:"100%",children:o})})})};j.displayName="ChartContainer";const v=({active:s,payload:o,label:a,indicator:n="dot",hideLabel:l=!1,hideIndicator:r=!1,labelFormatter:i,formatter:d,className:u})=>{const L=h.useContext(f);if(!s||!o?.length)return null;const b=[t.default.tooltip,u].filter(Boolean).join(" "),g=i?i(String(a)):a,T={dot:t.default.tooltipDot,line:t.default.tooltipLine,dashed:t.default.tooltipDashed}[n];return e.jsxs("div",{className:b,children:[!l&&g&&e.jsx("div",{className:t.default.tooltipLabel,children:g}),e.jsx("div",{className:t.default.tooltipItems,children:o.map(c=>{const C=String(c.dataKey||c.name),m=L[C],q=m?.label||C,I=d?d(c.value,C):String(c.value),x=c.color||m?.color;return e.jsxs("div",{className:t.default.tooltipItem,children:[!r&&e.jsx("span",{className:T,style:{backgroundColor:x,borderColor:x}}),e.jsx("span",{className:t.default.tooltipName,children:q}),e.jsx("span",{className:t.default.tooltipValue,children:I})]},C)})})]})};v.displayName="ChartTooltipContent";const N=({payload:s,className:o})=>{const a=h.useContext(f);if(!s?.length)return null;const n=[t.default.legend,o].filter(Boolean).join(" ");return e.jsx("div",{className:n,children:s.map(l=>{const r=l.dataKey||l.value,i=a[r],d=i?.label||r,u=l.color||i?.color;return e.jsxs("div",{className:t.default.legendItem,children:[e.jsx("span",{className:t.default.legendDot,style:{backgroundColor:u}}),e.jsx("span",{children:d})]},r)})})};N.displayName="ChartLegendContent";const y=({id:s,color:o,startOpacity:a=.4,endOpacity:n=.05})=>e.jsxs("linearGradient",{id:s,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:o,stopOpacity:a}),e.jsx("stop",{offset:"95%",stopColor:o,stopOpacity:n})]});y.displayName="ChartGradient";const S=p.Tooltip,G=p.Legend;exports.ChartContainer=j;exports.ChartGradient=y;exports.ChartLegend=G;exports.ChartLegendContent=N;exports.ChartTooltip=S;exports.ChartTooltipContent=v;
|
package/dist/index19.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as v, createContext as j } from "react";
|
|
3
3
|
import { Legend as I, Tooltip as K, ResponsiveContainer as T } from "recharts";
|
|
4
|
-
import { useResolvedChartColors as B } from "./
|
|
5
|
-
import o from "./
|
|
4
|
+
import { useResolvedChartColors as B } from "./index126.mjs";
|
|
5
|
+
import o from "./index127.mjs";
|
|
6
6
|
const h = j({}), D = ({
|
|
7
7
|
config: n,
|
|
8
8
|
children: e,
|
package/dist/index20.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("./index158.cjs"),d=require("./index159.cjs"),h=require("./index160.cjs"),n=require("./index161.cjs"),C=require("./index162.cjs"),c=require("./index163.cjs"),l=require("./index164.cjs"),u=require("./index165.cjs"),p=require("./index166.cjs"),m=require("./index167.cjs"),y=require("./index168.cjs"),g=require("./index169.cjs"),M=require("./index170.cjs"),q=require("./index171.cjs"),a=({children:t,className:r,...i})=>o.jsx("div",{className:[s.default.chat,r].filter(Boolean).join(" "),role:"region","aria-label":"Chat interface",...i,children:t});a.displayName="Chat";const e=a;e.Header=d.ChatHeader;e.Messages=h.ChatMessages;e.Message=n.ChatMessage;e.Input=C.ChatInput;e.TypingIndicator=c.ChatTypingIndicator;e.CodeBlock=l.ChatCodeBlock;e.Markdown=u.ChatMarkdown;e.ImagePreview=p.ChatImagePreview;e.AudioPlayer=m.ChatAudioPlayer;e.VoiceRecorder=y.ChatVoiceRecorder;e.FileUpload=g.ChatFileUpload;e.Attachment=M.ChatAttachment;e.Sidebar=q.ChatSidebar;e.Header.displayName="Chat.Header";e.Messages.displayName="Chat.Messages";e.Message.displayName="Chat.Message";e.Input.displayName="Chat.Input";e.TypingIndicator.displayName="Chat.TypingIndicator";e.CodeBlock.displayName="Chat.CodeBlock";e.Markdown.displayName="Chat.Markdown";e.ImagePreview.displayName="Chat.ImagePreview";e.AudioPlayer.displayName="Chat.AudioPlayer";e.VoiceRecorder.displayName="Chat.VoiceRecorder";e.FileUpload.displayName="Chat.FileUpload";e.Attachment.displayName="Chat.Attachment";e.Sidebar.displayName="Chat.Sidebar";exports.Chat=e;
|
package/dist/index20.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import m from "./
|
|
3
|
-
import { ChatHeader as d } from "./
|
|
4
|
-
import { ChatMessages as p } from "./
|
|
5
|
-
import { ChatMessage as s } from "./
|
|
6
|
-
import { ChatInput as l } from "./
|
|
7
|
-
import { ChatTypingIndicator as h } from "./
|
|
8
|
-
import { ChatCodeBlock as C } from "./
|
|
9
|
-
import { ChatMarkdown as n } from "./
|
|
10
|
-
import { ChatImagePreview as c } from "./
|
|
11
|
-
import { ChatAudioPlayer as y } from "./
|
|
12
|
-
import { ChatVoiceRecorder as f } from "./
|
|
13
|
-
import { ChatFileUpload as g } from "./
|
|
14
|
-
import { ChatAttachment as N } from "./
|
|
15
|
-
import { ChatSidebar as I } from "./
|
|
2
|
+
import m from "./index158.mjs";
|
|
3
|
+
import { ChatHeader as d } from "./index159.mjs";
|
|
4
|
+
import { ChatMessages as p } from "./index160.mjs";
|
|
5
|
+
import { ChatMessage as s } from "./index161.mjs";
|
|
6
|
+
import { ChatInput as l } from "./index162.mjs";
|
|
7
|
+
import { ChatTypingIndicator as h } from "./index163.mjs";
|
|
8
|
+
import { ChatCodeBlock as C } from "./index164.mjs";
|
|
9
|
+
import { ChatMarkdown as n } from "./index165.mjs";
|
|
10
|
+
import { ChatImagePreview as c } from "./index166.mjs";
|
|
11
|
+
import { ChatAudioPlayer as y } from "./index167.mjs";
|
|
12
|
+
import { ChatVoiceRecorder as f } from "./index168.mjs";
|
|
13
|
+
import { ChatFileUpload as g } from "./index169.mjs";
|
|
14
|
+
import { ChatAttachment as N } from "./index170.mjs";
|
|
15
|
+
import { ChatSidebar as I } from "./index171.mjs";
|
|
16
16
|
const e = ({ children: t, className: o, ...r }) => /* @__PURE__ */ i(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
package/dist/index21.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),u=require("lucide-react"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),u=require("lucide-react"),s=require("./index106.cjs"),m=t.forwardRef(({label:i,helperText:n,error:a,size:j="md",indeterminate:r=!1,className:k,id:N,disabled:h,required:o,checked:v,"aria-label":f,"aria-describedby":p,...C},y)=>{const R=t.useId(),l=N||`checkbox-${R}`,x=`${l}-error`,b=`${l}-helper`,g=t.useRef(null),d=y||g;t.useEffect(()=>{d.current&&(d.current.indeterminate=r)},[r,d]);const c=[];a&&c.push(x),n&&!a&&c.push(b),p&&c.push(p);const I=c.length>0?c.join(" "):void 0;!(i||f)&&process.env.NODE_ENV==="development"&&console.warn("Checkbox: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users.");const q=r?"mixed":void 0,M=[s.default.container,s.default[j],a&&s.default.error,h&&s.default.disabled,k].filter(Boolean).join(" ");return e.jsxs("div",{className:M,children:[e.jsx("input",{ref:d,type:"checkbox",id:l,className:s.default.input,disabled:h,required:o,checked:v,"aria-required":o||void 0,"aria-invalid":a?"true":"false","aria-checked":q,"aria-describedby":I,"aria-label":i?void 0:f,...C}),e.jsxs("label",{htmlFor:l,className:s.default.labelWrapper,children:[e.jsx("span",{className:s.default.checkbox,"aria-hidden":"true",children:e.jsx("span",{className:s.default.checkmark,children:r?e.jsx(u.Minus,{strokeWidth:3}):e.jsx(u.Check,{strokeWidth:3})})}),i&&e.jsxs("span",{className:s.default.label,children:[i,o&&e.jsx("span",{className:s.default.required,"aria-hidden":"true",children:"*"})]})]}),n&&!a&&e.jsx("p",{id:b,className:s.default.helperText,children:n}),a&&e.jsxs("p",{id:x,className:s.default.errorMessage,role:"alert","aria-live":"assertive",children:[e.jsx(u.AlertCircle,{size:14,"aria-hidden":"true"}),e.jsx("span",{children:a})]})]})});m.displayName="Checkbox";exports.Checkbox=m;
|