jcicl 0.0.181 → 0.0.185

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,6 +1,6 @@
1
1
  import * as z from "react";
2
2
  import { jsxs as I, jsx as b } from "react/jsx-runtime";
3
- import { g as w, a as C, s as T, c as x, u as N, b as O, P as e, d as R } from "./DefaultPropsProvider.js";
3
+ import { a as w, g as C, s as T, e as x, u as N, c as O, P as e, b as R } from "./DefaultPropsProvider.js";
4
4
  import { m as j } from "./memoTheme.js";
5
5
  function E(o) {
6
6
  return w("MuiSvgIcon", o);
@@ -0,0 +1,9 @@
1
+ import { g as t, a as e } from "./DefaultPropsProvider.js";
2
+ function l(i) {
3
+ return e("MuiDivider", i);
4
+ }
5
+ const a = t("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
6
+ export {
7
+ a as d,
8
+ l as g
9
+ };
package/.chunks/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as v, P as h } from "./DefaultPropsProvider.js";
1
+ import { c as v, P as h } from "./DefaultPropsProvider.js";
2
2
  import * as E from "react";
3
3
  import "react/jsx-runtime";
4
4
  function O(n) {
@@ -11,7 +11,7 @@ import { Button as K } from "../Button/Button.js";
11
11
  import i from "../theme.js";
12
12
  import { l as Ae } from "../.chunks/jocologo.js";
13
13
  import { X as je } from "../.chunks/Close.js";
14
- import { P as t, g as Ue, a as Fe, s as ce, r as Ve, c as Z, u as We, b as _, d as Qe } from "../.chunks/DefaultPropsProvider.js";
14
+ import { P as t, a as Ue, g as Fe, s as ce, r as Ve, e as Z, u as We, c as _, b as Qe } from "../.chunks/DefaultPropsProvider.js";
15
15
  import { u as Xe } from "../.chunks/index.js";
16
16
  import { u as Ge, e as Ye, H as _e, a as ke, g as Je, T as Ke, r as Ze, b as me } from "../.chunks/Portal.js";
17
17
  import { m as Ce } from "../.chunks/memoTheme.js";
package/Button/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as H, jsx as l } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import { g as _, a as A, s as c, r as q, c as d, f as J, u as K, b as O, P as t, d as Q, e as v } from "../.chunks/DefaultPropsProvider.js";
3
+ import { a as _, g as A, s as c, r as q, e as d, f as J, u as K, c as O, P as t, b as Q, d as v } from "../.chunks/DefaultPropsProvider.js";
4
4
  import { m as X } from "../.chunks/memoTheme.js";
5
5
  import { c as Y } from "../.chunks/createSimplePaletteValueFilter.js";
6
6
  import { B as S } from "../.chunks/ButtonBase.js";
@@ -1,45 +1,42 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { n as C, i as D } from "../.chunks/emotion-styled.browser.esm.js";
1
+ import { jsx as h } from "react/jsx-runtime";
2
+ import { n as D, i as S } 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, b as L, P as r, d as W, e as $ } from "../.chunks/DefaultPropsProvider.js";
5
- import { m as b } from "../.chunks/memoTheme.js";
6
- function I(t) {
7
- return S("MuiDivider", t);
8
- }
9
- R("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
10
- const O = (t) => {
4
+ import { s as b, u as C, c as R, P as i, b as T, d as $ } from "../.chunks/DefaultPropsProvider.js";
5
+ import { m } from "../.chunks/memoTheme.js";
6
+ import { g as L } from "../.chunks/dividerClasses.js";
7
+ const W = (e) => {
11
8
  const {
12
- absolute: e,
13
- children: i,
9
+ absolute: t,
10
+ children: r,
14
11
  classes: o,
15
12
  flexItem: p,
16
13
  light: s,
17
14
  orientation: a,
18
- textAlign: l,
19
- variant: n
20
- } = t;
21
- return W({
22
- 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"],
15
+ textAlign: n,
16
+ variant: l
17
+ } = e;
18
+ return T({
19
+ root: ["root", t && "absolute", l, s && "light", a === "vertical" && "vertical", p && "flexItem", r && "withChildren", r && a === "vertical" && "withChildrenVertical", n === "right" && a !== "vertical" && "textAlignRight", n === "left" && a !== "vertical" && "textAlignLeft"],
23
20
  wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
24
- }, I, o);
25
- }, V = u("div", {
21
+ }, L, o);
22
+ }, O = b("div", {
26
23
  name: "MuiDivider",
27
24
  slot: "Root",
28
- overridesResolver: (t, e) => {
25
+ overridesResolver: (e, t) => {
29
26
  const {
30
- ownerState: i
31
- } = t;
32
- return [e.root, i.absolute && e.absolute, e[i.variant], i.light && e.light, i.orientation === "vertical" && e.vertical, i.flexItem && e.flexItem, i.children && e.withChildren, i.children && i.orientation === "vertical" && e.withChildrenVertical, i.textAlign === "right" && i.orientation !== "vertical" && e.textAlignRight, i.textAlign === "left" && i.orientation !== "vertical" && e.textAlignLeft];
27
+ ownerState: r
28
+ } = e;
29
+ return [t.root, r.absolute && t.absolute, t[r.variant], r.light && t.light, r.orientation === "vertical" && t.vertical, r.flexItem && t.flexItem, r.children && t.withChildren, r.children && r.orientation === "vertical" && t.withChildrenVertical, r.textAlign === "right" && r.orientation !== "vertical" && t.textAlignRight, r.textAlign === "left" && r.orientation !== "vertical" && t.textAlignLeft];
33
30
  }
34
- })(b(({
35
- theme: t
31
+ })(m(({
32
+ theme: e
36
33
  }) => ({
37
34
  margin: 0,
38
35
  // Reset browser default style.
39
36
  flexShrink: 0,
40
37
  borderWidth: 0,
41
38
  borderStyle: "solid",
42
- borderColor: (t.vars || t).palette.divider,
39
+ borderColor: (e.vars || e).palette.divider,
43
40
  borderBottomWidth: "thin",
44
41
  variants: [{
45
42
  props: {
@@ -56,7 +53,7 @@ const O = (t) => {
56
53
  light: !0
57
54
  },
58
55
  style: {
59
- borderColor: t.vars ? `rgba(${t.vars.palette.dividerChannel} / 0.08)` : $(t.palette.divider, 0.08)
56
+ borderColor: e.vars ? `rgba(${e.vars.palette.dividerChannel} / 0.08)` : $(e.palette.divider, 0.08)
60
57
  }
61
58
  }, {
62
59
  props: {
@@ -71,8 +68,8 @@ const O = (t) => {
71
68
  orientation: "horizontal"
72
69
  },
73
70
  style: {
74
- marginLeft: t.spacing(2),
75
- marginRight: t.spacing(2)
71
+ marginLeft: e.spacing(2),
72
+ marginRight: e.spacing(2)
76
73
  }
77
74
  }, {
78
75
  props: {
@@ -80,8 +77,8 @@ const O = (t) => {
80
77
  orientation: "vertical"
81
78
  },
82
79
  style: {
83
- marginTop: t.spacing(1),
84
- marginBottom: t.spacing(1)
80
+ marginTop: e.spacing(1),
81
+ marginBottom: e.spacing(1)
85
82
  }
86
83
  }, {
87
84
  props: {
@@ -102,8 +99,8 @@ const O = (t) => {
102
99
  }
103
100
  }, {
104
101
  props: ({
105
- ownerState: e
106
- }) => !!e.children,
102
+ ownerState: t
103
+ }) => !!t.children,
107
104
  style: {
108
105
  display: "flex",
109
106
  whiteSpace: "nowrap",
@@ -118,31 +115,31 @@ const O = (t) => {
118
115
  }
119
116
  }, {
120
117
  props: ({
121
- ownerState: e
122
- }) => e.children && e.orientation !== "vertical",
118
+ ownerState: t
119
+ }) => t.children && t.orientation !== "vertical",
123
120
  style: {
124
121
  "&::before, &::after": {
125
122
  width: "100%",
126
- borderTop: `thin solid ${(t.vars || t).palette.divider}`,
123
+ borderTop: `thin solid ${(e.vars || e).palette.divider}`,
127
124
  borderTopStyle: "inherit"
128
125
  }
129
126
  }
130
127
  }, {
131
128
  props: ({
132
- ownerState: e
133
- }) => e.orientation === "vertical" && e.children,
129
+ ownerState: t
130
+ }) => t.orientation === "vertical" && t.children,
134
131
  style: {
135
132
  flexDirection: "column",
136
133
  "&::before, &::after": {
137
134
  height: "100%",
138
- borderLeft: `thin solid ${(t.vars || t).palette.divider}`,
135
+ borderLeft: `thin solid ${(e.vars || e).palette.divider}`,
139
136
  borderLeftStyle: "inherit"
140
137
  }
141
138
  }
142
139
  }, {
143
140
  props: ({
144
- ownerState: e
145
- }) => e.textAlign === "right" && e.orientation !== "vertical",
141
+ ownerState: t
142
+ }) => t.textAlign === "right" && t.orientation !== "vertical",
146
143
  style: {
147
144
  "&::before": {
148
145
  width: "90%"
@@ -153,8 +150,8 @@ const O = (t) => {
153
150
  }
154
151
  }, {
155
152
  props: ({
156
- ownerState: e
157
- }) => e.textAlign === "left" && e.orientation !== "vertical",
153
+ ownerState: t
154
+ }) => t.textAlign === "left" && t.orientation !== "vertical",
158
155
  style: {
159
156
  "&::before": {
160
157
  width: "10%"
@@ -164,68 +161,68 @@ const O = (t) => {
164
161
  }
165
162
  }
166
163
  }]
167
- }))), N = u("span", {
164
+ }))), I = b("span", {
168
165
  name: "MuiDivider",
169
166
  slot: "Wrapper",
170
- overridesResolver: (t, e) => {
167
+ overridesResolver: (e, t) => {
171
168
  const {
172
- ownerState: i
173
- } = t;
174
- return [e.wrapper, i.orientation === "vertical" && e.wrapperVertical];
169
+ ownerState: r
170
+ } = e;
171
+ return [t.wrapper, r.orientation === "vertical" && t.wrapperVertical];
175
172
  }
176
- })(b(({
177
- theme: t
173
+ })(m(({
174
+ theme: e
178
175
  }) => ({
179
176
  display: "inline-block",
180
- paddingLeft: `calc(${t.spacing(1)} * 1.2)`,
181
- paddingRight: `calc(${t.spacing(1)} * 1.2)`,
177
+ paddingLeft: `calc(${e.spacing(1)} * 1.2)`,
178
+ paddingRight: `calc(${e.spacing(1)} * 1.2)`,
182
179
  variants: [{
183
180
  props: {
184
181
  orientation: "vertical"
185
182
  },
186
183
  style: {
187
- paddingTop: `calc(${t.spacing(1)} * 1.2)`,
188
- paddingBottom: `calc(${t.spacing(1)} * 1.2)`
184
+ paddingTop: `calc(${e.spacing(1)} * 1.2)`,
185
+ paddingBottom: `calc(${e.spacing(1)} * 1.2)`
189
186
  }
190
187
  }]
191
- }))), d = /* @__PURE__ */ A.forwardRef(function(e, i) {
192
- const o = T({
193
- props: e,
188
+ }))), d = /* @__PURE__ */ A.forwardRef(function(t, r) {
189
+ const o = C({
190
+ props: t,
194
191
  name: "MuiDivider"
195
192
  }), {
196
193
  absolute: p = !1,
197
194
  children: s,
198
195
  className: a,
199
- orientation: l = "horizontal",
200
- component: n = s || l === "vertical" ? "div" : "hr",
201
- flexItem: f = !1,
202
- light: m = !1,
203
- role: c = n !== "hr" ? "separator" : void 0,
196
+ orientation: n = "horizontal",
197
+ component: l = s || n === "vertical" ? "div" : "hr",
198
+ flexItem: g = !1,
199
+ light: u = !1,
200
+ role: c = l !== "hr" ? "separator" : void 0,
204
201
  textAlign: x = "center",
205
202
  variant: w = "fullWidth",
206
203
  ...y
207
- } = o, h = {
204
+ } = o, f = {
208
205
  ...o,
209
206
  absolute: p,
210
- component: n,
211
- flexItem: f,
212
- light: m,
213
- orientation: l,
207
+ component: l,
208
+ flexItem: g,
209
+ light: u,
210
+ orientation: n,
214
211
  role: c,
215
212
  textAlign: x,
216
213
  variant: w
217
- }, v = O(h);
218
- return /* @__PURE__ */ g(V, {
219
- as: n,
220
- className: L(v.root, a),
214
+ }, v = W(f);
215
+ return /* @__PURE__ */ h(O, {
216
+ as: l,
217
+ className: R(v.root, a),
221
218
  role: c,
222
- ref: i,
223
- ownerState: h,
224
- "aria-orientation": c === "separator" && (n !== "hr" || l === "vertical") ? l : void 0,
219
+ ref: r,
220
+ ownerState: f,
221
+ "aria-orientation": c === "separator" && (l !== "hr" || n === "vertical") ? n : void 0,
225
222
  ...y,
226
- children: s ? /* @__PURE__ */ g(N, {
223
+ children: s ? /* @__PURE__ */ h(I, {
227
224
  className: v.wrapper,
228
- ownerState: h,
225
+ ownerState: f,
229
226
  children: s
230
227
  }) : null
231
228
  });
@@ -240,71 +237,71 @@ process.env.NODE_ENV !== "production" && (d.propTypes = {
240
237
  * Absolutely position the element.
241
238
  * @default false
242
239
  */
243
- absolute: r.bool,
240
+ absolute: i.bool,
244
241
  /**
245
242
  * The content of the component.
246
243
  */
247
- children: r.node,
244
+ children: i.node,
248
245
  /**
249
246
  * Override or extend the styles applied to the component.
250
247
  */
251
- classes: r.object,
248
+ classes: i.object,
252
249
  /**
253
250
  * @ignore
254
251
  */
255
- className: r.string,
252
+ className: i.string,
256
253
  /**
257
254
  * The component used for the root node.
258
255
  * Either a string to use a HTML element or a component.
259
256
  */
260
- component: r.elementType,
257
+ component: i.elementType,
261
258
  /**
262
259
  * If `true`, a vertical divider will have the correct height when used in flex container.
263
260
  * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
264
261
  * @default false
265
262
  */
266
- flexItem: r.bool,
263
+ flexItem: i.bool,
267
264
  /**
268
265
  * If `true`, the divider will have a lighter color.
269
266
  * @default false
270
267
  * @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
271
268
  */
272
- light: r.bool,
269
+ light: i.bool,
273
270
  /**
274
271
  * The component orientation.
275
272
  * @default 'horizontal'
276
273
  */
277
- orientation: r.oneOf(["horizontal", "vertical"]),
274
+ orientation: i.oneOf(["horizontal", "vertical"]),
278
275
  /**
279
276
  * @ignore
280
277
  */
281
- role: r.string,
278
+ role: i.string,
282
279
  /**
283
280
  * The system prop that allows defining system overrides as well as additional CSS styles.
284
281
  */
285
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
282
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
286
283
  /**
287
284
  * The text alignment.
288
285
  * @default 'center'
289
286
  */
290
- textAlign: r.oneOf(["center", "left", "right"]),
287
+ textAlign: i.oneOf(["center", "left", "right"]),
291
288
  /**
292
289
  * The variant to use.
293
290
  * @default 'fullWidth'
294
291
  */
295
- variant: r.oneOfType([r.oneOf(["fullWidth", "inset", "middle"]), r.string])
292
+ variant: i.oneOfType([i.oneOf(["fullWidth", "inset", "middle"]), i.string])
296
293
  });
297
- const B = C(d, {
298
- shouldForwardProp: (t) => D(t) && typeof t == "string"
299
- })(({ color: t = "midnight", opacity: e = 1, spacing: i = 8, vertical: o }) => ({
300
- borderBottomColor: o ? "transparent" : t,
301
- borderRightColor: o ? t : "transparent",
302
- opacity: e,
303
- margin: o ? `0 ${i}px` : `${i}px 0`,
294
+ const N = D(d, {
295
+ shouldForwardProp: (e) => S(e) && typeof e == "string"
296
+ })(({ color: e = "midnight", opacity: t = 1, spacing: r = 8, vertical: o }) => ({
297
+ borderBottomColor: o ? "transparent" : e,
298
+ borderRightColor: o ? e : "transparent",
299
+ opacity: t,
300
+ margin: o ? `0 ${r}px` : `${r}px 0`,
304
301
  height: o ? "100%" : 0,
305
302
  width: o ? 1 : "100%"
306
- })), k = ({ orientation: t, ...e }) => /* @__PURE__ */ g(B, { vertical: t === "vertical", ...e });
303
+ })), z = ({ orientation: e, ...t }) => /* @__PURE__ */ h(N, { vertical: e === "vertical", ...t });
307
304
  export {
308
- k as Divider,
309
- k as default
305
+ z as Divider,
306
+ z as default
310
307
  };
@@ -1,6 +1,7 @@
1
1
  import { LabeledInputProps } from '../../../../../../../../../src/components/composite/LabeledInput';
2
2
  import { LabeledCheckboxProps } from '../../../../../../../../../src/components/composite/LabeledCheckbox';
3
- export type AllInputProps = LabeledInputProps | LabeledCheckboxProps;
3
+ import { LabeledDropdownProps } from '../../../../../../../../../src/components/composite/LabeledDropdown';
4
+ export type AllInputProps = LabeledInputProps | LabeledCheckboxProps | LabeledDropdownProps;
4
5
  export type FormInputProps = AllInputProps & {
5
6
  type?: 'text' | 'dropdown' | 'date' | 'number' | 'checkbox' | 'radio' | 'textarea';
6
7
  };
@@ -1,11 +1,12 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { LabeledInput as r } from "../LabeledInput/LabeledInput.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { LabeledInput as t } from "../LabeledInput/LabeledInput.js";
3
3
  import { LabeledCheckbox as m } from "../LabeledCheckbox/LabeledCheckbox.js";
4
- const a = (e) => {
5
- const { type: t = "text" } = e;
6
- return t === "checkbox" ? /* @__PURE__ */ o(m, { ...e }) : /* @__PURE__ */ o(r, { ...e, type: t });
4
+ import { LabeledDropdown as d } from "../LabeledDropdown/LabeledDropdown.js";
5
+ const n = (o) => {
6
+ const { type: e = "text" } = o;
7
+ return e === "dropdown" && (d, { ...o }), e === "checkbox" ? /* @__PURE__ */ r(m, { ...o }) : /* @__PURE__ */ r(t, { ...o, type: e });
7
8
  };
8
9
  export {
9
- a as FormInput,
10
- a as default
10
+ n as FormInput,
11
+ n as default
11
12
  };
@@ -3,7 +3,7 @@ import { n as oe } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as te } from "../.chunks/emotion-react.browser.esm.js";
4
4
  import ae from "../theme.js";
5
5
  import * as v from "react";
6
- import { g as E, a as q, s as O, r as V, b as U, P as e, c as b, d as H, e as T, u as ne } from "../.chunks/DefaultPropsProvider.js";
6
+ import { a as E, g as q, s as O, r as V, c as U, P as e, e as b, b as H, d as T, u as ne } from "../.chunks/DefaultPropsProvider.js";
7
7
  import { u as se } from "../.chunks/useFormControl.js";
8
8
  import { B as re } from "../.chunks/ButtonBase.js";
9
9
  import { u as ce } from "../.chunks/useControlled.js";
@@ -1,7 +1,14 @@
1
1
  import { SelectProps } from '@mui/material/Select';
2
+ export type DropdownOption = {
3
+ label: string;
4
+ value: string | number;
5
+ };
2
6
  export type LabeledDropdownProps = {
3
7
  label: string;
4
8
  colon?: boolean;
9
+ options: DropdownOption[];
10
+ borderFocusColor?: string;
11
+ minWidth?: string;
5
12
  } & SelectProps;
6
13
  export declare const LabeledDropdown: React.FC<LabeledDropdownProps>;
7
14
  export default LabeledDropdown;