jcicl 1.2.7 → 2.0.1
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/ContactCard/ContactCard.js +52 -18
- package/FormFields/FormFields.js +2 -4
- package/LabeledDropdown/LabeledDropdown.js +649 -639
- package/LabeledTextArea/LabeledTextArea.js +13 -10
- package/Table/Table.js +99 -93
- package/TimeSlotPicker/TimeSlotPicker.d.ts +42 -0
- package/TimeSlotPicker/TimeSlotPicker.js +78 -0
- package/TimeSlotPicker/index.d.ts +1 -0
- package/TimeSlotPicker/index.js +5 -0
- package/assets/style.css +1 -1
- package/assets/tailwind.css +2 -2
- package/index.d.ts +2 -2
- package/index.js +19 -19
- package/package.json +1 -1
- package/.chunks/chevron-down.js +0 -11
- package/.chunks/user.js +0 -41
- package/ClientMatchCard/ClientMatchCard.d.ts +0 -21
- package/ClientMatchCard/ClientMatchCard.js +0 -121
- package/ClientMatchCard/index.d.ts +0 -3
- package/ClientMatchCard/index.js +0 -5
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as f } from "react";
|
|
3
|
-
import { Pill as g } from "../Pill/Pill.js";
|
|
4
|
-
import { ChevronOval as N } from "../ChevronOval/ChevronOval.js";
|
|
5
|
-
import { DetailItemContainer as u } from "../DetailPageComponents/DetailPageComponents.js";
|
|
6
|
-
import { ExpandableSection as k } from "../ExpandableSection/ExpandableSection.js";
|
|
7
|
-
import { formatPhone as v, formatSsnLast4 as b } from "../format.js";
|
|
8
|
-
import { useThemeColors as j } from "../ThemeContext.js";
|
|
9
|
-
import { C as w } from "../.chunks/chevron-down.js";
|
|
10
|
-
import { U as E, M as C, P as S } from "../.chunks/user.js";
|
|
11
|
-
import { c as D } from "../.chunks/createLucideIcon.js";
|
|
12
|
-
/**
|
|
13
|
-
* @license lucide-react v0.525.0 - ISC
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the ISC license.
|
|
16
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/
|
|
18
|
-
const P = [
|
|
19
|
-
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
20
|
-
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
21
|
-
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
22
|
-
["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
|
|
23
|
-
], I = D("hash", P), l = {
|
|
24
|
-
firstName: "First name",
|
|
25
|
-
lastName: "Last name",
|
|
26
|
-
email: "Email",
|
|
27
|
-
phone: "Phone",
|
|
28
|
-
ssn: "SSN"
|
|
29
|
-
}, U = ({
|
|
30
|
-
client: s,
|
|
31
|
-
matchedFields: o,
|
|
32
|
-
onClick: c,
|
|
33
|
-
className: h = "",
|
|
34
|
-
expandedContent: i
|
|
35
|
-
}) => {
|
|
36
|
-
const [r, d] = f(!1), n = j(), p = new Set(o), x = (e) => {
|
|
37
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), c());
|
|
38
|
-
}, y = (e) => {
|
|
39
|
-
e.stopPropagation(), d((m) => !m);
|
|
40
|
-
};
|
|
41
|
-
return /* @__PURE__ */ t(
|
|
42
|
-
u,
|
|
43
|
-
{
|
|
44
|
-
role: "button",
|
|
45
|
-
tabIndex: 0,
|
|
46
|
-
onClick: c,
|
|
47
|
-
onKeyDown: x,
|
|
48
|
-
className: `cursor-pointer mb-0 ${h}`,
|
|
49
|
-
hoverShadow: `3px 3px 5px 3px ${n.themeColor}`,
|
|
50
|
-
children: [
|
|
51
|
-
/* @__PURE__ */ t("div", { className: "flex items-center justify-between gap-3", children: [
|
|
52
|
-
/* @__PURE__ */ t("h3", { className: "m-0 text-[2.6rem] font-semibold leading-[1.2] text-jc-midnight", children: [
|
|
53
|
-
s.firstName,
|
|
54
|
-
" ",
|
|
55
|
-
s.lastName
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
|
|
58
|
-
/* @__PURE__ */ t("span", { className: "text-[1.05rem] font-medium text-jc-gray-3", children: [
|
|
59
|
-
o.length,
|
|
60
|
-
" ",
|
|
61
|
-
o.length === 1 ? "match" : "matches"
|
|
62
|
-
] }),
|
|
63
|
-
i && /* @__PURE__ */ a(
|
|
64
|
-
N,
|
|
65
|
-
{
|
|
66
|
-
type: "button",
|
|
67
|
-
onClick: y,
|
|
68
|
-
onKeyDown: (e) => {
|
|
69
|
-
(e.key === "Enter" || e.key === " ") && e.stopPropagation();
|
|
70
|
-
},
|
|
71
|
-
"aria-expanded": r,
|
|
72
|
-
"aria-label": r ? "Collapse client details" : "Expand client details",
|
|
73
|
-
$bg: n.themeIconBackgroundB,
|
|
74
|
-
$color: n.themeIconColorB,
|
|
75
|
-
$bgHover: n.themeMediumA,
|
|
76
|
-
children: /* @__PURE__ */ a(
|
|
77
|
-
w,
|
|
78
|
-
{
|
|
79
|
-
size: 26,
|
|
80
|
-
className: `transition-transform duration-200 ease-out ${r ? "rotate-180" : "rotate-0"}`
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
] })
|
|
86
|
-
] }),
|
|
87
|
-
/* @__PURE__ */ a("div", { className: "flex flex-wrap gap-1.5", children: Object.keys(l).map((e) => {
|
|
88
|
-
const m = p.has(e);
|
|
89
|
-
return /* @__PURE__ */ a(g, { type: m ? "primary" : "secondary", children: l[e] }, e);
|
|
90
|
-
}) }),
|
|
91
|
-
/* @__PURE__ */ t("div", { className: "mt-1 grid grid-cols-1 gap-2 text-[1.2rem] text-jc-charcoal sm:grid-cols-2", children: [
|
|
92
|
-
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
93
|
-
/* @__PURE__ */ a(E, { size: 22, className: "shrink-0 text-jc-gray-3" }),
|
|
94
|
-
/* @__PURE__ */ t("span", { className: "truncate", children: [
|
|
95
|
-
s.firstName,
|
|
96
|
-
" ",
|
|
97
|
-
s.lastName
|
|
98
|
-
] })
|
|
99
|
-
] }),
|
|
100
|
-
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
101
|
-
/* @__PURE__ */ a(C, { size: 22, className: "shrink-0 text-jc-gray-3" }),
|
|
102
|
-
/* @__PURE__ */ a("span", { className: "truncate", children: s.email ?? "—" })
|
|
103
|
-
] }),
|
|
104
|
-
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
105
|
-
/* @__PURE__ */ a(S, { size: 22, className: "shrink-0 text-jc-gray-3" }),
|
|
106
|
-
/* @__PURE__ */ a("span", { className: "truncate", children: v(s.phone) ?? "—" })
|
|
107
|
-
] }),
|
|
108
|
-
s.ssn != null && /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
109
|
-
/* @__PURE__ */ a(I, { size: 22, className: "shrink-0 text-jc-gray-3" }),
|
|
110
|
-
/* @__PURE__ */ a("span", { className: "truncate", children: b(s.ssn) })
|
|
111
|
-
] })
|
|
112
|
-
] }),
|
|
113
|
-
i && /* @__PURE__ */ a(k, { expanded: r, children: i })
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
export {
|
|
119
|
-
U as ClientMatchCard,
|
|
120
|
-
U as default
|
|
121
|
-
};
|