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,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
29
  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
- );
30
+ icon: n
31
+ }) => {
32
+ const c = m();
33
+ return /* @__PURE__ */ e(
34
+ u,
35
+ {
36
+ color: t,
37
+ backgroundColor: r || c.themeColor,
38
+ size: o * 1.2,
39
+ onClick: s,
40
+ children: /* @__PURE__ */ e(n, { 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;
@@ -1,28 +1,29 @@
1
- import { jsx as r, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
2
  import { useState as y } from "react";
3
- import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
4
- import { c as k } from "../.chunks/emotion-react.browser.esm.js";
5
- import o from "../theme.js";
6
- import { Flex as c } from "../Flex/Flex.js";
7
- import { Input as x } from "../Input/Input.js";
8
- import { DetailItemContainer as C } from "../DetailPageComponents/DetailPageComponents.js";
9
- import I from "../SquareIcon/SquareIcon.js";
10
- import l from "../SquareIconButton/SquareIconButton.js";
11
- import { c as a } from "../.chunks/createLucideIcon.js";
3
+ import { n as k } from "../.chunks/emotion-styled.browser.esm.js";
4
+ import { c as g } from "../.chunks/emotion-react.browser.esm.js";
5
+ import r from "../theme.js";
6
+ import { Flex as n } from "../Flex/Flex.js";
7
+ import { Input as w } from "../Input/Input.js";
8
+ import { DetailItemContainer as x } from "../DetailPageComponents/DetailPageComponents.js";
9
+ import B from "../SquareIcon/SquareIcon.js";
10
+ import m from "../SquareIconButton/SquareIconButton.js";
11
+ import { useThemeColors as _ } from "../ThemeContext.js";
12
+ import { c as s } from "../.chunks/createLucideIcon.js";
12
13
  /**
13
14
  * @license lucide-react v0.525.0 - ISC
14
15
  *
15
16
  * This source code is licensed under the ISC license.
16
17
  * See the LICENSE file in the root directory of this source tree.
17
18
  */
18
- const G = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], _ = a("check", G);
19
+ const D = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], z = s("check", D);
19
20
  /**
20
21
  * @license lucide-react v0.525.0 - ISC
21
22
  *
22
23
  * This source code is licensed under the ISC license.
23
24
  * See the LICENSE file in the root directory of this source tree.
24
25
  */
25
- const z = [
26
+ const j = [
26
27
  [
27
28
  "path",
28
29
  {
@@ -31,88 +32,88 @@ const z = [
31
32
  }
32
33
  ],
33
34
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
34
- ], D = a("pencil", z);
35
+ ], G = s("pencil", j);
35
36
  /**
36
37
  * @license lucide-react v0.525.0 - ISC
37
38
  *
38
39
  * This source code is licensed under the ISC license.
39
40
  * See the LICENSE file in the root directory of this source tree.
40
41
  */
41
- const j = [
42
+ const L = [
42
43
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
43
44
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
44
- ], A = a("x", j), L = h("p")(() => ({
45
- ...k`
45
+ ], N = s("x", L), S = k("p")(() => ({
46
+ ...g`
46
47
  font-size: 0.875rem;
47
48
  font-weight: 500;
48
- color: ${o.colors.charcoal} !important;
49
+ color: ${r.colors.charcoal} !important;
49
50
  margin: 0;
50
51
  margin-bottom: 0.25rem;
51
52
  `
52
- })), N = h("p")(() => ({
53
- ...k`
53
+ })), W = k("p")(() => ({
54
+ ...g`
54
55
  font-size: 1rem;
55
56
  word-wrap: break-word;
56
57
  margin: 0;
57
58
  `
58
- })), H = ({
59
- icon: u,
60
- iconSize: g = 20,
61
- onValueChange: s,
62
- onSave: m,
63
- onCancel: d,
64
- customEditForm: n,
65
- editButtonMarginTop: p,
59
+ })), O = (i) => /* @__PURE__ */ o($, { ...i }), $ = ({
60
+ icon: i,
61
+ iconSize: I = 20,
62
+ onValueChange: p,
63
+ onSave: d,
64
+ onCancel: h,
65
+ customEditForm: l,
66
+ editButtonMarginTop: f,
66
67
  label: b,
67
- value: f
68
+ value: u
68
69
  }) => {
69
- const [e, i] = y(!1);
70
- return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ t(c, { gap: "19px", children: [
71
- /* @__PURE__ */ r(
72
- I,
70
+ const [e, a] = y(!1), t = _();
71
+ return /* @__PURE__ */ o(x, { children: /* @__PURE__ */ c(n, { gap: "19px", children: [
72
+ /* @__PURE__ */ o(
73
+ B,
73
74
  {
74
- icon: u,
75
- iconSize: g,
76
- color: o.colors.darkGreen,
77
- backgroundColor: o.colors.whiteGreenA
75
+ icon: i,
76
+ iconSize: I,
77
+ color: t.themeIconColorB,
78
+ backgroundColor: t.themeIconBackgroundB
78
79
  }
79
80
  ),
80
- /* @__PURE__ */ t(c, { justifyContent: "space-between", width: "100%", gap: "12px", children: [
81
- /* @__PURE__ */ t(c, { column: !0, styles: { flexGrow: 1 }, children: [
82
- /* @__PURE__ */ r(L, { children: b }),
83
- !e && /* @__PURE__ */ r(N, { children: f }),
84
- e && !n && /* @__PURE__ */ r(x, { defaultValue: f, onChange: (w) => s && s(w.target.value) }),
85
- e && n && n
81
+ /* @__PURE__ */ c(n, { justifyContent: "space-between", width: "100%", gap: "12px", children: [
82
+ /* @__PURE__ */ c(n, { column: !0, styles: { flexGrow: 1 }, children: [
83
+ /* @__PURE__ */ o(S, { children: b }),
84
+ !e && /* @__PURE__ */ o(W, { children: u }),
85
+ e && !l && /* @__PURE__ */ o(w, { defaultValue: u, onChange: (C) => p && p(C.target.value) }),
86
+ e && l && l
86
87
  ] }),
87
- !e && /* @__PURE__ */ r(
88
- l,
88
+ !e && /* @__PURE__ */ o(
89
+ m,
89
90
  {
90
- backgroundColor: o.colors.whiteGreenA,
91
- color: o.colors.darkGreen,
92
- icon: D,
93
- onClick: () => i(!0)
91
+ backgroundColor: t.themeIconBackgroundB,
92
+ color: t.themeIconColorB,
93
+ icon: G,
94
+ onClick: () => a(!0)
94
95
  }
95
96
  ),
96
- e && /* @__PURE__ */ t(c, { gap: "9px", styles: { marginTop: p || "0" }, children: [
97
- /* @__PURE__ */ r(
98
- l,
97
+ e && /* @__PURE__ */ c(n, { gap: "9px", styles: { marginTop: f || "0" }, children: [
98
+ /* @__PURE__ */ o(
99
+ m,
99
100
  {
100
- backgroundColor: o.colors.cherryBlossom,
101
- color: o.colors.maroon,
102
- icon: A,
101
+ backgroundColor: r.colors.cherryBlossom,
102
+ color: r.colors.maroon,
103
+ icon: N,
103
104
  onClick: () => {
104
- i(!1), d && d();
105
+ a(!1), h && h();
105
106
  }
106
107
  }
107
108
  ),
108
- /* @__PURE__ */ r(
109
- l,
109
+ /* @__PURE__ */ o(
110
+ m,
110
111
  {
111
- icon: _,
112
- backgroundColor: o.colors.whiteGreenA,
113
- color: o.colors.darkGreen,
112
+ icon: z,
113
+ backgroundColor: r.colors.whiteGreenA,
114
+ color: r.colors.darkGreen,
114
115
  onClick: () => {
115
- i(!1), m && m();
116
+ a(!1), d && d();
116
117
  }
117
118
  }
118
119
  )
@@ -121,5 +122,5 @@ const j = [
121
122
  ] }) });
122
123
  };
123
124
  export {
124
- H as default
125
+ O as default
125
126
  };