jcicl 1.0.76 → 1.0.78

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.
Files changed (76) hide show
  1. package/.chunks/Button.js +7 -6
  2. package/.chunks/ButtonBase.js +2 -1
  3. package/.chunks/CircularProgress.js +9 -8
  4. package/.chunks/DefaultPropsProvider.js +322 -336
  5. package/.chunks/Paper.js +6 -5
  6. package/.chunks/Popper.js +1 -1
  7. package/.chunks/Portal.js +13 -13
  8. package/.chunks/SwitchBase.js +14 -13
  9. package/.chunks/TextField.js +2 -1
  10. package/.chunks/clsx.js +16 -0
  11. package/.chunks/createSvgIcon.js +14 -13
  12. package/.chunks/eye.js +45 -0
  13. package/.chunks/index.js +19 -18
  14. package/AppContainer/AppContainer.js +323 -319
  15. package/Button/Button.js +80 -82
  16. package/Divider/Divider.js +13 -12
  17. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +3 -2
  18. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +39 -39
  19. package/EditableInfoCard/EditableInfoCard.d.ts +1 -1
  20. package/EditableInfoCard/EditableInfoCard.js +25 -25
  21. package/ErrorBoundary/ErrorBoundary.d.ts +5 -5
  22. package/ErrorBoundary/ErrorBoundary.js +21 -19
  23. package/FormComponents/FormComponents.d.ts +1 -2
  24. package/FormContext/createFormContext.js +70 -62
  25. package/FormFields/FormFields.d.ts +1 -1
  26. package/FormFields/FormFields.js +31 -31
  27. package/FormInput/FormInput.d.ts +5 -3
  28. package/FormInput/FormInput.js +10 -8
  29. package/Input/Input.d.ts +6 -1
  30. package/Input/Input.js +35 -100
  31. package/LabeledCheckbox/LabeledCheckbox.js +7 -6
  32. package/LabeledDropdown/LabeledDropdown.d.ts +3 -0
  33. package/LabeledDropdown/LabeledDropdown.js +720 -795
  34. package/LabeledFormattedInput/LabeledFormattedInput.d.ts +23 -0
  35. package/LabeledFormattedInput/LabeledFormattedInput.js +95 -0
  36. package/LabeledFormattedInput/index.d.ts +1 -0
  37. package/LabeledFormattedInput/index.js +4 -0
  38. package/LabeledInput/LabeledInput.js +39 -51
  39. package/LabeledRadio/LabeledRadio.js +7 -6
  40. package/Memo/Memo.js +6 -5
  41. package/Nav/Nav.d.ts +1 -1
  42. package/Pagination/Pagination.d.ts +1 -2
  43. package/Pagination/Pagination.js +25 -24
  44. package/README.md +11 -6
  45. package/Stepper/Stepper.js +4 -3
  46. package/Table/Table.d.ts +7 -5
  47. package/Table/Table.js +5575 -5633
  48. package/Timer/Timer.js +26 -26
  49. package/Toast/Toaster.js +9 -9
  50. package/Tooltip/Tooltip.js +5 -4
  51. package/WelcomeCard/WelcomeCard.d.ts +1 -5
  52. package/WelcomeCard/WelcomeCard.js +45 -101
  53. package/assets/style.css +1 -1
  54. package/assets/tailwind.css +2 -2
  55. package/cn.d.ts +2 -0
  56. package/cn.js +2990 -0
  57. package/constants.d.ts +6 -0
  58. package/constants.js +55 -0
  59. package/cursorPositioning.d.ts +7 -0
  60. package/cursorPositioning.js +13 -0
  61. package/formatters.d.ts +17 -0
  62. package/formatters.js +83 -0
  63. package/inputTypes.d.ts +1 -0
  64. package/inputTypes.js +1 -0
  65. package/logger.d.ts +13 -0
  66. package/logger.js +9 -0
  67. package/maskers.d.ts +6 -0
  68. package/maskers.js +15 -0
  69. package/package.json +2 -1
  70. package/theme.d.ts +1 -0
  71. package/theme.js +9 -8
  72. package/themeUtils.js +58 -79
  73. package/utils.d.ts +8 -18
  74. package/utils.js +39 -89
  75. package/validators.d.ts +5 -0
  76. package/validators.js +12 -0
package/Button/Button.js CHANGED
@@ -1,14 +1,16 @@
1
- import { jsx as e, jsxs as g } from "react/jsx-runtime";
2
- import { useState as N } from "react";
3
- import { B as j } from "../.chunks/Button.js";
4
- import { i as S } from "../.chunks/emotion-styled.browser.esm.js";
5
- import { c as v } from "../.chunks/emotion-react.browser.esm.js";
6
- import { s as b, c as p } from "../.chunks/DefaultPropsProvider.js";
1
+ import { jsx as e, jsxs as f } from "react/jsx-runtime";
2
+ import { useState as $ } from "react";
3
+ import { B as k } from "../.chunks/Button.js";
4
+ import { i as _ } from "../.chunks/emotion-styled.browser.esm.js";
5
+ import { c as g } from "../.chunks/emotion-react.browser.esm.js";
6
+ import { cn as b } from "../cn.js";
7
7
  import a from "../theme.js";
8
- import { Tooltip as T } from "../Tooltip/Tooltip.js";
9
- import { useThemeColors as F } from "../ThemeContext.js";
10
- import { B as l } from "../.chunks/ButtonBase.js";
11
- import { C as I } from "../.chunks/check.js";
8
+ import { Tooltip as N } from "../Tooltip/Tooltip.js";
9
+ import { useThemeColors as j } from "../ThemeContext.js";
10
+ import { logger as S } from "../logger.js";
11
+ import { s as x } from "../.chunks/DefaultPropsProvider.js";
12
+ import { B as p } from "../.chunks/ButtonBase.js";
13
+ import { C as T } from "../.chunks/check.js";
12
14
  const C = [
13
15
  "active",
14
16
  "customBackgroundColor",
@@ -16,7 +18,7 @@ const C = [
16
18
  "customTextColor",
17
19
  "customShadow1",
18
20
  "customShadow2"
19
- ], d = b(j, { shouldForwardProp: (t) => !C.includes(t) })`
21
+ ], c = x(k, { shouldForwardProp: (t) => !C.includes(t) })`
20
22
  text-transform: none;
21
23
  &:disabled {
22
24
  opacity: 0.5;
@@ -29,11 +31,11 @@ const C = [
29
31
  span {
30
32
  align-items: center !important;
31
33
  }
32
- `, z = "!bg-[#009200] !h-10 !border-2 !border-transparent !text-white transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base shadow-[0px_0px_2px_1px_rgba(100,100,100,0.63)] hover:!bg-[#005c00] hover:shadow-[0px_0px_2px_1px_rgba(0,0,0,0.63)] focus-visible:!bg-[#005c00] focus-visible:shadow-[0px_0px_2px_1px_rgba(0,0,0,0.63)] disabled:!bg-[#005c00]", w = "!bg-[#fab62d] !h-10 !border-2 !border-transparent !text-[#131313] transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base shadow-[0px_0px_2px_1px_rgba(100,100,100,0.63)] hover:!bg-[#e0a022] focus-visible:!bg-[#e0a022] disabled:!bg-[#e0a022]", A = "!h-10 !border-2 !border-transparent transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base !bg-[var(--btn-bg)] hover:!bg-[var(--btn-hover)] focus-visible:!bg-[var(--btn-hover)] disabled:!bg-[var(--btn-hover)] !text-[var(--btn-text)] !shadow-[var(--btn-shadow)] hover:!shadow-[var(--btn-shadow-hover)] focus-visible:!shadow-[var(--btn-shadow-hover)]", G = b(l, {
33
- shouldForwardProp: (t) => typeof t == "string" && S(t)
34
+ `, F = "!bg-[#009200] !h-10 !border-2 !border-transparent !text-white transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base shadow-[0px_0px_2px_1px_rgba(100,100,100,0.63)] hover:!bg-[#005c00] hover:shadow-[0px_0px_2px_1px_rgba(0,0,0,0.63)] focus-visible:!bg-[#005c00] focus-visible:shadow-[0px_0px_2px_1px_rgba(0,0,0,0.63)] disabled:!bg-[#005c00]", h = "!bg-[#fab62d] !h-10 !border-2 !border-transparent !text-[#131313] transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base shadow-[0px_0px_2px_1px_rgba(100,100,100,0.63)] hover:!bg-[#e0a022] focus-visible:!bg-[#e0a022] disabled:!bg-[#e0a022]", I = "!h-10 !border-2 !border-transparent transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base !bg-[var(--btn-bg)] hover:!bg-[var(--btn-hover)] focus-visible:!bg-[var(--btn-hover)] disabled:!bg-[var(--btn-hover)] !text-[var(--btn-text)] !shadow-[var(--btn-shadow)] hover:!shadow-[var(--btn-shadow-hover)] focus-visible:!shadow-[var(--btn-shadow-hover)]", z = x(p, {
35
+ shouldForwardProp: (t) => typeof t == "string" && _(t)
34
36
  })(
35
- ({ size: t, color: o, highlightColor: r, hoverColor: i }) => ({
36
- ...v`
37
+ ({ size: t, color: o, highlightColor: s, hoverColor: i }) => ({
38
+ ...g`
37
39
  display: flex;
38
40
  align-items: center;
39
41
  justify-content: center;
@@ -43,8 +45,8 @@ const C = [
43
45
  &:hover,
44
46
  :focus-visible {
45
47
  svg {
46
- filter: drop-shadow(0 0 6px ${r}) drop-shadow(0 0 6px ${r})
47
- drop-shadow(0 0 6px ${r}) drop-shadow(0 0 6px ${r});
48
+ filter: drop-shadow(0 0 6px ${s}) drop-shadow(0 0 6px ${s})
49
+ drop-shadow(0 0 6px ${s}) drop-shadow(0 0 6px ${s});
48
50
  fill: ${i || o};
49
51
  }
50
52
  }
@@ -57,9 +59,9 @@ const C = [
57
59
  }
58
60
  `
59
61
  })
60
- ), H = b(l)(
62
+ ), A = x(p)(
61
63
  ({ backgroundColor: t, borderColor: o }) => ({
62
- ...v`
64
+ ...g`
63
65
  height: 28px;
64
66
  border-radius: 20px;
65
67
  border-width: 2px;
@@ -93,85 +95,81 @@ const C = [
93
95
  }
94
96
  `
95
97
  })
96
- ), X = ({
98
+ ), Y = ({
97
99
  variant: t = 1,
98
100
  size: o = 50,
99
- color: r,
101
+ color: s,
100
102
  highlightColor: i,
101
- hoverColor: c,
103
+ hoverColor: d,
102
104
  backgroundColor: m,
103
- textColor: x,
104
- customShadow1: y,
105
- customShadow2: B,
106
- children: s,
107
- textToCopy: $,
108
- active: k,
109
- width: V,
105
+ textColor: l,
106
+ customShadow1: w,
107
+ customShadow2: v,
108
+ children: r,
109
+ textToCopy: y,
110
+ active: B,
111
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- public API prop reserved for bibi variants; destructured to keep it out of muiProps spread
112
+ width: H,
110
113
  ...n
111
114
  }) => {
112
- const u = F();
113
- if (t === "custom")
114
- return /* @__PURE__ */ e(
115
- "div",
116
- {
117
- style: {
118
- "--btn-bg": m || a.colors.green,
119
- "--btn-hover": c || a.colors.darkGreen,
120
- "--btn-text": x || a.colors.white,
121
- "--btn-shadow": y || a.boxShadows.gray63,
122
- "--btn-shadow-hover": B || a.boxShadows.black63,
123
- display: "contents"
124
- },
125
- children: /* @__PURE__ */ e(d, { className: p("jcCustomButton", A), ...n, children: s })
126
- }
127
- );
128
- if (t === "unstyled")
129
- return /* @__PURE__ */ e(l, { className: "block", ...n, children: s });
130
- if (t === "copy") {
131
- const [f, h] = N(!1);
132
- return /* @__PURE__ */ g("div", { className: "flex", onClick: async () => {
133
- try {
134
- await navigator.clipboard.writeText($ || String(s)), h(!0), setTimeout(() => h(!1), 1100);
135
- } catch (_) {
136
- console.error("Failed to copy text: ", _);
137
- }
138
- }, children: [
139
- /* @__PURE__ */ e(T, { title: "Copy to clipboard", children: /* @__PURE__ */ e(
140
- l,
141
- {
142
- className: "block [font-family:inherit] [font-size:inherit] [font-weight:inherit]",
143
- ...n,
144
- children: s
145
- }
146
- ) }),
147
- f && /* @__PURE__ */ g("span", { className: "inline ml-2 text-sm text-[#727272] content-center", children: [
148
- /* @__PURE__ */ e(I, { size: 12, className: "inline align-middle !h-[14px] !w-[14px] m-0" }),
149
- " Copied"
150
- ] })
151
- ] });
152
- }
153
- return t === 2 ? /* @__PURE__ */ e(d, { className: w, ...n, children: /* @__PURE__ */ e("span", { children: s }) }) : t === "icon" ? (r = r || a.colors.green, i = i || a.colors.dandelion, c = c || a.colors.green, /* @__PURE__ */ e(G, { className: "jcIconButton", ...{ size: o, color: r, highlightColor: i, hoverColor: c }, ...n, children: s })) : t === "filter" ? /* @__PURE__ */ e(
154
- d,
115
+ const u = j();
116
+ return t === "custom" ? /* @__PURE__ */ e(
117
+ "div",
155
118
  {
156
- className: p(
119
+ style: {
120
+ "--btn-bg": m || a.colors.green,
121
+ "--btn-hover": d || a.colors.darkGreen,
122
+ "--btn-text": l || a.colors.white,
123
+ "--btn-shadow": w || a.boxShadows.gray63,
124
+ "--btn-shadow-hover": v || a.boxShadows.black63,
125
+ display: "contents"
126
+ },
127
+ children: /* @__PURE__ */ e(c, { className: b("jcCustomButton", I), ...n, children: r })
128
+ }
129
+ ) : t === "unstyled" ? /* @__PURE__ */ e(p, { className: "block", ...n, children: r }) : t === "copy" ? /* @__PURE__ */ e(G, { textToCopy: y, muiProps: n, children: r }) : t === 2 ? /* @__PURE__ */ e(c, { className: h, ...n, children: /* @__PURE__ */ e("span", { children: r }) }) : t === "icon" ? (s = s || a.colors.green, i = i || a.colors.dandelion, d = d || a.colors.green, /* @__PURE__ */ e(z, { className: "jcIconButton", ...{ size: o, color: s, highlightColor: i, hoverColor: d }, ...n, children: r })) : t === "filter" ? /* @__PURE__ */ e(
130
+ c,
131
+ {
132
+ className: b(
157
133
  "jcFilterButton",
158
134
  "!box-border !h-[28px] !rounded-[18px] !flex !items-center !justify-center !border-2 transition-all duration-[108ms] ease-in !font-medium",
159
- k ? "!bg-black !border-transparent !text-white hover:!bg-[#404040]" : "!bg-white !border-black !text-black hover:!bg-[#dddddd]"
135
+ B ? "!bg-black !border-transparent !text-white hover:!bg-[#404040]" : "!bg-white !border-black !text-black hover:!bg-[#dddddd]"
160
136
  ),
161
137
  ...n,
162
- children: s
138
+ children: r
163
139
  }
164
- ) : t === "form" ? /* @__PURE__ */ e(d, { className: p("jcFormButton", w, "!w-[447px] !self-center"), ...n, children: /* @__PURE__ */ e("span", { children: s }) }) : t === "pill" ? /* @__PURE__ */ e(
165
- H,
140
+ ) : t === "form" ? /* @__PURE__ */ e(c, { className: b("jcFormButton", h, "!w-[447px] !self-center"), ...n, children: /* @__PURE__ */ e("span", { children: r }) }) : t === "pill" ? /* @__PURE__ */ e(
141
+ A,
166
142
  {
167
143
  backgroundColor: m || u.themeIconBackgroundB,
168
- borderColor: x || u.themeIconBackgroundA,
144
+ borderColor: l || u.themeIconBackgroundA,
169
145
  ...n,
170
- children: /* @__PURE__ */ e("span", { children: s })
146
+ children: /* @__PURE__ */ e("span", { children: r })
147
+ }
148
+ ) : /* @__PURE__ */ e(c, { className: F, ...n, children: /* @__PURE__ */ e("span", { children: r }) });
149
+ }, G = ({ textToCopy: t, muiProps: o, children: s }) => {
150
+ const [i, d] = $(!1);
151
+ return /* @__PURE__ */ f("div", { className: "flex", onClick: async () => {
152
+ try {
153
+ await navigator.clipboard.writeText(t || String(s)), d(!0), setTimeout(() => d(!1), 1100);
154
+ } catch (l) {
155
+ S.error("Failed to copy text: ", l);
171
156
  }
172
- ) : /* @__PURE__ */ e(d, { className: z, ...n, children: /* @__PURE__ */ e("span", { children: s }) });
157
+ }, children: [
158
+ /* @__PURE__ */ e(N, { title: "Copy to clipboard", children: /* @__PURE__ */ e(
159
+ p,
160
+ {
161
+ className: "block [font-family:inherit] [font-size:inherit] [font-weight:inherit]",
162
+ ...o,
163
+ children: s
164
+ }
165
+ ) }),
166
+ i && /* @__PURE__ */ f("span", { className: "inline ml-2 text-sm text-[#727272] content-center", children: [
167
+ /* @__PURE__ */ e(T, { size: 12, className: "inline align-middle !h-[14px] !w-[14px] m-0" }),
168
+ " Copied"
169
+ ] })
170
+ ] });
173
171
  };
174
172
  export {
175
- X as Button,
176
- X as default
173
+ Y as Button,
174
+ Y as default
177
175
  };
@@ -1,7 +1,8 @@
1
- import { jsx as g } from "react/jsx-runtime";
1
+ import { jsx as f } from "react/jsx-runtime";
2
2
  import { n as C, i as D } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import * as A from "react";
4
- import { a as R, g as S, s as u, u as T, c as L, P as r, d as W, e as $ } from "../.chunks/DefaultPropsProvider.js";
4
+ import { a as R, g as S, s as u, u as T, P as r, b as L, d as W } from "../.chunks/DefaultPropsProvider.js";
5
+ import { c as $ } from "../.chunks/clsx.js";
5
6
  import { m as b } from "../.chunks/memoTheme.js";
6
7
  function I(t) {
7
8
  return S("MuiDivider", t);
@@ -18,7 +19,7 @@ const O = (t) => {
18
19
  textAlign: l,
19
20
  variant: n
20
21
  } = t;
21
- return W({
22
+ return L({
22
23
  root: ["root", e && "absolute", n, s && "light", a === "vertical" && "vertical", p && "flexItem", i && "withChildren", i && a === "vertical" && "withChildrenVertical", l === "right" && a !== "vertical" && "textAlignRight", l === "left" && a !== "vertical" && "textAlignLeft"],
23
24
  wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
24
25
  }, I, o);
@@ -56,7 +57,7 @@ const O = (t) => {
56
57
  light: !0
57
58
  },
58
59
  style: {
59
- borderColor: t.vars ? `rgba(${t.vars.palette.dividerChannel} / 0.08)` : $(t.palette.divider, 0.08)
60
+ borderColor: t.vars ? `rgba(${t.vars.palette.dividerChannel} / 0.08)` : W(t.palette.divider, 0.08)
60
61
  }
61
62
  }, {
62
63
  props: {
@@ -198,7 +199,7 @@ const O = (t) => {
198
199
  className: a,
199
200
  orientation: l = "horizontal",
200
201
  component: n = s || l === "vertical" ? "div" : "hr",
201
- flexItem: f = !1,
202
+ flexItem: g = !1,
202
203
  light: m = !1,
203
204
  role: c = n !== "hr" ? "separator" : void 0,
204
205
  textAlign: x = "center",
@@ -208,22 +209,22 @@ const O = (t) => {
208
209
  ...o,
209
210
  absolute: p,
210
211
  component: n,
211
- flexItem: f,
212
+ flexItem: g,
212
213
  light: m,
213
214
  orientation: l,
214
215
  role: c,
215
216
  textAlign: x,
216
217
  variant: w
217
218
  }, v = O(h);
218
- return /* @__PURE__ */ g(V, {
219
+ return /* @__PURE__ */ f(V, {
219
220
  as: n,
220
- className: L(v.root, a),
221
+ className: $(v.root, a),
221
222
  role: c,
222
223
  ref: i,
223
224
  ownerState: h,
224
225
  "aria-orientation": c === "separator" && (n !== "hr" || l === "vertical") ? l : void 0,
225
226
  ...y,
226
- children: s ? /* @__PURE__ */ g(N, {
227
+ children: s ? /* @__PURE__ */ f(N, {
227
228
  className: v.wrapper,
228
229
  ownerState: h,
229
230
  children: s
@@ -303,8 +304,8 @@ const B = C(d, {
303
304
  margin: o ? `0 ${i}px` : `${i}px 0`,
304
305
  height: o ? "100%" : 0,
305
306
  width: o ? 1 : "100%"
306
- })), k = ({ orientation: t, ...e }) => /* @__PURE__ */ g(B, { vertical: t === "vertical", ...e });
307
+ })), z = ({ orientation: t, ...e }) => /* @__PURE__ */ f(B, { vertical: t === "vertical", ...e });
307
308
  export {
308
- k as Divider,
309
- k as default
309
+ z as Divider,
310
+ z as default
310
311
  };
@@ -1,5 +1,6 @@
1
1
  import { default as React, ReactElement, ForwardRefExoticComponent } from 'react';
2
2
  import { LucideProps } from 'lucide-react';
3
+ import { FormInputType } from '../FormInput';
3
4
  export interface EditableDetailItemWithIconProps {
4
5
  icon: ForwardRefExoticComponent<Omit<LucideProps, 'ref'>>;
5
6
  iconSize?: number;
@@ -10,9 +11,9 @@ export interface EditableDetailItemWithIconProps {
10
11
  onValueChange?: (newValue: string) => void;
11
12
  onSave?: () => void;
12
13
  onCancel?: () => void;
13
- passedTheme?: any;
14
+ passedTheme?: unknown;
14
15
  copyOnClick?: boolean;
15
- type?: string;
16
+ type?: FormInputType;
16
17
  }
17
18
  declare const EditableDetailItemWithIcon: React.FC<EditableDetailItemWithIconProps>;
18
19
  export default EditableDetailItemWithIcon;
@@ -1,25 +1,25 @@
1
- import { jsx as o, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
2
  import { useState as B } from "react";
3
3
  import { n as k } from "../.chunks/emotion-styled.browser.esm.js";
4
4
  import { c as I } from "../.chunks/emotion-react.browser.esm.js";
5
5
  import e from "../theme.js";
6
- import { Flex as c } from "../Flex/Flex.js";
6
+ import { Flex as i } from "../Flex/Flex.js";
7
7
  import { Input as y } from "../Input/Input.js";
8
8
  import { DetailItemContainer as D } from "../DetailPageComponents/DetailPageComponents.js";
9
9
  import z from "../SquareIcon/SquareIcon.js";
10
- import s from "../SquareIconButton/SquareIconButton.js";
10
+ import d from "../SquareIconButton/SquareIconButton.js";
11
11
  import { Button as j } from "../Button/Button.js";
12
12
  import { useThemeColors as G } from "../ThemeContext.js";
13
13
  import { c as L } from "../.chunks/createLucideIcon.js";
14
- import { X as S } from "../.chunks/x.js";
15
- import { C as W } from "../.chunks/check.js";
14
+ import { X as W } from "../.chunks/x.js";
15
+ import { C as q } from "../.chunks/check.js";
16
16
  /**
17
17
  * @license lucide-react v0.525.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
21
  */
22
- const q = [
22
+ const E = [
23
23
  [
24
24
  "path",
25
25
  {
@@ -28,7 +28,7 @@ const q = [
28
28
  }
29
29
  ],
30
30
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
31
- ], E = L("pencil", q), T = k("p")(() => ({
31
+ ], T = L("pencil", E), _ = k("p")(() => ({
32
32
  ...I`
33
33
  font-size: 0.875rem;
34
34
  font-weight: 500;
@@ -42,74 +42,74 @@ const q = [
42
42
  word-wrap: break-word;
43
43
  margin: 0;
44
44
  `
45
- })), v = (i) => /* @__PURE__ */ o(_, { ...i }), _ = ({
46
- icon: i,
47
- iconSize: C = 20,
48
- onValueChange: p,
49
- onSave: d,
50
- onCancel: f,
45
+ })), F = (n) => /* @__PURE__ */ o(A, { ...n }), A = ({
46
+ icon: n,
47
+ iconSize: b = 20,
48
+ onValueChange: f,
49
+ onSave: m,
50
+ onCancel: l,
51
51
  customEditForm: a,
52
52
  editButtonMarginTop: h,
53
- label: b,
54
- value: l,
53
+ label: w,
54
+ value: s,
55
55
  copyOnClick: u = !1,
56
- type: w
56
+ type: C
57
57
  }) => {
58
- const [r, m] = B(!1), t = G();
59
- return /* @__PURE__ */ o(D, { children: /* @__PURE__ */ n(c, { gap: "19px", children: [
58
+ const [r, p] = B(!1), t = G();
59
+ return /* @__PURE__ */ o(D, { children: /* @__PURE__ */ c(i, { gap: "19px", children: [
60
60
  /* @__PURE__ */ o(
61
61
  z,
62
62
  {
63
- icon: i,
64
- iconSize: C,
63
+ icon: n,
64
+ iconSize: b,
65
65
  color: t.themeIconColorB,
66
66
  backgroundColor: t.themeIconBackgroundB
67
67
  }
68
68
  ),
69
- /* @__PURE__ */ n(c, { justifyContent: "space-between", width: "100%", gap: "12px", children: [
70
- /* @__PURE__ */ n(c, { column: !0, styles: { flexGrow: 1 }, children: [
71
- /* @__PURE__ */ o(T, { children: b }),
72
- !r && !u && /* @__PURE__ */ o(g, { children: l }),
73
- !r && u && /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(j, { variant: "copy", children: l }) }),
69
+ /* @__PURE__ */ c(i, { justifyContent: "space-between", width: "100%", gap: "12px", children: [
70
+ /* @__PURE__ */ c(i, { column: !0, styles: { flexGrow: 1 }, children: [
71
+ /* @__PURE__ */ o(_, { children: w }),
72
+ !r && !u && /* @__PURE__ */ o(g, { children: s }),
73
+ !r && u && /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(j, { variant: "copy", children: s }) }),
74
74
  r && !a && /* @__PURE__ */ o(
75
75
  y,
76
76
  {
77
- type: w,
78
- defaultValue: l,
79
- onChange: (x) => p && p(x.target.value)
77
+ type: C,
78
+ defaultValue: s,
79
+ onChange: (x) => f && f(x.target.value)
80
80
  }
81
81
  ),
82
82
  r && a && a
83
83
  ] }),
84
84
  !r && /* @__PURE__ */ o(
85
- s,
85
+ d,
86
86
  {
87
87
  backgroundColor: t.themeIconBackgroundB,
88
88
  color: t.themeIconColorB,
89
- icon: E,
90
- onClick: () => m(!0)
89
+ icon: T,
90
+ onClick: () => p(!0)
91
91
  }
92
92
  ),
93
- r && /* @__PURE__ */ n(c, { gap: "9px", styles: { marginTop: h || "0" }, children: [
93
+ r && /* @__PURE__ */ c(i, { gap: "9px", styles: { marginTop: h || "0" }, children: [
94
94
  /* @__PURE__ */ o(
95
- s,
95
+ d,
96
96
  {
97
97
  backgroundColor: e.colors.cherryBlossom,
98
98
  color: e.colors.maroon,
99
- icon: S,
99
+ icon: W,
100
100
  onClick: () => {
101
- m(!1), f && f();
101
+ p(!1), l == null || l();
102
102
  }
103
103
  }
104
104
  ),
105
105
  /* @__PURE__ */ o(
106
- s,
106
+ d,
107
107
  {
108
- icon: W,
108
+ icon: q,
109
109
  backgroundColor: e.colors.whiteGreenA,
110
110
  color: e.colors.darkGreen,
111
111
  onClick: () => {
112
- m(!1), d && d();
112
+ p(!1), m == null || m();
113
113
  }
114
114
  }
115
115
  )
@@ -118,5 +118,5 @@ const q = [
118
118
  ] }) });
119
119
  };
120
120
  export {
121
- v as default
121
+ F as default
122
122
  };
@@ -14,7 +14,7 @@ interface EditableInfoCardStyleProps {
14
14
  styles?: CSSObject;
15
15
  /** Save event handler. Exposes card data through a json object with key value pairs corresponding to the card labels, with spaces removed. **Usage:** ```onSave(items) => { ...doStuff }``` */
16
16
  onSave: (items: {
17
- [key: string]: any;
17
+ [key: string]: unknown;
18
18
  }) => void;
19
19
  onCancel?: () => void;
20
20
  onEdit?: () => void;
@@ -19,7 +19,7 @@ const ro = F(/* @__PURE__ */ o("path", {
19
19
  }), "Edit"), no = F(/* @__PURE__ */ o("path", {
20
20
  d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
21
21
  }), "Check"), V = l("div")(
22
- ({ width: e, padding: a, shadow: r, styles: m, isEditing: d, customTheme: u }) => ({
22
+ ({ width: e, padding: a, shadow: r, styles: m, isEditing: c, customTheme: u }) => ({
23
23
  ...f`
24
24
  width: ${e};
25
25
  max-width: 100%;
@@ -37,11 +37,11 @@ const ro = F(/* @__PURE__ */ o("path", {
37
37
  border-radius: 5px;
38
38
  background-color: ${C.colors.white};
39
39
  ${m};
40
- z-index: ${d ? 0 : 1};
40
+ z-index: ${c ? 0 : 1};
41
41
  position: relative;
42
- transform: ${d ? "rotateY(-180deg)" : "rotateY(0deg)"};
42
+ transform: ${c ? "rotateY(-180deg)" : "rotateY(0deg)"};
43
43
  transition: 920ms all ease-in-out;
44
- opacity: ${d ? "0" : "1"};
44
+ opacity: ${c ? "0" : "1"};
45
45
  `
46
46
  })
47
47
  ), ao = l(eo, {
@@ -105,20 +105,20 @@ const ro = F(/* @__PURE__ */ o("path", {
105
105
  width: 100%;
106
106
  `, j = l("div")`
107
107
  height: 19px;
108
- `, yo = ({
108
+ `, So = ({
109
109
  decorativeElement: e,
110
110
  title: a,
111
111
  items: r = [],
112
112
  padding: m = "1rem 2rem",
113
- shadow: d,
113
+ shadow: c,
114
114
  spacing: u = "2rem",
115
115
  titleSpacing: v = "1rem",
116
116
  canEditTitle: I = !0,
117
117
  columns: z = 3,
118
118
  styles: Y,
119
119
  width: E = "100%",
120
- loading: y = !1,
121
- titleLoading: S = !1,
120
+ loading: S = !1,
121
+ titleLoading: y = !1,
122
122
  onSave: D = () => {
123
123
  },
124
124
  onCancel: W = () => {
@@ -126,27 +126,27 @@ const ro = F(/* @__PURE__ */ o("path", {
126
126
  onEdit: X = () => {
127
127
  }
128
128
  }) => {
129
- const b = r.reduce((t, i) => ({ ...t, [i.label]: i.value }), { titleValue: a }), [U, g] = T(!1), [c, p] = T(b);
129
+ const b = r.reduce((t, i) => ({ ...t, [i.label]: i.value }), { titleValue: a }), [U, g] = T(!1), [s, p] = T(b);
130
130
  O(() => {
131
131
  p(b);
132
132
  }, [r]);
133
133
  const q = () => {
134
134
  X(), g(!0);
135
135
  }, A = () => {
136
- D(c), g(!1);
136
+ D(s), g(!1);
137
137
  }, G = () => {
138
138
  W(), p(b), g(!1);
139
139
  }, H = (t, i) => {
140
140
  p((N) => ({ ...N, [t]: i }));
141
141
  }, J = (t) => {
142
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();
143
+ }, K = Math.ceil(r.length / z), d = 50, k = { width: E, padding: m, shadow: c, styles: Y, isEditing: U }, B = { spacing: u, columns: z, numRows: K }, x = oo();
144
144
  return /* @__PURE__ */ n(lo, { children: [
145
145
  /* @__PURE__ */ n(V, { ...k, customTheme: x, children: [
146
146
  /* @__PURE__ */ n(h, { width: "100%", gap: "1rem", justifyContent: "space-between", children: [
147
147
  /* @__PURE__ */ n(h, { width: "100%", gap: v, alignItems: "center", children: [
148
148
  e && e,
149
- /* @__PURE__ */ o(M, { size: 36, loading: I && S, children: /* @__PURE__ */ o("h3", { children: a }) })
149
+ /* @__PURE__ */ o(M, { size: 36, loading: I && y, children: /* @__PURE__ */ o("h3", { children: a }) })
150
150
  ] }),
151
151
  /* @__PURE__ */ o(
152
152
  $,
@@ -169,16 +169,16 @@ const ro = F(/* @__PURE__ */ o("path", {
169
169
  }
170
170
  )
171
171
  ] }),
172
- /* @__PURE__ */ o(R, { ...B, children: y ? /* @__PURE__ */ n(P, { children: [
172
+ /* @__PURE__ */ o(R, { ...B, children: S ? /* @__PURE__ */ n(P, { children: [
173
173
  /* @__PURE__ */ o(j, {}),
174
174
  /* @__PURE__ */ o(
175
175
  L,
176
176
  {
177
- size: s,
177
+ size: d,
178
178
  styles: {
179
179
  position: "absolute",
180
- top: `calc(50% - ${s / 2}px)`,
181
- right: `calc(50% - ${s / 2}px)`
180
+ top: `calc(50% - ${d / 2}px)`,
181
+ right: `calc(50% - ${d / 2}px)`
182
182
  }
183
183
  }
184
184
  )
@@ -188,11 +188,11 @@ const ro = F(/* @__PURE__ */ o("path", {
188
188
  /* @__PURE__ */ n(h, { width: "100%", justifyContent: "space-between", children: [
189
189
  /* @__PURE__ */ n(h, { width: "100%", gap: v, alignItems: "center", children: [
190
190
  e && e,
191
- I ? /* @__PURE__ */ o(M, { size: 36, loading: S, children: /* @__PURE__ */ o(
191
+ I ? /* @__PURE__ */ o(M, { size: 36, loading: y, children: /* @__PURE__ */ o(
192
192
  ao,
193
193
  {
194
194
  onChange: (t) => J(t.target.value),
195
- value: (c == null ? void 0 : c.titleValue) ?? a,
195
+ value: (s == null ? void 0 : s.titleValue) ?? a,
196
196
  customTheme: x
197
197
  }
198
198
  ) }) : /* @__PURE__ */ o("h3", { children: a })
@@ -238,16 +238,16 @@ const ro = F(/* @__PURE__ */ o("path", {
238
238
  }
239
239
  )
240
240
  ] }),
241
- /* @__PURE__ */ o(R, { ...B, children: y ? /* @__PURE__ */ n(P, { children: [
241
+ /* @__PURE__ */ o(R, { ...B, children: S ? /* @__PURE__ */ n(P, { children: [
242
242
  /* @__PURE__ */ o(j, {}),
243
243
  /* @__PURE__ */ o(
244
244
  L,
245
245
  {
246
- size: s,
246
+ size: d,
247
247
  styles: {
248
248
  position: "absolute",
249
- top: `calc(50% - ${s / 2}px)`,
250
- right: `calc(50% - ${s / 2}px)`
249
+ top: `calc(50% - ${d / 2}px)`,
250
+ right: `calc(50% - ${d / 2}px)`
251
251
  }
252
252
  }
253
253
  )
@@ -255,7 +255,7 @@ const ro = F(/* @__PURE__ */ o("path", {
255
255
  _,
256
256
  {
257
257
  label: t.label,
258
- value: c[t.label],
258
+ value: s[t.label] == null ? void 0 : String(s[t.label]),
259
259
  onChange: (i) => H(t.label, i.target.value)
260
260
  },
261
261
  t.label
@@ -264,6 +264,6 @@ const ro = F(/* @__PURE__ */ o("path", {
264
264
  ] });
265
265
  };
266
266
  export {
267
- yo as EditableInfoCard,
268
- yo as default
267
+ So as EditableInfoCard,
268
+ So as default
269
269
  };
@@ -6,16 +6,16 @@ export interface ErrorBoundaryProps {
6
6
  }
7
7
  interface ErrorBoundaryState {
8
8
  hasError: boolean;
9
- error: any;
10
- errorInfo: any;
9
+ error: Error | null;
10
+ errorInfo: React.ErrorInfo | null;
11
11
  }
12
12
  declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
13
13
  constructor(props: ErrorBoundaryProps);
14
- static getDerivedStateFromError(error: any): {
14
+ static getDerivedStateFromError(error: Error): {
15
15
  hasError: boolean;
16
- error: any;
16
+ error: Error;
17
17
  };
18
- componentDidCatch(error: any, errorInfo: any): void;
18
+ componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
19
19
  render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
20
20
  }
21
21
  export default ErrorBoundary;