jcicl 0.0.341 → 0.0.345
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/.chunks/createLucideIcon.js +94 -0
- package/ContactCard/ContactCard.d.ts +10 -0
- package/ContactCard/ContactCard.js +97 -0
- package/ContactCard/index.d.ts +1 -0
- package/ContactCard/index.js +4 -0
- package/DetailItemWithIcon/DetailItemWithIcon.d.ts +10 -0
- package/DetailItemWithIcon/DetailItemWithIcon.js +31 -0
- package/DetailItemWithIcon/index.d.ts +1 -0
- package/DetailItemWithIcon/index.js +4 -0
- package/DetailPageComponents/DetailPageComponents.d.ts +24 -0
- package/DetailPageComponents/DetailPageComponents.js +127 -0
- package/DetailPageComponents/index.d.ts +1 -0
- package/DetailPageComponents/index.js +8 -0
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +15 -0
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +125 -0
- package/EditableDetailItemWithIcon/index.d.ts +1 -0
- package/EditableDetailItemWithIcon/index.js +4 -0
- package/Memo/Memo.d.ts +8 -0
- package/Memo/Memo.js +44 -0
- package/Memo/index.d.ts +1 -0
- package/Memo/index.js +4 -0
- package/README.md +106 -106
- package/SquareIcon/SquareIcon.d.ts +10 -0
- package/SquareIcon/SquareIcon.js +27 -0
- package/SquareIcon/index.d.ts +1 -0
- package/SquareIcon/index.js +4 -0
- package/SquareIconButton/SquareIconButton.d.ts +13 -0
- package/SquareIconButton/SquareIconButton.js +43 -0
- package/SquareIconButton/index.d.ts +1 -0
- package/SquareIconButton/index.js +4 -0
- package/Table/Table.d.ts +2 -2
- package/Table/Table.js +399 -501
- package/package.json +1 -1
- package/utils.d.ts +7 -0
- package/utils.js +8 -3
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { forwardRef as l, createElement as n } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.525.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t) => t.replace(
|
|
9
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
10
|
+
(e, r, o) => o ? o.toUpperCase() : r.toLowerCase()
|
|
11
|
+
), i = (t) => {
|
|
12
|
+
const e = h(t);
|
|
13
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
|
+
}, u = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), f = (t) => {
|
|
15
|
+
for (const e in t)
|
|
16
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
17
|
+
return !0;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @license lucide-react v0.525.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
var g = {
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
width: 24,
|
|
28
|
+
height: 24,
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
fill: "none",
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
strokeWidth: 2,
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round"
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @license lucide-react v0.525.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
const A = l(
|
|
43
|
+
({
|
|
44
|
+
color: t = "currentColor",
|
|
45
|
+
size: e = 24,
|
|
46
|
+
strokeWidth: r = 2,
|
|
47
|
+
absoluteStrokeWidth: o,
|
|
48
|
+
className: s = "",
|
|
49
|
+
children: a,
|
|
50
|
+
iconNode: p,
|
|
51
|
+
...c
|
|
52
|
+
}, m) => n(
|
|
53
|
+
"svg",
|
|
54
|
+
{
|
|
55
|
+
ref: m,
|
|
56
|
+
...g,
|
|
57
|
+
width: e,
|
|
58
|
+
height: e,
|
|
59
|
+
stroke: t,
|
|
60
|
+
strokeWidth: o ? Number(r) * 24 / Number(e) : r,
|
|
61
|
+
className: u("lucide", s),
|
|
62
|
+
...!a && !f(c) && { "aria-hidden": "true" },
|
|
63
|
+
...c
|
|
64
|
+
},
|
|
65
|
+
[
|
|
66
|
+
...p.map(([C, d]) => n(C, d)),
|
|
67
|
+
...Array.isArray(a) ? a : [a]
|
|
68
|
+
]
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
/**
|
|
72
|
+
* @license lucide-react v0.525.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/
|
|
77
|
+
const k = (t, e) => {
|
|
78
|
+
const r = l(
|
|
79
|
+
({ className: o, ...s }, a) => n(A, {
|
|
80
|
+
ref: a,
|
|
81
|
+
iconNode: e,
|
|
82
|
+
className: u(
|
|
83
|
+
`lucide-${w(i(t))}`,
|
|
84
|
+
`lucide-${t}`,
|
|
85
|
+
o
|
|
86
|
+
),
|
|
87
|
+
...s
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
return r.displayName = i(t), r;
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
k as c
|
|
94
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ContactCardProps {
|
|
3
|
+
fullName: string;
|
|
4
|
+
phoneNumber: string;
|
|
5
|
+
email: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ContactCard: React.FC<ContactCardProps>;
|
|
10
|
+
export default ContactCard;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { n as i } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as n } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import { DetailItemContainer as l } from "../DetailPageComponents/DetailPageComponents.js";
|
|
5
|
+
import { c as o } from "../.chunks/createLucideIcon.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.525.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const d = [
|
|
13
|
+
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
14
|
+
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
15
|
+
], h = o("mail", d);
|
|
16
|
+
/**
|
|
17
|
+
* @license lucide-react v0.525.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
const m = [
|
|
23
|
+
[
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",
|
|
27
|
+
key: "9njp5v"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
], x = o("phone", m);
|
|
31
|
+
/**
|
|
32
|
+
* @license lucide-react v0.525.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/
|
|
37
|
+
const g = [
|
|
38
|
+
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
39
|
+
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
40
|
+
], f = o("user", g), y = i("h3")(() => ({
|
|
41
|
+
...n`
|
|
42
|
+
font-size: 21px;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
margin: 0;
|
|
45
|
+
margin-bottom: 6px;
|
|
46
|
+
display: flex;
|
|
47
|
+
.lucide {
|
|
48
|
+
margin-right: 9px;
|
|
49
|
+
}
|
|
50
|
+
`
|
|
51
|
+
})), k = i("p")(() => ({
|
|
52
|
+
...n`
|
|
53
|
+
margin: 0;
|
|
54
|
+
`
|
|
55
|
+
})), u = i("div")(() => ({
|
|
56
|
+
...n`
|
|
57
|
+
display: flex;
|
|
58
|
+
gap: 13px;
|
|
59
|
+
align-items: center;
|
|
60
|
+
margin-top: 6px;
|
|
61
|
+
p {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: flex-start;
|
|
64
|
+
margin: 0;
|
|
65
|
+
.lucide {
|
|
66
|
+
height: 13px;
|
|
67
|
+
width: 13px;
|
|
68
|
+
margin-right: 6px;
|
|
69
|
+
}
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
}
|
|
72
|
+
`
|
|
73
|
+
})), z = ({ fullName: a, email: r, phoneNumber: c, title: s, description: p }) => /* @__PURE__ */ t(l, { children: [
|
|
74
|
+
/* @__PURE__ */ t(y, { children: [
|
|
75
|
+
/* @__PURE__ */ e(f, {}),
|
|
76
|
+
" ",
|
|
77
|
+
a,
|
|
78
|
+
" • ",
|
|
79
|
+
s
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ e(k, { children: p }),
|
|
82
|
+
/* @__PURE__ */ t(u, { children: [
|
|
83
|
+
/* @__PURE__ */ t("p", { children: [
|
|
84
|
+
/* @__PURE__ */ e(h, {}),
|
|
85
|
+
" ",
|
|
86
|
+
r
|
|
87
|
+
] }),
|
|
88
|
+
/* @__PURE__ */ t("p", { children: [
|
|
89
|
+
/* @__PURE__ */ e(x, {}),
|
|
90
|
+
" ",
|
|
91
|
+
c
|
|
92
|
+
] })
|
|
93
|
+
] })
|
|
94
|
+
] });
|
|
95
|
+
export {
|
|
96
|
+
z as default
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type ContactCardProps } from './ContactCard';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { LucideProps } from 'lucide-react';
|
|
3
|
+
export interface DetailItemWithIconProps {
|
|
4
|
+
icon: ForwardRefExoticComponent<Omit<LucideProps, 'ref'>>;
|
|
5
|
+
iconSize?: number;
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
declare const DetailItemWithIcon: React.FC<DetailItemWithIconProps>;
|
|
10
|
+
export default DetailItemWithIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { n as e } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as m } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import c from "../theme.js";
|
|
5
|
+
import { Flex as t } from "../Flex/Flex.js";
|
|
6
|
+
import { DetailItemContainer as p } from "../DetailPageComponents/DetailPageComponents.js";
|
|
7
|
+
import s from "../SquareIcon/SquareIcon.js";
|
|
8
|
+
const f = e("p")(() => ({
|
|
9
|
+
...m`
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
color: ${c.colors.charcoal} !important;
|
|
13
|
+
margin: 0;
|
|
14
|
+
margin-bottom: 0.25rem;
|
|
15
|
+
`
|
|
16
|
+
})), d = e("p")(() => ({
|
|
17
|
+
...m`
|
|
18
|
+
font-size: 1rem;
|
|
19
|
+
word-wrap: break-word;
|
|
20
|
+
margin: 0;
|
|
21
|
+
`
|
|
22
|
+
})), b = ({ icon: i, iconSize: n = 20, label: a, value: l }) => /* @__PURE__ */ r(p, { children: /* @__PURE__ */ o(t, { gap: "19px", children: [
|
|
23
|
+
/* @__PURE__ */ r(s, { icon: i, iconSize: n }),
|
|
24
|
+
/* @__PURE__ */ o(t, { column: !0, children: [
|
|
25
|
+
/* @__PURE__ */ r(f, { children: a }),
|
|
26
|
+
/* @__PURE__ */ r(d, { children: l })
|
|
27
|
+
] })
|
|
28
|
+
] }) });
|
|
29
|
+
export {
|
|
30
|
+
b as default
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type DetailItemWithIconProps } from './DetailItemWithIcon';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const DetailHeader: import('@emotion/styled').StyledComponent<{
|
|
2
|
+
theme?: import('@emotion/react').Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const DetailSubtext: import('@emotion/styled').StyledComponent<{
|
|
6
|
+
theme?: import('@emotion/react').Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
9
|
+
export declare const DetailItemHeader: import('@emotion/styled').StyledComponent<{
|
|
10
|
+
theme?: import('@emotion/react').Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
13
|
+
export declare const DetailItemContainer: import('@emotion/styled').StyledComponent<{
|
|
14
|
+
theme?: import('@emotion/react').Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
+
export interface DetailiconProps {
|
|
18
|
+
iconColor?: string;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const DetailHeaderIcon: import('@emotion/styled').StyledComponent<{
|
|
22
|
+
theme?: import('@emotion/react').Theme;
|
|
23
|
+
as?: React.ElementType;
|
|
24
|
+
} & DetailiconProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { n as o } from "../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
+
import { c as t } from "../.chunks/emotion-react.browser.esm.js";
|
|
3
|
+
import e from "../theme.js";
|
|
4
|
+
const p = o("div")(() => ({
|
|
5
|
+
...t`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
padding: 27px 0;
|
|
9
|
+
gap: 9px;
|
|
10
|
+
|
|
11
|
+
h2 {
|
|
12
|
+
font-size: 36px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
border-bottom: 1px solid ${e.colors.gray2};
|
|
16
|
+
|
|
17
|
+
button {
|
|
18
|
+
font-size: 1rem;
|
|
19
|
+
span {
|
|
20
|
+
line-height: 1;
|
|
21
|
+
align-items: flex-end;
|
|
22
|
+
display: flex;
|
|
23
|
+
gap: 6px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`
|
|
27
|
+
})), s = o("p")(() => ({
|
|
28
|
+
...t`
|
|
29
|
+
color: ${e.colors.gray};
|
|
30
|
+
line-height: 1;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: flex-end;
|
|
33
|
+
gap: 6px;
|
|
34
|
+
|
|
35
|
+
.lucide {
|
|
36
|
+
height: 18px;
|
|
37
|
+
width: 18px;
|
|
38
|
+
}
|
|
39
|
+
`
|
|
40
|
+
})), d = o("h2")(() => ({
|
|
41
|
+
...t`
|
|
42
|
+
font-size: 27px;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
text-align: left;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
margin-top: 9px;
|
|
48
|
+
margin: 0;
|
|
49
|
+
margin-bottom: -21px;
|
|
50
|
+
.lucide {
|
|
51
|
+
margin-right: 9px;
|
|
52
|
+
}
|
|
53
|
+
`
|
|
54
|
+
})), x = o("div")(() => ({
|
|
55
|
+
...t`
|
|
56
|
+
font-family: ${e.fonts.roboto};
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
gap: 13px;
|
|
60
|
+
background: ${e.colors.veryLightGray};
|
|
61
|
+
border-radius: 6px;
|
|
62
|
+
padding: 21px;
|
|
63
|
+
margin-bottom: 15px;
|
|
64
|
+
transition: all 313ms ease;
|
|
65
|
+
position: relative;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
|
|
68
|
+
p {
|
|
69
|
+
color: ${e.colors.gray};
|
|
70
|
+
font-size: 18px;
|
|
71
|
+
line-height: 1;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: flex-end;
|
|
74
|
+
.lucide {
|
|
75
|
+
margin-right: 9px;
|
|
76
|
+
width: 21px;
|
|
77
|
+
height: 21px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
transform: translateX(5px);
|
|
83
|
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&::before {
|
|
87
|
+
content: '';
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: 1px;
|
|
90
|
+
left: 0;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 1px;
|
|
93
|
+
background: linear-gradient(90deg, ${e.colors.gold}, ${e.colors.green});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&::after {
|
|
97
|
+
content: '';
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
width: 3px;
|
|
102
|
+
height: 100%;
|
|
103
|
+
background: linear-gradient(180deg, ${e.colors.gold}, ${e.colors.green});
|
|
104
|
+
}
|
|
105
|
+
`
|
|
106
|
+
})), g = o("div")(
|
|
107
|
+
({ iconColor: i = e.colors.white, backgroundColor: r = e.colors.darkGreen }) => ({
|
|
108
|
+
...t`
|
|
109
|
+
width: 72px;
|
|
110
|
+
height: 72px;
|
|
111
|
+
background-color: ${r};
|
|
112
|
+
color: ${i};
|
|
113
|
+
border-radius: 36px;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
|
118
|
+
`
|
|
119
|
+
})
|
|
120
|
+
);
|
|
121
|
+
export {
|
|
122
|
+
p as DetailHeader,
|
|
123
|
+
g as DetailHeaderIcon,
|
|
124
|
+
x as DetailItemContainer,
|
|
125
|
+
d as DetailItemHeader,
|
|
126
|
+
s as DetailSubtext
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DetailHeader, DetailSubtext, DetailItemHeader, DetailItemContainer, DetailHeaderIcon, type DetailiconProps, } from './DetailPageComponents';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DetailHeader as a, DetailHeaderIcon as i, DetailItemContainer as r, DetailItemHeader as l, DetailSubtext as D } from "./DetailPageComponents.js";
|
|
2
|
+
export {
|
|
3
|
+
a as DetailHeader,
|
|
4
|
+
i as DetailHeaderIcon,
|
|
5
|
+
r as DetailItemContainer,
|
|
6
|
+
l as DetailItemHeader,
|
|
7
|
+
D as DetailSubtext
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React, ReactElement, ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { LucideProps } from 'lucide-react';
|
|
3
|
+
export interface EditableDetailItemWithIconProps {
|
|
4
|
+
icon: ForwardRefExoticComponent<Omit<LucideProps, 'ref'>>;
|
|
5
|
+
iconSize?: number;
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
customEditForm?: ReactElement;
|
|
9
|
+
editButtonMarginTop?: string;
|
|
10
|
+
onValueChange?: (newValue: string) => void;
|
|
11
|
+
onSave?: () => void;
|
|
12
|
+
onCancel?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const EditableDetailItemWithIcon: React.FC<EditableDetailItemWithIconProps>;
|
|
15
|
+
export default EditableDetailItemWithIcon;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y } from "react";
|
|
3
|
+
import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as k } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import o from "../theme.js";
|
|
6
|
+
import { Flex as c } from "../Flex/Flex.js";
|
|
7
|
+
import { Input as x } from "../Input/Input.js";
|
|
8
|
+
import { DetailItemContainer as C } from "../DetailPageComponents/DetailPageComponents.js";
|
|
9
|
+
import I from "../SquareIcon/SquareIcon.js";
|
|
10
|
+
import l from "../SquareIconButton/SquareIconButton.js";
|
|
11
|
+
import { c as a } 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 G = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], _ = a("check", G);
|
|
19
|
+
/**
|
|
20
|
+
* @license lucide-react v0.525.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
const z = [
|
|
26
|
+
[
|
|
27
|
+
"path",
|
|
28
|
+
{
|
|
29
|
+
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
30
|
+
key: "1a8usu"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
34
|
+
], D = a("pencil", z);
|
|
35
|
+
/**
|
|
36
|
+
* @license lucide-react v0.525.0 - ISC
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the ISC license.
|
|
39
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
41
|
+
const j = [
|
|
42
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
43
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
44
|
+
], A = a("x", j), L = h("p")(() => ({
|
|
45
|
+
...k`
|
|
46
|
+
font-size: 0.875rem;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
color: ${o.colors.charcoal} !important;
|
|
49
|
+
margin: 0;
|
|
50
|
+
margin-bottom: 0.25rem;
|
|
51
|
+
`
|
|
52
|
+
})), N = h("p")(() => ({
|
|
53
|
+
...k`
|
|
54
|
+
font-size: 1rem;
|
|
55
|
+
word-wrap: break-word;
|
|
56
|
+
margin: 0;
|
|
57
|
+
`
|
|
58
|
+
})), H = ({
|
|
59
|
+
icon: u,
|
|
60
|
+
iconSize: g = 20,
|
|
61
|
+
onValueChange: s,
|
|
62
|
+
onSave: m,
|
|
63
|
+
onCancel: d,
|
|
64
|
+
customEditForm: n,
|
|
65
|
+
editButtonMarginTop: p,
|
|
66
|
+
label: b,
|
|
67
|
+
value: f
|
|
68
|
+
}) => {
|
|
69
|
+
const [e, i] = y(!1);
|
|
70
|
+
return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ t(c, { gap: "19px", children: [
|
|
71
|
+
/* @__PURE__ */ r(
|
|
72
|
+
I,
|
|
73
|
+
{
|
|
74
|
+
icon: u,
|
|
75
|
+
iconSize: g,
|
|
76
|
+
color: o.colors.darkGreen,
|
|
77
|
+
backgroundColor: o.colors.whiteGreenA
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ t(c, { justifyContent: "space-between", width: "100%", gap: "12px", children: [
|
|
81
|
+
/* @__PURE__ */ t(c, { column: !0, styles: { flexGrow: 1 }, children: [
|
|
82
|
+
/* @__PURE__ */ r(L, { children: b }),
|
|
83
|
+
!e && /* @__PURE__ */ r(N, { children: f }),
|
|
84
|
+
e && !n && /* @__PURE__ */ r(x, { defaultValue: f, onChange: (w) => s && s(w.target.value) }),
|
|
85
|
+
e && n && n
|
|
86
|
+
] }),
|
|
87
|
+
!e && /* @__PURE__ */ r(
|
|
88
|
+
l,
|
|
89
|
+
{
|
|
90
|
+
backgroundColor: o.colors.whiteGreenA,
|
|
91
|
+
color: o.colors.darkGreen,
|
|
92
|
+
icon: D,
|
|
93
|
+
onClick: () => i(!0)
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
e && /* @__PURE__ */ t(c, { gap: "9px", styles: { marginTop: p || "0" }, children: [
|
|
97
|
+
/* @__PURE__ */ r(
|
|
98
|
+
l,
|
|
99
|
+
{
|
|
100
|
+
backgroundColor: o.colors.cherryBlossom,
|
|
101
|
+
color: o.colors.maroon,
|
|
102
|
+
icon: A,
|
|
103
|
+
onClick: () => {
|
|
104
|
+
i(!1), d && d();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ r(
|
|
109
|
+
l,
|
|
110
|
+
{
|
|
111
|
+
icon: _,
|
|
112
|
+
backgroundColor: o.colors.whiteGreenA,
|
|
113
|
+
color: o.colors.darkGreen,
|
|
114
|
+
onClick: () => {
|
|
115
|
+
i(!1), m && m();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
] })
|
|
120
|
+
] })
|
|
121
|
+
] }) });
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
H as default
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type EditableDetailItemWithIconProps } from './EditableDetailItemWithIcon';
|
package/Memo/Memo.d.ts
ADDED
package/Memo/Memo.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { n as e } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as o } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import n from "../theme.js";
|
|
5
|
+
import { DetailItemContainer as c } from "../DetailPageComponents/DetailPageComponents.js";
|
|
6
|
+
const l = e("div")(() => ({
|
|
7
|
+
...o`
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
`
|
|
12
|
+
})), a = e("h3")(() => ({
|
|
13
|
+
...o`
|
|
14
|
+
font-size: 21px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
display: flex;
|
|
17
|
+
margin: 0px;
|
|
18
|
+
line-height: 1.3;
|
|
19
|
+
.lucide {
|
|
20
|
+
margin-right: 9px;
|
|
21
|
+
}
|
|
22
|
+
`
|
|
23
|
+
})), p = e("span")(() => ({
|
|
24
|
+
...o`
|
|
25
|
+
font-size: 15px;
|
|
26
|
+
color: ${n.colors.gray};
|
|
27
|
+
margin: 0px;
|
|
28
|
+
`
|
|
29
|
+
})), f = e("p")(() => ({
|
|
30
|
+
...o`
|
|
31
|
+
color: ${n.colors.gray};
|
|
32
|
+
font-size: 18px;
|
|
33
|
+
margin: 0px;
|
|
34
|
+
`
|
|
35
|
+
})), M = ({ username: r, createDateTime: s, note: m }) => /* @__PURE__ */ i(c, { children: [
|
|
36
|
+
/* @__PURE__ */ i(l, { children: [
|
|
37
|
+
/* @__PURE__ */ t(a, { children: r }),
|
|
38
|
+
/* @__PURE__ */ t(p, { children: s })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ t(f, { children: m })
|
|
41
|
+
] });
|
|
42
|
+
export {
|
|
43
|
+
M as default
|
|
44
|
+
};
|
package/Memo/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type MemoProps } from './Memo';
|
package/Memo/index.js
ADDED