jcicl 1.0.3 → 1.0.7
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/CircularIconButton/CircularIconButton.js +22 -18
- 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 +63 -62
- 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/Memo/Memo.js +16 -15
- package/Pill/Pill.js +13 -12
- 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/WithLoading/WithLoading.js +16 -11
- package/package.json +1 -1
- package/theme.d.ts +17 -9
- package/theme.js +4 -0
- package/themeUtils.d.ts +5 -0
- package/themeUtils.js +81 -69
- package/utils.d.ts +1 -0
- package/utils.js +27 -7
|
@@ -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 {};
|
|
@@ -1,33 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsx as a } 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 r from "../theme.js";
|
|
5
|
+
import { useThemeColors as m } from "../ThemeContext.js";
|
|
6
|
+
const f = ({ children: t, ...i }) => {
|
|
7
|
+
const n = m();
|
|
8
|
+
return /* @__PURE__ */ a(d, { customTheme: n, ...i, children: t });
|
|
9
|
+
}, d = e("div", {
|
|
10
|
+
shouldForwardProp: (t) => !["customTheme"].includes(t)
|
|
11
|
+
})(({ customTheme: t }) => ({
|
|
12
|
+
...o`
|
|
13
|
+
background-color: ${r.colors.white};
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
box-shadow: ${t.themeShadowB};
|
|
16
|
+
padding: 0px 36px 19px 36px;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 21px;
|
|
20
|
+
max-width: 1300px;
|
|
21
|
+
width: 100%;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
`
|
|
24
|
+
})), h = e("div")(({ columns: t = 3, columnsOverride: i, gap: n = 21, customStyles: l }) => ({
|
|
25
|
+
...o`
|
|
21
26
|
display: grid;
|
|
22
|
-
grid-template-columns: repeat(${
|
|
23
|
-
${
|
|
24
|
-
grid-template-columns: ${
|
|
27
|
+
grid-template-columns: repeat(${t}, 1fr);
|
|
28
|
+
${i && o`
|
|
29
|
+
grid-template-columns: ${i};
|
|
25
30
|
`};
|
|
26
|
-
gap: ${
|
|
27
|
-
${
|
|
31
|
+
gap: ${n}px;
|
|
32
|
+
${l};
|
|
28
33
|
`
|
|
29
|
-
})),
|
|
30
|
-
...
|
|
34
|
+
})), w = e("div")(() => ({
|
|
35
|
+
...o`
|
|
31
36
|
width: 100%;
|
|
32
37
|
display: flex;
|
|
33
38
|
align-items: flex-end;
|
|
@@ -44,59 +49,60 @@ const x = o("div")(
|
|
|
44
49
|
align-items: flex-end;
|
|
45
50
|
}
|
|
46
51
|
`
|
|
47
|
-
})),
|
|
48
|
-
...
|
|
52
|
+
})), b = e("h2")(() => ({
|
|
53
|
+
...o`
|
|
49
54
|
font-size: 27px;
|
|
50
55
|
font-weight: 600;
|
|
51
56
|
text-align: left;
|
|
52
57
|
margin-top: 9px;
|
|
53
58
|
margin-bottom: -15px;
|
|
54
59
|
`
|
|
55
|
-
})),
|
|
56
|
-
...
|
|
60
|
+
})), u = e("h3")(({ underlined: t = !1 }) => ({
|
|
61
|
+
...o`
|
|
57
62
|
font-size: 19px;
|
|
58
63
|
font-weight: 600;
|
|
59
64
|
text-align: left;
|
|
60
65
|
margin: 0;
|
|
61
66
|
margin-bottom: -15px;
|
|
62
67
|
width: 100%;
|
|
63
|
-
${
|
|
68
|
+
${t && o`
|
|
64
69
|
text-decoration: underline;
|
|
65
70
|
`};
|
|
66
71
|
`
|
|
67
|
-
})),
|
|
68
|
-
...
|
|
72
|
+
})), F = e("p")(({ underlined: t = !1 }) => ({
|
|
73
|
+
...o`
|
|
69
74
|
text-align: left;
|
|
70
75
|
font-size: inherit;
|
|
71
76
|
font-weight: bold;
|
|
72
77
|
margin: 0;
|
|
73
78
|
margin-bottom: -19px;
|
|
74
79
|
width: 100%;
|
|
75
|
-
${
|
|
80
|
+
${t && o`
|
|
76
81
|
text-decoration: underline;
|
|
77
82
|
`};
|
|
78
83
|
`
|
|
79
|
-
})),
|
|
80
|
-
...
|
|
84
|
+
})), $ = e("h3")(({ underlined: t = !1 }) => ({
|
|
85
|
+
...o`
|
|
81
86
|
font-size: 19px;
|
|
82
87
|
font-weight: 600;
|
|
83
88
|
text-align: left;
|
|
84
89
|
margin: 0;
|
|
85
90
|
margin-top: 9px;
|
|
86
91
|
margin-bottom: -6px;
|
|
87
|
-
border-bottom: 1px solid ${
|
|
92
|
+
border-bottom: 1px solid ${r.colors.gray};
|
|
88
93
|
width: 100%;
|
|
89
|
-
${
|
|
94
|
+
${t && o`
|
|
90
95
|
text-decoration: underline;
|
|
91
96
|
`};
|
|
92
97
|
`
|
|
93
98
|
}));
|
|
94
99
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
w as FormFieldCheckboxContainer,
|
|
101
|
+
h as FormFieldGrid,
|
|
102
|
+
f as FormSection,
|
|
103
|
+
d as FormSectionStyles,
|
|
104
|
+
b as FormSectionTitle,
|
|
105
|
+
$ as FormSubsectionTitle,
|
|
106
|
+
u as FormSubtitle,
|
|
107
|
+
F as FormTextLine
|
|
102
108
|
};
|
package/Icon/Icon.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as
|
|
3
|
-
import
|
|
4
|
-
import { n as
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { B as h } from "../.chunks/ButtonBase.js";
|
|
3
|
+
import c from "../theme.js";
|
|
4
|
+
import { n as m, i as p } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
|
+
import { useThemeColors as u } from "../ThemeContext.js";
|
|
6
|
+
const l = m("div", {
|
|
7
|
+
shouldForwardProp: (e) => p(e) && !["customTheme"].includes(e)
|
|
7
8
|
})(
|
|
8
|
-
({ iconColor:
|
|
9
|
+
({ iconColor: e, backgroundColor: n, size: o = 40, padding: t = 8, customTheme: r }) => ({
|
|
9
10
|
display: "flex",
|
|
10
11
|
alignItems: "center",
|
|
11
12
|
justifyContent: "center",
|
|
12
13
|
borderRadius: "50%",
|
|
13
|
-
boxShadow: `0 0 2px ${
|
|
14
|
+
boxShadow: `0 0 2px ${c.colors.midnight}`,
|
|
14
15
|
svg: {
|
|
15
16
|
boxSizing: "border-box",
|
|
16
|
-
border: `1px solid ${r}`,
|
|
17
|
-
backgroundColor: n,
|
|
17
|
+
border: `1px solid ${e || r.themeDark}`,
|
|
18
|
+
backgroundColor: n || r.themeMediumA,
|
|
18
19
|
borderRadius: "50%",
|
|
19
|
-
padding: `${
|
|
20
|
-
fill: r,
|
|
20
|
+
padding: `${t}px`,
|
|
21
|
+
fill: e || r.themeDark,
|
|
21
22
|
width: `${o}px`,
|
|
22
23
|
height: `${o}px`,
|
|
23
24
|
pointerEvents: "none"
|
|
24
25
|
}
|
|
25
26
|
})
|
|
26
|
-
),
|
|
27
|
+
), f = m(h)({
|
|
27
28
|
backgroundColor: "transparent",
|
|
28
29
|
borderRadius: "50%",
|
|
29
30
|
span: {
|
|
@@ -31,20 +32,20 @@ const a = l("div", {
|
|
|
31
32
|
},
|
|
32
33
|
"&:hover, :focus-visible": {
|
|
33
34
|
span: {
|
|
34
|
-
backgroundColor:
|
|
35
|
+
backgroundColor: c.colors.grayO44
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
}),
|
|
38
|
-
icon:
|
|
38
|
+
}), v = ({
|
|
39
|
+
icon: e,
|
|
39
40
|
iconColor: n,
|
|
40
41
|
backgroundColor: o,
|
|
41
|
-
size:
|
|
42
|
-
padding:
|
|
43
|
-
...
|
|
42
|
+
size: t,
|
|
43
|
+
padding: r,
|
|
44
|
+
...i
|
|
44
45
|
}) => {
|
|
45
|
-
const d = { iconColor: n, backgroundColor: o, size:
|
|
46
|
-
return
|
|
46
|
+
const d = { iconColor: n, backgroundColor: o, size: t, padding: r }, a = u();
|
|
47
|
+
return i != null && i.onClick ? /* @__PURE__ */ s(f, { ...i, children: /* @__PURE__ */ s(l, { ...d, customTheme: a, children: e }) }) : /* @__PURE__ */ s(l, { ...d, customTheme: a, children: e });
|
|
47
48
|
};
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
v as default
|
|
50
51
|
};
|