jcicl 0.0.311 → 0.0.315

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,11 +1,15 @@
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' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse' | 'filter';
3
+ variant?: 1 | 2 | 'unstyled' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse' | 'filter' | 'custom';
4
4
  size?: number;
5
5
  color?: string;
6
6
  highlightColor?: string;
7
7
  hoverColor?: string;
8
8
  active?: boolean;
9
+ backgroundColor?: string;
10
+ textColor?: string;
11
+ customShadow1?: string;
12
+ customShadow2?: string;
9
13
  }
10
14
  export declare const Button: React.FC<ButtonProps & {
11
15
  children: React.ReactNode;
package/Button/Button.js CHANGED
@@ -1,39 +1,39 @@
1
- import { jsxs as H, jsx as l } from "react/jsx-runtime";
2
- import * as x from "react";
3
- import { g as _, a as A, s as c, r as q, c as d, m as J, u as K, b as O, P as t, d as Q, e as g } from "../.chunks/DefaultPropsProvider.js";
1
+ import { jsxs as H, jsx as i } from "react/jsx-runtime";
2
+ import * as B from "react";
3
+ import { g as _, a as A, s, r as q, c as p, m as J, u as K, b as R, P as r, d as Q, e as $ } 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
- import { B as S } from "../.chunks/ButtonBase.js";
6
+ import { B as z } from "../.chunks/ButtonBase.js";
7
7
  import { i as Z } from "../.chunks/emotion-styled.browser.esm.js";
8
- import { c as f } from "../.chunks/emotion-react.browser.esm.js";
9
- import r from "../theme.js";
8
+ import { c as g } from "../.chunks/emotion-react.browser.esm.js";
9
+ import t from "../theme.js";
10
10
  function oo(o) {
11
11
  return _("MuiButton", o);
12
12
  }
13
- const b = A("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"]), R = /* @__PURE__ */ x.createContext({});
14
- process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
15
- const N = /* @__PURE__ */ x.createContext(void 0);
16
- process.env.NODE_ENV !== "production" && (N.displayName = "ButtonGroupButtonContext");
13
+ const v = A("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__ */ B.createContext({});
14
+ process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
15
+ const T = /* @__PURE__ */ B.createContext(void 0);
16
+ process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
17
17
  const to = (o) => {
18
18
  const {
19
19
  color: a,
20
20
  disableElevation: n,
21
21
  fullWidth: e,
22
- size: p,
23
- variant: i,
24
- classes: u
25
- } = o, s = {
26
- root: ["root", i, `${i}${d(a)}`, `size${d(p)}`, `${i}Size${d(p)}`, `color${d(a)}`, n && "disableElevation", e && "fullWidth"],
22
+ size: d,
23
+ variant: u,
24
+ classes: b
25
+ } = o, x = {
26
+ root: ["root", u, `${u}${p(a)}`, `size${p(d)}`, `${u}Size${p(d)}`, `color${p(a)}`, n && "disableElevation", e && "fullWidth"],
27
27
  label: ["label"],
28
- startIcon: ["icon", "startIcon", `iconSize${d(p)}`],
29
- endIcon: ["icon", "endIcon", `iconSize${d(p)}`]
30
- }, y = Q(s, oo, u);
28
+ startIcon: ["icon", "startIcon", `iconSize${p(d)}`],
29
+ endIcon: ["icon", "endIcon", `iconSize${p(d)}`]
30
+ }, f = Q(x, oo, b);
31
31
  return {
32
- ...u,
32
+ ...b,
33
33
  // forward the focused, disabled, etc. classes to the ButtonBase
34
- ...y
34
+ ...f
35
35
  };
36
- }, E = [{
36
+ }, W = [{
37
37
  props: {
38
38
  size: "small"
39
39
  },
@@ -60,7 +60,7 @@ const to = (o) => {
60
60
  fontSize: 22
61
61
  }
62
62
  }
63
- }], ro = c(S, {
63
+ }], ro = s(z, {
64
64
  shouldForwardProp: (o) => q(o) || o === "classes",
65
65
  name: "MuiButton",
66
66
  slot: "Root",
@@ -68,7 +68,7 @@ const to = (o) => {
68
68
  const {
69
69
  ownerState: n
70
70
  } = o;
71
- return [a.root, a[n.variant], a[`${n.variant}${d(n.color)}`], a[`size${d(n.size)}`], a[`${n.variant}Size${d(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth];
71
+ return [a.root, a[n.variant], a[`${n.variant}${p(n.color)}`], a[`size${p(n.size)}`], a[`${n.variant}Size${p(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth];
72
72
  }
73
73
  })(X(({
74
74
  theme: o
@@ -86,7 +86,7 @@ const to = (o) => {
86
86
  "&:hover": {
87
87
  textDecoration: "none"
88
88
  },
89
- [`&.${b.disabled}`]: {
89
+ [`&.${v.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
- [`&.${b.focusVisible}`]: {
110
+ [`&.${v.focusVisible}`]: {
111
111
  boxShadow: (o.vars || o).shadows[6]
112
112
  },
113
- [`&.${b.disabled}`]: {
113
+ [`&.${v.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
- [`&.${b.disabled}`]: {
129
+ [`&.${v.disabled}`]: {
130
130
  border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
131
131
  }
132
132
  }
@@ -146,15 +146,15 @@ const to = (o) => {
146
146
  style: {
147
147
  "--variant-textColor": (o.vars || o).palette[e].main,
148
148
  "--variant-outlinedColor": (o.vars || o).palette[e].main,
149
- "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` : g(o.palette[e].main, 0.5),
149
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` : $(o.palette[e].main, 0.5),
150
150
  "--variant-containedColor": (o.vars || o).palette[e].contrastText,
151
151
  "--variant-containedBg": (o.vars || o).palette[e].main,
152
152
  "@media (hover: hover)": {
153
153
  "&:hover": {
154
154
  "--variant-containedBg": (o.vars || o).palette[e].dark,
155
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette[e].main, o.palette.action.hoverOpacity),
155
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette[e].main, o.palette.action.hoverOpacity),
156
156
  "--variant-outlinedBorder": (o.vars || o).palette[e].main,
157
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette[e].main, o.palette.action.hoverOpacity)
157
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette[e].main, o.palette.action.hoverOpacity)
158
158
  }
159
159
  }
160
160
  }
@@ -169,8 +169,8 @@ const to = (o) => {
169
169
  "@media (hover: hover)": {
170
170
  "&:hover": {
171
171
  "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
172
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.text.primary, o.palette.action.hoverOpacity),
173
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.text.primary, o.palette.action.hoverOpacity)
172
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette.text.primary, o.palette.action.hoverOpacity),
173
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette.text.primary, o.palette.action.hoverOpacity)
174
174
  }
175
175
  }
176
176
  }
@@ -237,13 +237,13 @@ const to = (o) => {
237
237
  "&:hover": {
238
238
  boxShadow: "none"
239
239
  },
240
- [`&.${b.focusVisible}`]: {
240
+ [`&.${v.focusVisible}`]: {
241
241
  boxShadow: "none"
242
242
  },
243
243
  "&:active": {
244
244
  boxShadow: "none"
245
245
  },
246
- [`&.${b.disabled}`]: {
246
+ [`&.${v.disabled}`]: {
247
247
  boxShadow: "none"
248
248
  }
249
249
  }
@@ -256,14 +256,14 @@ const to = (o) => {
256
256
  }
257
257
  }]
258
258
  };
259
- })), ao = c("span", {
259
+ })), ao = s("span", {
260
260
  name: "MuiButton",
261
261
  slot: "StartIcon",
262
262
  overridesResolver: (o, a) => {
263
263
  const {
264
264
  ownerState: n
265
265
  } = o;
266
- return [a.startIcon, a[`iconSize${d(n.size)}`]];
266
+ return [a.startIcon, a[`iconSize${p(n.size)}`]];
267
267
  }
268
268
  })({
269
269
  display: "inherit",
@@ -276,15 +276,15 @@ const to = (o) => {
276
276
  style: {
277
277
  marginLeft: -2
278
278
  }
279
- }, ...E]
280
- }), no = c("span", {
279
+ }, ...W]
280
+ }), no = s("span", {
281
281
  name: "MuiButton",
282
282
  slot: "EndIcon",
283
283
  overridesResolver: (o, a) => {
284
284
  const {
285
285
  ownerState: n
286
286
  } = o;
287
- return [a.endIcon, a[`iconSize${d(n.size)}`]];
287
+ return [a.endIcon, a[`iconSize${p(n.size)}`]];
288
288
  }
289
289
  })({
290
290
  display: "inherit",
@@ -297,62 +297,62 @@ const to = (o) => {
297
297
  style: {
298
298
  marginRight: -2
299
299
  }
300
- }, ...E]
301
- }), T = /* @__PURE__ */ x.forwardRef(function(a, n) {
302
- const e = x.useContext(R), p = x.useContext(N), i = J(e, a), u = K({
303
- props: i,
300
+ }, ...W]
301
+ }), j = /* @__PURE__ */ B.forwardRef(function(a, n) {
302
+ const e = B.useContext(E), d = B.useContext(T), u = J(e, a), b = K({
303
+ props: u,
304
304
  name: "MuiButton"
305
305
  }), {
306
- children: s,
307
- color: y = "primary",
308
- component: w = "button",
309
- className: P,
310
- disabled: m = !1,
311
- disableElevation: W = !1,
312
- disableFocusRipple: C = !1,
313
- endIcon: h,
314
- focusVisibleClassName: V,
315
- fullWidth: j = !1,
306
+ children: x,
307
+ color: f = "primary",
308
+ component: l = "button",
309
+ className: m,
310
+ disabled: c = !1,
311
+ disableElevation: C = !1,
312
+ disableFocusRipple: k = !1,
313
+ endIcon: I,
314
+ focusVisibleClassName: P,
315
+ fullWidth: V = !1,
316
316
  size: M = "medium",
317
- startIcon: I,
318
- type: k,
319
- variant: F = "text",
320
- ...G
321
- } = u, B = {
322
- ...u,
323
- color: y,
324
- component: w,
325
- disabled: m,
326
- disableElevation: W,
327
- disableFocusRipple: C,
328
- fullWidth: j,
317
+ startIcon: O,
318
+ type: N,
319
+ variant: G = "text",
320
+ ...F
321
+ } = b, w = {
322
+ ...b,
323
+ color: f,
324
+ component: l,
325
+ disabled: c,
326
+ disableElevation: C,
327
+ disableFocusRipple: k,
328
+ fullWidth: V,
329
329
  size: M,
330
- type: k,
331
- variant: F
332
- }, v = to(B), L = I && /* @__PURE__ */ l(ao, {
333
- className: v.startIcon,
334
- ownerState: B,
330
+ type: N,
331
+ variant: G
332
+ }, y = to(w), L = O && /* @__PURE__ */ i(ao, {
333
+ className: y.startIcon,
334
+ ownerState: w,
335
+ children: O
336
+ }), D = I && /* @__PURE__ */ i(no, {
337
+ className: y.endIcon,
338
+ ownerState: w,
335
339
  children: I
336
- }), D = h && /* @__PURE__ */ l(no, {
337
- className: v.endIcon,
338
- ownerState: B,
339
- children: h
340
- }), U = p || "";
340
+ }), U = d || "";
341
341
  return /* @__PURE__ */ H(ro, {
342
- ownerState: B,
343
- className: O(e.className, v.root, P, U),
344
- component: w,
345
- disabled: m,
346
- focusRipple: !C,
347
- focusVisibleClassName: O(v.focusVisible, V),
342
+ ownerState: w,
343
+ className: R(e.className, y.root, m, U),
344
+ component: l,
345
+ disabled: c,
346
+ focusRipple: !k,
347
+ focusVisibleClassName: R(y.focusVisible, P),
348
348
  ref: n,
349
- type: k,
350
- ...G,
351
- classes: v,
352
- children: [L, s, D]
349
+ type: N,
350
+ ...F,
351
+ classes: y,
352
+ children: [L, x, D]
353
353
  });
354
354
  });
355
- process.env.NODE_ENV !== "production" && (T.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`. │
@@ -360,42 +360,42 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
360
360
  /**
361
361
  * The content of the component.
362
362
  */
363
- children: t.node,
363
+ children: r.node,
364
364
  /**
365
365
  * Override or extend the styles applied to the component.
366
366
  */
367
- classes: t.object,
367
+ classes: r.object,
368
368
  /**
369
369
  * @ignore
370
370
  */
371
- className: t.string,
371
+ className: r.string,
372
372
  /**
373
373
  * The color of the component.
374
374
  * It supports both default and custom theme colors, which can be added as shown in the
375
375
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
376
376
  * @default 'primary'
377
377
  */
378
- color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
378
+ color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), r.string]),
379
379
  /**
380
380
  * The component used for the root node.
381
381
  * Either a string to use a HTML element or a component.
382
382
  */
383
- component: t.elementType,
383
+ component: r.elementType,
384
384
  /**
385
385
  * If `true`, the component is disabled.
386
386
  * @default false
387
387
  */
388
- disabled: t.bool,
388
+ disabled: r.bool,
389
389
  /**
390
390
  * If `true`, no elevation is used.
391
391
  * @default false
392
392
  */
393
- disableElevation: t.bool,
393
+ disableElevation: r.bool,
394
394
  /**
395
395
  * If `true`, the keyboard focus ripple is disabled.
396
396
  * @default false
397
397
  */
398
- disableFocusRipple: t.bool,
398
+ disableFocusRipple: r.bool,
399
399
  /**
400
400
  * If `true`, the ripple effect is disabled.
401
401
  *
@@ -403,128 +403,158 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
403
403
  * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
404
404
  * @default false
405
405
  */
406
- disableRipple: t.bool,
406
+ disableRipple: r.bool,
407
407
  /**
408
408
  * Element placed after the children.
409
409
  */
410
- endIcon: t.node,
410
+ endIcon: r.node,
411
411
  /**
412
412
  * @ignore
413
413
  */
414
- focusVisibleClassName: t.string,
414
+ focusVisibleClassName: r.string,
415
415
  /**
416
416
  * If `true`, the button will take up the full width of its container.
417
417
  * @default false
418
418
  */
419
- fullWidth: t.bool,
419
+ fullWidth: r.bool,
420
420
  /**
421
421
  * The URL to link to when the button is clicked.
422
422
  * If defined, an `a` element will be used as the root node.
423
423
  */
424
- href: t.string,
424
+ href: r.string,
425
425
  /**
426
426
  * The size of the component.
427
427
  * `small` is equivalent to the dense button styling.
428
428
  * @default 'medium'
429
429
  */
430
- size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
430
+ size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
431
431
  /**
432
432
  * Element placed before the children.
433
433
  */
434
- startIcon: t.node,
434
+ startIcon: r.node,
435
435
  /**
436
436
  * The system prop that allows defining system overrides as well as additional CSS styles.
437
437
  */
438
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
438
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
439
439
  /**
440
440
  * @ignore
441
441
  */
442
- type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
442
+ type: r.oneOfType([r.oneOf(["button", "reset", "submit"]), r.string]),
443
443
  /**
444
444
  * The variant to use.
445
445
  * @default 'text'
446
446
  */
447
- variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
447
+ variant: r.oneOfType([r.oneOf(["contained", "outlined", "text"]), r.string])
448
448
  });
449
- const $ = c(T)`
449
+ const S = s(j)`
450
450
  text-transform: none;
451
451
  &:disabled {
452
452
  opacity: 0.5;
453
- color: ${r.colors.black};
453
+ color: ${t.colors.black};
454
454
  display: flex;
455
455
  justify-content: center;
456
456
  align-items: center;
457
457
  }
458
- `, eo = c($)`
459
- background-color: ${r.colors.green};
458
+ `, eo = s(S)`
459
+ background-color: ${t.colors.green};
460
460
  border-radius: 0;
461
461
  height: 2.5rem;
462
462
  border: 2px solid transparent;
463
- color: ${r.colors.white};
463
+ color: ${t.colors.white};
464
464
  transition: 313ms all ease-in;
465
465
  border-radius: 32px;
466
466
  font-weight: 400;
467
467
  padding: 0.75rem 2rem;
468
468
  font-size: 1rem;
469
- box-shadow: ${r.boxShadows.gray63};
469
+ box-shadow: ${t.boxShadows.gray63};
470
470
  &:hover,
471
471
  :focus-visible {
472
- background-color: ${r.colors.darkGreen};
473
- box-shadow: ${r.boxShadows.black63};
472
+ background-color: ${t.colors.darkGreen};
473
+ box-shadow: ${t.boxShadows.black63};
474
474
  }
475
475
  &:disabled {
476
- background-color: ${r.colors.darkGreen};
476
+ background-color: ${t.colors.darkGreen};
477
477
  }
478
- `, io = c($)`
479
- color: ${r.colors.black};
480
- border: 3px solid ${r.colors.blue};
478
+ `, io = s(S)(
479
+ ({
480
+ customBackgroundColor: o = t.colors.green,
481
+ customHoverColor: a = t.colors.darkGreen,
482
+ customTextColor: n = t.colors.white,
483
+ customShadow1: e = t.boxShadows.gray63,
484
+ customShadow2: d = t.boxShadows.black63
485
+ }) => ({
486
+ ...g`
487
+ background-color: ${o};
488
+ border-radius: 0;
489
+ height: 2.5rem;
490
+ border: 2px solid transparent;
491
+ color: ${n};
492
+ transition: 313ms all ease-in;
493
+ border-radius: 32px;
494
+ font-weight: 400;
495
+ padding: 0.75rem 2rem;
496
+ font-size: 1rem;
497
+ box-shadow: ${e};
498
+ &:hover,
499
+ :focus-visible {
500
+ background-color: ${a};
501
+ box-shadow: ${d};
502
+ }
503
+ &:disabled {
504
+ background-color: ${a};
505
+ }
506
+ `
507
+ })
508
+ ), so = s(S)`
509
+ color: ${t.colors.black};
510
+ border: 3px solid ${t.colors.blue};
481
511
  padding: 0.5rem 2rem;
482
- `, z = c($)(({ width: o = "114px" }) => ({
483
- ...f`
512
+ `, h = s(S)(({ width: o = "114px" }) => ({
513
+ ...g`
484
514
  box-sizing: border-box;
485
- background-color: ${r.colors.bibiBlue};
515
+ background-color: ${t.colors.bibiBlue};
486
516
  border-radius: 0;
487
517
  height: 47px;
488
518
  width: ${o};
489
519
  border: 2px solid transparent;
490
- color: ${r.colors.white};
520
+ color: ${t.colors.white};
491
521
  transition: 108ms all ease-in;
492
522
  font-weight: 500;
493
523
  padding: 0;
494
524
  font-size: 19px;
495
525
  &:hover,
496
526
  :focus-visible {
497
- background-color: ${r.colors.bibiBlueHover};
527
+ background-color: ${t.colors.bibiBlueHover};
498
528
  }
499
529
  `
500
- })), so = c(z)(({ active: o }) => ({
501
- ...f`
502
- background-color: ${o && r.colors.white};
503
- color: ${o && r.colors.bibiBlue};
530
+ })), lo = s(h)(({ active: o }) => ({
531
+ ...g`
532
+ background-color: ${o && t.colors.white};
533
+ color: ${o && t.colors.bibiBlue};
504
534
  &:hover,
505
535
  :focus-visible {
506
- background-color: ${r.colors.white};
507
- color: ${r.colors.bibiBlue};
536
+ background-color: ${t.colors.white};
537
+ color: ${t.colors.bibiBlue};
508
538
  }
509
539
  `
510
- })), lo = c(z)(() => ({
511
- ...f`
512
- background-color: ${r.colors.white};
513
- color: ${r.colors.bibiBlue};
540
+ })), co = s(h)(() => ({
541
+ ...g`
542
+ background-color: ${t.colors.white};
543
+ color: ${t.colors.bibiBlue};
514
544
  &:hover,
515
545
  :focus-visible {
516
- background-color: ${r.colors.bibiBlue};
517
- border: 2px solid ${r.colors.white};
518
- color: ${r.colors.white};
546
+ background-color: ${t.colors.bibiBlue};
547
+ border: 2px solid ${t.colors.white};
548
+ color: ${t.colors.white};
519
549
  }
520
550
  `
521
- })), co = c(S)`
551
+ })), po = s(z)`
522
552
  border-radius: 8px;
523
- `, po = c(S, {
553
+ `, uo = s(z, {
524
554
  shouldForwardProp: (o) => typeof o == "string" && Z(o)
525
555
  })(
526
556
  ({ size: o, color: a, highlightColor: n, hoverColor: e }) => ({
527
- ...f`
557
+ ...g`
528
558
  display: flex;
529
559
  align-items: center;
530
560
  justify-content: center;
@@ -548,36 +578,52 @@ const $ = c(T)`
548
578
  }
549
579
  `
550
580
  })
551
- ), uo = c($)(({ active: o }) => ({
552
- ...f`
581
+ ), bo = s(S)(({ active: o }) => ({
582
+ ...g`
553
583
  box-sizing: border-box;
554
- background-color: ${o ? r.colors.black : r.colors.white};
584
+ background-color: ${o ? t.colors.black : t.colors.white};
555
585
  height: 28px;
556
586
  border-radius: 18px;
557
587
  display: flex;
558
588
  align-items: center;
559
589
  justify-content: center;
560
- border: 2px solid ${o ? "transparent" : r.colors.black};
561
- color: ${o ? r.colors.white : r.colors.black};
590
+ border: 2px solid ${o ? "transparent" : t.colors.black};
591
+ color: ${o ? t.colors.white : t.colors.black};
562
592
  transition: 108ms all ease-in;
563
593
  font-weight: 500;
564
594
 
565
595
  &:hover,
566
596
  :focus-visible {
567
- background-color: ${o ? r.colors.charcoal : r.colors.gray2};
597
+ background-color: ${o ? t.colors.charcoal : t.colors.gray2};
568
598
  }
569
599
  `
570
- })), So = ({
600
+ })), wo = ({
571
601
  variant: o = 1,
572
602
  size: a = 50,
573
- color: n = r.colors.darkGreen,
574
- highlightColor: e = r.colors.dandelion,
575
- hoverColor: p = r.colors.green,
576
- children: i,
577
- active: u,
578
- ...s
579
- }) => o === "bibi" ? /* @__PURE__ */ l(z, { ...s, children: i }) : o === "bibiOutlined" ? /* @__PURE__ */ l(so, { ...s, children: i }) : o === "bibiInverse" ? /* @__PURE__ */ l(lo, { ...s, children: i }) : o === "unstyled" ? /* @__PURE__ */ l(co, { ...s, children: i }) : o === 2 ? /* @__PURE__ */ l(io, { ...s, children: /* @__PURE__ */ l("span", { children: i }) }) : o === "icon" ? /* @__PURE__ */ l(po, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: p }, ...s, children: i }) : o === "filter" ? /* @__PURE__ */ l(uo, { className: "jcFilterButton", active: u, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
603
+ color: n = t.colors.darkGreen,
604
+ highlightColor: e = t.colors.dandelion,
605
+ hoverColor: d = t.colors.green,
606
+ backgroundColor: u = t.colors.darkGreen,
607
+ textColor: b = t.colors.white,
608
+ customShadow1: x = t.boxShadows.gray63,
609
+ customShadow2: f = t.boxShadows.black63,
610
+ children: l,
611
+ active: m,
612
+ ...c
613
+ }) => o === "custom" ? /* @__PURE__ */ i(
614
+ io,
615
+ {
616
+ customBackgroundColor: u,
617
+ customHoverColor: d,
618
+ customTextColor: b,
619
+ customShadow1: x,
620
+ customShadow2: f,
621
+ className: "jcCustomButton",
622
+ ...c,
623
+ children: l
624
+ }
625
+ ) : o === "bibi" ? /* @__PURE__ */ i(h, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(lo, { ...c, children: l }) : o === "bibiInverse" ? /* @__PURE__ */ i(co, { ...c, children: l }) : o === "unstyled" ? /* @__PURE__ */ i(po, { ...c, children: l }) : o === 2 ? /* @__PURE__ */ i(so, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(uo, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(bo, { className: "jcFilterButton", active: m, ...c, children: l }) : /* @__PURE__ */ i(eo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
580
626
  export {
581
- So as Button,
582
- So as default
627
+ wo as Button,
628
+ wo as default
583
629
  };
@@ -1,12 +1,12 @@
1
- import { jsxs as g, Fragment as j, jsx as r } from "react/jsx-runtime";
2
- import { FormInput as C } from "../FormInput/FormInput.js";
3
- import { FormSectionTitle as D, FormFieldGrid as S, FormFieldCheckboxContainer as b } from "../FormComponents/FormComponents.js";
4
- import z from "../theme.js";
5
- import { u as G } from "../.chunks/useMediaQuery.js";
6
- const $ = ({
1
+ import { jsxs as j, Fragment as C, jsx as r } from "react/jsx-runtime";
2
+ import { FormInput as D } from "../FormInput/FormInput.js";
3
+ import { FormSectionTitle as S, FormFieldGrid as b, FormFieldCheckboxContainer as z } from "../FormComponents/FormComponents.js";
4
+ import G from "../theme.js";
5
+ import { u as I } from "../.chunks/useMediaQuery.js";
6
+ const q = ({
7
7
  title: i,
8
8
  fields: d,
9
- columns: s = G(`(max-width: ${z.screenSizes.tablet})`) ? 2 : 3,
9
+ columns: s = I(`(max-width: ${G.screenSizes.tablet})`) ? 2 : 3,
10
10
  columnsOverride: u,
11
11
  gap: a = 21,
12
12
  noLabel: F = !1,
@@ -14,29 +14,30 @@ const $ = ({
14
14
  formDefaults: t,
15
15
  onChange: p
16
16
  }) => {
17
- const n = () => d.map(({ key: o, label: c, type: e, limit: f, options: h, defaultValue: l }) => {
18
- const x = t[o] ? t[o] : l || (e === "multiDropdown" ? [] : "");
17
+ const n = () => d.map(({ key: o, label: c, type: e, limit: f, options: h, defaultValue: l, ...x }) => {
18
+ const w = t[o] ? t[o] : l || (e === "multiDropdown" ? [] : "");
19
19
  return /* @__PURE__ */ r(
20
- C,
20
+ D,
21
21
  {
22
- onChange: (w) => p(o, w, e),
22
+ onChange: (g) => p(o, g, e),
23
23
  label: c,
24
24
  type: e,
25
25
  limit: f,
26
- defaultValue: x,
26
+ defaultValue: w,
27
27
  noLabel: F,
28
28
  options: h,
29
- multiple: e === "multiDropdown"
29
+ multiple: e === "multiDropdown",
30
+ ...x
30
31
  },
31
32
  o
32
33
  );
33
34
  });
34
- return /* @__PURE__ */ g(j, { children: [
35
- i && /* @__PURE__ */ r(D, { children: i }),
36
- !m && /* @__PURE__ */ r(S, { columns: s, columnsOverride: u, gap: a, children: /* @__PURE__ */ r(n, {}) }),
37
- m && /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(n, {}) })
35
+ return /* @__PURE__ */ j(C, { children: [
36
+ i && /* @__PURE__ */ r(S, { children: i }),
37
+ !m && /* @__PURE__ */ r(b, { columns: s, columnsOverride: u, gap: a, children: /* @__PURE__ */ r(n, {}) }),
38
+ m && /* @__PURE__ */ r(z, { children: /* @__PURE__ */ r(n, {}) })
38
39
  ] });
39
40
  };
40
41
  export {
41
- $ as default
42
+ q as default
42
43
  };
@@ -1,12 +1,12 @@
1
- import { jsxs as z, jsx as c } from "react/jsx-runtime";
1
+ import { jsxs as z, jsx as r } from "react/jsx-runtime";
2
2
  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
- import ne from "../theme.js";
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 ae } 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";
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 se } from "../.chunks/DefaultPropsProvider.js";
7
+ import { u as ne } from "../.chunks/useFormControl.js";
8
+ import { B as ce } from "../.chunks/ButtonBase.js";
9
+ import { u as re } from "../.chunks/useControlled.js";
10
10
  import { r as D } from "../.chunks/TransitionGroupContext.js";
11
11
  import { c as P } from "../.chunks/createSvgIcon.js";
12
12
  import { m as ie } from "../.chunks/memoTheme.js";
@@ -18,15 +18,15 @@ q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "ed
18
18
  const de = (o) => {
19
19
  const {
20
20
  classes: t,
21
- checked: n,
22
- disabled: a,
23
- edge: s
21
+ checked: a,
22
+ disabled: s,
23
+ edge: n
24
24
  } = o, l = {
25
- root: ["root", n && "checked", a && "disabled", s && `edge${b(s)}`],
25
+ root: ["root", a && "checked", s && "disabled", n && `edge${b(n)}`],
26
26
  input: ["input"]
27
27
  };
28
28
  return H(l, le, t);
29
- }, pe = O(re)({
29
+ }, pe = O(ce)({
30
30
  padding: 9,
31
31
  borderRadius: "50%",
32
32
  variants: [{
@@ -75,10 +75,10 @@ const de = (o) => {
75
75
  margin: 0,
76
76
  padding: 0,
77
77
  zIndex: 1
78
- }), _ = /* @__PURE__ */ v.forwardRef(function(t, n) {
78
+ }), _ = /* @__PURE__ */ v.forwardRef(function(t, a) {
79
79
  const {
80
- autoFocus: a,
81
- checked: s,
80
+ autoFocus: s,
81
+ checked: n,
82
82
  checkedIcon: l,
83
83
  className: p,
84
84
  defaultChecked: d,
@@ -97,28 +97,28 @@ const de = (o) => {
97
97
  required: G = !1,
98
98
  tabIndex: J,
99
99
  type: x,
100
- value: $,
100
+ value: j,
101
101
  ...K
102
- } = t, [j, Q] = ce({
103
- controlled: s,
102
+ } = t, [$, Q] = re({
103
+ controlled: n,
104
104
  default: !!d,
105
105
  name: "SwitchBase",
106
106
  state: "checked"
107
- }), i = se(), X = (r) => {
108
- F && F(r), i && i.onFocus && i.onFocus(r);
109
- }, Y = (r) => {
110
- f && f(r), i && i.onBlur && i.onBlur(r);
111
- }, Z = (r) => {
112
- if (r.nativeEvent.defaultPrevented)
107
+ }), i = ne(), X = (c) => {
108
+ F && F(c), i && i.onFocus && i.onFocus(c);
109
+ }, Y = (c) => {
110
+ f && f(c), i && i.onBlur && i.onBlur(c);
111
+ }, Z = (c) => {
112
+ if (c.nativeEvent.defaultPrevented)
113
113
  return;
114
- const M = r.target.checked;
115
- Q(M), h && h(r, M);
114
+ const M = c.target.checked;
115
+ Q(M), h && h(c, M);
116
116
  };
117
117
  let m = k;
118
118
  i && typeof m > "u" && (m = i.disabled);
119
119
  const ee = x === "checkbox" || x === "radio", R = {
120
120
  ...t,
121
- checked: j,
121
+ checked: $,
122
122
  disabled: m,
123
123
  disableFocusRipple: g,
124
124
  edge: u
@@ -134,11 +134,11 @@ const de = (o) => {
134
134
  onFocus: X,
135
135
  onBlur: Y,
136
136
  ownerState: R,
137
- ref: n,
137
+ ref: a,
138
138
  ...K,
139
- children: [/* @__PURE__ */ c(ue, {
140
- autoFocus: a,
141
- checked: s,
139
+ children: [/* @__PURE__ */ r(ue, {
140
+ autoFocus: s,
141
+ checked: n,
142
142
  defaultChecked: d,
143
143
  className: N.input,
144
144
  disabled: m,
@@ -151,11 +151,11 @@ const de = (o) => {
151
151
  ownerState: R,
152
152
  tabIndex: J,
153
153
  type: x,
154
- ...x === "checkbox" && $ === void 0 ? {} : {
155
- value: $
154
+ ...x === "checkbox" && j === void 0 ? {} : {
155
+ value: j
156
156
  },
157
157
  ...I
158
- }), j ? l : w]
158
+ }), $ ? l : w]
159
159
  });
160
160
  });
161
161
  process.env.NODE_ENV !== "production" && (_.propTypes = {
@@ -261,11 +261,11 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
261
261
  */
262
262
  value: e.any
263
263
  });
264
- const fe = P(/* @__PURE__ */ c("path", {
264
+ const fe = P(/* @__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__ */ c("path", {
266
+ }), "CheckBoxOutlineBlank"), he = P(/* @__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__ */ c("path", {
268
+ }), "CheckBox"), me = P(/* @__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
271
  function be(o) {
@@ -274,11 +274,11 @@ function be(o) {
274
274
  const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), ke = (o) => {
275
275
  const {
276
276
  classes: t,
277
- indeterminate: n,
278
- color: a,
279
- size: s
277
+ indeterminate: a,
278
+ color: s,
279
+ size: n
280
280
  } = o, l = {
281
- root: ["root", n && "indeterminate", `color${b(a)}`, `size${b(s)}`]
281
+ root: ["root", a && "indeterminate", `color${b(s)}`, `size${b(n)}`]
282
282
  }, p = H(l, be, t);
283
283
  return {
284
284
  ...t,
@@ -291,9 +291,9 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
291
291
  slot: "Root",
292
292
  overridesResolver: (o, t) => {
293
293
  const {
294
- ownerState: n
294
+ ownerState: a
295
295
  } = o;
296
- return [t.root, n.indeterminate && t.indeterminate, t[`size${b(n.size)}`], n.color !== "default" && t[`color${b(n.color)}`]];
296
+ return [t.root, a.indeterminate && t.indeterminate, t[`size${b(a.size)}`], a.color !== "default" && t[`color${b(a.color)}`]];
297
297
  }
298
298
  })(ie(({
299
299
  theme: o
@@ -345,12 +345,12 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
345
345
  }
346
346
  }
347
347
  }]
348
- }))), Ce = /* @__PURE__ */ c(he, {}), ye = /* @__PURE__ */ c(fe, {}), xe = /* @__PURE__ */ c(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, n) {
349
- const a = ae({
348
+ }))), Ce = /* @__PURE__ */ r(he, {}), ye = /* @__PURE__ */ r(fe, {}), xe = /* @__PURE__ */ r(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
349
+ const s = se({
350
350
  props: t,
351
351
  name: "MuiCheckbox"
352
352
  }), {
353
- checkedIcon: s = Ce,
353
+ checkedIcon: n = Ce,
354
354
  color: l = "primary",
355
355
  icon: p = ye,
356
356
  indeterminate: d = !1,
@@ -360,14 +360,14 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
360
360
  disableRipple: w = !1,
361
361
  className: B,
362
362
  ...I
363
- } = a, C = d ? k : p, y = d ? k : s, f = {
364
- ...a,
363
+ } = s, C = d ? k : p, y = d ? k : n, f = {
364
+ ...s,
365
365
  disableRipple: w,
366
366
  color: l,
367
367
  indeterminate: d,
368
368
  size: u
369
369
  }, h = ke(f);
370
- return /* @__PURE__ */ c(ge, {
370
+ return /* @__PURE__ */ r(ge, {
371
371
  type: "checkbox",
372
372
  inputProps: {
373
373
  "data-indeterminate": d,
@@ -380,7 +380,7 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
380
380
  fontSize: y.props.fontSize ?? u
381
381
  }),
382
382
  ownerState: f,
383
- ref: n,
383
+ ref: a,
384
384
  className: U(h.root, B),
385
385
  ...I,
386
386
  classes: h
@@ -487,7 +487,7 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
487
487
  */
488
488
  value: e.any
489
489
  });
490
- const ve = oe("div")(({ disabled: o }) => ({
490
+ const ve = oe("div")(() => ({
491
491
  ...te`
492
492
  display: flex;
493
493
  flex-wrap: nowrap;
@@ -505,29 +505,23 @@ const ve = oe("div")(({ disabled: o }) => ({
505
505
  padding: 0;
506
506
  width: 19px;
507
507
  height: 19px;
508
-
509
- cursor: ${o ? "default" : "pointer"};
510
-
511
- input {
512
- cursor: ${o ? "default" : "pointer"};
513
- }
514
508
  }
515
509
 
516
510
  .Mui-checked {
517
- color: ${ne.colors.green} !important;
511
+ color: ${ae.colors.green} !important;
518
512
  }
519
513
  `
520
514
  })), Me = ({
521
515
  label: o,
522
516
  colon: t = !0,
523
- noLabel: n = !1,
524
- ...a
517
+ noLabel: a = !1,
518
+ ...s
525
519
  }) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
526
- !n && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
520
+ !a && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
527
521
  o,
528
522
  t && ":"
529
523
  ] }),
530
- /* @__PURE__ */ c(W, { ...a })
524
+ /* @__PURE__ */ r(W, { ...s })
531
525
  ] });
532
526
  export {
533
527
  Me as LabeledCheckbox,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.311",
4
+ "version": "0.0.315",
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",