jcicl 0.0.130 → 0.0.133

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,4 +1,5 @@
1
- import { AvatarProps } from '../../../../../../../../../src/components/base/Avatar';
1
+ import { SearchFilterProps } from '../../../../../../../../../src/components/composite/Search';
2
+ import { IconProps } from '../../../../../../../../../src/components/base/Icon';
2
3
  import { TemplateThemeProps } from '../../../../../../../../../src/components/theme';
3
4
  export interface CustomLogoProps {
4
5
  logoSrc: string;
@@ -12,11 +13,15 @@ export interface AppHeaderProps {
12
13
  onLogout?: () => void;
13
14
  onUserMenuClick?: () => void;
14
15
  onHamburgerMenuClick?: () => void;
16
+ onSearch?: () => void;
15
17
  logoProps: CustomLogoProps;
16
18
  iconColor: string;
17
19
  isMobile?: boolean;
18
20
  themeProps: Pick<TemplateThemeProps, 'shadowSecondary' | 'iconPrimary' | 'borderPrimary' | 'shadowTertiary'>;
19
- avatarColors?: AvatarProps;
21
+ iconColors?: IconProps;
22
+ userName?: string;
23
+ userSettingsEnabled?: boolean;
24
+ searchFilters?: SearchFilterProps[];
20
25
  }
21
26
  declare const AppHeader: React.FC<AppHeaderProps>;
22
27
  export default AppHeader;
@@ -1,27 +1,27 @@
1
- import { jsx as n, jsxs as x } from "react/jsx-runtime";
2
- import * as S from "react";
3
- import V, { useState as w, useLayoutEffect as B } from "react";
4
- import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
5
- import { c as b } from "../.chunks/emotion-react.browser.esm.js";
6
- import { I as W } from "../.chunks/Input.js";
7
- import { Button as k } from "../Button/Button.js";
8
- import E from "../Avatar/Avatar.js";
9
- import q from "../WithLabel/WithLabel.js";
10
- import { c as T } from "../.chunks/createSvgIcon.js";
11
- const D = V[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], G = (e) => {
12
- const t = S.useRef(e);
13
- return S.useEffect(() => {
14
- t.current = e;
15
- }), t;
1
+ import { jsx as t, jsxs as w } from "react/jsx-runtime";
2
+ import * as W from "react";
3
+ import J, { useState as $, useLayoutEffect as K } from "react";
4
+ import { n as f } from "../.chunks/emotion-styled.browser.esm.js";
5
+ import { c as m } from "../.chunks/emotion-react.browser.esm.js";
6
+ import { Search as k } from "../Search/Search.js";
7
+ import { Button as M } from "../Button/Button.js";
8
+ import E from "../Icon/Icon.js";
9
+ import N from "../WithLabel/WithLabel.js";
10
+ import { c as A } from "../.chunks/createSvgIcon.js";
11
+ const Q = J[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], X = (e) => {
12
+ const n = W.useRef(e);
13
+ return W.useEffect(() => {
14
+ n.current = e;
15
+ }), n;
16
16
  };
17
- function J() {
17
+ function Y() {
18
18
  }
19
- function K(e, t, l = {}) {
20
- const c = Q(l.polyfill), a = G(t);
21
- return D(() => {
19
+ function Z(e, n, l = {}) {
20
+ const c = te(l.polyfill), a = X(n);
21
+ return Q(() => {
22
22
  let i = !1;
23
23
  const d = e && "current" in e ? e.current : e;
24
- if (!d) return J;
24
+ if (!d) return Y;
25
25
  function r(o, s) {
26
26
  i || a.current(o, s);
27
27
  }
@@ -30,8 +30,8 @@ function K(e, t, l = {}) {
30
30
  };
31
31
  }, [e, c, a]), c.observer;
32
32
  }
33
- function N(e) {
34
- let t = !1, l = [];
33
+ function ee(e) {
34
+ let n = !1, l = [];
35
35
  const c = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((i, d) => {
36
36
  l = l.concat(i);
37
37
  function r() {
@@ -39,12 +39,12 @@ function N(e) {
39
39
  for (let s = 0; s < l.length; s++) {
40
40
  if (o.has(l[s].target)) continue;
41
41
  o.add(l[s].target);
42
- const u = c.get(l[s].target);
43
- u == null || u.forEach((p) => p(l[s], d));
42
+ const h = c.get(l[s].target);
43
+ h == null || h.forEach((b) => b(l[s], d));
44
44
  }
45
- l = [], t = !1;
45
+ l = [], n = !1;
46
46
  }
47
- t || window.requestAnimationFrame(r), t = !0;
47
+ n || window.requestAnimationFrame(r), n = !0;
48
48
  });
49
49
  return {
50
50
  observer: a,
@@ -66,12 +66,14 @@ function N(e) {
66
66
  }
67
67
  };
68
68
  }
69
- let C;
70
- const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
69
+ let y;
70
+ const te = (e) => y || (y = ee(e)), ne = A(/* @__PURE__ */ t("path", {
71
71
  d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
72
- }), "Menu"), M = h("div")(
73
- ({ mobile: e, shadowSecondary: t }) => ({
74
- ...b`
72
+ }), "Menu"), H = A(/* @__PURE__ */ t("path", {
73
+ d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
74
+ }), "PersonOutlineOutlined"), I = f("div")(
75
+ ({ mobile: e, shadowSecondary: n }) => ({
76
+ ...m`
75
77
  z-index: 1313;
76
78
  display: flex;
77
79
  flex-direction: row;
@@ -80,38 +82,38 @@ const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
80
82
  align-items: center;
81
83
  justify-content: space-between;
82
84
  gap: ${e ? "8px" : "1.5rem"};
83
- box-shadow: ${e && t};
85
+ box-shadow: ${e && n};
84
86
  `
85
87
  })
86
- ), O = h("img")(({ width: e }) => ({
88
+ ), L = f("img")(({ width: e }) => ({
87
89
  width: `${e}px`
88
- })), I = h("div")(({ height: e }) => ({
89
- ...b`
90
+ })), R = f("div")(({ height: e }) => ({
91
+ ...m`
90
92
  display: flex;
91
93
  gap: 1rem;
92
94
  height: ${e}px;
93
95
  `
94
- })), Y = h("div")(({ width: e, loggedIn: t }) => ({
95
- ...b`
96
+ })), ie = f("div")(({ width: e, loggedIn: n }) => ({
97
+ ...m`
96
98
  width: ${e}px;
97
99
  display: flex;
98
100
  justify-content: center;
99
101
  align-items: flex-end;
100
- flex-direction: ${t ? "column" : "column-reverse"};
102
+ flex-direction: ${n ? "column" : "column-reverse"};
101
103
  flex-shrink: 0;
102
104
  * {
103
105
  white-space: nowrap;
104
106
  }
105
107
  `
106
- })), L = h("div")(({ visible: e }) => ({
107
- ...b`
108
+ })), _ = f("div")(({ visible: e }) => ({
109
+ ...m`
108
110
  z-index: ${e ? 1 : 0};
109
111
  opacity: ${e ? 1 : 0};
110
112
  pointer-events: ${e ? "auto" : "none"};
111
113
  position: ${e ? "relative" : "absolute"};
112
114
  `
113
- })), R = h("div")(() => ({
114
- ...b`
115
+ })), P = f("div")(() => ({
116
+ ...m`
115
117
  display: flex;
116
118
  width: 1360px;
117
119
  max-width: 100%;
@@ -119,48 +121,74 @@ const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
119
121
  width: 100%;
120
122
  }
121
123
  `
122
- })), le = ({
124
+ })), he = ({
123
125
  isMobile: e,
124
- loggedIn: t,
126
+ loggedIn: n,
125
127
  logoProps: l,
126
128
  iconColor: c,
127
129
  themeProps: a,
128
130
  hamburgerMenu: i,
129
- avatarColors: d,
130
- onHamburgerMenuClick: r,
131
- onUserMenuClick: o,
132
- onLogin: s
131
+ iconColors: d,
132
+ userName: r = "User",
133
+ userSettingsEnabled: o,
134
+ searchFilters: s,
135
+ onHamburgerMenuClick: h,
136
+ onUserMenuClick: b,
137
+ onLogin: j,
138
+ onSearch: V = () => {
139
+ }
133
140
  }) => {
134
- const [u, p] = w(0), [f, _] = w(null), [v, A] = w(null), { logoSrc: $, logoWidth: y, logoHeight: g } = l, { shadowSecondary: H, shadowTertiary: j, iconPrimary: P, borderPrimary: F } = a, z = { shadowTertiary: j, borderColor: F, borderFocusColor: P };
135
- B(() => {
136
- f && f.clientWidth > u && p(f.clientWidth), v && v.clientWidth > u && p(v.clientWidth);
137
- }, [f, v]);
138
- const U = (m) => {
139
- m != null && m.clientWidth && m.clientWidth > u && p(m.clientWidth);
141
+ const [v, C] = $(0), [u, F] = $(null), [g, U] = $(null), { logoSrc: z, logoWidth: O, logoHeight: x } = l, { shadowSecondary: B, shadowTertiary: q, iconPrimary: T, borderPrimary: D } = a, S = {
142
+ shadowTertiary: q,
143
+ borderColor: D,
144
+ borderFocusColor: T,
145
+ filters: s,
146
+ onSearch: V,
147
+ placeholder: "Search..."
140
148
  };
141
- return K(f, () => U(f)), e ? /* @__PURE__ */ x(M, { mobile: !0, shadowSecondary: H, children: [
142
- /* @__PURE__ */ n(I, { height: g, children: /* @__PURE__ */ n(O, { src: $, height: `${g}px`, width: y }) }),
143
- /* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(W, { ...z, placeholder: "Search..." }) }),
144
- /* @__PURE__ */ n(E, { ...d, onClick: o })
145
- ] }) : /* @__PURE__ */ x(M, { children: [
146
- /* @__PURE__ */ x(I, { height: g, children: [
147
- /* @__PURE__ */ n(O, { src: $, height: `${g}px`, width: y }),
148
- i && /* @__PURE__ */ n(k, { variant: "icon", onClick: r, color: c, children: /* @__PURE__ */ n(X, {}) })
149
+ K(() => {
150
+ u && u.clientWidth > v && C(u.clientWidth), g && g.clientWidth > v && C(g.clientWidth);
151
+ }, [u, g]);
152
+ const G = (p) => {
153
+ p != null && p.clientWidth && p.clientWidth > v && C(p.clientWidth);
154
+ };
155
+ return Z(u, () => G(u)), e ? /* @__PURE__ */ w(I, { mobile: !0, shadowSecondary: B, children: [
156
+ /* @__PURE__ */ t(R, { height: x, children: /* @__PURE__ */ t(L, { src: z, height: `${x}px`, width: O }) }),
157
+ /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(k, { ...S }) }),
158
+ /* @__PURE__ */ t(
159
+ E,
160
+ {
161
+ icon: /* @__PURE__ */ t(H, {}),
162
+ ...d,
163
+ onClick: o ? b : void 0
164
+ }
165
+ )
166
+ ] }) : /* @__PURE__ */ w(I, { children: [
167
+ /* @__PURE__ */ w(R, { height: x, children: [
168
+ /* @__PURE__ */ t(L, { src: z, height: `${x}px`, width: O }),
169
+ i && /* @__PURE__ */ t(M, { variant: "icon", onClick: h, color: c, children: /* @__PURE__ */ t(ne, {}) })
149
170
  ] }),
150
- /* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(W, { ...z, placeholder: "Search..." }) }),
151
- /* @__PURE__ */ x(Y, { width: u, loggedIn: !!t, children: [
152
- /* @__PURE__ */ n(L, { visible: !!t, ref: _, children: /* @__PURE__ */ n(
153
- q,
171
+ /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(k, { ...S }) }),
172
+ /* @__PURE__ */ w(ie, { width: v, loggedIn: !!n, children: [
173
+ /* @__PURE__ */ t(_, { visible: !!n, ref: F, children: /* @__PURE__ */ t(
174
+ N,
154
175
  {
155
176
  id: "accountMenuContainer",
156
- component: /* @__PURE__ */ n(E, { ...d, onClick: o }),
157
- label: "Welcome, User"
177
+ component: /* @__PURE__ */ t(
178
+ E,
179
+ {
180
+ icon: /* @__PURE__ */ t(H, {}),
181
+ ...d,
182
+ onClick: o ? b : void 0
183
+ }
184
+ ),
185
+ label: `Hi, ${r}!`
158
186
  }
159
187
  ) }),
160
- /* @__PURE__ */ n(L, { visible: !t, ref: A, children: /* @__PURE__ */ n(k, { id: "loginButtonContainer", onClick: s, children: "Log In" }) })
188
+ /* @__PURE__ */ t(_, { visible: !n, ref: U, children: /* @__PURE__ */ t(M, { id: "loginButtonContainer", onClick: j, children: "Log In" }) })
161
189
  ] })
162
190
  ] });
163
191
  };
164
192
  export {
165
- le as default
193
+ he as default
166
194
  };
@@ -1,9 +1,10 @@
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';
3
+ variant?: 1 | 2 | 'unstyled' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse' | 'filter';
4
4
  size?: number;
5
5
  color?: string;
6
6
  highlightColor?: string;
7
+ active?: boolean;
7
8
  }
8
9
  export declare const Button: React.FC<ButtonProps & {
9
10
  children: React.ReactNode;
package/Button/Button.js CHANGED
@@ -5,35 +5,35 @@ import { m as X } from "../.chunks/memoTheme.js";
5
5
  import { c as Y } from "../.chunks/createSimplePaletteValueFilter.js";
6
6
  import { B as S } from "../.chunks/ButtonBase.js";
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 n from "../theme.js";
8
+ import { c as x } from "../.chunks/emotion-react.browser.esm.js";
9
+ import r from "../theme.js";
10
10
  function oo(o) {
11
11
  return _("MuiButton", o);
12
12
  }
13
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
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");
15
+ const N = /* @__PURE__ */ g.createContext(void 0);
16
+ process.env.NODE_ENV !== "production" && (N.displayName = "ButtonGroupButtonContext");
17
17
  const to = (o) => {
18
18
  const {
19
- color: a,
20
- disableElevation: r,
19
+ color: n,
20
+ disableElevation: a,
21
21
  fullWidth: e,
22
22
  size: i,
23
- variant: s,
24
- classes: p
25
- } = o, y = {
26
- root: ["root", s, `${s}${d(a)}`, `size${d(i)}`, `${s}Size${d(i)}`, `color${d(a)}`, r && "disableElevation", e && "fullWidth"],
23
+ variant: p,
24
+ classes: s
25
+ } = o, f = {
26
+ root: ["root", p, `${p}${d(n)}`, `size${d(i)}`, `${p}Size${d(i)}`, `color${d(n)}`, a && "disableElevation", e && "fullWidth"],
27
27
  label: ["label"],
28
28
  startIcon: ["icon", "startIcon", `iconSize${d(i)}`],
29
29
  endIcon: ["icon", "endIcon", `iconSize${d(i)}`]
30
- }, B = Q(y, oo, p);
30
+ }, $ = Q(f, oo, s);
31
31
  return {
32
- ...p,
32
+ ...s,
33
33
  // forward the focused, disabled, etc. classes to the ButtonBase
34
- ...B
34
+ ...$
35
35
  };
36
- }, N = [{
36
+ }, E = [{
37
37
  props: {
38
38
  size: "small"
39
39
  },
@@ -64,16 +64,16 @@ const to = (o) => {
64
64
  shouldForwardProp: (o) => q(o) || o === "classes",
65
65
  name: "MuiButton",
66
66
  slot: "Root",
67
- overridesResolver: (o, a) => {
67
+ overridesResolver: (o, n) => {
68
68
  const {
69
- ownerState: r
69
+ ownerState: a
70
70
  } = o;
71
- return [a.root, a[r.variant], a[`${r.variant}${d(r.color)}`], a[`size${d(r.size)}`], a[`${r.variant}Size${d(r.size)}`], r.color === "inherit" && a.colorInherit, r.disableElevation && a.disableElevation, r.fullWidth && a.fullWidth];
71
+ return [n.root, n[a.variant], n[`${a.variant}${d(a.color)}`], n[`size${d(a.size)}`], n[`${a.variant}Size${d(a.size)}`], a.color === "inherit" && n.colorInherit, a.disableElevation && n.disableElevation, a.fullWidth && n.fullWidth];
72
72
  }
73
73
  })(X(({
74
74
  theme: o
75
75
  }) => {
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];
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];
77
77
  return {
78
78
  ...o.typography.button,
79
79
  minWidth: 64,
@@ -165,10 +165,10 @@ const to = (o) => {
165
165
  style: {
166
166
  color: "inherit",
167
167
  borderColor: "currentColor",
168
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
168
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
169
169
  "@media (hover: hover)": {
170
170
  "&:hover": {
171
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : r,
171
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
172
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
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
  }
@@ -259,11 +259,11 @@ const to = (o) => {
259
259
  })), ao = c("span", {
260
260
  name: "MuiButton",
261
261
  slot: "StartIcon",
262
- overridesResolver: (o, a) => {
262
+ overridesResolver: (o, n) => {
263
263
  const {
264
- ownerState: r
264
+ ownerState: a
265
265
  } = o;
266
- return [a.startIcon, a[`iconSize${d(r.size)}`]];
266
+ return [n.startIcon, n[`iconSize${d(a.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
- }, ...N]
279
+ }, ...E]
280
280
  }), no = c("span", {
281
281
  name: "MuiButton",
282
282
  slot: "EndIcon",
283
- overridesResolver: (o, a) => {
283
+ overridesResolver: (o, n) => {
284
284
  const {
285
- ownerState: r
285
+ ownerState: a
286
286
  } = o;
287
- return [a.endIcon, a[`iconSize${d(r.size)}`]];
287
+ return [n.endIcon, n[`iconSize${d(a.size)}`]];
288
288
  }
289
289
  })({
290
290
  display: "inherit",
@@ -297,59 +297,59 @@ const to = (o) => {
297
297
  style: {
298
298
  marginRight: -2
299
299
  }
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,
300
+ }, ...E]
301
+ }), T = /* @__PURE__ */ g.forwardRef(function(n, a) {
302
+ const e = g.useContext(R), i = g.useContext(N), p = J(e, n), s = K({
303
+ props: p,
304
304
  name: "MuiButton"
305
305
  }), {
306
- children: y,
307
- color: B = "primary",
306
+ children: f,
307
+ color: $ = "primary",
308
308
  component: w = "button",
309
309
  className: P,
310
- disabled: C = !1,
310
+ disabled: m = !1,
311
311
  disableElevation: W = !1,
312
- disableFocusRipple: m = !1,
312
+ disableFocusRipple: C = !1,
313
313
  endIcon: h,
314
314
  focusVisibleClassName: V,
315
315
  fullWidth: M = !1,
316
316
  size: j = "medium",
317
317
  startIcon: I,
318
318
  type: k,
319
- variant: G = "text",
320
- ...L
321
- } = p, x = {
322
- ...p,
323
- color: B,
319
+ variant: F = "text",
320
+ ...G
321
+ } = s, y = {
322
+ ...s,
323
+ color: $,
324
324
  component: w,
325
- disabled: C,
325
+ disabled: m,
326
326
  disableElevation: W,
327
- disableFocusRipple: m,
327
+ disableFocusRipple: C,
328
328
  fullWidth: M,
329
329
  size: j,
330
330
  type: k,
331
- variant: G
332
- }, b = to(x), F = I && /* @__PURE__ */ l(ao, {
331
+ variant: F
332
+ }, b = to(y), L = I && /* @__PURE__ */ l(ao, {
333
333
  className: b.startIcon,
334
- ownerState: x,
334
+ ownerState: y,
335
335
  children: I
336
336
  }), D = h && /* @__PURE__ */ l(no, {
337
337
  className: b.endIcon,
338
- ownerState: x,
338
+ ownerState: y,
339
339
  children: h
340
340
  }), U = i || "";
341
341
  return /* @__PURE__ */ H(ro, {
342
- ownerState: x,
342
+ ownerState: y,
343
343
  className: O(e.className, b.root, P, U),
344
344
  component: w,
345
- disabled: C,
346
- focusRipple: !m,
345
+ disabled: m,
346
+ focusRipple: !C,
347
347
  focusVisibleClassName: O(b.focusVisible, V),
348
- ref: r,
348
+ ref: a,
349
349
  type: k,
350
- ...L,
350
+ ...G,
351
351
  classes: b,
352
- children: [F, y, D]
352
+ children: [L, f, D]
353
353
  });
354
354
  });
355
355
  process.env.NODE_ENV !== "production" && (T.propTypes = {
@@ -446,84 +446,84 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
446
446
  */
447
447
  variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
448
448
  });
449
- const $ = c(T)`
449
+ const B = c(T)`
450
450
  text-transform: none;
451
451
  &:disabled {
452
452
  opacity: 0.5;
453
- color: ${n.colors.black};
453
+ color: ${r.colors.black};
454
454
  display: flex;
455
455
  justify-content: center;
456
456
  align-items: center;
457
457
  }
458
- `, eo = c($)`
459
- background-color: ${n.colors.green};
458
+ `, eo = c(B)`
459
+ background-color: ${r.colors.green};
460
460
  border-radius: 0;
461
461
  height: 2.5rem;
462
462
  border: 2px solid transparent;
463
- color: ${n.colors.white};
463
+ color: ${r.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: ${n.boxShadows.gray63};
469
+ box-shadow: ${r.boxShadows.gray63};
470
470
  &:hover,
471
471
  :focus-visible {
472
- background-color: ${n.colors.darkGreen};
473
- box-shadow: ${n.boxShadows.black63};
472
+ background-color: ${r.colors.darkGreen};
473
+ box-shadow: ${r.boxShadows.black63};
474
474
  }
475
475
  &:disabled {
476
- background-color: ${n.colors.darkGreen};
476
+ background-color: ${r.colors.darkGreen};
477
477
  }
478
- `, io = c($)`
479
- color: ${n.colors.black};
480
- border: 3px solid ${n.colors.blue};
478
+ `, io = c(B)`
479
+ color: ${r.colors.black};
480
+ border: 3px solid ${r.colors.blue};
481
481
  padding: 0.5rem 2rem;
482
- `, z = c($)(({ width: o = "114px" }) => ({
483
- ...f`
482
+ `, z = c(B)(({ width: o = "114px" }) => ({
483
+ ...x`
484
484
  box-sizing: border-box;
485
- background-color: ${n.colors.bibiBlue};
485
+ background-color: ${r.colors.bibiBlue};
486
486
  border-radius: 0;
487
487
  height: 47px;
488
488
  width: ${o};
489
489
  border: 2px solid transparent;
490
- color: ${n.colors.white};
490
+ color: ${r.colors.white};
491
491
  transition: 108ms all ease-in;
492
492
  font-weight: 500;
493
493
  padding: 0;
494
494
  font-size: 19px;
495
495
  &:hover,
496
496
  :focus-visible {
497
- background-color: ${n.colors.bibiBlueHover};
497
+ background-color: ${r.colors.bibiBlueHover};
498
498
  }
499
499
  `
500
500
  })), so = c(z)(({ active: o }) => ({
501
- ...f`
502
- background-color: ${o && n.colors.white};
503
- color: ${o && n.colors.bibiBlue};
501
+ ...x`
502
+ background-color: ${o && r.colors.white};
503
+ color: ${o && r.colors.bibiBlue};
504
504
  &:hover,
505
505
  :focus-visible {
506
- background-color: ${n.colors.white};
507
- color: ${n.colors.bibiBlue};
506
+ background-color: ${r.colors.white};
507
+ color: ${r.colors.bibiBlue};
508
508
  }
509
509
  `
510
510
  })), lo = c(z)(() => ({
511
- ...f`
512
- background-color: ${n.colors.white};
513
- color: ${n.colors.bibiBlue};
511
+ ...x`
512
+ background-color: ${r.colors.white};
513
+ color: ${r.colors.bibiBlue};
514
514
  &:hover,
515
515
  :focus-visible {
516
- background-color: ${n.colors.bibiBlue};
517
- border: 2px solid ${n.colors.white};
518
- color: ${n.colors.white};
516
+ background-color: ${r.colors.bibiBlue};
517
+ border: 2px solid ${r.colors.white};
518
+ color: ${r.colors.white};
519
519
  }
520
520
  `
521
521
  })), co = c(S)`
522
522
  border-radius: 8px;
523
523
  `, po = c(S, {
524
524
  shouldForwardProp: (o) => typeof o == "string" && Z(o)
525
- })(({ size: o, color: a, highlightColor: r }) => ({
526
- ...f`
525
+ })(({ size: o, color: n, highlightColor: a }) => ({
526
+ ...x`
527
527
  display: flex;
528
528
  align-items: center;
529
529
  justify-content: center;
@@ -533,26 +533,44 @@ const $ = c(T)`
533
533
  &:hover,
534
534
  :focus-visible {
535
535
  svg {
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});
536
+ filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
537
+ drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
538
538
  }
539
539
  }
540
540
 
541
541
  svg {
542
542
  transition: 313ms all ease-in-out;
543
- fill: ${a};
543
+ fill: ${n};
544
544
  width: ${o}px;
545
545
  height: ${o}px;
546
546
  }
547
547
  `
548
+ })), uo = c(B)(({ active: o }) => ({
549
+ ...x`
550
+ box-sizing: border-box;
551
+ background-color: ${o ? r.colors.black : r.colors.white};
552
+ height: 28px;
553
+ border-radius: 18px;
554
+ padding: 0 29px;
555
+ border: 2px solid ${o ? "transparent" : r.colors.black};
556
+ color: ${o ? r.colors.white : r.colors.black};
557
+ transition: 108ms all ease-in;
558
+ font-weight: 500;
559
+
560
+ &:hover,
561
+ :focus-visible {
562
+ background-color: ${o ? r.colors.charcoal : r.colors.gray2};
563
+ }
564
+ `
548
565
  })), So = ({
549
566
  variant: o = 1,
550
- size: a = 50,
551
- color: r = n.colors.darkGreen,
552
- highlightColor: e = n.colors.dandelion,
567
+ size: n = 50,
568
+ color: a = r.colors.darkGreen,
569
+ highlightColor: e = r.colors.dandelion,
553
570
  children: i,
571
+ active: p,
554
572
  ...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, { ...{ size: a, color: r, highlightColor: e }, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
573
+ }) => 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: n, color: a, highlightColor: e }, ...s, children: i }) : o === "filter" ? /* @__PURE__ */ l(uo, { className: "jcFilterButton", active: p, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
556
574
  export {
557
575
  So as Button,
558
576
  So as default