jcicl 0.0.128 → 0.0.132

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.
package/Button/Button.js CHANGED
@@ -1,39 +1,39 @@
1
- import { jsxs as D, jsx as d } from "react/jsx-runtime";
2
- import * as x from "react";
3
- import { g as U, a as _, s as c, r as H, c as i, f as A, u as q, b as I, P as t, d as J, e as b } from "../.chunks/DefaultPropsProvider.js";
4
- import { m as K } from "../.chunks/memoTheme.js";
5
- import { c as Q } from "../.chunks/createSimplePaletteValueFilter.js";
1
+ import { jsxs as H, jsx as l } from "react/jsx-runtime";
2
+ import * as g from "react";
3
+ import { g as _, a as A, s as d, r as q, c, f as J, u as K, b as O, P as t, d as Q, e as v } from "../.chunks/DefaultPropsProvider.js";
4
+ import { m as X } from "../.chunks/memoTheme.js";
5
+ import { c as Y } from "../.chunks/createSimplePaletteValueFilter.js";
6
6
  import { B as S } from "../.chunks/ButtonBase.js";
7
- import { i as X } from "../.chunks/emotion-styled.browser.esm.js";
8
- import { c as Y } from "../.chunks/emotion-react.browser.esm.js";
9
- import s from "../theme.js";
10
- function Z(o) {
11
- return U("MuiButton", o);
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 n from "../theme.js";
10
+ function oo(o) {
11
+ return _("MuiButton", o);
12
12
  }
13
- const u = _("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"]), h = /* @__PURE__ */ x.createContext({});
14
- process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
15
- const O = /* @__PURE__ */ x.createContext(void 0);
16
- process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
17
- const oo = (o) => {
13
+ const u = 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__ */ g.createContext({});
14
+ process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
15
+ const E = /* @__PURE__ */ g.createContext(void 0);
16
+ process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupButtonContext");
17
+ const to = (o) => {
18
18
  const {
19
- color: n,
20
- disableElevation: a,
21
- fullWidth: r,
22
- size: e,
23
- variant: l,
19
+ color: a,
20
+ disableElevation: r,
21
+ fullWidth: e,
22
+ size: i,
23
+ variant: s,
24
24
  classes: p
25
- } = o, f = {
26
- root: ["root", l, `${l}${i(n)}`, `size${i(e)}`, `${l}Size${i(e)}`, `color${i(n)}`, a && "disableElevation", r && "fullWidth"],
25
+ } = o, y = {
26
+ root: ["root", s, `${s}${c(a)}`, `size${c(i)}`, `${s}Size${c(i)}`, `color${c(a)}`, r && "disableElevation", e && "fullWidth"],
27
27
  label: ["label"],
28
- startIcon: ["icon", "startIcon", `iconSize${i(e)}`],
29
- endIcon: ["icon", "endIcon", `iconSize${i(e)}`]
30
- }, y = J(f, Z, p);
28
+ startIcon: ["icon", "startIcon", `iconSize${c(i)}`],
29
+ endIcon: ["icon", "endIcon", `iconSize${c(i)}`]
30
+ }, B = Q(y, oo, p);
31
31
  return {
32
32
  ...p,
33
33
  // forward the focused, disabled, etc. classes to the ButtonBase
34
- ...y
34
+ ...B
35
35
  };
36
- }, R = [{
36
+ }, N = [{
37
37
  props: {
38
38
  size: "small"
39
39
  },
@@ -60,20 +60,20 @@ const oo = (o) => {
60
60
  fontSize: 22
61
61
  }
62
62
  }
63
- }], to = c(S, {
64
- shouldForwardProp: (o) => H(o) || o === "classes",
63
+ }], ro = d(S, {
64
+ shouldForwardProp: (o) => q(o) || o === "classes",
65
65
  name: "MuiButton",
66
66
  slot: "Root",
67
- overridesResolver: (o, n) => {
67
+ overridesResolver: (o, a) => {
68
68
  const {
69
- ownerState: a
69
+ ownerState: r
70
70
  } = o;
71
- return [n.root, n[a.variant], n[`${a.variant}${i(a.color)}`], n[`size${i(a.size)}`], n[`${a.variant}Size${i(a.size)}`], a.color === "inherit" && n.colorInherit, a.disableElevation && n.disableElevation, a.fullWidth && n.fullWidth];
71
+ return [a.root, a[r.variant], a[`${r.variant}${c(r.color)}`], a[`size${c(r.size)}`], a[`${r.variant}Size${c(r.size)}`], r.color === "inherit" && a.colorInherit, r.disableElevation && a.disableElevation, r.fullWidth && a.fullWidth];
72
72
  }
73
- })(K(({
73
+ })(X(({
74
74
  theme: o
75
75
  }) => {
76
- const n = 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];
76
+ const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], r = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
77
77
  return {
78
78
  ...o.typography.button,
79
79
  minWidth: 64,
@@ -139,22 +139,22 @@ const oo = (o) => {
139
139
  color: "var(--variant-textColor)",
140
140
  backgroundColor: "var(--variant-textBg)"
141
141
  }
142
- }, ...Object.entries(o.palette).filter(Q()).map(([r]) => ({
142
+ }, ...Object.entries(o.palette).filter(Y()).map(([e]) => ({
143
143
  props: {
144
- color: r
144
+ color: e
145
145
  },
146
146
  style: {
147
- "--variant-textColor": (o.vars || o).palette[r].main,
148
- "--variant-outlinedColor": (o.vars || o).palette[r].main,
149
- "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / 0.5)` : b(o.palette[r].main, 0.5),
150
- "--variant-containedColor": (o.vars || o).palette[r].contrastText,
151
- "--variant-containedBg": (o.vars || o).palette[r].main,
147
+ "--variant-textColor": (o.vars || o).palette[e].main,
148
+ "--variant-outlinedColor": (o.vars || o).palette[e].main,
149
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` : v(o.palette[e].main, 0.5),
150
+ "--variant-containedColor": (o.vars || o).palette[e].contrastText,
151
+ "--variant-containedBg": (o.vars || o).palette[e].main,
152
152
  "@media (hover: hover)": {
153
153
  "&:hover": {
154
- "--variant-containedBg": (o.vars || o).palette[r].dark,
155
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity),
156
- "--variant-outlinedBorder": (o.vars || o).palette[r].main,
157
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity)
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})` : v(o.palette[e].main, o.palette.action.hoverOpacity),
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})` : v(o.palette[e].main, o.palette.action.hoverOpacity)
158
158
  }
159
159
  }
160
160
  }
@@ -165,12 +165,12 @@ const oo = (o) => {
165
165
  style: {
166
166
  color: "inherit",
167
167
  borderColor: "currentColor",
168
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
168
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
169
169
  "@media (hover: hover)": {
170
170
  "&:hover": {
171
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
172
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity),
173
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity)
171
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : r,
172
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
173
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity)
174
174
  }
175
175
  }
176
176
  }
@@ -256,14 +256,14 @@ const oo = (o) => {
256
256
  }
257
257
  }]
258
258
  };
259
- })), ao = c("span", {
259
+ })), ao = d("span", {
260
260
  name: "MuiButton",
261
261
  slot: "StartIcon",
262
- overridesResolver: (o, n) => {
262
+ overridesResolver: (o, a) => {
263
263
  const {
264
- ownerState: a
264
+ ownerState: r
265
265
  } = o;
266
- return [n.startIcon, n[`iconSize${i(a.size)}`]];
266
+ return [a.startIcon, a[`iconSize${c(r.size)}`]];
267
267
  }
268
268
  })({
269
269
  display: "inherit",
@@ -276,15 +276,15 @@ const oo = (o) => {
276
276
  style: {
277
277
  marginLeft: -2
278
278
  }
279
- }, ...R]
280
- }), no = c("span", {
279
+ }, ...N]
280
+ }), no = d("span", {
281
281
  name: "MuiButton",
282
282
  slot: "EndIcon",
283
- overridesResolver: (o, n) => {
283
+ overridesResolver: (o, a) => {
284
284
  const {
285
- ownerState: a
285
+ ownerState: r
286
286
  } = o;
287
- return [n.endIcon, n[`iconSize${i(a.size)}`]];
287
+ return [a.endIcon, a[`iconSize${c(r.size)}`]];
288
288
  }
289
289
  })({
290
290
  display: "inherit",
@@ -297,62 +297,62 @@ const oo = (o) => {
297
297
  style: {
298
298
  marginRight: -2
299
299
  }
300
- }, ...R]
301
- }), k = /* @__PURE__ */ x.forwardRef(function(n, a) {
302
- const r = x.useContext(h), e = x.useContext(O), l = A(r, n), p = q({
303
- props: l,
300
+ }, ...N]
301
+ }), T = /* @__PURE__ */ g.forwardRef(function(a, r) {
302
+ const e = g.useContext(R), i = g.useContext(E), s = J(e, a), p = K({
303
+ props: s,
304
304
  name: "MuiButton"
305
305
  }), {
306
- children: f,
307
- color: y = "primary",
308
- component: B = "button",
309
- className: N,
310
- disabled: z = !1,
311
- disableElevation: P = !1,
312
- disableFocusRipple: $ = !1,
313
- endIcon: m,
314
- focusVisibleClassName: T,
315
- fullWidth: W = !1,
316
- size: V = "medium",
317
- startIcon: C,
318
- type: w,
319
- variant: M = "text",
320
- ...j
321
- } = p, g = {
306
+ children: y,
307
+ color: B = "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: M = !1,
316
+ size: j = "medium",
317
+ startIcon: I,
318
+ type: k,
319
+ variant: G = "text",
320
+ ...L
321
+ } = p, x = {
322
322
  ...p,
323
- color: y,
324
- component: B,
325
- disabled: z,
326
- disableElevation: P,
327
- disableFocusRipple: $,
328
- fullWidth: W,
329
- size: V,
330
- type: w,
331
- variant: M
332
- }, v = oo(g), G = C && /* @__PURE__ */ d(ao, {
333
- className: v.startIcon,
334
- ownerState: g,
335
- children: C
336
- }), L = m && /* @__PURE__ */ d(no, {
337
- className: v.endIcon,
338
- ownerState: g,
339
- children: m
340
- }), F = e || "";
341
- return /* @__PURE__ */ D(to, {
342
- ownerState: g,
343
- className: I(r.className, v.root, N, F),
344
- component: B,
345
- disabled: z,
346
- focusRipple: !$,
347
- focusVisibleClassName: I(v.focusVisible, T),
348
- ref: a,
349
- type: w,
350
- ...j,
351
- classes: v,
352
- children: [G, f, L]
323
+ color: B,
324
+ component: w,
325
+ disabled: m,
326
+ disableElevation: W,
327
+ disableFocusRipple: C,
328
+ fullWidth: M,
329
+ size: j,
330
+ type: k,
331
+ variant: G
332
+ }, b = to(x), F = I && /* @__PURE__ */ l(ao, {
333
+ className: b.startIcon,
334
+ ownerState: x,
335
+ children: I
336
+ }), D = h && /* @__PURE__ */ l(no, {
337
+ className: b.endIcon,
338
+ ownerState: x,
339
+ children: h
340
+ }), U = i || "";
341
+ return /* @__PURE__ */ H(ro, {
342
+ ownerState: x,
343
+ className: O(e.className, b.root, P, U),
344
+ component: w,
345
+ disabled: m,
346
+ focusRipple: !C,
347
+ focusVisibleClassName: O(b.focusVisible, V),
348
+ ref: r,
349
+ type: k,
350
+ ...L,
351
+ classes: b,
352
+ children: [F, y, D]
353
353
  });
354
354
  });
355
- process.env.NODE_ENV !== "production" && (k.propTypes = {
355
+ process.env.NODE_ENV !== "production" && (T.propTypes = {
356
356
  // ┌────────────────────────────── Warning ──────────────────────────────┐
357
357
  // │ These PropTypes are generated from the TypeScript type definitions. │
358
358
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -446,45 +446,84 @@ process.env.NODE_ENV !== "production" && (k.propTypes = {
446
446
  */
447
447
  variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
448
448
  });
449
- const E = c(k)`
449
+ const $ = d(T)`
450
450
  text-transform: none;
451
451
  &:disabled {
452
452
  opacity: 0.5;
453
- color: ${s.colors.black};
453
+ color: ${n.colors.black};
454
454
  display: flex;
455
455
  justify-content: center;
456
456
  align-items: center;
457
457
  }
458
- `, ro = c(E)`
459
- background-color: ${s.colors.green};
458
+ `, eo = d($)`
459
+ background-color: ${n.colors.green};
460
460
  border-radius: 0;
461
461
  height: 2.5rem;
462
462
  border: 2px solid transparent;
463
- color: ${s.colors.white};
463
+ color: ${n.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: ${s.boxShadows.gray63};
469
+ box-shadow: ${n.boxShadows.gray63};
470
470
  &:hover,
471
471
  :focus-visible {
472
- background-color: ${s.colors.darkGreen};
473
- box-shadow: ${s.boxShadows.black63};
472
+ background-color: ${n.colors.darkGreen};
473
+ box-shadow: ${n.boxShadows.black63};
474
474
  }
475
475
  &:disabled {
476
- background-color: ${s.colors.darkGreen};
476
+ background-color: ${n.colors.darkGreen};
477
477
  }
478
- `, eo = c(E)`
479
- color: ${s.colors.black};
480
- border: 3px solid ${s.colors.blue};
478
+ `, io = d($)`
479
+ color: ${n.colors.black};
480
+ border: 3px solid ${n.colors.blue};
481
481
  padding: 0.5rem 2rem;
482
- `, io = c(S)`
482
+ `, z = d($)(({ width: o = "114px" }) => ({
483
+ ...f`
484
+ box-sizing: border-box;
485
+ background-color: ${n.colors.bibiBlue};
486
+ border-radius: 0;
487
+ height: 47px;
488
+ width: ${o};
489
+ border: 2px solid transparent;
490
+ color: ${n.colors.white};
491
+ transition: 108ms all ease-in;
492
+ font-weight: 500;
493
+ padding: 0;
494
+ font-size: 19px;
495
+ &:hover,
496
+ :focus-visible {
497
+ background-color: ${n.colors.bibiBlueHover};
498
+ }
499
+ `
500
+ })), so = d(z)(({ active: o }) => ({
501
+ ...f`
502
+ background-color: ${o && n.colors.white};
503
+ color: ${o && n.colors.bibiBlue};
504
+ &:hover,
505
+ :focus-visible {
506
+ background-color: ${n.colors.white};
507
+ color: ${n.colors.bibiBlue};
508
+ }
509
+ `
510
+ })), lo = d(z)(() => ({
511
+ ...f`
512
+ background-color: ${n.colors.white};
513
+ color: ${n.colors.bibiBlue};
514
+ &:hover,
515
+ :focus-visible {
516
+ background-color: ${n.colors.bibiBlue};
517
+ border: 2px solid ${n.colors.white};
518
+ color: ${n.colors.white};
519
+ }
520
+ `
521
+ })), co = d(S)`
483
522
  border-radius: 8px;
484
- `, so = c(S, {
485
- shouldForwardProp: (o) => typeof o == "string" && X(o)
486
- })(({ size: o, color: n, highlightColor: a }) => ({
487
- ...Y`
523
+ `, po = d(S, {
524
+ shouldForwardProp: (o) => typeof o == "string" && Z(o)
525
+ })(({ size: o, color: a, highlightColor: r }) => ({
526
+ ...f`
488
527
  display: flex;
489
528
  align-items: center;
490
529
  justify-content: center;
@@ -494,27 +533,27 @@ const E = c(k)`
494
533
  &:hover,
495
534
  :focus-visible {
496
535
  svg {
497
- filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
498
- drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
536
+ filter: drop-shadow(0 0 6px ${r}) drop-shadow(0 0 6px ${r})
537
+ drop-shadow(0 0 6px ${r}) drop-shadow(0 0 6px ${r});
499
538
  }
500
539
  }
501
540
 
502
541
  svg {
503
542
  transition: 313ms all ease-in-out;
504
- fill: ${n};
543
+ fill: ${a};
505
544
  width: ${o}px;
506
545
  height: ${o}px;
507
546
  }
508
547
  `
509
- })), fo = ({
548
+ })), So = ({
510
549
  variant: o = 1,
511
- size: n = 50,
512
- color: a = s.colors.darkGreen,
513
- highlightColor: r = s.colors.dandelion,
514
- children: e,
515
- ...l
516
- }) => o === "unstyled" ? /* @__PURE__ */ d(io, { ...l, children: e }) : o === 2 ? /* @__PURE__ */ d(eo, { ...l, children: /* @__PURE__ */ d("span", { children: e }) }) : o === "icon" ? /* @__PURE__ */ d(so, { ...{ size: n, color: a, highlightColor: r }, ...l, children: e }) : /* @__PURE__ */ d(ro, { ...l, children: /* @__PURE__ */ d("span", { children: e }) });
550
+ size: a = 50,
551
+ color: r = n.colors.darkGreen,
552
+ highlightColor: e = n.colors.dandelion,
553
+ children: i,
554
+ ...s
555
+ }) => 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: "jcButton", ...{ size: a, color: r, highlightColor: e }, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
517
556
  export {
518
- fo as Button,
519
- fo as default
557
+ So as Button,
558
+ So as default
520
559
  };
@@ -11,7 +11,7 @@ import L from "../Loading/Loading.js";
11
11
  import M from "../WithLoading/WithLoading.js";
12
12
  import { Flex as f } from "../Flex/Flex.js";
13
13
  import { Tooltip as x } from "../Tooltip/Tooltip.js";
14
- import { T as _ } from "../.chunks/Input.js";
14
+ import { T as _ } from "../.chunks/TextField.js";
15
15
  import { B as oo } from "../.chunks/ButtonBase.js";
16
16
  const eo = j(/* @__PURE__ */ o("path", {
17
17
  d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
package/Icon/Icon.d.ts CHANGED
@@ -4,6 +4,7 @@ export interface IconProps {
4
4
  iconColor?: string;
5
5
  backgroundColor?: string;
6
6
  size?: number;
7
+ padding?: number;
7
8
  }
8
9
  declare const Icon: React.FC<IconProps & ButtonBaseProps>;
9
10
  export default Icon;
package/Icon/Icon.js CHANGED
@@ -1,26 +1,29 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { B as c } from "../.chunks/ButtonBase.js";
3
- import t from "../theme.js";
4
- import { n as l, i as p } from "../.chunks/emotion-styled.browser.esm.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { B as p } from "../.chunks/ButtonBase.js";
3
+ import i from "../theme.js";
4
+ import { n as l, i as m } from "../.chunks/emotion-styled.browser.esm.js";
5
5
  const a = l("div", {
6
- shouldForwardProp: (r) => p(r)
6
+ shouldForwardProp: (r) => m(r)
7
7
  })(
8
- ({ iconColor: r = t.colors.darkGreen, backgroundColor: n = t.colors.mint, size: e = 40 }) => ({
8
+ ({ iconColor: r = i.colors.darkGreen, backgroundColor: n = i.colors.mint, size: o = 40, padding: s = 8 }) => ({
9
9
  display: "flex",
10
10
  alignItems: "center",
11
11
  justifyContent: "center",
12
+ borderRadius: "50%",
13
+ boxShadow: `0 0 2px ${i.colors.midnight}`,
12
14
  svg: {
15
+ boxSizing: "border-box",
13
16
  border: `1px solid ${r}`,
14
17
  backgroundColor: n,
15
18
  borderRadius: "50%",
16
- padding: "8px",
19
+ padding: `${s}px`,
17
20
  fill: r,
18
- width: `${e - 18}px`,
19
- height: `${e - 18}px`,
21
+ width: `${o}px`,
22
+ height: `${o}px`,
20
23
  pointerEvents: "none"
21
24
  }
22
25
  })
23
- ), m = l(c)({
26
+ ), h = l(p)({
24
27
  backgroundColor: "transparent",
25
28
  borderRadius: "50%",
26
29
  span: {
@@ -28,19 +31,20 @@ const a = l("div", {
28
31
  },
29
32
  "&:hover, :focus-visible": {
30
33
  span: {
31
- backgroundColor: t.colors.grayO44
34
+ backgroundColor: i.colors.grayO44
32
35
  }
33
36
  }
34
- }), x = ({
37
+ }), b = ({
35
38
  icon: r,
36
39
  iconColor: n,
37
- backgroundColor: e,
38
- size: d,
39
- ...o
40
+ backgroundColor: o,
41
+ size: s,
42
+ padding: c,
43
+ ...e
40
44
  }) => {
41
- const s = { iconColor: n, backgroundColor: e, size: d };
42
- return o != null && o.onClick ? /* @__PURE__ */ i(m, { ...o, children: /* @__PURE__ */ i(a, { ...s, children: r }) }) : /* @__PURE__ */ i(a, { ...s, children: r });
45
+ const d = { iconColor: n, backgroundColor: o, size: s, padding: c };
46
+ return e != null && e.onClick ? /* @__PURE__ */ t(h, { ...e, children: /* @__PURE__ */ t(a, { ...d, children: r }) }) : /* @__PURE__ */ t(a, { ...d, children: r });
43
47
  };
44
48
  export {
45
- x as default
49
+ b as default
46
50
  };
package/Input/Input.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
2
2
  export type InputProps = Omit<MuiTextFieldProps, 'variant'> & {
3
- variant?: 'outlined' | 'simple';
4
- shadowTertiary?: string;
5
- borderColor?: string;
6
3
  borderFocusColor?: string;
7
4
  };
8
5
  export declare const Input: React.FC<InputProps>;
package/Input/Input.js CHANGED
@@ -1,8 +1,43 @@
1
- import "react/jsx-runtime";
2
- import "../.chunks/emotion-styled.browser.esm.js";
3
- import "../theme.js";
4
- import { I as a, I as i } from "../.chunks/Input.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { n as t } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import r from "../theme.js";
4
+ import { T as d } from "../.chunks/TextField.js";
5
+ const s = t(d, {
6
+ shouldForwardProp: (o) => o != "borderFocusColor"
7
+ })(({ borderFocusColor: o }) => ({
8
+ backgroundColor: r.colors.white,
9
+ borderRadius: "0",
10
+ height: "18px",
11
+ input: {
12
+ transition: "313ms all ease-out",
13
+ height: "15px",
14
+ padding: "2px 0",
15
+ borderRadius: "0",
16
+ borderBottom: `1px solid ${r.colors.gray}`,
17
+ "&:focus-visible": {
18
+ boxShadow: `0 3px 2px -2px ${o}`
19
+ }
20
+ },
21
+ "&:hover, :focus-visible": {
22
+ input: {
23
+ boxShadow: `0 3px 2px -2px ${o}`
24
+ }
25
+ },
26
+ fieldset: {
27
+ borderRadius: "0",
28
+ border: "none"
29
+ },
30
+ "&.Mui-focused": {
31
+ fieldset: {
32
+ border: "none"
33
+ }
34
+ }
35
+ })), x = ({
36
+ borderFocusColor: o = r.colors.darkGreen,
37
+ // icon primary
38
+ ...e
39
+ }) => /* @__PURE__ */ i(s, { borderFocusColor: o, ...e });
5
40
  export {
6
- a as Input,
7
- i as default
41
+ x as Input,
42
+ x as default
8
43
  };
package/Input/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as f } from "../.chunks/Input.js";
1
+ import { Input as e } from "./Input.js";
2
2
  export {
3
- f as default
3
+ e as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import { n as p } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as s } from "../.chunks/emotion-react.browser.esm.js";
4
- import { I as i } from "../.chunks/Input.js";
4
+ import { Input as i } from "../Input/Input.js";
5
5
  const n = p("div")(({ grid: t }) => ({
6
6
  ...s`
7
7
  display: flex;
@@ -23,12 +23,12 @@ const n = p("div")(({ grid: t }) => ({
23
23
  width: ${t && "calc(100% + 4px)"};
24
24
  }
25
25
  `
26
- })), c = ({ label: t, grid: a = !0, ...o }) => /* @__PURE__ */ e(n, { grid: a, children: [
26
+ })), c = ({ label: t, grid: o = !0, ...r }) => /* @__PURE__ */ e(n, { grid: o, children: [
27
27
  /* @__PURE__ */ e("span", { children: [
28
28
  t,
29
29
  ":"
30
30
  ] }),
31
- /* @__PURE__ */ r(i, { variant: "simple", ...o })
31
+ /* @__PURE__ */ a(i, { ...r })
32
32
  ] });
33
33
  export {
34
34
  c as LabeledInput,
@@ -5,7 +5,7 @@ export interface ListButtonProps extends ButtonBaseProps {
5
5
  active?: boolean;
6
6
  activeStyles?: CSSProperties;
7
7
  }
8
- declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "children" | "sx" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
8
+ declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef"> & {
9
9
  theme?: import('@emotion/react').Theme;
10
10
  } & ListButtonProps, {}, {}>;
11
11
  export default ListButton;