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.
Files changed (47) hide show
  1. package/.chunks/DefaultPropsProvider.js +3 -3
  2. package/.chunks/TextField.js +1 -1
  3. package/.chunks/x.js +22 -0
  4. package/Button/Button.js +36 -32
  5. package/CircularIconButton/CircularIconButton.js +23 -19
  6. package/DefaultTemplate/DefaultTemplate.js +3 -3
  7. package/DetailItemWithIcon/DetailItemWithIcon.js +31 -19
  8. package/DetailPageComponents/DetailPageComponents.d.ts +12 -4
  9. package/DetailPageComponents/DetailPageComponents.js +44 -28
  10. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +1 -0
  11. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +59 -74
  12. package/EditableInfoCard/EditableInfoCard.js +107 -103
  13. package/FormComponents/FormComponents.d.ts +17 -10
  14. package/FormComponents/FormComponents.js +52 -46
  15. package/Icon/Icon.js +23 -22
  16. package/InfoCard/InfoCard.js +37 -33
  17. package/Input/Input.js +19 -15
  18. package/LabeledCheckbox/LabeledCheckbox.js +58 -55
  19. package/LabeledDropdown/LabeledDropdown.js +370 -366
  20. package/LabeledInput/LabeledInput.js +13 -13
  21. package/LabeledTextArea/LabeledTextArea.js +20 -13
  22. package/List/List.js +19 -18
  23. package/ListButton/ListButton.d.ts +2 -4
  24. package/ListButton/ListButton.js +21 -12
  25. package/Loading/Loading.js +14 -9
  26. package/Pill/Pill.d.ts +1 -0
  27. package/Pill/Pill.js +21 -13
  28. package/ScrollContainer/ScrollContainer.js +180 -179
  29. package/Search/Search.js +64 -62
  30. package/SquareIcon/SquareIcon.js +28 -25
  31. package/SquareIconButton/SquareIconButton.js +24 -11
  32. package/Stepper/Stepper.js +166 -146
  33. package/Table/Table.js +233 -221
  34. package/Toast/Toast.d.ts +8 -0
  35. package/Toast/Toast.js +154 -0
  36. package/Toast/ToastHelpers.d.ts +4 -0
  37. package/Toast/ToastHelpers.js +10 -0
  38. package/Toast/Toaster.d.ts +9 -0
  39. package/Toast/Toaster.js +25 -0
  40. package/Toast/index.d.ts +3 -0
  41. package/Toast/index.js +9 -0
  42. package/WithLoading/WithLoading.js +16 -11
  43. package/package.json +1 -1
  44. package/theme.d.ts +19 -9
  45. package/theme.js +15 -9
  46. package/themeUtils.d.ts +5 -0
  47. package/themeUtils.js +81 -69
@@ -3269,10 +3269,10 @@ export {
3269
3269
  tt as g,
3270
3270
  rt as h,
3271
3271
  _o as i,
3272
- br as j,
3273
- Ro as k,
3272
+ lr as j,
3273
+ br as k,
3274
3274
  vr as l,
3275
- lr as m,
3275
+ Ro as m,
3276
3276
  ye as n,
3277
3277
  ie as o,
3278
3278
  On as p,
@@ -1,5 +1,5 @@
1
1
  import * as c from "react";
2
- import { P as e, m as Ot, i as Vo, T as Ho, a as oe, g as te, c as ce, s as j, u as de, b as ee, d as ne, n as qo, r as Se, o as bo, q as ho, k as xt } from "./DefaultPropsProvider.js";
2
+ import { P as e, j as Ot, i as Vo, T as Ho, a as oe, g as te, c as ce, s as j, u as de, b as ee, d as ne, n as qo, r as Se, o as bo, q as ho, m as xt } from "./DefaultPropsProvider.js";
3
3
  import { u as ye } from "./useSlot.js";
4
4
  import { jsx as R, jsxs as he } from "react/jsx-runtime";
5
5
  import { u as De, F as _o } from "./useFormControl.js";
package/.chunks/x.js ADDED
@@ -0,0 +1,22 @@
1
+ import { c } from "./createLucideIcon.js";
2
+ /**
3
+ * @license lucide-react v0.525.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const o = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], d = c("check", o);
9
+ /**
10
+ * @license lucide-react v0.525.0 - ISC
11
+ *
12
+ * This source code is licensed under the ISC license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ const e = [
16
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
17
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
18
+ ], n = c("x", e);
19
+ export {
20
+ d as C,
21
+ n as X
22
+ };
package/Button/Button.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { jsxs as _, jsx as i } from "react/jsx-runtime";
2
2
  import * as S from "react";
3
- import { g as A, a as q, s, r as J, c as p, m as K, u as Q, b as R, P as t, d as X, e as $ } from "../.chunks/DefaultPropsProvider.js";
3
+ import { g as A, a as q, s, r as J, c as p, j as K, u as Q, b as R, P as t, d as X, e as $ } from "../.chunks/DefaultPropsProvider.js";
4
4
  import { m as Y } from "../.chunks/memoTheme.js";
5
5
  import { c as Z } from "../.chunks/createSimplePaletteValueFilter.js";
6
- import { B as m } from "../.chunks/ButtonBase.js";
6
+ import { B as h } from "../.chunks/ButtonBase.js";
7
7
  import { i as oo } from "../.chunks/emotion-styled.browser.esm.js";
8
- import { c as g } from "../.chunks/emotion-react.browser.esm.js";
8
+ import { c as v } from "../.chunks/emotion-react.browser.esm.js";
9
9
  import r from "../theme.js";
10
10
  function ro(o) {
11
11
  return A("MuiButton", o);
12
12
  }
13
- const v = q("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), E = /* @__PURE__ */ S.createContext({});
13
+ const g = q("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), E = /* @__PURE__ */ S.createContext({});
14
14
  process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
15
15
  const T = /* @__PURE__ */ S.createContext(void 0);
16
16
  process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
@@ -60,7 +60,7 @@ const to = (o) => {
60
60
  fontSize: 22
61
61
  }
62
62
  }
63
- }], ao = s(m, {
63
+ }], ao = s(h, {
64
64
  shouldForwardProp: (o) => J(o) || o === "classes",
65
65
  name: "MuiButton",
66
66
  slot: "Root",
@@ -86,7 +86,7 @@ const to = (o) => {
86
86
  "&:hover": {
87
87
  textDecoration: "none"
88
88
  },
89
- [`&.${v.disabled}`]: {
89
+ [`&.${g.disabled}`]: {
90
90
  color: (o.vars || o).palette.action.disabled
91
91
  },
92
92
  variants: [{
@@ -107,10 +107,10 @@ const to = (o) => {
107
107
  "&:active": {
108
108
  boxShadow: (o.vars || o).shadows[8]
109
109
  },
110
- [`&.${v.focusVisible}`]: {
110
+ [`&.${g.focusVisible}`]: {
111
111
  boxShadow: (o.vars || o).shadows[6]
112
112
  },
113
- [`&.${v.disabled}`]: {
113
+ [`&.${g.disabled}`]: {
114
114
  color: (o.vars || o).palette.action.disabled,
115
115
  boxShadow: (o.vars || o).shadows[0],
116
116
  backgroundColor: (o.vars || o).palette.action.disabledBackground
@@ -126,7 +126,7 @@ const to = (o) => {
126
126
  borderColor: "var(--variant-outlinedBorder, currentColor)",
127
127
  backgroundColor: "var(--variant-outlinedBg)",
128
128
  color: "var(--variant-outlinedColor)",
129
- [`&.${v.disabled}`]: {
129
+ [`&.${g.disabled}`]: {
130
130
  border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
131
131
  }
132
132
  }
@@ -237,13 +237,13 @@ const to = (o) => {
237
237
  "&:hover": {
238
238
  boxShadow: "none"
239
239
  },
240
- [`&.${v.focusVisible}`]: {
240
+ [`&.${g.focusVisible}`]: {
241
241
  boxShadow: "none"
242
242
  },
243
243
  "&:active": {
244
244
  boxShadow: "none"
245
245
  },
246
- [`&.${v.disabled}`]: {
246
+ [`&.${g.disabled}`]: {
247
247
  boxShadow: "none"
248
248
  }
249
249
  }
@@ -298,7 +298,7 @@ const to = (o) => {
298
298
  marginRight: -2
299
299
  }
300
300
  }, ...P]
301
- }), W = /* @__PURE__ */ S.forwardRef(function(a, n) {
301
+ }), j = /* @__PURE__ */ S.forwardRef(function(a, n) {
302
302
  const e = S.useContext(E), d = S.useContext(T), u = K(e, a), b = Q({
303
303
  props: u,
304
304
  name: "MuiButton"
@@ -306,7 +306,7 @@ const to = (o) => {
306
306
  children: x,
307
307
  color: f = "primary",
308
308
  component: l = "button",
309
- className: h,
309
+ className: m,
310
310
  disabled: c = !1,
311
311
  disableElevation: C = !1,
312
312
  disableFocusRipple: k = !1,
@@ -340,7 +340,7 @@ const to = (o) => {
340
340
  }), U = d || "";
341
341
  return /* @__PURE__ */ _(ao, {
342
342
  ownerState: w,
343
- className: R(e.className, y.root, h, U),
343
+ className: R(e.className, y.root, m, U),
344
344
  component: l,
345
345
  disabled: c,
346
346
  focusRipple: !k,
@@ -352,7 +352,7 @@ const to = (o) => {
352
352
  children: [H, x, D]
353
353
  });
354
354
  });
355
- process.env.NODE_ENV !== "production" && (W.propTypes = {
355
+ process.env.NODE_ENV !== "production" && (j.propTypes = {
356
356
  // ┌────────────────────────────── Warning ──────────────────────────────┐
357
357
  // │ These PropTypes are generated from the TypeScript type definitions. │
358
358
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -446,14 +446,14 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
446
446
  */
447
447
  variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
448
448
  });
449
- const j = [
449
+ const W = [
450
450
  "active",
451
451
  "customBackgroundColor",
452
452
  "customHoverColor",
453
453
  "customTextColor",
454
454
  "customShadow1",
455
455
  "customShadow2"
456
- ], B = s(W, { shouldForwardProp: (o) => !j.includes(o) })`
456
+ ], B = s(j, { shouldForwardProp: (o) => !W.includes(o) })`
457
457
  text-transform: none;
458
458
  &:disabled {
459
459
  opacity: 0.5;
@@ -462,6 +462,10 @@ const j = [
462
462
  justify-content: center;
463
463
  align-items: center;
464
464
  }
465
+
466
+ span {
467
+ align-items: center !important;
468
+ }
465
469
  `, io = s(B)`
466
470
  background-color: ${r.colors.green};
467
471
  height: 2.5rem;
@@ -482,7 +486,7 @@ const j = [
482
486
  background-color: ${r.colors.darkGreen};
483
487
  }
484
488
  `, so = s(B, {
485
- shouldForwardProp: (o) => !j.includes(o)
489
+ shouldForwardProp: (o) => !W.includes(o)
486
490
  })(
487
491
  ({
488
492
  customBackgroundColor: o = r.colors.green,
@@ -491,7 +495,7 @@ const j = [
491
495
  customShadow1: e = r.boxShadows.gray63,
492
496
  customShadow2: d = r.boxShadows.black63
493
497
  }) => ({
494
- ...g`
498
+ ...v`
495
499
  background-color: ${o};
496
500
  border-radius: 0;
497
501
  height: 2.5rem;
@@ -533,7 +537,7 @@ const j = [
533
537
  background-color: ${r.colors.goldHover};
534
538
  }
535
539
  `, z = s(B)(({ width: o = "114px" }) => ({
536
- ...g`
540
+ ...v`
537
541
  box-sizing: border-box;
538
542
  background-color: ${r.colors.bibiBlue};
539
543
  border-radius: 0;
@@ -551,7 +555,7 @@ const j = [
551
555
  }
552
556
  `
553
557
  })), co = s(z)(({ active: o }) => ({
554
- ...g`
558
+ ...v`
555
559
  background-color: ${o && r.colors.white};
556
560
  color: ${o && r.colors.bibiBlue};
557
561
  &:hover,
@@ -561,7 +565,7 @@ const j = [
561
565
  }
562
566
  `
563
567
  })), po = s(z)(() => ({
564
- ...g`
568
+ ...v`
565
569
  background-color: ${r.colors.white};
566
570
  color: ${r.colors.bibiBlue};
567
571
  &:hover,
@@ -571,13 +575,13 @@ const j = [
571
575
  color: ${r.colors.white};
572
576
  }
573
577
  `
574
- })), uo = s(m)`
578
+ })), uo = s(h)`
575
579
  display: block;
576
- `, bo = s(m, {
580
+ `, bo = s(h, {
577
581
  shouldForwardProp: (o) => typeof o == "string" && oo(o)
578
582
  })(
579
583
  ({ size: o, color: a, highlightColor: n, hoverColor: e }) => ({
580
- ...g`
584
+ ...v`
581
585
  display: flex;
582
586
  align-items: center;
583
587
  justify-content: center;
@@ -601,8 +605,8 @@ const j = [
601
605
  }
602
606
  `
603
607
  })
604
- ), vo = s(B)(({ active: o }) => ({
605
- ...g`
608
+ ), go = s(B)(({ active: o }) => ({
609
+ ...v`
606
610
  box-sizing: border-box;
607
611
  background-color: ${o ? r.colors.black : r.colors.white};
608
612
  height: 28px;
@@ -620,7 +624,7 @@ const j = [
620
624
  background-color: ${o ? r.colors.charcoal : r.colors.gray2};
621
625
  }
622
626
  `
623
- })), ho = ({
627
+ })), mo = ({
624
628
  variant: o = 1,
625
629
  size: a = 50,
626
630
  color: n = r.colors.darkGreen,
@@ -631,7 +635,7 @@ const j = [
631
635
  customShadow1: x = r.boxShadows.gray63,
632
636
  customShadow2: f = r.boxShadows.black63,
633
637
  children: l,
634
- active: h,
638
+ active: m,
635
639
  ...c
636
640
  }) => o === "custom" ? /* @__PURE__ */ i(
637
641
  so,
@@ -645,8 +649,8 @@ const j = [
645
649
  ...c,
646
650
  children: l
647
651
  }
648
- ) : o === "bibi" ? /* @__PURE__ */ i(z, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(co, { ...c, children: l }) : o === "bibiInverse" ? /* @__PURE__ */ i(po, { ...c, children: l }) : o === "unstyled" ? /* @__PURE__ */ i(uo, { ...c, children: l }) : o === 2 ? /* @__PURE__ */ i(lo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(bo, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(vo, { className: "jcFilterButton", active: h, ...c, children: l }) : /* @__PURE__ */ i(io, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
652
+ ) : o === "bibi" ? /* @__PURE__ */ i(z, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(co, { ...c, children: l }) : o === "bibiInverse" ? /* @__PURE__ */ i(po, { ...c, children: l }) : o === "unstyled" ? /* @__PURE__ */ i(uo, { ...c, children: l }) : o === 2 ? /* @__PURE__ */ i(lo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(bo, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(go, { className: "jcFilterButton", active: m, ...c, children: l }) : /* @__PURE__ */ i(io, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
649
653
  export {
650
- ho as Button,
651
- ho as default
654
+ mo as Button,
655
+ mo as default
652
656
  };
@@ -1,8 +1,9 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { n as c } from "../.chunks/emotion-styled.browser.esm.js";
2
+ import { n as i } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as a } from "../.chunks/emotion-react.browser.esm.js";
4
- import n from "../theme.js";
5
- const l = c("div")(({ backgroundColor: t, size: r, color: o }) => ({
4
+ import l from "../theme.js";
5
+ import { useThemeColors as m } from "../ThemeContext.js";
6
+ const u = i("div")(({ backgroundColor: t, size: r, color: o }) => ({
6
7
  ...a`
7
8
  background-color: ${t};
8
9
  color: ${o};
@@ -21,22 +22,25 @@ const l = c("div")(({ backgroundColor: t, size: r, color: o }) => ({
21
22
  transform: scale(1.1);
22
23
  }
23
24
  `
24
- })), d = ({
25
- color: t = n.colors.white,
26
- backgroundColor: r = n.colors.green,
25
+ })), x = ({
26
+ color: t = l.colors.white,
27
+ backgroundColor: r,
27
28
  size: o = 20,
28
- onClick: s,
29
- icon: i
30
- }) => /* @__PURE__ */ e(
31
- l,
32
- {
33
- color: t,
34
- backgroundColor: r,
35
- size: o * 1.2,
36
- onClick: s,
37
- children: /* @__PURE__ */ e(i, { size: o * 0.8 })
38
- }
39
- );
29
+ onClick: n,
30
+ icon: s
31
+ }) => {
32
+ const c = m();
33
+ return /* @__PURE__ */ e(
34
+ u,
35
+ {
36
+ color: t,
37
+ backgroundColor: r || c.themeIconBackgroundA,
38
+ size: o * 1.2,
39
+ onClick: n,
40
+ children: /* @__PURE__ */ e(s, { size: o * 0.8 })
41
+ }
42
+ );
43
+ };
40
44
  export {
41
- d as default
45
+ x as default
42
46
  };
@@ -109,7 +109,7 @@ const _ = ({
109
109
  }),
110
110
  [e]
111
111
  );
112
- return /* @__PURE__ */ r(
112
+ return /* @__PURE__ */ r(z.Provider, { value: e, children: /* @__PURE__ */ r(
113
113
  O,
114
114
  {
115
115
  ...n,
@@ -129,12 +129,12 @@ const _ = ({
129
129
  /* @__PURE__ */ r(L, { color: e.themeLight }),
130
130
  /* @__PURE__ */ r(j, { hasPagination: m, isMobile: x, color: e.themeLight })
131
131
  ] }),
132
- /* @__PURE__ */ r(z.Provider, { value: e, children: /* @__PURE__ */ r(H, { children: o }) })
132
+ /* @__PURE__ */ r(H, { children: o })
133
133
  ] })
134
134
  }
135
135
  )
136
136
  }
137
- );
137
+ ) });
138
138
  };
139
139
  export {
140
140
  H as MainContentContainer,
@@ -1,31 +1,43 @@
1
- import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
- import { n as e } from "../.chunks/emotion-styled.browser.esm.js";
3
- import { c as m } from "../.chunks/emotion-react.browser.esm.js";
4
- import c from "../theme.js";
5
- import { Flex as t } from "../Flex/Flex.js";
1
+ import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
+ import { n } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as i } from "../.chunks/emotion-react.browser.esm.js";
4
+ import s from "../theme.js";
5
+ import { Flex as m } from "../Flex/Flex.js";
6
6
  import { DetailItemContainer as p } from "../DetailPageComponents/DetailPageComponents.js";
7
- import s from "../SquareIcon/SquareIcon.js";
8
- const f = e("p")(() => ({
9
- ...m`
7
+ import h from "../SquareIcon/SquareIcon.js";
8
+ import { useThemeColors as f } from "../ThemeContext.js";
9
+ const d = n("p")(() => ({
10
+ ...i`
10
11
  font-size: 0.875rem;
11
12
  font-weight: 500;
12
- color: ${c.colors.charcoal} !important;
13
+ color: ${s.colors.charcoal} !important;
13
14
  margin: 0;
14
15
  margin-bottom: 0.25rem;
15
16
  `
16
- })), d = e("p")(() => ({
17
- ...m`
17
+ })), u = n("p")(() => ({
18
+ ...i`
18
19
  font-size: 1rem;
19
20
  word-wrap: break-word;
20
21
  margin: 0;
21
22
  `
22
- })), b = ({ icon: i, iconSize: n = 20, label: a, value: l }) => /* @__PURE__ */ r(p, { children: /* @__PURE__ */ o(t, { gap: "19px", children: [
23
- /* @__PURE__ */ r(s, { icon: i, iconSize: n }),
24
- /* @__PURE__ */ o(t, { column: !0, children: [
25
- /* @__PURE__ */ r(f, { children: a }),
26
- /* @__PURE__ */ r(d, { children: l })
27
- ] })
28
- ] }) });
23
+ })), j = (r) => /* @__PURE__ */ o(I, { ...r }), I = ({ icon: r, iconSize: c = 20, label: a, value: l }) => {
24
+ const e = f();
25
+ return /* @__PURE__ */ o(p, { children: /* @__PURE__ */ t(m, { gap: "19px", children: [
26
+ /* @__PURE__ */ o(
27
+ h,
28
+ {
29
+ icon: r,
30
+ iconSize: c,
31
+ backgroundColor: e.themeIconBackgroundA,
32
+ color: e.themeIconColorA
33
+ }
34
+ ),
35
+ /* @__PURE__ */ t(m, { column: !0, children: [
36
+ /* @__PURE__ */ o(d, { children: a }),
37
+ /* @__PURE__ */ o(u, { children: l })
38
+ ] })
39
+ ] }) });
40
+ };
29
41
  export {
30
- b as default
42
+ j as default
31
43
  };
@@ -1,3 +1,8 @@
1
+ import { CustomThemeProps } from '../../../../../../../../../src/components/theme';
2
+ import { PropsWithChildren } from 'react';
3
+ interface WithCustomTheme {
4
+ customTheme: CustomThemeProps;
5
+ }
1
6
  export declare const DetailHeader: import('@emotion/styled').StyledComponent<{
2
7
  theme?: import('@emotion/react').Theme;
3
8
  as?: React.ElementType;
@@ -10,15 +15,18 @@ export declare const DetailItemHeader: import('@emotion/styled').StyledComponent
10
15
  theme?: import('@emotion/react').Theme;
11
16
  as?: React.ElementType;
12
17
  }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
13
- export declare const DetailItemContainer: import('@emotion/styled').StyledComponent<{
18
+ export declare const DetailItemContainer: React.FC<PropsWithChildren>;
19
+ export declare const DetailItemContainerStyles: import('@emotion/styled').StyledComponent<{
14
20
  theme?: import('@emotion/react').Theme;
15
21
  as?: React.ElementType;
16
- }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
+ } & WithCustomTheme, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
23
  export interface DetailiconProps {
18
24
  iconColor?: string;
19
25
  backgroundColor?: string;
20
26
  }
21
- export declare const DetailHeaderIcon: import('@emotion/styled').StyledComponent<{
27
+ export declare const DetailHeaderIcon: React.FC<PropsWithChildren & DetailiconProps>;
28
+ export declare const DetailHeaderIconStyles: import('@emotion/styled').StyledComponent<{
22
29
  theme?: import('@emotion/react').Theme;
23
30
  as?: React.ElementType;
24
- } & DetailiconProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
31
+ } & DetailiconProps & WithCustomTheme, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
32
+ export {};
@@ -1,8 +1,10 @@
1
- import { n as o } from "../.chunks/emotion-styled.browser.esm.js";
2
- import { c as t } from "../.chunks/emotion-react.browser.esm.js";
3
- import e from "../theme.js";
4
- const p = o("div")(() => ({
5
- ...t`
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { n as i } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as r } from "../.chunks/emotion-react.browser.esm.js";
4
+ import t from "../theme.js";
5
+ import { useThemeColors as l } from "../ThemeContext.js";
6
+ const f = i("div")(() => ({
7
+ ...r`
6
8
  display: flex;
7
9
  flex-direction: column;
8
10
  padding: 27px 0;
@@ -12,7 +14,7 @@ const p = o("div")(() => ({
12
14
  font-size: 36px;
13
15
  }
14
16
 
15
- border-bottom: 1px solid ${e.colors.gray2};
17
+ border-bottom: 1px solid ${t.colors.gray2};
16
18
 
17
19
  button {
18
20
  font-size: 1rem;
@@ -24,9 +26,9 @@ const p = o("div")(() => ({
24
26
  }
25
27
  }
26
28
  `
27
- })), s = o("p")(() => ({
28
- ...t`
29
- color: ${e.colors.gray};
29
+ })), u = i("p")(() => ({
30
+ ...r`
31
+ color: ${t.colors.gray};
30
32
  line-height: 1;
31
33
  display: flex;
32
34
  align-items: flex-end;
@@ -37,8 +39,8 @@ const p = o("div")(() => ({
37
39
  width: 18px;
38
40
  }
39
41
  `
40
- })), d = o("h2")(() => ({
41
- ...t`
42
+ })), b = i("h2")(() => ({
43
+ ...r`
42
44
  font-size: 27px;
43
45
  font-weight: 600;
44
46
  text-align: left;
@@ -51,13 +53,18 @@ const p = o("div")(() => ({
51
53
  margin-right: 9px;
52
54
  }
53
55
  `
54
- })), x = o("div")(() => ({
55
- ...t`
56
- font-family: ${e.fonts.roboto};
56
+ })), y = ({ children: e }) => {
57
+ const o = l();
58
+ return /* @__PURE__ */ a(p, { customTheme: o, children: e });
59
+ }, p = i("div", {
60
+ shouldForwardProp: (e) => !["customTheme"].includes(e)
61
+ })(({ customTheme: e }) => ({
62
+ ...r`
63
+ font-family: ${t.fonts.roboto};
57
64
  display: flex;
58
65
  flex-direction: column;
59
66
  gap: 13px;
60
- background: ${e.colors.veryLightGray};
67
+ background: ${t.colors.veryLightGray};
61
68
  border-radius: 6px;
62
69
  padding: 21px;
63
70
  margin-bottom: 15px;
@@ -66,7 +73,7 @@ const p = o("div")(() => ({
66
73
  overflow: hidden;
67
74
 
68
75
  p {
69
- color: ${e.colors.gray};
76
+ color: ${t.colors.gray};
70
77
  font-size: 18px;
71
78
  line-height: 1;
72
79
  display: flex;
@@ -90,7 +97,7 @@ const p = o("div")(() => ({
90
97
  left: 0;
91
98
  width: 100%;
92
99
  height: 1px;
93
- background: linear-gradient(90deg, ${e.colors.gold}, ${e.colors.green});
100
+ background: linear-gradient(90deg, ${t.colors.gold}, ${e.themeIconBackgroundA});
94
101
  }
95
102
 
96
103
  &::after {
@@ -100,16 +107,23 @@ const p = o("div")(() => ({
100
107
  left: 0;
101
108
  width: 3px;
102
109
  height: 100%;
103
- background: linear-gradient(180deg, ${e.colors.gold}, ${e.colors.green});
110
+ background: linear-gradient(180deg, ${t.colors.gold}, ${e.themeIconBackgroundA});
104
111
  }
105
112
  `
106
- })), g = o("div")(
107
- ({ iconColor: i = e.colors.white, backgroundColor: r = e.colors.darkGreen }) => ({
108
- ...t`
113
+ })), w = ({
114
+ backgroundColor: e,
115
+ iconColor: o,
116
+ children: n
117
+ }) => {
118
+ const s = l();
119
+ return /* @__PURE__ */ a(d, { backgroundColor: e, iconColor: o, customTheme: s, children: n });
120
+ }, d = i("div")(
121
+ ({ iconColor: e = t.colors.white, backgroundColor: o, customTheme: n }) => ({
122
+ ...r`
109
123
  width: 72px;
110
124
  height: 72px;
111
- background-color: ${r};
112
- color: ${i};
125
+ background-color: ${o || n.themeDark};
126
+ color: ${e};
113
127
  border-radius: 36px;
114
128
  display: flex;
115
129
  align-items: center;
@@ -119,9 +133,11 @@ const p = o("div")(() => ({
119
133
  })
120
134
  );
121
135
  export {
122
- p as DetailHeader,
123
- g as DetailHeaderIcon,
124
- x as DetailItemContainer,
125
- d as DetailItemHeader,
126
- s as DetailSubtext
136
+ f as DetailHeader,
137
+ w as DetailHeaderIcon,
138
+ d as DetailHeaderIconStyles,
139
+ y as DetailItemContainer,
140
+ p as DetailItemContainerStyles,
141
+ b as DetailItemHeader,
142
+ u as DetailSubtext
127
143
  };
@@ -10,6 +10,7 @@ export interface EditableDetailItemWithIconProps {
10
10
  onValueChange?: (newValue: string) => void;
11
11
  onSave?: () => void;
12
12
  onCancel?: () => void;
13
+ passedTheme?: any;
13
14
  }
14
15
  declare const EditableDetailItemWithIcon: React.FC<EditableDetailItemWithIconProps>;
15
16
  export default EditableDetailItemWithIcon;