jcicl 1.0.5 → 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.
@@ -1,26 +1,27 @@
1
- import { jsx as o, jsxs as n, Fragment as k } from "react/jsx-runtime";
2
- import { useState as B, useEffect as N } from "react";
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 m } from "../.chunks/emotion-react.browser.esm.js";
5
- import { c as j } from "../.chunks/createSvgIcon.js";
6
- import { X as O } from "../.chunks/Close.js";
7
- import d from "../theme.js";
8
- import { LabeledValue as Q } from "../LabeledValue/LabeledValue.js";
9
- import { LabeledInput as Z } from "../LabeledInput/LabeledInput.js";
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 f } from "../Flex/Flex.js";
13
- import { Tooltip as x } from "../Tooltip/Tooltip.js";
14
- import { T as _ } from "../.chunks/TextField.js";
15
- import { B as oo } from "../.chunks/ButtonBase.js";
16
- const eo = j(/* @__PURE__ */ o("path", {
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"), to = j(/* @__PURE__ */ o("path", {
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"), T = l("div")(
21
- ({ width: t, padding: a, shadow: r, styles: u, isEditing: c }) => ({
22
- ...m`
23
- width: ${t};
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: ${d.colors.white};
38
- ${u};
39
- z-index: ${c ? 0 : 1};
38
+ background-color: ${C.colors.white};
39
+ ${m};
40
+ z-index: ${d ? 0 : 1};
40
41
  position: relative;
41
- transform: ${c ? "rotateY(-180deg)" : "rotateY(0deg)"};
42
+ transform: ${d ? "rotateY(-180deg)" : "rotateY(0deg)"};
42
43
  transition: 920ms all ease-in-out;
43
- opacity: ${c ? "0" : "1"};
44
+ opacity: ${d ? "0" : "1"};
44
45
  `
45
46
  })
46
- ), ro = l(_)({
47
- backgroundColor: d.colors.white,
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 ${d.colors.gray}`,
58
+ borderBottom: `1px solid ${C.colors.gray}`,
56
59
  "&:focus-visible": {
57
- boxShadow: `0 3px 2px -2px ${d.colors.darkGreen}`
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 ${d.colors.darkGreen}`
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
- }), no = l(T)(({ isEditing: t }) => ({
75
- ...m`
77
+ })), io = l(V)(({ isEditing: e }) => ({
78
+ ...f`
76
79
  position: absolute;
77
80
  top: 0;
78
- z-index: ${t ? 1 : 0};
79
- transform: ${t ? "rotateY(0deg)" : "rotateY(-180deg)"};
80
- opacity: ${t ? "1" : "0"};
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
- })), P = l("div")(
84
- ({ spacing: t, columns: a, numRows: r }) => ({
85
- ...m`
86
- margin-top: calc(${t} * 0.75);
87
- grid-row-gap: ${t};
88
- grid-column-gap: calc(${t} * 1.5);
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
- ), $ = l(oo)(() => ({
95
- ...m`
97
+ ), w = l(to)(() => ({
98
+ ...f`
96
99
  width: 40px;
97
100
  height: 40px;
98
101
  border-radius: 50%;
99
102
  `
100
- })), ao = l("div")`
103
+ })), lo = l("div")`
101
104
  position: relative;
102
105
  width: 100%;
103
- `, R = l("div")`
106
+ `, j = l("div")`
104
107
  height: 19px;
105
- `, vo = ({
106
- decorativeElement: t,
108
+ `, yo = ({
109
+ decorativeElement: e,
107
110
  title: a,
108
111
  items: r = [],
109
- padding: u = "1rem 2rem",
110
- shadow: c = d.boxShadows.darkGreen,
111
- spacing: V = "2rem",
112
- titleSpacing: w = "1rem",
113
- canEditTitle: C = !0,
114
- columns: v = 3,
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: I = !1,
118
- titleLoading: z = !1,
119
- onSave: F = () => {
120
+ loading: y = !1,
121
+ titleLoading: S = !1,
122
+ onSave: D = () => {
120
123
  },
121
- onCancel: G = () => {
124
+ onCancel: W = () => {
122
125
  },
123
- onEdit: W = () => {
126
+ onEdit: X = () => {
124
127
  }
125
128
  }) => {
126
- const b = r.reduce((e, i) => ({ ...e, [i.label]: i.value }), { titleValue: a }), [X, g] = B(!1), [p, h] = B(b);
127
- N(() => {
128
- h(b);
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 U = () => {
131
- W(), g(!0);
132
- }, q = () => {
133
- F(p), g(!1);
133
+ const q = () => {
134
+ X(), g(!0);
134
135
  }, A = () => {
135
- G(), h(b), g(!1);
136
- }, D = (e, i) => {
137
- h((K) => ({ ...K, [e]: i }));
138
- }, H = (e) => {
139
- h((i) => ({ ...i, titleValue: e }));
140
- }, J = Math.ceil(r.length / v), s = 50, y = { width: E, padding: u, shadow: c, styles: Y, isEditing: X }, S = { spacing: V, columns: v, numRows: J };
141
- return /* @__PURE__ */ n(ao, { children: [
142
- /* @__PURE__ */ n(T, { ...y, children: [
143
- /* @__PURE__ */ n(f, { width: "100%", gap: "1rem", justifyContent: "space-between", children: [
144
- /* @__PURE__ */ n(f, { width: "100%", gap: w, alignItems: "center", children: [
145
- t && t,
146
- /* @__PURE__ */ o(M, { size: 36, loading: C && z, children: /* @__PURE__ */ o("h3", { children: a }) })
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
- x,
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($, { onClick: U, children: /* @__PURE__ */ o(eo, {}) })
168
+ children: /* @__PURE__ */ o(w, { onClick: q, children: /* @__PURE__ */ o(ro, {}) })
166
169
  }
167
170
  )
168
171
  ] }),
169
- /* @__PURE__ */ o(P, { ...S, children: I ? /* @__PURE__ */ n(k, { children: [
170
- /* @__PURE__ */ o(R, {}),
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((e) => /* @__PURE__ */ o(Q, { ...e }, e.label)) })
185
+ ] }) : r == null ? void 0 : r.map((t) => /* @__PURE__ */ o(Z, { ...t }, t.label)) })
183
186
  ] }),
184
- /* @__PURE__ */ n(no, { ...y, children: [
185
- /* @__PURE__ */ n(f, { width: "100%", justifyContent: "space-between", children: [
186
- /* @__PURE__ */ n(f, { width: "100%", gap: w, alignItems: "center", children: [
187
- t && t,
188
- C ? /* @__PURE__ */ o(M, { size: 36, loading: z, children: /* @__PURE__ */ o(
189
- ro,
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: (e) => H(e.target.value),
192
- value: (p == null ? void 0 : p.titleValue) ?? a
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
- x,
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($, { onClick: A, children: /* @__PURE__ */ o(O, {}) })
217
+ children: /* @__PURE__ */ o(w, { onClick: G, children: /* @__PURE__ */ o(Q, {}) })
214
218
  }
215
219
  ),
216
220
  /* @__PURE__ */ o(
217
- x,
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($, { onClick: q, children: /* @__PURE__ */ o(to, {}) })
237
+ children: /* @__PURE__ */ o(w, { onClick: A, children: /* @__PURE__ */ o(no, {}) })
234
238
  }
235
239
  )
236
240
  ] }),
237
- /* @__PURE__ */ o(P, { ...S, children: I ? /* @__PURE__ */ n(k, { children: [
238
- /* @__PURE__ */ o(R, {}),
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((e) => /* @__PURE__ */ o(
251
- Z,
254
+ ] }) : r == null ? void 0 : r.map((t) => /* @__PURE__ */ o(
255
+ _,
252
256
  {
253
- label: e.label,
254
- value: p[e.label],
255
- onChange: (i) => D(e.label, i.target.value)
257
+ label: t.label,
258
+ value: c[t.label],
259
+ onChange: (i) => H(t.label, i.target.value)
256
260
  },
257
- e.label
261
+ t.label
258
262
  )) })
259
263
  ] })
260
264
  ] });
261
265
  };
262
266
  export {
263
- vo as EditableInfoCard,
264
- vo as default
267
+ yo as EditableInfoCard,
268
+ yo as default
265
269
  };
@@ -1,10 +1,16 @@
1
1
  import { SerializedStyles } from '@emotion/react';
2
- export declare const FormSection: import('@emotion/styled').StyledComponent<{
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<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
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<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
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<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
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<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
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<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
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<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
48
+ }, import('react').DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
49
+ export {};
@@ -1,33 +1,38 @@
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 i from "../theme.js";
4
- const x = o("div")(
5
- ({ boxShadow: e = i.boxShadows.darkGreen }) => ({
6
- ...t`
7
- background-color: ${i.colors.white};
8
- border-radius: 8px;
9
- box-shadow: ${e};
10
- padding: 0px 36px 19px 36px;
11
- display: flex;
12
- flex-direction: column;
13
- gap: 21px;
14
- max-width: 1300px;
15
- width: 100%;
16
- box-sizing: border-box;
17
- `
18
- })
19
- ), m = o("div")(({ columns: e = 3, columnsOverride: n, gap: r = 21, customStyles: a }) => ({
20
- ...t`
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(${e}, 1fr);
23
- ${n && t`
24
- grid-template-columns: ${n};
27
+ grid-template-columns: repeat(${t}, 1fr);
28
+ ${i && o`
29
+ grid-template-columns: ${i};
25
30
  `};
26
- gap: ${r}px;
27
- ${a};
31
+ gap: ${n}px;
32
+ ${l};
28
33
  `
29
- })), s = o("div")(() => ({
30
- ...t`
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
- })), g = o("h2")(() => ({
48
- ...t`
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
- })), f = o("h3")(({ underlined: e = !1 }) => ({
56
- ...t`
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
- ${e && t`
68
+ ${t && o`
64
69
  text-decoration: underline;
65
70
  `};
66
71
  `
67
- })), c = o("p")(({ underlined: e = !1 }) => ({
68
- ...t`
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
- ${e && t`
80
+ ${t && o`
76
81
  text-decoration: underline;
77
82
  `};
78
83
  `
79
- })), h = o("h3")(({ underlined: e = !1 }) => ({
80
- ...t`
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 ${i.colors.gray};
92
+ border-bottom: 1px solid ${r.colors.gray};
88
93
  width: 100%;
89
- ${e && t`
94
+ ${t && o`
90
95
  text-decoration: underline;
91
96
  `};
92
97
  `
93
98
  }));
94
99
  export {
95
- s as FormFieldCheckboxContainer,
96
- m as FormFieldGrid,
97
- x as FormSection,
98
- g as FormSectionTitle,
99
- h as FormSubsectionTitle,
100
- f as FormSubtitle,
101
- c as FormTextLine
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 t } from "react/jsx-runtime";
2
- import { B as p } from "../.chunks/ButtonBase.js";
3
- import i from "../theme.js";
4
- import { n as l, i as m } from "../.chunks/emotion-styled.browser.esm.js";
5
- const a = l("div", {
6
- shouldForwardProp: (r) => m(r)
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: r = i.colors.darkGreen, backgroundColor: n = i.colors.mint, size: o = 40, padding: s = 8 }) => ({
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 ${i.colors.midnight}`,
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: `${s}px`,
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
- ), h = l(p)({
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: i.colors.grayO44
35
+ backgroundColor: c.colors.grayO44
35
36
  }
36
37
  }
37
- }), b = ({
38
- icon: r,
38
+ }), v = ({
39
+ icon: e,
39
40
  iconColor: n,
40
41
  backgroundColor: o,
41
- size: s,
42
- padding: c,
43
- ...e
42
+ size: t,
43
+ padding: r,
44
+ ...i
44
45
  }) => {
45
- const d = { iconColor: n, backgroundColor: o, size: s, padding: c };
46
- return e != null && e.onClick ? /* @__PURE__ */ t(h, { ...e, children: /* @__PURE__ */ t(a, { ...d, children: r }) }) : /* @__PURE__ */ t(a, { ...d, children: r });
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
- b as default
50
+ v as default
50
51
  };