jcicl 1.0.11 → 1.0.15

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 { ButtonProps as MuiButtonProps } from '@mui/material/Button/Button';
2
2
  export interface ButtonProps extends Omit<MuiButtonProps, 'variant' | 'size' | 'color'> {
3
- variant?: 1 | 2 | 'unstyled' | 'copy' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse' | 'filter' | 'custom';
3
+ variant?: 1 | 2 | 'unstyled' | 'copy' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse' | 'filter' | 'custom' | 'pill';
4
4
  size?: number;
5
5
  color?: string;
6
6
  highlightColor?: string;
package/Button/Button.js CHANGED
@@ -1,42 +1,43 @@
1
- import { jsxs as I, jsx as i } from "react/jsx-runtime";
2
- import * as w from "react";
1
+ import { jsxs as T, jsx as i } from "react/jsx-runtime";
2
+ import * as B from "react";
3
3
  import { useState as q } from "react";
4
- import { g as J, a as K, s, r as Q, c as p, h as X, u as Y, b as P, P as r, d as Z, e as $ } from "../.chunks/DefaultPropsProvider.js";
4
+ import { g as J, a as K, s, r as Q, c as p, h as X, u as Y, b as W, P as e, d as Z, e as h } from "../.chunks/DefaultPropsProvider.js";
5
5
  import { m as oo } from "../.chunks/memoTheme.js";
6
6
  import { c as to } from "../.chunks/createSimplePaletteValueFilter.js";
7
- import { B as O } from "../.chunks/ButtonBase.js";
7
+ import { B as k } from "../.chunks/ButtonBase.js";
8
8
  import { i as ro } from "../.chunks/emotion-styled.browser.esm.js";
9
- import { c as v } from "../.chunks/emotion-react.browser.esm.js";
9
+ import { c as g } from "../.chunks/emotion-react.browser.esm.js";
10
10
  import t from "../theme.js";
11
- import { Tooltip as ao } from "../Tooltip/Tooltip.js";
12
- import { C as eo } from "../.chunks/check.js";
13
- function no(o) {
11
+ import { Tooltip as eo } from "../Tooltip/Tooltip.js";
12
+ import { useThemeColors as ao } from "../ThemeContext.js";
13
+ import { C as no } from "../.chunks/check.js";
14
+ function io(o) {
14
15
  return J("MuiButton", o);
15
16
  }
16
- const g = K("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"]), W = /* @__PURE__ */ w.createContext({});
17
- process.env.NODE_ENV !== "production" && (W.displayName = "ButtonGroupContext");
18
- const j = /* @__PURE__ */ w.createContext(void 0);
19
- process.env.NODE_ENV !== "production" && (j.displayName = "ButtonGroupButtonContext");
20
- const io = (o) => {
17
+ const x = K("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"]), j = /* @__PURE__ */ B.createContext({});
18
+ process.env.NODE_ENV !== "production" && (j.displayName = "ButtonGroupContext");
19
+ const V = /* @__PURE__ */ B.createContext(void 0);
20
+ process.env.NODE_ENV !== "production" && (V.displayName = "ButtonGroupButtonContext");
21
+ const so = (o) => {
21
22
  const {
22
- color: a,
23
- disableElevation: e,
23
+ color: r,
24
+ disableElevation: a,
24
25
  fullWidth: n,
25
- size: d,
26
+ size: c,
26
27
  variant: u,
27
28
  classes: b
28
- } = o, x = {
29
- root: ["root", u, `${u}${p(a)}`, `size${p(d)}`, `${u}Size${p(d)}`, `color${p(a)}`, e && "disableElevation", n && "fullWidth"],
29
+ } = o, v = {
30
+ root: ["root", u, `${u}${p(r)}`, `size${p(c)}`, `${u}Size${p(c)}`, `color${p(r)}`, a && "disableElevation", n && "fullWidth"],
30
31
  label: ["label"],
31
- startIcon: ["icon", "startIcon", `iconSize${p(d)}`],
32
- endIcon: ["icon", "endIcon", `iconSize${p(d)}`]
33
- }, f = Z(x, no, b);
32
+ startIcon: ["icon", "startIcon", `iconSize${p(c)}`],
33
+ endIcon: ["icon", "endIcon", `iconSize${p(c)}`]
34
+ }, f = Z(v, io, b);
34
35
  return {
35
36
  ...b,
36
37
  // forward the focused, disabled, etc. classes to the ButtonBase
37
38
  ...f
38
39
  };
39
- }, V = [{
40
+ }, F = [{
40
41
  props: {
41
42
  size: "small"
42
43
  },
@@ -63,20 +64,20 @@ const io = (o) => {
63
64
  fontSize: 22
64
65
  }
65
66
  }
66
- }], so = s(O, {
67
+ }], lo = s(k, {
67
68
  shouldForwardProp: (o) => Q(o) || o === "classes",
68
69
  name: "MuiButton",
69
70
  slot: "Root",
70
- overridesResolver: (o, a) => {
71
+ overridesResolver: (o, r) => {
71
72
  const {
72
- ownerState: e
73
+ ownerState: a
73
74
  } = o;
74
- return [a.root, a[e.variant], a[`${e.variant}${p(e.color)}`], a[`size${p(e.size)}`], a[`${e.variant}Size${p(e.size)}`], e.color === "inherit" && a.colorInherit, e.disableElevation && a.disableElevation, e.fullWidth && a.fullWidth];
75
+ return [r.root, r[a.variant], r[`${a.variant}${p(a.color)}`], r[`size${p(a.size)}`], r[`${a.variant}Size${p(a.size)}`], a.color === "inherit" && r.colorInherit, a.disableElevation && r.disableElevation, a.fullWidth && r.fullWidth];
75
76
  }
76
77
  })(oo(({
77
78
  theme: o
78
79
  }) => {
79
- const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
80
+ const r = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], a = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
80
81
  return {
81
82
  ...o.typography.button,
82
83
  minWidth: 64,
@@ -89,7 +90,7 @@ const io = (o) => {
89
90
  "&:hover": {
90
91
  textDecoration: "none"
91
92
  },
92
- [`&.${g.disabled}`]: {
93
+ [`&.${x.disabled}`]: {
93
94
  color: (o.vars || o).palette.action.disabled
94
95
  },
95
96
  variants: [{
@@ -110,10 +111,10 @@ const io = (o) => {
110
111
  "&:active": {
111
112
  boxShadow: (o.vars || o).shadows[8]
112
113
  },
113
- [`&.${g.focusVisible}`]: {
114
+ [`&.${x.focusVisible}`]: {
114
115
  boxShadow: (o.vars || o).shadows[6]
115
116
  },
116
- [`&.${g.disabled}`]: {
117
+ [`&.${x.disabled}`]: {
117
118
  color: (o.vars || o).palette.action.disabled,
118
119
  boxShadow: (o.vars || o).shadows[0],
119
120
  backgroundColor: (o.vars || o).palette.action.disabledBackground
@@ -129,7 +130,7 @@ const io = (o) => {
129
130
  borderColor: "var(--variant-outlinedBorder, currentColor)",
130
131
  backgroundColor: "var(--variant-outlinedBg)",
131
132
  color: "var(--variant-outlinedColor)",
132
- [`&.${g.disabled}`]: {
133
+ [`&.${x.disabled}`]: {
133
134
  border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
134
135
  }
135
136
  }
@@ -149,15 +150,15 @@ const io = (o) => {
149
150
  style: {
150
151
  "--variant-textColor": (o.vars || o).palette[n].main,
151
152
  "--variant-outlinedColor": (o.vars || o).palette[n].main,
152
- "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[n].mainChannel} / 0.5)` : $(o.palette[n].main, 0.5),
153
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[n].mainChannel} / 0.5)` : h(o.palette[n].main, 0.5),
153
154
  "--variant-containedColor": (o.vars || o).palette[n].contrastText,
154
155
  "--variant-containedBg": (o.vars || o).palette[n].main,
155
156
  "@media (hover: hover)": {
156
157
  "&:hover": {
157
158
  "--variant-containedBg": (o.vars || o).palette[n].dark,
158
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette[n].main, o.palette.action.hoverOpacity),
159
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : h(o.palette[n].main, o.palette.action.hoverOpacity),
159
160
  "--variant-outlinedBorder": (o.vars || o).palette[n].main,
160
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette[n].main, o.palette.action.hoverOpacity)
161
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : h(o.palette[n].main, o.palette.action.hoverOpacity)
161
162
  }
162
163
  }
163
164
  }
@@ -168,12 +169,12 @@ const io = (o) => {
168
169
  style: {
169
170
  color: "inherit",
170
171
  borderColor: "currentColor",
171
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
172
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : r,
172
173
  "@media (hover: hover)": {
173
174
  "&:hover": {
174
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
175
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette.text.primary, o.palette.action.hoverOpacity),
176
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette.text.primary, o.palette.action.hoverOpacity)
175
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
176
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : h(o.palette.text.primary, o.palette.action.hoverOpacity),
177
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : h(o.palette.text.primary, o.palette.action.hoverOpacity)
177
178
  }
178
179
  }
179
180
  }
@@ -240,13 +241,13 @@ const io = (o) => {
240
241
  "&:hover": {
241
242
  boxShadow: "none"
242
243
  },
243
- [`&.${g.focusVisible}`]: {
244
+ [`&.${x.focusVisible}`]: {
244
245
  boxShadow: "none"
245
246
  },
246
247
  "&:active": {
247
248
  boxShadow: "none"
248
249
  },
249
- [`&.${g.disabled}`]: {
250
+ [`&.${x.disabled}`]: {
250
251
  boxShadow: "none"
251
252
  }
252
253
  }
@@ -259,14 +260,14 @@ const io = (o) => {
259
260
  }
260
261
  }]
261
262
  };
262
- })), lo = s("span", {
263
+ })), co = s("span", {
263
264
  name: "MuiButton",
264
265
  slot: "StartIcon",
265
- overridesResolver: (o, a) => {
266
+ overridesResolver: (o, r) => {
266
267
  const {
267
- ownerState: e
268
+ ownerState: a
268
269
  } = o;
269
- return [a.startIcon, a[`iconSize${p(e.size)}`]];
270
+ return [r.startIcon, r[`iconSize${p(a.size)}`]];
270
271
  }
271
272
  })({
272
273
  display: "inherit",
@@ -279,15 +280,15 @@ const io = (o) => {
279
280
  style: {
280
281
  marginLeft: -2
281
282
  }
282
- }, ...V]
283
- }), co = s("span", {
283
+ }, ...F]
284
+ }), po = s("span", {
284
285
  name: "MuiButton",
285
286
  slot: "EndIcon",
286
- overridesResolver: (o, a) => {
287
+ overridesResolver: (o, r) => {
287
288
  const {
288
- ownerState: e
289
+ ownerState: a
289
290
  } = o;
290
- return [a.endIcon, a[`iconSize${p(e.size)}`]];
291
+ return [r.endIcon, r[`iconSize${p(a.size)}`]];
291
292
  }
292
293
  })({
293
294
  display: "inherit",
@@ -300,62 +301,62 @@ const io = (o) => {
300
301
  style: {
301
302
  marginRight: -2
302
303
  }
303
- }, ...V]
304
- }), F = /* @__PURE__ */ w.forwardRef(function(a, e) {
305
- const n = w.useContext(W), d = w.useContext(j), u = X(n, a), b = Y({
304
+ }, ...F]
305
+ }), M = /* @__PURE__ */ B.forwardRef(function(r, a) {
306
+ const n = B.useContext(j), c = B.useContext(V), u = X(n, r), b = Y({
306
307
  props: u,
307
308
  name: "MuiButton"
308
309
  }), {
309
- children: x,
310
+ children: v,
310
311
  color: f = "primary",
311
312
  component: l = "button",
312
- className: z,
313
- disabled: B = !1,
314
- disableElevation: c = !1,
313
+ className: I,
314
+ disabled: S = !1,
315
+ disableElevation: d = !1,
315
316
  disableFocusRipple: y = !1,
316
317
  endIcon: m,
317
- focusVisibleClassName: R,
318
- fullWidth: k = !1,
319
- size: L = "medium",
320
- startIcon: T,
321
- type: E,
318
+ focusVisibleClassName: z,
319
+ fullWidth: R = !1,
320
+ size: O = "medium",
321
+ startIcon: E,
322
+ type: P,
322
323
  variant: H = "text",
323
324
  ...D
324
325
  } = b, C = {
325
326
  ...b,
326
327
  color: f,
327
328
  component: l,
328
- disabled: B,
329
- disableElevation: c,
329
+ disabled: S,
330
+ disableElevation: d,
330
331
  disableFocusRipple: y,
331
- fullWidth: k,
332
- size: L,
333
- type: E,
332
+ fullWidth: R,
333
+ size: O,
334
+ type: P,
334
335
  variant: H
335
- }, h = io(C), U = T && /* @__PURE__ */ i(lo, {
336
- className: h.startIcon,
336
+ }, $ = so(C), U = E && /* @__PURE__ */ i(co, {
337
+ className: $.startIcon,
337
338
  ownerState: C,
338
- children: T
339
- }), _ = m && /* @__PURE__ */ i(co, {
340
- className: h.endIcon,
339
+ children: E
340
+ }), _ = m && /* @__PURE__ */ i(po, {
341
+ className: $.endIcon,
341
342
  ownerState: C,
342
343
  children: m
343
- }), A = d || "";
344
- return /* @__PURE__ */ I(so, {
344
+ }), A = c || "";
345
+ return /* @__PURE__ */ T(lo, {
345
346
  ownerState: C,
346
- className: P(n.className, h.root, z, A),
347
+ className: W(n.className, $.root, I, A),
347
348
  component: l,
348
- disabled: B,
349
+ disabled: S,
349
350
  focusRipple: !y,
350
- focusVisibleClassName: P(h.focusVisible, R),
351
- ref: e,
352
- type: E,
351
+ focusVisibleClassName: W($.focusVisible, z),
352
+ ref: a,
353
+ type: P,
353
354
  ...D,
354
- classes: h,
355
- children: [U, x, _]
355
+ classes: $,
356
+ children: [U, v, _]
356
357
  });
357
358
  });
358
- process.env.NODE_ENV !== "production" && (F.propTypes = {
359
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
359
360
  // ┌────────────────────────────── Warning ──────────────────────────────┐
360
361
  // │ These PropTypes are generated from the TypeScript type definitions. │
361
362
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -363,42 +364,42 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
363
364
  /**
364
365
  * The content of the component.
365
366
  */
366
- children: r.node,
367
+ children: e.node,
367
368
  /**
368
369
  * Override or extend the styles applied to the component.
369
370
  */
370
- classes: r.object,
371
+ classes: e.object,
371
372
  /**
372
373
  * @ignore
373
374
  */
374
- className: r.string,
375
+ className: e.string,
375
376
  /**
376
377
  * The color of the component.
377
378
  * It supports both default and custom theme colors, which can be added as shown in the
378
379
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
379
380
  * @default 'primary'
380
381
  */
381
- color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), r.string]),
382
+ color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), e.string]),
382
383
  /**
383
384
  * The component used for the root node.
384
385
  * Either a string to use a HTML element or a component.
385
386
  */
386
- component: r.elementType,
387
+ component: e.elementType,
387
388
  /**
388
389
  * If `true`, the component is disabled.
389
390
  * @default false
390
391
  */
391
- disabled: r.bool,
392
+ disabled: e.bool,
392
393
  /**
393
394
  * If `true`, no elevation is used.
394
395
  * @default false
395
396
  */
396
- disableElevation: r.bool,
397
+ disableElevation: e.bool,
397
398
  /**
398
399
  * If `true`, the keyboard focus ripple is disabled.
399
400
  * @default false
400
401
  */
401
- disableFocusRipple: r.bool,
402
+ disableFocusRipple: e.bool,
402
403
  /**
403
404
  * If `true`, the ripple effect is disabled.
404
405
  *
@@ -406,57 +407,57 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
406
407
  * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
407
408
  * @default false
408
409
  */
409
- disableRipple: r.bool,
410
+ disableRipple: e.bool,
410
411
  /**
411
412
  * Element placed after the children.
412
413
  */
413
- endIcon: r.node,
414
+ endIcon: e.node,
414
415
  /**
415
416
  * @ignore
416
417
  */
417
- focusVisibleClassName: r.string,
418
+ focusVisibleClassName: e.string,
418
419
  /**
419
420
  * If `true`, the button will take up the full width of its container.
420
421
  * @default false
421
422
  */
422
- fullWidth: r.bool,
423
+ fullWidth: e.bool,
423
424
  /**
424
425
  * The URL to link to when the button is clicked.
425
426
  * If defined, an `a` element will be used as the root node.
426
427
  */
427
- href: r.string,
428
+ href: e.string,
428
429
  /**
429
430
  * The size of the component.
430
431
  * `small` is equivalent to the dense button styling.
431
432
  * @default 'medium'
432
433
  */
433
- size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
434
+ size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
434
435
  /**
435
436
  * Element placed before the children.
436
437
  */
437
- startIcon: r.node,
438
+ startIcon: e.node,
438
439
  /**
439
440
  * The system prop that allows defining system overrides as well as additional CSS styles.
440
441
  */
441
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
442
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
442
443
  /**
443
444
  * @ignore
444
445
  */
445
- type: r.oneOfType([r.oneOf(["button", "reset", "submit"]), r.string]),
446
+ type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string]),
446
447
  /**
447
448
  * The variant to use.
448
449
  * @default 'text'
449
450
  */
450
- variant: r.oneOfType([r.oneOf(["contained", "outlined", "text"]), r.string])
451
+ variant: e.oneOfType([e.oneOf(["contained", "outlined", "text"]), e.string])
451
452
  });
452
- const M = [
453
+ const G = [
453
454
  "active",
454
455
  "customBackgroundColor",
455
456
  "customHoverColor",
456
457
  "customTextColor",
457
458
  "customShadow1",
458
459
  "customShadow2"
459
- ], S = s(F, { shouldForwardProp: (o) => !M.includes(o) })`
460
+ ], w = s(M, { shouldForwardProp: (o) => !G.includes(o) })`
460
461
  text-transform: none;
461
462
  &:disabled {
462
463
  opacity: 0.5;
@@ -469,7 +470,7 @@ const M = [
469
470
  span {
470
471
  align-items: center !important;
471
472
  }
472
- `, po = s(S)`
473
+ `, uo = s(w)`
473
474
  background-color: ${t.colors.green};
474
475
  height: 2.5rem;
475
476
  border: 2px solid transparent;
@@ -488,22 +489,22 @@ const M = [
488
489
  &:disabled {
489
490
  background-color: ${t.colors.darkGreen};
490
491
  }
491
- `, uo = s(S, {
492
- shouldForwardProp: (o) => !M.includes(o)
492
+ `, bo = s(w, {
493
+ shouldForwardProp: (o) => !G.includes(o)
493
494
  })(
494
495
  ({
495
496
  customBackgroundColor: o = t.colors.green,
496
- customHoverColor: a = t.colors.darkGreen,
497
- customTextColor: e = t.colors.white,
497
+ customHoverColor: r = t.colors.darkGreen,
498
+ customTextColor: a = t.colors.white,
498
499
  customShadow1: n = t.boxShadows.gray63,
499
- customShadow2: d = t.boxShadows.black63
500
+ customShadow2: c = t.boxShadows.black63
500
501
  }) => ({
501
- ...v`
502
+ ...g`
502
503
  background-color: ${o};
503
504
  border-radius: 0;
504
505
  height: 2.5rem;
505
506
  border: 2px solid transparent;
506
- color: ${e};
507
+ color: ${a};
507
508
  transition: 313ms all ease-in;
508
509
  border-radius: 32px;
509
510
  font-weight: 400;
@@ -512,15 +513,15 @@ const M = [
512
513
  box-shadow: ${n};
513
514
  &:hover,
514
515
  :focus-visible {
515
- background-color: ${a};
516
- box-shadow: ${d};
516
+ background-color: ${r};
517
+ box-shadow: ${c};
517
518
  }
518
519
  &:disabled {
519
- background-color: ${a};
520
+ background-color: ${r};
520
521
  }
521
522
  `
522
523
  })
523
- ), bo = s(S)`
524
+ ), go = s(w)`
524
525
  background-color: ${t.colors.gold};
525
526
  height: 2.5rem;
526
527
  border: 2px solid transparent;
@@ -539,8 +540,8 @@ const M = [
539
540
  &:disabled {
540
541
  background-color: ${t.colors.goldHover};
541
542
  }
542
- `, N = s(S)(({ width: o = "114px" }) => ({
543
- ...v`
543
+ `, N = s(w)(({ width: o = "114px" }) => ({
544
+ ...g`
544
545
  box-sizing: border-box;
545
546
  background-color: ${t.colors.bibiBlue};
546
547
  border-radius: 0;
@@ -557,8 +558,8 @@ const M = [
557
558
  background-color: ${t.colors.bibiBlueHover};
558
559
  }
559
560
  `
560
- })), go = s(N)(({ active: o }) => ({
561
- ...v`
561
+ })), xo = s(N)(({ active: o }) => ({
562
+ ...g`
562
563
  background-color: ${o && t.colors.white};
563
564
  color: ${o && t.colors.bibiBlue};
564
565
  &:hover,
@@ -568,7 +569,7 @@ const M = [
568
569
  }
569
570
  `
570
571
  })), vo = s(N)(() => ({
571
- ...v`
572
+ ...g`
572
573
  background-color: ${t.colors.white};
573
574
  color: ${t.colors.bibiBlue};
574
575
  &:hover,
@@ -578,13 +579,13 @@ const M = [
578
579
  color: ${t.colors.white};
579
580
  }
580
581
  `
581
- })), G = s(O)`
582
+ })), L = s(k)`
582
583
  display: block;
583
- `, xo = s(G)`
584
+ `, fo = s(L)`
584
585
  font-family: inherit;
585
586
  font-size: inherit;
586
587
  font-weight: inherit;
587
- `, fo = s("div")`
588
+ `, yo = s("div")`
588
589
  display: flex;
589
590
  .isCopied {
590
591
  color: ${t.colors.gray};
@@ -599,11 +600,11 @@ const M = [
599
600
  width: 14px !important;
600
601
  margin: 0;
601
602
  }
602
- `, yo = s(O, {
603
+ `, mo = s(k, {
603
604
  shouldForwardProp: (o) => typeof o == "string" && ro(o)
604
605
  })(
605
- ({ size: o, color: a, highlightColor: e, hoverColor: n }) => ({
606
- ...v`
606
+ ({ size: o, color: r, highlightColor: a, hoverColor: n }) => ({
607
+ ...g`
607
608
  display: flex;
608
609
  align-items: center;
609
610
  justify-content: center;
@@ -613,22 +614,22 @@ const M = [
613
614
  &:hover,
614
615
  :focus-visible {
615
616
  svg {
616
- filter: drop-shadow(0 0 6px ${e}) drop-shadow(0 0 6px ${e})
617
- drop-shadow(0 0 6px ${e}) drop-shadow(0 0 6px ${e});
618
- fill: ${n || a};
617
+ filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
618
+ drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
619
+ fill: ${n || r};
619
620
  }
620
621
  }
621
622
 
622
623
  svg {
623
624
  transition: 313ms all ease-in-out;
624
- fill: ${a};
625
+ fill: ${r};
625
626
  width: ${o}px;
626
627
  height: ${o}px;
627
628
  }
628
629
  `
629
630
  })
630
- ), mo = s(S)(({ active: o }) => ({
631
- ...v`
631
+ ), $o = s(w)(({ active: o }) => ({
632
+ ...g`
632
633
  box-sizing: border-box;
633
634
  background-color: ${o ? t.colors.black : t.colors.white};
634
635
  height: 28px;
@@ -646,62 +647,107 @@ const M = [
646
647
  background-color: ${o ? t.colors.charcoal : t.colors.gray2};
647
648
  }
648
649
  `
649
- })), Ro = ({
650
+ })), ho = s(k)(
651
+ ({ backgroundColor: o, borderColor: r }) => ({
652
+ ...g`
653
+ height: 28px;
654
+ border-radius: 20px;
655
+ border-width: 2px;
656
+ border-style: solid;
657
+ border-color: ${r}aa ${r} ${r} ${r}aa;
658
+ background: ${o};
659
+ color: ${r};
660
+ padding: 10px;
661
+ font-size: 0.9rem !important;
662
+ font-weight: 500;
663
+ font-family: inherit;
664
+ transition: all 313ms ease;
665
+
666
+ span {
667
+ display: flex;
668
+ align-items: center !important;
669
+ }
670
+
671
+ .lucide {
672
+ height: 15px;
673
+ margin-left: 5px;
674
+ margin-right: -8px;
675
+ stroke: ${r};
676
+ transition: all 313ms ease;
677
+ }
678
+
679
+ &:hover .lucide {
680
+ height: 17px;
681
+ stroke-width: 3;
682
+ margin-left: 17px;
683
+ }
684
+ `
685
+ })
686
+ ), Po = ({
650
687
  variant: o = 1,
651
- size: a = 50,
652
- color: e = t.colors.darkGreen,
653
- highlightColor: n = t.colors.dandelion,
654
- hoverColor: d = t.colors.green,
655
- backgroundColor: u = t.colors.darkGreen,
656
- textColor: b = t.colors.white,
657
- customShadow1: x = t.boxShadows.gray63,
658
- customShadow2: f = t.boxShadows.black63,
688
+ size: r = 50,
689
+ color: a,
690
+ highlightColor: n,
691
+ hoverColor: c,
692
+ backgroundColor: u,
693
+ textColor: b,
694
+ customShadow1: v,
695
+ customShadow2: f,
659
696
  children: l,
660
- textToCopy: z,
661
- active: B,
662
- ...c
697
+ textToCopy: I,
698
+ active: S,
699
+ ...d
663
700
  }) => {
701
+ const y = ao();
664
702
  if (o === "custom")
665
703
  return /* @__PURE__ */ i(
666
- uo,
704
+ bo,
667
705
  {
668
706
  customBackgroundColor: u,
669
- customHoverColor: d,
707
+ customHoverColor: c,
670
708
  customTextColor: b,
671
- customShadow1: x,
709
+ customShadow1: v,
672
710
  customShadow2: f,
673
711
  className: "jcCustomButton",
674
- ...c,
712
+ ...d,
675
713
  children: l
676
714
  }
677
715
  );
678
716
  if (o === "bibi")
679
- return /* @__PURE__ */ i(N, { ...c, children: l });
717
+ return /* @__PURE__ */ i(N, { ...d, children: l });
680
718
  if (o === "bibiOutlined")
681
- return /* @__PURE__ */ i(go, { ...c, children: l });
719
+ return /* @__PURE__ */ i(xo, { ...d, children: l });
682
720
  if (o === "bibiInverse")
683
- return /* @__PURE__ */ i(vo, { ...c, children: l });
721
+ return /* @__PURE__ */ i(vo, { ...d, children: l });
684
722
  if (o === "unstyled")
685
- return /* @__PURE__ */ i(G, { ...c, children: l });
723
+ return /* @__PURE__ */ i(L, { ...d, children: l });
686
724
  if (o === "copy") {
687
- const [y, m] = q(!1);
688
- return /* @__PURE__ */ I(fo, { onClick: async () => {
725
+ const [m, z] = q(!1);
726
+ return /* @__PURE__ */ T(yo, { onClick: async () => {
689
727
  try {
690
- await navigator.clipboard.writeText(z || String(l)), m(!0), setTimeout(() => m(!1), 1100);
691
- } catch (k) {
692
- console.error("Failed to copy text: ", k);
728
+ await navigator.clipboard.writeText(I || String(l)), z(!0), setTimeout(() => z(!1), 1100);
729
+ } catch (O) {
730
+ console.error("Failed to copy text: ", O);
693
731
  }
694
732
  }, children: [
695
- /* @__PURE__ */ i(ao, { title: "Copy to clipboard", children: /* @__PURE__ */ i(xo, { ...c, children: l }) }),
696
- y && /* @__PURE__ */ I("span", { className: "isCopied", children: [
697
- /* @__PURE__ */ i(eo, { size: 12 }),
733
+ /* @__PURE__ */ i(eo, { title: "Copy to clipboard", children: /* @__PURE__ */ i(fo, { ...d, children: l }) }),
734
+ m && /* @__PURE__ */ T("span", { className: "isCopied", children: [
735
+ /* @__PURE__ */ i(no, { size: 12 }),
698
736
  " Copied"
699
737
  ] })
700
738
  ] });
701
739
  }
702
- return o === 2 ? /* @__PURE__ */ i(bo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(yo, { className: "jcIconButton", ...{ size: a, color: e, highlightColor: n, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(mo, { className: "jcFilterButton", active: B, ...c, children: l }) : /* @__PURE__ */ i(po, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
740
+ return o === 2 ? /* @__PURE__ */ i(go, { ...d, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? (a = a || t.colors.green, n = n || t.colors.dandelion, c = c || t.colors.green, /* @__PURE__ */ i(mo, { className: "jcIconButton", ...{ size: r, color: a, highlightColor: n, hoverColor: c }, ...d, children: l })) : o === "filter" ? /* @__PURE__ */ i($o, { className: "jcFilterButton", active: S, ...d, children: l }) : o === "pill" ? /* @__PURE__ */ i(
741
+ ho,
742
+ {
743
+ backgroundColor: u || y.themeIconBackgroundB,
744
+ borderColor: b || y.themeIconBackgroundA,
745
+ ...d,
746
+ children: /* @__PURE__ */ i("span", { children: l })
747
+ }
748
+ ) : /* @__PURE__ */ i(uo, { ...d, children: /* @__PURE__ */ i("span", { children: l }) });
703
749
  };
704
750
  export {
705
- Ro as Button,
706
- Ro as default
751
+ Po as Button,
752
+ Po as default
707
753
  };
@@ -6,6 +6,7 @@ export type LabeledCheckboxProps = StyleProps & CheckboxProps & {
6
6
  label: string;
7
7
  colon?: boolean;
8
8
  noLabel?: boolean;
9
+ boxFirst?: boolean;
9
10
  };
10
11
  export declare const LabeledCheckbox: React.FC<LabeledCheckboxProps>;
11
12
  export default LabeledCheckbox;
@@ -1,32 +1,32 @@
1
- import { jsxs as z, jsx as i } from "react/jsx-runtime";
2
- import { n as te } from "../.chunks/emotion-styled.browser.esm.js";
1
+ import { jsxs as v, jsx as r } from "react/jsx-runtime";
2
+ import { n as ae } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as M } from "../.chunks/emotion-react.browser.esm.js";
4
- import { useThemeColors as ae } from "../ThemeContext.js";
5
- import * as v from "react";
6
- import { g as q, a as V, s as O, r as U, b as H, P as e, c as b, d as D, e as L, u as ne } from "../.chunks/DefaultPropsProvider.js";
7
- import { u as se } from "../.chunks/useFormControl.js";
8
- import { B as re } from "../.chunks/ButtonBase.js";
9
- import { u as ce } from "../.chunks/useControlled.js";
10
- import { r as _ } from "../.chunks/TransitionGroupContext.js";
11
- import { c as P } from "../.chunks/createSvgIcon.js";
12
- import { m as ie } from "../.chunks/memoTheme.js";
13
- import { c as E } from "../.chunks/createSimplePaletteValueFilter.js";
14
- function le(o) {
15
- return q("PrivateSwitchBase", o);
4
+ import { useThemeColors as ne } from "../ThemeContext.js";
5
+ import * as w from "react";
6
+ import { g as U, a as H, s as P, r as D, b as _, P as e, c as b, d as A, e as E, u as se } from "../.chunks/DefaultPropsProvider.js";
7
+ import { u as re } from "../.chunks/useFormControl.js";
8
+ import { B as ce } from "../.chunks/ButtonBase.js";
9
+ import { u as ie } from "../.chunks/useControlled.js";
10
+ import { r as W } from "../.chunks/TransitionGroupContext.js";
11
+ import { c as F } from "../.chunks/createSvgIcon.js";
12
+ import { m as le } from "../.chunks/memoTheme.js";
13
+ import { c as q } from "../.chunks/createSimplePaletteValueFilter.js";
14
+ function de(o) {
15
+ return U("PrivateSwitchBase", o);
16
16
  }
17
- V("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
18
- const de = (o) => {
17
+ H("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
18
+ const pe = (o) => {
19
19
  const {
20
20
  classes: t,
21
21
  checked: a,
22
- disabled: s,
23
- edge: n
24
- } = o, r = {
25
- root: ["root", a && "checked", s && "disabled", n && `edge${b(n)}`],
22
+ disabled: n,
23
+ edge: s
24
+ } = o, c = {
25
+ root: ["root", a && "checked", n && "disabled", s && `edge${b(s)}`],
26
26
  input: ["input"]
27
27
  };
28
- return D(r, le, t);
29
- }, pe = O(re)({
28
+ return A(c, de, t);
29
+ }, ue = P(ce)({
30
30
  padding: 9,
31
31
  borderRadius: "50%",
32
32
  variants: [{
@@ -62,8 +62,8 @@ const de = (o) => {
62
62
  marginRight: -12
63
63
  }
64
64
  }]
65
- }), ue = O("input", {
66
- shouldForwardProp: U
65
+ }), fe = P("input", {
66
+ shouldForwardProp: D
67
67
  })({
68
68
  cursor: "inherit",
69
69
  position: "absolute",
@@ -75,90 +75,90 @@ const de = (o) => {
75
75
  margin: 0,
76
76
  padding: 0,
77
77
  zIndex: 1
78
- }), A = /* @__PURE__ */ v.forwardRef(function(t, a) {
78
+ }), G = /* @__PURE__ */ w.forwardRef(function(t, a) {
79
79
  const {
80
- autoFocus: s,
81
- checked: n,
82
- checkedIcon: r,
83
- className: p,
84
- defaultChecked: d,
80
+ autoFocus: n,
81
+ checked: s,
82
+ checkedIcon: c,
83
+ className: l,
84
+ defaultChecked: p,
85
85
  disabled: k,
86
86
  disableFocusRipple: g = !1,
87
87
  edge: u = !1,
88
- icon: w,
89
- id: B,
90
- inputProps: I,
88
+ icon: B,
89
+ id: I,
90
+ inputProps: R,
91
91
  inputRef: C,
92
92
  name: y,
93
93
  onBlur: f,
94
94
  onChange: h,
95
- onFocus: F,
96
- readOnly: G,
97
- required: J = !1,
98
- tabIndex: K,
95
+ onFocus: j,
96
+ readOnly: J,
97
+ required: K = !1,
98
+ tabIndex: Q,
99
99
  type: x,
100
- value: $,
101
- ...Q
102
- } = t, [j, X] = ce({
103
- controlled: n,
104
- default: !!d,
100
+ value: N,
101
+ ...X
102
+ } = t, [$, Y] = ie({
103
+ controlled: s,
104
+ default: !!p,
105
105
  name: "SwitchBase",
106
106
  state: "checked"
107
- }), l = se(), Y = (c) => {
108
- F && F(c), l && l.onFocus && l.onFocus(c);
109
- }, Z = (c) => {
110
- f && f(c), l && l.onBlur && l.onBlur(c);
111
- }, ee = (c) => {
112
- if (c.nativeEvent.defaultPrevented)
107
+ }), d = re(), Z = (i) => {
108
+ j && j(i), d && d.onFocus && d.onFocus(i);
109
+ }, ee = (i) => {
110
+ f && f(i), d && d.onBlur && d.onBlur(i);
111
+ }, oe = (i) => {
112
+ if (i.nativeEvent.defaultPrevented)
113
113
  return;
114
- const T = c.target.checked;
115
- X(T), h && h(c, T);
114
+ const L = i.target.checked;
115
+ Y(L), h && h(i, L);
116
116
  };
117
117
  let m = k;
118
- l && typeof m > "u" && (m = l.disabled);
119
- const oe = x === "checkbox" || x === "radio", R = {
118
+ d && typeof m > "u" && (m = d.disabled);
119
+ const te = x === "checkbox" || x === "radio", S = {
120
120
  ...t,
121
- checked: j,
121
+ checked: $,
122
122
  disabled: m,
123
123
  disableFocusRipple: g,
124
124
  edge: u
125
- }, N = de(R);
126
- return /* @__PURE__ */ z(pe, {
125
+ }, T = pe(S);
126
+ return /* @__PURE__ */ v(ue, {
127
127
  component: "span",
128
- className: H(N.root, p),
128
+ className: _(T.root, l),
129
129
  centerRipple: !0,
130
130
  focusRipple: !g,
131
131
  disabled: m,
132
132
  tabIndex: null,
133
133
  role: void 0,
134
- onFocus: Y,
135
- onBlur: Z,
136
- ownerState: R,
134
+ onFocus: Z,
135
+ onBlur: ee,
136
+ ownerState: S,
137
137
  ref: a,
138
- ...Q,
139
- children: [/* @__PURE__ */ i(ue, {
140
- autoFocus: s,
141
- checked: n,
142
- defaultChecked: d,
143
- className: N.input,
138
+ ...X,
139
+ children: [/* @__PURE__ */ r(fe, {
140
+ autoFocus: n,
141
+ checked: s,
142
+ defaultChecked: p,
143
+ className: T.input,
144
144
  disabled: m,
145
- id: oe ? B : void 0,
145
+ id: te ? I : void 0,
146
146
  name: y,
147
- onChange: ee,
148
- readOnly: G,
147
+ onChange: oe,
148
+ readOnly: J,
149
149
  ref: C,
150
- required: J,
151
- ownerState: R,
152
- tabIndex: K,
150
+ required: K,
151
+ ownerState: S,
152
+ tabIndex: Q,
153
153
  type: x,
154
- ...x === "checkbox" && $ === void 0 ? {} : {
155
- value: $
154
+ ...x === "checkbox" && N === void 0 ? {} : {
155
+ value: N
156
156
  },
157
- ...I
158
- }), j ? r : w]
157
+ ...R
158
+ }), $ ? c : B]
159
159
  });
160
160
  });
161
- process.env.NODE_ENV !== "production" && (A.propTypes = {
161
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
162
162
  /**
163
163
  * If `true`, the `input` element is focused during the first mount.
164
164
  */
@@ -215,7 +215,7 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
215
215
  /**
216
216
  * Pass a ref to the `input` element.
217
217
  */
218
- inputRef: _,
218
+ inputRef: W,
219
219
  /*
220
220
  * @ignore
221
221
  */
@@ -261,32 +261,32 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
261
261
  */
262
262
  value: e.any
263
263
  });
264
- const fe = P(/* @__PURE__ */ i("path", {
264
+ const he = F(/* @__PURE__ */ r("path", {
265
265
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
266
- }), "CheckBoxOutlineBlank"), he = P(/* @__PURE__ */ i("path", {
266
+ }), "CheckBoxOutlineBlank"), me = F(/* @__PURE__ */ r("path", {
267
267
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
268
- }), "CheckBox"), me = P(/* @__PURE__ */ i("path", {
268
+ }), "CheckBox"), be = F(/* @__PURE__ */ r("path", {
269
269
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
270
270
  }), "IndeterminateCheckBox");
271
- function be(o) {
272
- return q("MuiCheckbox", o);
271
+ function ke(o) {
272
+ return U("MuiCheckbox", o);
273
273
  }
274
- const S = V("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), ke = (o) => {
274
+ const z = H("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), ge = (o) => {
275
275
  const {
276
276
  classes: t,
277
277
  indeterminate: a,
278
- color: s,
279
- size: n
280
- } = o, r = {
281
- root: ["root", a && "indeterminate", `color${b(s)}`, `size${b(n)}`]
282
- }, p = D(r, be, t);
278
+ color: n,
279
+ size: s
280
+ } = o, c = {
281
+ root: ["root", a && "indeterminate", `color${b(n)}`, `size${b(s)}`]
282
+ }, l = A(c, ke, t);
283
283
  return {
284
284
  ...t,
285
285
  // forward the disabled and checked classes to the SwitchBase
286
- ...p
286
+ ...l
287
287
  };
288
- }, ge = O(A, {
289
- shouldForwardProp: (o) => U(o) || o === "classes",
288
+ }, Ce = P(G, {
289
+ shouldForwardProp: (o) => D(o) || o === "classes",
290
290
  name: "MuiCheckbox",
291
291
  slot: "Root",
292
292
  overridesResolver: (o, t) => {
@@ -295,7 +295,7 @@ const S = V("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
295
295
  } = o;
296
296
  return [t.root, a.indeterminate && t.indeterminate, t[`size${b(a.size)}`], a.color !== "default" && t[`color${b(a.color)}`]];
297
297
  }
298
- })(ie(({
298
+ })(le(({
299
299
  theme: o
300
300
  }) => ({
301
301
  color: (o.vars || o).palette.text.secondary,
@@ -306,28 +306,28 @@ const S = V("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
306
306
  },
307
307
  style: {
308
308
  "&:hover": {
309
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : L(o.palette.action.active, o.palette.action.hoverOpacity)
309
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette.action.active, o.palette.action.hoverOpacity)
310
310
  }
311
311
  }
312
- }, ...Object.entries(o.palette).filter(E()).map(([t]) => ({
312
+ }, ...Object.entries(o.palette).filter(q()).map(([t]) => ({
313
313
  props: {
314
314
  color: t,
315
315
  disableRipple: !1
316
316
  },
317
317
  style: {
318
318
  "&:hover": {
319
- backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : L(o.palette[t].main, o.palette.action.hoverOpacity)
319
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette[t].main, o.palette.action.hoverOpacity)
320
320
  }
321
321
  }
322
- })), ...Object.entries(o.palette).filter(E()).map(([t]) => ({
322
+ })), ...Object.entries(o.palette).filter(q()).map(([t]) => ({
323
323
  props: {
324
324
  color: t
325
325
  },
326
326
  style: {
327
- [`&.${S.checked}, &.${S.indeterminate}`]: {
327
+ [`&.${z.checked}, &.${z.indeterminate}`]: {
328
328
  color: (o.vars || o).palette[t].main
329
329
  },
330
- [`&.${S.disabled}`]: {
330
+ [`&.${z.disabled}`]: {
331
331
  color: (o.vars || o).palette.action.disabled
332
332
  }
333
333
  }
@@ -345,48 +345,48 @@ const S = V("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
345
345
  }
346
346
  }
347
347
  }]
348
- }))), Ce = /* @__PURE__ */ i(he, {}), ye = /* @__PURE__ */ i(fe, {}), xe = /* @__PURE__ */ i(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
349
- const s = ne({
348
+ }))), ye = /* @__PURE__ */ r(me, {}), xe = /* @__PURE__ */ r(he, {}), ve = /* @__PURE__ */ r(be, {}), O = /* @__PURE__ */ w.forwardRef(function(t, a) {
349
+ const n = se({
350
350
  props: t,
351
351
  name: "MuiCheckbox"
352
352
  }), {
353
- checkedIcon: n = Ce,
354
- color: r = "primary",
355
- icon: p = ye,
356
- indeterminate: d = !1,
357
- indeterminateIcon: k = xe,
353
+ checkedIcon: s = ye,
354
+ color: c = "primary",
355
+ icon: l = xe,
356
+ indeterminate: p = !1,
357
+ indeterminateIcon: k = ve,
358
358
  inputProps: g,
359
359
  size: u = "medium",
360
- disableRipple: w = !1,
361
- className: B,
362
- ...I
363
- } = s, C = d ? k : p, y = d ? k : n, f = {
364
- ...s,
365
- disableRipple: w,
366
- color: r,
367
- indeterminate: d,
360
+ disableRipple: B = !1,
361
+ className: I,
362
+ ...R
363
+ } = n, C = p ? k : l, y = p ? k : s, f = {
364
+ ...n,
365
+ disableRipple: B,
366
+ color: c,
367
+ indeterminate: p,
368
368
  size: u
369
- }, h = ke(f);
370
- return /* @__PURE__ */ i(ge, {
369
+ }, h = ge(f);
370
+ return /* @__PURE__ */ r(Ce, {
371
371
  type: "checkbox",
372
372
  inputProps: {
373
- "data-indeterminate": d,
373
+ "data-indeterminate": p,
374
374
  ...g
375
375
  },
376
- icon: /* @__PURE__ */ v.cloneElement(C, {
376
+ icon: /* @__PURE__ */ w.cloneElement(C, {
377
377
  fontSize: C.props.fontSize ?? u
378
378
  }),
379
- checkedIcon: /* @__PURE__ */ v.cloneElement(y, {
379
+ checkedIcon: /* @__PURE__ */ w.cloneElement(y, {
380
380
  fontSize: y.props.fontSize ?? u
381
381
  }),
382
382
  ownerState: f,
383
383
  ref: a,
384
- className: H(h.root, B),
385
- ...I,
384
+ className: _(h.root, I),
385
+ ...R,
386
386
  classes: h
387
387
  });
388
388
  });
389
- process.env.NODE_ENV !== "production" && (W.propTypes = {
389
+ process.env.NODE_ENV !== "production" && (O.propTypes = {
390
390
  // ┌────────────────────────────── Warning ──────────────────────────────┐
391
391
  // │ These PropTypes are generated from the TypeScript type definitions. │
392
392
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -458,7 +458,7 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
458
458
  /**
459
459
  * Pass a ref to the `input` element.
460
460
  */
461
- inputRef: _,
461
+ inputRef: W,
462
462
  /**
463
463
  * Callback fired when the state is changed.
464
464
  *
@@ -487,7 +487,7 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
487
487
  */
488
488
  value: e.any
489
489
  });
490
- const ve = te("div", { shouldForwardProp: (o) => !["customTheme"].includes(o) })(({ displayMode: o, customTheme: t }) => ({
490
+ const V = ae("div", { shouldForwardProp: (o) => !["customTheme"].includes(o) })(({ displayMode: o, customTheme: t }) => ({
491
491
  ...M`
492
492
  display: flex;
493
493
  flex-wrap: nowrap;
@@ -525,16 +525,20 @@ const ve = te("div", { shouldForwardProp: (o) => !["customTheme"].includes(o) })
525
525
  label: o,
526
526
  colon: t = !0,
527
527
  displayMode: a = !1,
528
- noLabel: s = !1,
529
- ...n
528
+ noLabel: n = !1,
529
+ boxFirst: s = !1,
530
+ ...c
530
531
  }) => {
531
- const r = ae();
532
- return /* @__PURE__ */ z(ve, { displayMode: a, className: "jcLabeledCheckbox", customTheme: r, children: [
533
- !s && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
532
+ const l = ne();
533
+ return s ? /* @__PURE__ */ v(V, { displayMode: a, className: "jcLabeledCheckbox", customTheme: l, children: [
534
+ /* @__PURE__ */ r(O, { ...c }),
535
+ !n && /* @__PURE__ */ r("span", { className: "jcCheckboxLabel", children: o })
536
+ ] }) : /* @__PURE__ */ v(V, { displayMode: a, className: "jcLabeledCheckbox", customTheme: l, children: [
537
+ !n && /* @__PURE__ */ v("span", { className: "jcCheckboxLabel", children: [
534
538
  o,
535
539
  t && ":"
536
540
  ] }),
537
- /* @__PURE__ */ i(W, { ...n })
541
+ /* @__PURE__ */ r(O, { ...c })
538
542
  ] });
539
543
  };
540
544
  export {
package/Pill/Pill.js CHANGED
@@ -13,6 +13,7 @@ const l = a("span")(
13
13
  background-color: ${r};
14
14
  padding: 3px 13px;
15
15
  border-radius: 21px;
16
+ cursor: default;
16
17
  `
17
18
  })
18
19
  ), x = (r) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "1.0.11",
4
+ "version": "1.0.15",
5
5
  "description": "Component library for the websites of Johnson County Iowa",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
package/utils.js CHANGED
@@ -1,14 +1,14 @@
1
- const h = (e, t = "mmddyyyy") => t === "mmddyyyy" ? new Date(e).toLocaleDateString("en-US", {
1
+ const $ = (r, t = "mmddyyyy") => t === "mmddyyyy" ? new Date(r).toLocaleDateString("en-US", {
2
2
  month: "numeric",
3
3
  day: "numeric",
4
4
  year: "numeric"
5
- }) : e, g = (e) => {
6
- const { line1: t, line2: o, city: i, state: n, zip: c } = e;
7
- let r = t;
8
- return o && (r += `, ${o}`), i && (r += `, ${i}`), n && (r += `, ${n}`), c && (r += ` ${c}`), r;
9
- }, $ = (e) => {
10
- if (e > 3 && e < 21) return "th";
11
- switch (e % 10) {
5
+ }) : r, g = (r) => {
6
+ const { line1: t, line2: i, city: o, state: n, zip: c } = r;
7
+ let e = t || "";
8
+ return i && (e.length > 0 && (e += ", "), e += i), o && (e.length > 0 && (e += ", "), e += o), n && (e.length > 0 && (e += ", "), e += n), c && (e += ` ${c}`), e;
9
+ }, y = (r) => {
10
+ if (r > 3 && r < 21) return "th";
11
+ switch (r % 10) {
12
12
  case 1:
13
13
  return "st";
14
14
  case 2:
@@ -18,9 +18,9 @@ const h = (e, t = "mmddyyyy") => t === "mmddyyyy" ? new Date(e).toLocaleDateStri
18
18
  default:
19
19
  return "th";
20
20
  }
21
- }, p = (e) => {
21
+ }, p = (r) => {
22
22
  try {
23
- const t = /* @__PURE__ */ new Date(e.replace(" ", "T") + "Z"), i = new Intl.DateTimeFormat("en-US", {
23
+ const t = /* @__PURE__ */ new Date(r.replace(" ", "T") + "Z"), o = new Intl.DateTimeFormat("en-US", {
24
24
  timeZone: "America/Chicago",
25
25
  month: "short",
26
26
  day: "numeric",
@@ -30,23 +30,23 @@ const h = (e, t = "mmddyyyy") => t === "mmddyyyy" ? new Date(e).toLocaleDateStri
30
30
  hour12: !0
31
31
  }).formatToParts(t), n = (l) => {
32
32
  var a;
33
- return ((a = i.find((y) => y.type === l)) == null ? void 0 : a.value) ?? "";
34
- }, c = n("month") + ".", r = Number(n("day")), s = n("year"), m = n("hour"), u = n("minute"), d = n("dayPeriod").toLowerCase(), f = $(r);
35
- return `${c} ${r}${f}, ${s}, ${m}:${u}${d}`;
33
+ return ((a = o.find((h) => h.type === l)) == null ? void 0 : a.value) ?? "";
34
+ }, c = n("month") + ".", e = Number(n("day")), s = n("year"), m = n("hour"), u = n("minute"), d = n("dayPeriod").toLowerCase(), f = y(e);
35
+ return `${c} ${e}${f}, ${s}, ${m}:${u}${d}`;
36
36
  } catch {
37
- return e;
37
+ return r;
38
38
  }
39
- }, D = (e) => {
40
- if (e == null) return ["", void 0];
41
- let t = e.replace(/\D/g, "") || "";
39
+ }, D = (r) => {
40
+ if (r == null) return ["", void 0];
41
+ let t = r.replace(/\D/g, "") || "";
42
42
  t.at(0) == "1" && (t = t.slice(1));
43
- const o = t.slice(0, 3), i = t.slice(3, 6), n = t.slice(6, 10), c = t.slice(10);
44
- let r = t;
45
- return t.length >= 4 && (r = `(${o}) ${t.slice(3)}`), t.length >= 7 && (r = `(${o}) ${i}-${t.slice(6)}`), t.length > 10 && (r = `(${o}) ${i}-${n} ext. ${c}`), [r, t];
43
+ const i = t.slice(0, 3), o = t.slice(3, 6), n = t.slice(6, 10), c = t.slice(10);
44
+ let e = t;
45
+ return t.length >= 4 && (e = `(${i}) ${t.slice(3)}`), t.length >= 7 && (e = `(${i}) ${o}-${t.slice(6)}`), t.length > 10 && (e = `(${i}) ${o}-${n} ext. ${c}`), [e, t];
46
46
  };
47
47
  export {
48
48
  g as formatAddress,
49
- h as formatDate,
49
+ $ as formatDate,
50
50
  D as formatPhoneNumber,
51
51
  p as formatTimestamp
52
52
  };