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