@mittwald/flow-react-components 0.1.0-alpha.406 → 0.1.0-alpha.408

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.
@@ -1,27 +1,21 @@
1
1
  "use client"
2
2
  /* */
3
3
  import s from "react";
4
- import m from "clsx";
4
+ import l from "clsx";
5
5
  import "@tabler/icons-react";
6
6
  import "./Icon-mUEZToWz.js";
7
- import { I as i } from "./IconContextMenu-B1vHRnf5.js";
8
- import { PropsContextProvider as d } from "./PropsContextProvider.js";
9
- const g = "flow--message", p = "flow--message--content", f = "flow--message--responder", u = "flow--message--header", h = "flow--message--user", N = "flow--message--date", w = "flow--message--action", x = "flow--message--right", e = {
10
- message: g,
7
+ import { I as m } from "./IconContextMenu-B1vHRnf5.js";
8
+ import { PropsContextProvider as i } from "./PropsContextProvider.js";
9
+ const d = "flow--message", p = "flow--message--content", g = "flow--message--sender", f = "flow--message--header", u = "flow--message--user", N = "flow--message--date", w = "flow--message--action", e = {
10
+ message: d,
11
11
  content: p,
12
- responder: f,
13
- header: u,
14
- user: h,
12
+ sender: g,
13
+ header: f,
14
+ user: u,
15
15
  date: N,
16
- action: w,
17
- right: x
18
- }, B = (t) => {
19
- const { type: o = "sender", children: a, className: n, orientation: r = "left" } = t, c = m(
20
- e.message,
21
- e[o],
22
- e[r],
23
- n
24
- ), l = {
16
+ action: w
17
+ }, M = (t) => {
18
+ const { type: o = "responder", children: a, className: n } = t, r = l(e.message, e[o], n), c = {
25
19
  Content: { className: e.content },
26
20
  Header: {
27
21
  className: e.header,
@@ -37,7 +31,7 @@ const g = "flow--message", p = "flow--message--content", f = "flow--message--res
37
31
  size: "s",
38
32
  variant: "plain",
39
33
  color: "secondary",
40
- children: /* @__PURE__ */ s.createElement(i, null)
34
+ children: /* @__PURE__ */ s.createElement(m, null)
41
35
  }
42
36
  },
43
37
  Text: { className: e.date },
@@ -46,9 +40,9 @@ const g = "flow--message", p = "flow--message--content", f = "flow--message--res
46
40
  }
47
41
  }
48
42
  };
49
- return /* @__PURE__ */ s.createElement(d, { props: l }, /* @__PURE__ */ s.createElement("article", { className: c }, a));
43
+ return /* @__PURE__ */ s.createElement(i, { props: c }, /* @__PURE__ */ s.createElement("article", { className: r }, a));
50
44
  };
51
45
  export {
52
- B as Message,
53
- B as default
46
+ M as Message,
47
+ M as default
54
48
  };
@@ -0,0 +1,14 @@
1
+ "use client"
2
+ /* */
3
+ import r from "react";
4
+ import o from "clsx";
5
+ const m = "flow--message-thread", c = {
6
+ messageThread: m
7
+ }, n = (e) => {
8
+ const { children: s, className: a } = e, t = o(c.messageThread, a);
9
+ return /* @__PURE__ */ r.createElement("div", { className: t }, s);
10
+ };
11
+ export {
12
+ n as MessageThread,
13
+ n as default
14
+ };