@caseparts-org/caseblocks 0.0.16 → 0.0.17
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,78 +1,80 @@
|
|
|
1
1
|
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { getHideAtStyles as
|
|
2
|
+
import { getHideAtStyles as d } from "../../atoms/HideAt.js";
|
|
3
3
|
import { Icon as f } from "../../atoms/Icon/Icon.js";
|
|
4
|
-
import { Text as
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import { Flex as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { c as
|
|
9
|
-
import { Link as
|
|
10
|
-
import '../../assets/Account.css';const
|
|
11
|
-
loggedIn:
|
|
4
|
+
import { Text as a } from "../../atoms/Text/Text.js";
|
|
5
|
+
import { Avatar as h } from "../Avatar/Avatar.js";
|
|
6
|
+
import { Flex as s } from "../../atoms/Flex/Flex.js";
|
|
7
|
+
import { Button as x } from "../../atoms/Button/Button.js";
|
|
8
|
+
import { c as u } from "../../clsx-OuTLNxxd.js";
|
|
9
|
+
import { Link as A } from "../../atoms/Link/Link.js";
|
|
10
|
+
import '../../assets/Account.css';const p = "_loggedIn_1uin2_1", l = {
|
|
11
|
+
loggedIn: p
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function I(e) {
|
|
14
14
|
return e.account !== void 0;
|
|
15
15
|
}
|
|
16
16
|
function w(e) {
|
|
17
|
-
return
|
|
17
|
+
return I(e) ? /* @__PURE__ */ i(k, { ...e }) : /* @__PURE__ */ i(y, { ...e });
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
function k(e) {
|
|
20
|
+
const {
|
|
21
|
+
account: t,
|
|
22
|
+
accountRoute: o,
|
|
23
|
+
onLoginClick: m,
|
|
24
|
+
className: r,
|
|
25
|
+
hideAt: c,
|
|
26
|
+
...g
|
|
27
|
+
} = e;
|
|
27
28
|
return /* @__PURE__ */ n(
|
|
28
|
-
|
|
29
|
+
s,
|
|
29
30
|
{
|
|
30
31
|
flexDirection: "row",
|
|
31
32
|
alignItems: "center",
|
|
32
|
-
className:
|
|
33
|
-
...
|
|
33
|
+
className: u(l.loggedIn, d(c), r),
|
|
34
|
+
...g,
|
|
34
35
|
children: [
|
|
35
36
|
/* @__PURE__ */ n(
|
|
36
|
-
|
|
37
|
+
s,
|
|
37
38
|
{
|
|
38
39
|
flexDirection: "column",
|
|
39
40
|
alignItems: "flex-end",
|
|
40
41
|
hideAt: ["sm", "md"],
|
|
41
|
-
className:
|
|
42
|
+
className: l.customer,
|
|
42
43
|
children: [
|
|
43
|
-
/* @__PURE__ */ n(
|
|
44
|
+
/* @__PURE__ */ n(a, { size: "xxs", children: [
|
|
44
45
|
"Acct: ",
|
|
45
|
-
|
|
46
|
+
t == null ? void 0 : t.number
|
|
46
47
|
] }),
|
|
47
|
-
/* @__PURE__ */ i(
|
|
48
|
+
/* @__PURE__ */ i(A, { href: o, children: /* @__PURE__ */ n(a, { size: "sm", variant: "display", children: [
|
|
48
49
|
"Hello ",
|
|
49
|
-
|
|
50
|
+
t == null ? void 0 : t.name
|
|
50
51
|
] }) })
|
|
51
52
|
]
|
|
52
53
|
}
|
|
53
54
|
),
|
|
54
|
-
/* @__PURE__ */ i(
|
|
55
|
+
/* @__PURE__ */ i(h, { initials: t.initials, accountRoute: o })
|
|
55
56
|
]
|
|
56
57
|
}
|
|
57
58
|
);
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function y(e) {
|
|
61
|
+
const { accountRoute: t, onLoginClick: o, className: m, hideAt: r, ...c } = e;
|
|
60
62
|
return /* @__PURE__ */ n(
|
|
61
|
-
|
|
63
|
+
s,
|
|
62
64
|
{
|
|
63
65
|
flexDirection: "row",
|
|
64
66
|
alignItems: "center",
|
|
65
|
-
...
|
|
66
|
-
className:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
...c,
|
|
68
|
+
className: u(
|
|
69
|
+
l.unauthenticated,
|
|
70
|
+
d(r),
|
|
71
|
+
m
|
|
70
72
|
),
|
|
71
73
|
children: [
|
|
72
74
|
/* @__PURE__ */ i(
|
|
73
|
-
|
|
75
|
+
x,
|
|
74
76
|
{
|
|
75
|
-
onClick:
|
|
77
|
+
onClick: o,
|
|
76
78
|
size: "sm",
|
|
77
79
|
variant: "primary",
|
|
78
80
|
hideAt: ["sm", "md"],
|
|
@@ -4,4 +4,4 @@ export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, HideA
|
|
|
4
4
|
initials: string;
|
|
5
5
|
accountRoute: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function Avatar(
|
|
7
|
+
export declare function Avatar(props: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Flex as m } from "../../atoms/Flex/Flex.js";
|
|
3
|
-
import { Link as
|
|
4
|
-
import { getHideAtStyles as
|
|
5
|
-
import { c as
|
|
3
|
+
import { Link as c } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { getHideAtStyles as l } from "../../atoms/HideAt.js";
|
|
5
|
+
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
6
6
|
import { t as r } from "../../Text.module-smM1g1J4.js";
|
|
7
|
-
import '../../assets/Avatar.css';const
|
|
8
|
-
avatar:
|
|
7
|
+
import '../../assets/Avatar.css';const p = "_avatar_vwzwk_1", x = {
|
|
8
|
+
avatar: p
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
initials: e
|
|
12
|
-
|
|
13
|
-
className: o,
|
|
14
|
-
hideAt: i,
|
|
15
|
-
...s
|
|
16
|
-
}) {
|
|
17
|
-
return /* @__PURE__ */ t(n, { href: a, children: /* @__PURE__ */ t(
|
|
10
|
+
function w(e) {
|
|
11
|
+
const { accountRoute: a, initials: o, className: s, hideAt: i, ...n } = e;
|
|
12
|
+
return /* @__PURE__ */ t(c, { href: a, children: /* @__PURE__ */ t(
|
|
18
13
|
m,
|
|
19
14
|
{
|
|
20
15
|
flexDirection: "row",
|
|
21
16
|
alignItems: "center",
|
|
22
17
|
justifyContent: "center",
|
|
23
|
-
className:
|
|
24
|
-
|
|
18
|
+
className: f(
|
|
19
|
+
x.avatar,
|
|
25
20
|
r["text-display"],
|
|
26
21
|
r["text-md"],
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
l(i),
|
|
23
|
+
s
|
|
29
24
|
),
|
|
30
|
-
...
|
|
31
|
-
children:
|
|
25
|
+
...n,
|
|
26
|
+
children: o.substring(0, 2)
|
|
32
27
|
}
|
|
33
28
|
) });
|
|
34
29
|
}
|
|
35
30
|
export {
|
|
36
|
-
|
|
31
|
+
w as Avatar
|
|
37
32
|
};
|