jcicl 1.0.5 → 1.0.9
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/DefaultPropsProvider.js +3 -3
- package/.chunks/TextField.js +1 -1
- package/.chunks/x.js +22 -0
- package/Button/Button.js +36 -32
- package/CircularIconButton/CircularIconButton.js +23 -19
- package/DefaultTemplate/DefaultTemplate.js +3 -3
- package/DetailItemWithIcon/DetailItemWithIcon.js +31 -19
- package/DetailPageComponents/DetailPageComponents.d.ts +12 -4
- package/DetailPageComponents/DetailPageComponents.js +44 -28
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +1 -0
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +59 -74
- package/EditableInfoCard/EditableInfoCard.js +107 -103
- package/FormComponents/FormComponents.d.ts +17 -10
- package/FormComponents/FormComponents.js +52 -46
- package/Icon/Icon.js +23 -22
- package/InfoCard/InfoCard.js +37 -33
- package/Input/Input.js +19 -15
- package/LabeledCheckbox/LabeledCheckbox.js +58 -55
- package/LabeledDropdown/LabeledDropdown.js +370 -366
- package/LabeledInput/LabeledInput.js +13 -13
- package/LabeledTextArea/LabeledTextArea.js +20 -13
- package/List/List.js +19 -18
- package/ListButton/ListButton.d.ts +2 -4
- package/ListButton/ListButton.js +21 -12
- package/Loading/Loading.js +14 -9
- package/Pill/Pill.d.ts +1 -0
- package/Pill/Pill.js +21 -13
- package/ScrollContainer/ScrollContainer.js +180 -179
- package/Search/Search.js +64 -62
- package/SquareIcon/SquareIcon.js +28 -25
- package/SquareIconButton/SquareIconButton.js +24 -11
- package/Stepper/Stepper.js +166 -146
- package/Table/Table.js +233 -221
- package/Toast/Toast.d.ts +8 -0
- package/Toast/Toast.js +154 -0
- package/Toast/ToastHelpers.d.ts +4 -0
- package/Toast/ToastHelpers.js +10 -0
- package/Toast/Toaster.d.ts +9 -0
- package/Toast/Toaster.js +25 -0
- package/Toast/index.d.ts +3 -0
- package/Toast/index.js +9 -0
- package/WithLoading/WithLoading.js +16 -11
- package/package.json +1 -1
- package/theme.d.ts +19 -9
- package/theme.js +15 -9
- package/themeUtils.d.ts +5 -0
- package/themeUtils.js +81 -69
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { n as
|
|
4
|
-
import { c as
|
|
5
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { n as u } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as g } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import e from "../theme.js";
|
|
6
6
|
import { Flex as c } from "../Flex/Flex.js";
|
|
7
|
-
import { Input as
|
|
8
|
-
import { DetailItemContainer as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
7
|
+
import { Input as w } from "../Input/Input.js";
|
|
8
|
+
import { DetailItemContainer as x } from "../DetailPageComponents/DetailPageComponents.js";
|
|
9
|
+
import y from "../SquareIcon/SquareIcon.js";
|
|
10
|
+
import m from "../SquareIconButton/SquareIconButton.js";
|
|
11
|
+
import { useThemeColors as B } from "../ThemeContext.js";
|
|
12
|
+
import { c as D } from "../.chunks/createLucideIcon.js";
|
|
13
|
+
import { X as z, C as j } from "../.chunks/x.js";
|
|
12
14
|
/**
|
|
13
15
|
* @license lucide-react v0.525.0 - ISC
|
|
14
16
|
*
|
|
15
17
|
* This source code is licensed under the ISC license.
|
|
16
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
19
|
*/
|
|
18
|
-
const 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 = [
|
|
20
|
+
const G = [
|
|
26
21
|
[
|
|
27
22
|
"path",
|
|
28
23
|
{
|
|
@@ -31,88 +26,78 @@ const z = [
|
|
|
31
26
|
}
|
|
32
27
|
],
|
|
33
28
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
34
|
-
],
|
|
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`
|
|
29
|
+
], L = D("pencil", G), S = u("p")(() => ({
|
|
30
|
+
...g`
|
|
46
31
|
font-size: 0.875rem;
|
|
47
32
|
font-weight: 500;
|
|
48
|
-
color: ${
|
|
33
|
+
color: ${e.colors.charcoal} !important;
|
|
49
34
|
margin: 0;
|
|
50
35
|
margin-bottom: 0.25rem;
|
|
51
36
|
`
|
|
52
|
-
})),
|
|
53
|
-
...
|
|
37
|
+
})), W = u("p")(() => ({
|
|
38
|
+
...g`
|
|
54
39
|
font-size: 1rem;
|
|
55
40
|
word-wrap: break-word;
|
|
56
41
|
margin: 0;
|
|
57
42
|
`
|
|
58
|
-
})),
|
|
59
|
-
icon:
|
|
60
|
-
iconSize:
|
|
43
|
+
})), O = (i) => /* @__PURE__ */ o(q, { ...i }), q = ({
|
|
44
|
+
icon: i,
|
|
45
|
+
iconSize: k = 20,
|
|
61
46
|
onValueChange: s,
|
|
62
|
-
onSave:
|
|
47
|
+
onSave: p,
|
|
63
48
|
onCancel: d,
|
|
64
|
-
customEditForm:
|
|
65
|
-
editButtonMarginTop:
|
|
66
|
-
label:
|
|
49
|
+
customEditForm: l,
|
|
50
|
+
editButtonMarginTop: h,
|
|
51
|
+
label: I,
|
|
67
52
|
value: f
|
|
68
53
|
}) => {
|
|
69
|
-
const [
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
54
|
+
const [r, a] = b(!1), t = B();
|
|
55
|
+
return /* @__PURE__ */ o(x, { children: /* @__PURE__ */ n(c, { gap: "19px", children: [
|
|
56
|
+
/* @__PURE__ */ o(
|
|
57
|
+
y,
|
|
73
58
|
{
|
|
74
|
-
icon:
|
|
75
|
-
iconSize:
|
|
76
|
-
color:
|
|
77
|
-
backgroundColor:
|
|
59
|
+
icon: i,
|
|
60
|
+
iconSize: k,
|
|
61
|
+
color: t.themeIconColorB,
|
|
62
|
+
backgroundColor: t.themeIconBackgroundB
|
|
78
63
|
}
|
|
79
64
|
),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
!
|
|
84
|
-
|
|
85
|
-
|
|
65
|
+
/* @__PURE__ */ n(c, { justifyContent: "space-between", width: "100%", gap: "12px", children: [
|
|
66
|
+
/* @__PURE__ */ n(c, { column: !0, styles: { flexGrow: 1 }, children: [
|
|
67
|
+
/* @__PURE__ */ o(S, { children: I }),
|
|
68
|
+
!r && /* @__PURE__ */ o(W, { children: f }),
|
|
69
|
+
r && !l && /* @__PURE__ */ o(w, { defaultValue: f, onChange: (C) => s && s(C.target.value) }),
|
|
70
|
+
r && l && l
|
|
86
71
|
] }),
|
|
87
|
-
!
|
|
88
|
-
|
|
72
|
+
!r && /* @__PURE__ */ o(
|
|
73
|
+
m,
|
|
89
74
|
{
|
|
90
|
-
backgroundColor:
|
|
91
|
-
color:
|
|
92
|
-
icon:
|
|
93
|
-
onClick: () =>
|
|
75
|
+
backgroundColor: t.themeIconBackgroundB,
|
|
76
|
+
color: t.themeIconColorB,
|
|
77
|
+
icon: L,
|
|
78
|
+
onClick: () => a(!0)
|
|
94
79
|
}
|
|
95
80
|
),
|
|
96
|
-
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
81
|
+
r && /* @__PURE__ */ n(c, { gap: "9px", styles: { marginTop: h || "0" }, children: [
|
|
82
|
+
/* @__PURE__ */ o(
|
|
83
|
+
m,
|
|
99
84
|
{
|
|
100
|
-
backgroundColor:
|
|
101
|
-
color:
|
|
102
|
-
icon:
|
|
85
|
+
backgroundColor: e.colors.cherryBlossom,
|
|
86
|
+
color: e.colors.maroon,
|
|
87
|
+
icon: z,
|
|
103
88
|
onClick: () => {
|
|
104
|
-
|
|
89
|
+
a(!1), d && d();
|
|
105
90
|
}
|
|
106
91
|
}
|
|
107
92
|
),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
|
|
93
|
+
/* @__PURE__ */ o(
|
|
94
|
+
m,
|
|
110
95
|
{
|
|
111
|
-
icon:
|
|
112
|
-
backgroundColor:
|
|
113
|
-
color:
|
|
96
|
+
icon: j,
|
|
97
|
+
backgroundColor: e.colors.whiteGreenA,
|
|
98
|
+
color: e.colors.darkGreen,
|
|
114
99
|
onClick: () => {
|
|
115
|
-
|
|
100
|
+
a(!1), p && p();
|
|
116
101
|
}
|
|
117
102
|
}
|
|
118
103
|
)
|
|
@@ -121,5 +106,5 @@ const j = [
|
|
|
121
106
|
] }) });
|
|
122
107
|
};
|
|
123
108
|
export {
|
|
124
|
-
|
|
109
|
+
O as default
|
|
125
110
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as o, jsxs as n, Fragment as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as o, jsxs as n, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { useState as T, useEffect as O } from "react";
|
|
3
3
|
import { n as l } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { c as
|
|
6
|
-
import { X as
|
|
7
|
-
import
|
|
8
|
-
import { LabeledValue as
|
|
9
|
-
import { LabeledInput as
|
|
4
|
+
import { c as f } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import { c as F } from "../.chunks/createSvgIcon.js";
|
|
6
|
+
import { X as Q } from "../.chunks/Close.js";
|
|
7
|
+
import C from "../theme.js";
|
|
8
|
+
import { LabeledValue as Z } from "../LabeledValue/LabeledValue.js";
|
|
9
|
+
import { LabeledInput as _ } from "../LabeledInput/LabeledInput.js";
|
|
10
10
|
import L from "../Loading/Loading.js";
|
|
11
11
|
import M from "../WithLoading/WithLoading.js";
|
|
12
|
-
import { Flex as
|
|
13
|
-
import { Tooltip as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
12
|
+
import { Flex as h } from "../Flex/Flex.js";
|
|
13
|
+
import { Tooltip as $ } from "../Tooltip/Tooltip.js";
|
|
14
|
+
import { useThemeColors as oo } from "../ThemeContext.js";
|
|
15
|
+
import { T as eo } from "../.chunks/TextField.js";
|
|
16
|
+
import { B as to } from "../.chunks/ButtonBase.js";
|
|
17
|
+
const ro = F(/* @__PURE__ */ o("path", {
|
|
17
18
|
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
|
18
|
-
}), "Edit"),
|
|
19
|
+
}), "Edit"), no = F(/* @__PURE__ */ o("path", {
|
|
19
20
|
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
20
|
-
}), "Check"),
|
|
21
|
-
({ width:
|
|
22
|
-
...
|
|
23
|
-
width: ${
|
|
21
|
+
}), "Check"), V = l("div")(
|
|
22
|
+
({ width: e, padding: a, shadow: r, styles: m, isEditing: d, customTheme: u }) => ({
|
|
23
|
+
...f`
|
|
24
|
+
width: ${e};
|
|
24
25
|
max-width: 100%;
|
|
25
26
|
box-sizing: border-box;
|
|
26
27
|
h3 {
|
|
@@ -32,19 +33,21 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
32
33
|
padding: ${a};
|
|
33
34
|
display: flex;
|
|
34
35
|
flex-direction: column;
|
|
35
|
-
box-shadow: ${r};
|
|
36
|
+
box-shadow: ${r || u.themeShadowB};
|
|
36
37
|
border-radius: 5px;
|
|
37
|
-
background-color: ${
|
|
38
|
-
${
|
|
39
|
-
z-index: ${
|
|
38
|
+
background-color: ${C.colors.white};
|
|
39
|
+
${m};
|
|
40
|
+
z-index: ${d ? 0 : 1};
|
|
40
41
|
position: relative;
|
|
41
|
-
transform: ${
|
|
42
|
+
transform: ${d ? "rotateY(-180deg)" : "rotateY(0deg)"};
|
|
42
43
|
transition: 920ms all ease-in-out;
|
|
43
|
-
opacity: ${
|
|
44
|
+
opacity: ${d ? "0" : "1"};
|
|
44
45
|
`
|
|
45
46
|
})
|
|
46
|
-
),
|
|
47
|
-
|
|
47
|
+
), ao = l(eo, {
|
|
48
|
+
shouldForwardProp: (e) => !["customTheme"].includes(e)
|
|
49
|
+
})(({ customTheme: e }) => ({
|
|
50
|
+
backgroundColor: C.colors.white,
|
|
48
51
|
borderRadius: "0",
|
|
49
52
|
input: {
|
|
50
53
|
fontSize: "28px",
|
|
@@ -52,14 +55,14 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
52
55
|
transition: "313ms all ease-out",
|
|
53
56
|
padding: "0",
|
|
54
57
|
borderRadius: "0",
|
|
55
|
-
borderBottom: `1px solid ${
|
|
58
|
+
borderBottom: `1px solid ${C.colors.gray}`,
|
|
56
59
|
"&:focus-visible": {
|
|
57
|
-
boxShadow: `0 3px 2px -2px ${
|
|
60
|
+
boxShadow: `0 3px 2px -2px ${e.themeDark}`
|
|
58
61
|
}
|
|
59
62
|
},
|
|
60
63
|
"&:hover, :focus-visible": {
|
|
61
64
|
input: {
|
|
62
|
-
boxShadow: `0 3px 2px -2px ${
|
|
65
|
+
boxShadow: `0 3px 2px -2px ${e.themeDark}`
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
68
|
fieldset: {
|
|
@@ -71,82 +74,82 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
71
74
|
border: "none"
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
|
-
}),
|
|
75
|
-
...
|
|
77
|
+
})), io = l(V)(({ isEditing: e }) => ({
|
|
78
|
+
...f`
|
|
76
79
|
position: absolute;
|
|
77
80
|
top: 0;
|
|
78
|
-
z-index: ${
|
|
79
|
-
transform: ${
|
|
80
|
-
opacity: ${
|
|
81
|
+
z-index: ${e ? 1 : 0};
|
|
82
|
+
transform: ${e ? "rotateY(0deg)" : "rotateY(-180deg)"};
|
|
83
|
+
opacity: ${e ? "1" : "0"};
|
|
81
84
|
transition: 920ms all ease-in-out;
|
|
82
85
|
`
|
|
83
|
-
})),
|
|
84
|
-
({ spacing:
|
|
85
|
-
...
|
|
86
|
-
margin-top: calc(${
|
|
87
|
-
grid-row-gap: ${
|
|
88
|
-
grid-column-gap: calc(${
|
|
86
|
+
})), R = l("div")(
|
|
87
|
+
({ spacing: e, columns: a, numRows: r }) => ({
|
|
88
|
+
...f`
|
|
89
|
+
margin-top: calc(${e} * 0.75);
|
|
90
|
+
grid-row-gap: ${e};
|
|
91
|
+
grid-column-gap: calc(${e} * 1.5);
|
|
89
92
|
display: grid;
|
|
90
93
|
grid-template-columns: repeat(${a}, 1fr);
|
|
91
94
|
grid-template-rows: repeat(${r}, 1fr);
|
|
92
95
|
`
|
|
93
96
|
})
|
|
94
|
-
),
|
|
95
|
-
...
|
|
97
|
+
), w = l(to)(() => ({
|
|
98
|
+
...f`
|
|
96
99
|
width: 40px;
|
|
97
100
|
height: 40px;
|
|
98
101
|
border-radius: 50%;
|
|
99
102
|
`
|
|
100
|
-
})),
|
|
103
|
+
})), lo = l("div")`
|
|
101
104
|
position: relative;
|
|
102
105
|
width: 100%;
|
|
103
|
-
`,
|
|
106
|
+
`, j = l("div")`
|
|
104
107
|
height: 19px;
|
|
105
|
-
`,
|
|
106
|
-
decorativeElement:
|
|
108
|
+
`, yo = ({
|
|
109
|
+
decorativeElement: e,
|
|
107
110
|
title: a,
|
|
108
111
|
items: r = [],
|
|
109
|
-
padding:
|
|
110
|
-
shadow:
|
|
111
|
-
spacing:
|
|
112
|
-
titleSpacing:
|
|
113
|
-
canEditTitle:
|
|
114
|
-
columns:
|
|
112
|
+
padding: m = "1rem 2rem",
|
|
113
|
+
shadow: d,
|
|
114
|
+
spacing: u = "2rem",
|
|
115
|
+
titleSpacing: v = "1rem",
|
|
116
|
+
canEditTitle: I = !0,
|
|
117
|
+
columns: z = 3,
|
|
115
118
|
styles: Y,
|
|
116
119
|
width: E = "100%",
|
|
117
|
-
loading:
|
|
118
|
-
titleLoading:
|
|
119
|
-
onSave:
|
|
120
|
+
loading: y = !1,
|
|
121
|
+
titleLoading: S = !1,
|
|
122
|
+
onSave: D = () => {
|
|
120
123
|
},
|
|
121
|
-
onCancel:
|
|
124
|
+
onCancel: W = () => {
|
|
122
125
|
},
|
|
123
|
-
onEdit:
|
|
126
|
+
onEdit: X = () => {
|
|
124
127
|
}
|
|
125
128
|
}) => {
|
|
126
|
-
const b = r.reduce((
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
const b = r.reduce((t, i) => ({ ...t, [i.label]: i.value }), { titleValue: a }), [U, g] = T(!1), [c, p] = T(b);
|
|
130
|
+
O(() => {
|
|
131
|
+
p(b);
|
|
129
132
|
}, [r]);
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
}, q = () => {
|
|
133
|
-
F(p), g(!1);
|
|
133
|
+
const q = () => {
|
|
134
|
+
X(), g(!0);
|
|
134
135
|
}, A = () => {
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
}, H = (
|
|
139
|
-
|
|
140
|
-
}, J =
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
D(c), g(!1);
|
|
137
|
+
}, G = () => {
|
|
138
|
+
W(), p(b), g(!1);
|
|
139
|
+
}, H = (t, i) => {
|
|
140
|
+
p((N) => ({ ...N, [t]: i }));
|
|
141
|
+
}, J = (t) => {
|
|
142
|
+
p((i) => ({ ...i, titleValue: t }));
|
|
143
|
+
}, K = Math.ceil(r.length / z), s = 50, k = { width: E, padding: m, shadow: d, styles: Y, isEditing: U }, B = { spacing: u, columns: z, numRows: K }, x = oo();
|
|
144
|
+
return /* @__PURE__ */ n(lo, { children: [
|
|
145
|
+
/* @__PURE__ */ n(V, { ...k, customTheme: x, children: [
|
|
146
|
+
/* @__PURE__ */ n(h, { width: "100%", gap: "1rem", justifyContent: "space-between", children: [
|
|
147
|
+
/* @__PURE__ */ n(h, { width: "100%", gap: v, alignItems: "center", children: [
|
|
148
|
+
e && e,
|
|
149
|
+
/* @__PURE__ */ o(M, { size: 36, loading: I && S, children: /* @__PURE__ */ o("h3", { children: a }) })
|
|
147
150
|
] }),
|
|
148
151
|
/* @__PURE__ */ o(
|
|
149
|
-
|
|
152
|
+
$,
|
|
150
153
|
{
|
|
151
154
|
title: "Edit",
|
|
152
155
|
placement: "top",
|
|
@@ -162,12 +165,12 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
162
165
|
]
|
|
163
166
|
}
|
|
164
167
|
},
|
|
165
|
-
children: /* @__PURE__ */ o(
|
|
168
|
+
children: /* @__PURE__ */ o(w, { onClick: q, children: /* @__PURE__ */ o(ro, {}) })
|
|
166
169
|
}
|
|
167
170
|
)
|
|
168
171
|
] }),
|
|
169
|
-
/* @__PURE__ */ o(
|
|
170
|
-
/* @__PURE__ */ o(
|
|
172
|
+
/* @__PURE__ */ o(R, { ...B, children: y ? /* @__PURE__ */ n(P, { children: [
|
|
173
|
+
/* @__PURE__ */ o(j, {}),
|
|
171
174
|
/* @__PURE__ */ o(
|
|
172
175
|
L,
|
|
173
176
|
{
|
|
@@ -179,22 +182,23 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
)
|
|
182
|
-
] }) : r == null ? void 0 : r.map((
|
|
185
|
+
] }) : r == null ? void 0 : r.map((t) => /* @__PURE__ */ o(Z, { ...t }, t.label)) })
|
|
183
186
|
] }),
|
|
184
|
-
/* @__PURE__ */ n(
|
|
185
|
-
/* @__PURE__ */ n(
|
|
186
|
-
/* @__PURE__ */ n(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
/* @__PURE__ */ n(io, { ...k, customTheme: x, children: [
|
|
188
|
+
/* @__PURE__ */ n(h, { width: "100%", justifyContent: "space-between", children: [
|
|
189
|
+
/* @__PURE__ */ n(h, { width: "100%", gap: v, alignItems: "center", children: [
|
|
190
|
+
e && e,
|
|
191
|
+
I ? /* @__PURE__ */ o(M, { size: 36, loading: S, children: /* @__PURE__ */ o(
|
|
192
|
+
ao,
|
|
190
193
|
{
|
|
191
|
-
onChange: (
|
|
192
|
-
value: (
|
|
194
|
+
onChange: (t) => J(t.target.value),
|
|
195
|
+
value: (c == null ? void 0 : c.titleValue) ?? a,
|
|
196
|
+
customTheme: x
|
|
193
197
|
}
|
|
194
198
|
) }) : /* @__PURE__ */ o("h3", { children: a })
|
|
195
199
|
] }),
|
|
196
200
|
/* @__PURE__ */ o(
|
|
197
|
-
|
|
201
|
+
$,
|
|
198
202
|
{
|
|
199
203
|
title: "Cancel",
|
|
200
204
|
placement: "top",
|
|
@@ -210,11 +214,11 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
210
214
|
]
|
|
211
215
|
}
|
|
212
216
|
},
|
|
213
|
-
children: /* @__PURE__ */ o(
|
|
217
|
+
children: /* @__PURE__ */ o(w, { onClick: G, children: /* @__PURE__ */ o(Q, {}) })
|
|
214
218
|
}
|
|
215
219
|
),
|
|
216
220
|
/* @__PURE__ */ o(
|
|
217
|
-
|
|
221
|
+
$,
|
|
218
222
|
{
|
|
219
223
|
title: "Save",
|
|
220
224
|
placement: "top",
|
|
@@ -230,12 +234,12 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
230
234
|
]
|
|
231
235
|
}
|
|
232
236
|
},
|
|
233
|
-
children: /* @__PURE__ */ o(
|
|
237
|
+
children: /* @__PURE__ */ o(w, { onClick: A, children: /* @__PURE__ */ o(no, {}) })
|
|
234
238
|
}
|
|
235
239
|
)
|
|
236
240
|
] }),
|
|
237
|
-
/* @__PURE__ */ o(
|
|
238
|
-
/* @__PURE__ */ o(
|
|
241
|
+
/* @__PURE__ */ o(R, { ...B, children: y ? /* @__PURE__ */ n(P, { children: [
|
|
242
|
+
/* @__PURE__ */ o(j, {}),
|
|
239
243
|
/* @__PURE__ */ o(
|
|
240
244
|
L,
|
|
241
245
|
{
|
|
@@ -247,19 +251,19 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
247
251
|
}
|
|
248
252
|
}
|
|
249
253
|
)
|
|
250
|
-
] }) : r == null ? void 0 : r.map((
|
|
251
|
-
|
|
254
|
+
] }) : r == null ? void 0 : r.map((t) => /* @__PURE__ */ o(
|
|
255
|
+
_,
|
|
252
256
|
{
|
|
253
|
-
label:
|
|
254
|
-
value:
|
|
255
|
-
onChange: (i) =>
|
|
257
|
+
label: t.label,
|
|
258
|
+
value: c[t.label],
|
|
259
|
+
onChange: (i) => H(t.label, i.target.value)
|
|
256
260
|
},
|
|
257
|
-
|
|
261
|
+
t.label
|
|
258
262
|
)) })
|
|
259
263
|
] })
|
|
260
264
|
] });
|
|
261
265
|
};
|
|
262
266
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
267
|
+
yo as EditableInfoCard,
|
|
268
|
+
yo as default
|
|
265
269
|
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { SerializedStyles } from '@emotion/react';
|
|
2
|
-
|
|
2
|
+
import { CustomThemeProps } from '../../../../../../../../../src/components/theme';
|
|
3
|
+
import { PropsWithChildren, HTMLAttributes } from 'react';
|
|
4
|
+
interface WithCustomTheme {
|
|
5
|
+
customTheme: CustomThemeProps;
|
|
6
|
+
}
|
|
7
|
+
interface FormSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
}
|
|
9
|
+
export declare const FormSection: React.FC<PropsWithChildren<FormSectionProps>>;
|
|
10
|
+
export declare const FormSectionStyles: import('@emotion/styled').StyledComponent<{
|
|
3
11
|
theme?: import('@emotion/react').Theme;
|
|
4
12
|
as?: React.ElementType;
|
|
5
|
-
} & {
|
|
6
|
-
boxShadow?: string;
|
|
7
|
-
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
} & WithCustomTheme, import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
14
|
export declare const FormFieldGrid: import('@emotion/styled').StyledComponent<{
|
|
9
15
|
theme?: import('@emotion/react').Theme;
|
|
10
16
|
as?: React.ElementType;
|
|
@@ -13,30 +19,31 @@ export declare const FormFieldGrid: import('@emotion/styled').StyledComponent<{
|
|
|
13
19
|
columnsOverride?: string;
|
|
14
20
|
gap?: number;
|
|
15
21
|
customStyles?: SerializedStyles;
|
|
16
|
-
}, import('react').DetailedHTMLProps<
|
|
22
|
+
}, import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
23
|
export declare const FormFieldCheckboxContainer: import('@emotion/styled').StyledComponent<{
|
|
18
24
|
theme?: import('@emotion/react').Theme;
|
|
19
25
|
as?: React.ElementType;
|
|
20
|
-
}, import('react').DetailedHTMLProps<
|
|
26
|
+
}, import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
27
|
export declare const FormSectionTitle: import('@emotion/styled').StyledComponent<{
|
|
22
28
|
theme?: import('@emotion/react').Theme;
|
|
23
29
|
as?: React.ElementType;
|
|
24
|
-
}, import('react').DetailedHTMLProps<
|
|
30
|
+
}, import('react').DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
25
31
|
export declare const FormSubtitle: import('@emotion/styled').StyledComponent<{
|
|
26
32
|
theme?: import('@emotion/react').Theme;
|
|
27
33
|
as?: React.ElementType;
|
|
28
34
|
} & {
|
|
29
35
|
underlined?: boolean;
|
|
30
|
-
}, import('react').DetailedHTMLProps<
|
|
36
|
+
}, import('react').DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
31
37
|
export declare const FormTextLine: import('@emotion/styled').StyledComponent<{
|
|
32
38
|
theme?: import('@emotion/react').Theme;
|
|
33
39
|
as?: React.ElementType;
|
|
34
40
|
} & {
|
|
35
41
|
underlined?: boolean;
|
|
36
|
-
}, import('react').DetailedHTMLProps<
|
|
42
|
+
}, import('react').DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
37
43
|
export declare const FormSubsectionTitle: import('@emotion/styled').StyledComponent<{
|
|
38
44
|
theme?: import('@emotion/react').Theme;
|
|
39
45
|
as?: React.ElementType;
|
|
40
46
|
} & {
|
|
41
47
|
underlined?: boolean;
|
|
42
|
-
}, import('react').DetailedHTMLProps<
|
|
48
|
+
}, import('react').DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
49
|
+
export {};
|