jcicl 0.0.126 → 0.0.130
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/AppContainer/AppContainer.js +29 -29
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +175 -136
- package/package.json +1 -1
- package/theme.d.ts +6 -4
- package/theme.js +4 -2
|
@@ -99,7 +99,7 @@ function K(e, o, r) {
|
|
|
99
99
|
const t = Te(r), c = co(e, o, t);
|
|
100
100
|
c && (o.style.webkitTransform = c, o.style.transform = c);
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const $e = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
103
103
|
const t = we(), c = {
|
|
104
104
|
enter: t.transitions.easing.easeOut,
|
|
105
105
|
exit: t.transitions.easing.sharp
|
|
@@ -129,7 +129,7 @@ const Pe = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
|
129
129
|
s && (d === void 0 ? s(b.current) : s(b.current, d));
|
|
130
130
|
}, T = x((s, d) => {
|
|
131
131
|
K(p, s, m), _e(s), B && B(s, d);
|
|
132
|
-
}),
|
|
132
|
+
}), $ = x((s, d) => {
|
|
133
133
|
const Q = ue({
|
|
134
134
|
timeout: S,
|
|
135
135
|
style: I,
|
|
@@ -173,7 +173,7 @@ const Pe = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
|
173
173
|
nodeRef: b,
|
|
174
174
|
onEnter: T,
|
|
175
175
|
onEntered: A,
|
|
176
|
-
onEntering:
|
|
176
|
+
onEntering: $,
|
|
177
177
|
onExit: z,
|
|
178
178
|
onExited: W,
|
|
179
179
|
onExiting: j,
|
|
@@ -193,7 +193,7 @@ const Pe = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
|
-
process.env.NODE_ENV !== "production" && (
|
|
196
|
+
process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
197
197
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
198
198
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
199
199
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -299,7 +299,7 @@ function lo(e) {
|
|
|
299
299
|
return Ae("MuiDrawer", e);
|
|
300
300
|
}
|
|
301
301
|
je("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
|
|
302
|
-
const
|
|
302
|
+
const Pe = (e, o) => {
|
|
303
303
|
const {
|
|
304
304
|
ownerState: r
|
|
305
305
|
} = e;
|
|
@@ -319,7 +319,7 @@ const $e = (e, o) => {
|
|
|
319
319
|
}, ho = ae(qe, {
|
|
320
320
|
name: "MuiDrawer",
|
|
321
321
|
slot: "Root",
|
|
322
|
-
overridesResolver:
|
|
322
|
+
overridesResolver: Pe
|
|
323
323
|
})(ye(({
|
|
324
324
|
theme: e
|
|
325
325
|
}) => ({
|
|
@@ -329,7 +329,7 @@ const $e = (e, o) => {
|
|
|
329
329
|
name: "MuiDrawer",
|
|
330
330
|
slot: "Docked",
|
|
331
331
|
skipVariantsResolver: !1,
|
|
332
|
-
overridesResolver:
|
|
332
|
+
overridesResolver: Pe
|
|
333
333
|
})({
|
|
334
334
|
flex: "0 0 auto"
|
|
335
335
|
}), uo = ae(eo, {
|
|
@@ -462,7 +462,7 @@ const V = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
|
462
462
|
PaperProps: R = {},
|
|
463
463
|
SlideProps: O,
|
|
464
464
|
// eslint-disable-next-line react/prop-types
|
|
465
|
-
TransitionComponent: I =
|
|
465
|
+
TransitionComponent: I = $e,
|
|
466
466
|
transitionDuration: S = u,
|
|
467
467
|
variant: g = "temporary",
|
|
468
468
|
...v
|
|
@@ -479,17 +479,17 @@ const V = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
|
479
479
|
open: C,
|
|
480
480
|
variant: g,
|
|
481
481
|
...v
|
|
482
|
-
},
|
|
482
|
+
}, $ = po(T), A = /* @__PURE__ */ a(uo, {
|
|
483
483
|
elevation: g === "temporary" ? M : 0,
|
|
484
484
|
square: !0,
|
|
485
485
|
...R,
|
|
486
|
-
className: J(
|
|
486
|
+
className: J($.paper, R.className),
|
|
487
487
|
ownerState: T,
|
|
488
488
|
children: m
|
|
489
489
|
});
|
|
490
490
|
if (g === "permanent")
|
|
491
491
|
return /* @__PURE__ */ a(me, {
|
|
492
|
-
className: J(
|
|
492
|
+
className: J($.root, $.docked, p),
|
|
493
493
|
ownerState: T,
|
|
494
494
|
ref: r,
|
|
495
495
|
...v,
|
|
@@ -504,7 +504,7 @@ const V = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
|
504
504
|
children: A
|
|
505
505
|
});
|
|
506
506
|
return g === "persistent" ? /* @__PURE__ */ a(me, {
|
|
507
|
-
className: J(
|
|
507
|
+
className: J($.root, $.docked, p),
|
|
508
508
|
ownerState: T,
|
|
509
509
|
ref: r,
|
|
510
510
|
...v,
|
|
@@ -515,7 +515,7 @@ const V = /* @__PURE__ */ w.forwardRef(function(o, r) {
|
|
|
515
515
|
...B,
|
|
516
516
|
transitionDuration: S
|
|
517
517
|
},
|
|
518
|
-
className: J(
|
|
518
|
+
className: J($.root, $.modal, p),
|
|
519
519
|
open: C,
|
|
520
520
|
ownerState: T,
|
|
521
521
|
onClose: N,
|
|
@@ -775,7 +775,7 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
775
775
|
background-color: transparent;
|
|
776
776
|
}
|
|
777
777
|
`
|
|
778
|
-
})),
|
|
778
|
+
})), $o = y("div", {
|
|
779
779
|
shouldForwardProp: (e) => oe(e)
|
|
780
780
|
})(({ backgroundColor: e, open: o }) => ({
|
|
781
781
|
...H`
|
|
@@ -788,9 +788,9 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
788
788
|
overflow: hidden;
|
|
789
789
|
background-color: ${e};
|
|
790
790
|
box-sizing: border-box;
|
|
791
|
-
padding: 16px;
|
|
791
|
+
padding: ${o ? "16px" : 0};
|
|
792
792
|
`
|
|
793
|
-
})),
|
|
793
|
+
})), Po = y("h1")(({ color: e }) => ({
|
|
794
794
|
...H`
|
|
795
795
|
margin: 0;
|
|
796
796
|
font-size: 2.1rem;
|
|
@@ -869,7 +869,7 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
869
869
|
backgroundPrimary: D = i.colors.whiteGreen,
|
|
870
870
|
backgroundSecondary: x = i.colors.whiteGreenA,
|
|
871
871
|
backgroundTertiary: T = i.colors.sage,
|
|
872
|
-
highlightPrimary:
|
|
872
|
+
highlightPrimary: $ = i.colors.sunlight,
|
|
873
873
|
highlightSecondary: A = i.colors.dandelion,
|
|
874
874
|
highlightTertiary: j = `${i.colors.dandelion}99`,
|
|
875
875
|
iconPrimary: z = i.colors.darkGreen,
|
|
@@ -883,7 +883,7 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
883
883
|
backgroundPrimary: D,
|
|
884
884
|
backgroundSecondary: x,
|
|
885
885
|
backgroundTertiary: T,
|
|
886
|
-
highlightPrimary:
|
|
886
|
+
highlightPrimary: $,
|
|
887
887
|
highlightSecondary: A,
|
|
888
888
|
highlightTertiary: j,
|
|
889
889
|
borderPrimary: s,
|
|
@@ -900,15 +900,15 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
900
900
|
}, pe = [
|
|
901
901
|
{ label: "Log Out", icon: /* @__PURE__ */ a(go, {}), onClick: Se },
|
|
902
902
|
...r
|
|
903
|
-
].map((
|
|
904
|
-
|
|
903
|
+
].map((P) => ({
|
|
904
|
+
...P,
|
|
905
905
|
onClick: () => {
|
|
906
|
-
|
|
906
|
+
P.onClick && P.onClick(), C(!1);
|
|
907
907
|
}
|
|
908
|
-
})), { navItems: re } = e, ze = re.map((
|
|
909
|
-
|
|
908
|
+
})), { navItems: re } = e, ze = re.map((P) => ({
|
|
909
|
+
...P,
|
|
910
910
|
onClick: () => {
|
|
911
|
-
|
|
911
|
+
P.onClick && P.onClick(), k(!1);
|
|
912
912
|
}
|
|
913
913
|
})), ne = {
|
|
914
914
|
...G,
|
|
@@ -916,10 +916,10 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
916
916
|
isTablet: !0,
|
|
917
917
|
navItems: ze
|
|
918
918
|
};
|
|
919
|
-
let ie = re.map((
|
|
920
|
-
|
|
919
|
+
let ie = re.map((P) => ({
|
|
920
|
+
...P,
|
|
921
921
|
onClick: () => {
|
|
922
|
-
|
|
922
|
+
P.onClick && P.onClick(), O(!1);
|
|
923
923
|
}
|
|
924
924
|
})), de = [];
|
|
925
925
|
re.length > 4 && g && (de = ie.splice(3), ie.push({
|
|
@@ -1055,7 +1055,7 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
1055
1055
|
onClose: () => C(!1),
|
|
1056
1056
|
children: [
|
|
1057
1057
|
/* @__PURE__ */ E(ve, { children: [
|
|
1058
|
-
/* @__PURE__ */ a(
|
|
1058
|
+
/* @__PURE__ */ a(Po, { color: i.colors.midnight, children: "Settings" }),
|
|
1059
1059
|
/* @__PURE__ */ a(
|
|
1060
1060
|
Z,
|
|
1061
1061
|
{
|
|
@@ -1084,7 +1084,7 @@ const ge = ee(/* @__PURE__ */ a("path", {
|
|
|
1084
1084
|
]
|
|
1085
1085
|
}
|
|
1086
1086
|
),
|
|
1087
|
-
/* @__PURE__ */ a(
|
|
1087
|
+
/* @__PURE__ */ a($o, { backgroundColor: T, open: p, children: /* @__PURE__ */ a(_, { scrollColor: d, direction: "vertical", children: t }) })
|
|
1088
1088
|
] }),
|
|
1089
1089
|
!g && /* @__PURE__ */ E(
|
|
1090
1090
|
wo,
|
package/Button/Button.d.ts
CHANGED
|
@@ -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' | 'icon';
|
|
3
|
+
variant?: 1 | 2 | 'unstyled' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse';
|
|
4
4
|
size?: number;
|
|
5
5
|
color?: string;
|
|
6
6
|
highlightColor?: string;
|
package/Button/Button.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { g as
|
|
4
|
-
import { m as
|
|
5
|
-
import { c as
|
|
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 c, r as q, c as d, f as J, u as K, b as O, P as t, d as Q, e as v } from "../.chunks/DefaultPropsProvider.js";
|
|
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
|
|
8
|
-
import { c as
|
|
9
|
-
import
|
|
10
|
-
function
|
|
11
|
-
return
|
|
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 =
|
|
14
|
-
process.env.NODE_ENV !== "production" && (
|
|
15
|
-
const
|
|
16
|
-
process.env.NODE_ENV !== "production" && (
|
|
17
|
-
const
|
|
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:
|
|
20
|
-
disableElevation:
|
|
21
|
-
fullWidth:
|
|
22
|
-
size:
|
|
23
|
-
variant:
|
|
19
|
+
color: a,
|
|
20
|
+
disableElevation: r,
|
|
21
|
+
fullWidth: e,
|
|
22
|
+
size: i,
|
|
23
|
+
variant: s,
|
|
24
24
|
classes: p
|
|
25
|
-
} = o,
|
|
26
|
-
root: ["root",
|
|
25
|
+
} = o, y = {
|
|
26
|
+
root: ["root", s, `${s}${d(a)}`, `size${d(i)}`, `${s}Size${d(i)}`, `color${d(a)}`, r && "disableElevation", e && "fullWidth"],
|
|
27
27
|
label: ["label"],
|
|
28
|
-
startIcon: ["icon", "startIcon", `iconSize${i
|
|
29
|
-
endIcon: ["icon", "endIcon", `iconSize${i
|
|
30
|
-
},
|
|
28
|
+
startIcon: ["icon", "startIcon", `iconSize${d(i)}`],
|
|
29
|
+
endIcon: ["icon", "endIcon", `iconSize${d(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
|
-
...
|
|
34
|
+
...B
|
|
35
35
|
};
|
|
36
|
-
},
|
|
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
|
-
}],
|
|
64
|
-
shouldForwardProp: (o) =>
|
|
63
|
+
}], ro = c(S, {
|
|
64
|
+
shouldForwardProp: (o) => q(o) || o === "classes",
|
|
65
65
|
name: "MuiButton",
|
|
66
66
|
slot: "Root",
|
|
67
|
-
overridesResolver: (o,
|
|
67
|
+
overridesResolver: (o, a) => {
|
|
68
68
|
const {
|
|
69
|
-
ownerState:
|
|
69
|
+
ownerState: r
|
|
70
70
|
} = o;
|
|
71
|
-
return [
|
|
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];
|
|
72
72
|
}
|
|
73
|
-
})(
|
|
73
|
+
})(X(({
|
|
74
74
|
theme: o
|
|
75
75
|
}) => {
|
|
76
|
-
const
|
|
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(
|
|
142
|
+
}, ...Object.entries(o.palette).filter(Y()).map(([e]) => ({
|
|
143
143
|
props: {
|
|
144
|
-
color:
|
|
144
|
+
color: e
|
|
145
145
|
},
|
|
146
146
|
style: {
|
|
147
|
-
"--variant-textColor": (o.vars || o).palette[
|
|
148
|
-
"--variant-outlinedColor": (o.vars || o).palette[
|
|
149
|
-
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[
|
|
150
|
-
"--variant-containedColor": (o.vars || o).palette[
|
|
151
|
-
"--variant-containedBg": (o.vars || o).palette[
|
|
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[
|
|
155
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[
|
|
156
|
-
"--variant-outlinedBorder": (o.vars || o).palette[
|
|
157
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[
|
|
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 :
|
|
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 :
|
|
172
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
173
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.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
|
}
|
|
@@ -259,11 +259,11 @@ const oo = (o) => {
|
|
|
259
259
|
})), ao = c("span", {
|
|
260
260
|
name: "MuiButton",
|
|
261
261
|
slot: "StartIcon",
|
|
262
|
-
overridesResolver: (o,
|
|
262
|
+
overridesResolver: (o, a) => {
|
|
263
263
|
const {
|
|
264
|
-
ownerState:
|
|
264
|
+
ownerState: r
|
|
265
265
|
} = o;
|
|
266
|
-
return [
|
|
266
|
+
return [a.startIcon, a[`iconSize${d(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
|
-
}, ...
|
|
279
|
+
}, ...N]
|
|
280
280
|
}), no = c("span", {
|
|
281
281
|
name: "MuiButton",
|
|
282
282
|
slot: "EndIcon",
|
|
283
|
-
overridesResolver: (o,
|
|
283
|
+
overridesResolver: (o, a) => {
|
|
284
284
|
const {
|
|
285
|
-
ownerState:
|
|
285
|
+
ownerState: r
|
|
286
286
|
} = o;
|
|
287
|
-
return [
|
|
287
|
+
return [a.endIcon, a[`iconSize${d(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
|
-
}, ...
|
|
301
|
-
}),
|
|
302
|
-
const
|
|
303
|
-
props:
|
|
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:
|
|
307
|
-
color:
|
|
308
|
-
component:
|
|
309
|
-
className:
|
|
310
|
-
disabled:
|
|
311
|
-
disableElevation:
|
|
312
|
-
disableFocusRipple:
|
|
313
|
-
endIcon:
|
|
314
|
-
focusVisibleClassName:
|
|
315
|
-
fullWidth:
|
|
316
|
-
size:
|
|
317
|
-
startIcon:
|
|
318
|
-
type:
|
|
319
|
-
variant:
|
|
320
|
-
...
|
|
321
|
-
} = p,
|
|
306
|
+
children: y,
|
|
307
|
+
color: B = "primary",
|
|
308
|
+
component: w = "button",
|
|
309
|
+
className: P,
|
|
310
|
+
disabled: C = !1,
|
|
311
|
+
disableElevation: W = !1,
|
|
312
|
+
disableFocusRipple: m = !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:
|
|
324
|
-
component:
|
|
325
|
-
disabled:
|
|
326
|
-
disableElevation:
|
|
327
|
-
disableFocusRipple:
|
|
328
|
-
fullWidth:
|
|
329
|
-
size:
|
|
330
|
-
type:
|
|
331
|
-
variant:
|
|
332
|
-
},
|
|
333
|
-
className:
|
|
334
|
-
ownerState:
|
|
335
|
-
children:
|
|
336
|
-
}),
|
|
337
|
-
className:
|
|
338
|
-
ownerState:
|
|
339
|
-
children:
|
|
340
|
-
}),
|
|
341
|
-
return /* @__PURE__ */
|
|
342
|
-
ownerState:
|
|
343
|
-
className:
|
|
344
|
-
component:
|
|
345
|
-
disabled:
|
|
346
|
-
focusRipple:
|
|
347
|
-
focusVisibleClassName:
|
|
348
|
-
ref:
|
|
349
|
-
type:
|
|
350
|
-
...
|
|
351
|
-
classes:
|
|
352
|
-
children: [
|
|
323
|
+
color: B,
|
|
324
|
+
component: w,
|
|
325
|
+
disabled: C,
|
|
326
|
+
disableElevation: W,
|
|
327
|
+
disableFocusRipple: m,
|
|
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: C,
|
|
346
|
+
focusRipple: !m,
|
|
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" && (
|
|
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
|
|
449
|
+
const $ = c(T)`
|
|
450
450
|
text-transform: none;
|
|
451
451
|
&:disabled {
|
|
452
452
|
opacity: 0.5;
|
|
453
|
-
color: ${
|
|
453
|
+
color: ${n.colors.black};
|
|
454
454
|
display: flex;
|
|
455
455
|
justify-content: center;
|
|
456
456
|
align-items: center;
|
|
457
457
|
}
|
|
458
|
-
`,
|
|
459
|
-
background-color: ${
|
|
458
|
+
`, eo = c($)`
|
|
459
|
+
background-color: ${n.colors.green};
|
|
460
460
|
border-radius: 0;
|
|
461
461
|
height: 2.5rem;
|
|
462
462
|
border: 2px solid transparent;
|
|
463
|
-
color: ${
|
|
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: ${
|
|
469
|
+
box-shadow: ${n.boxShadows.gray63};
|
|
470
470
|
&:hover,
|
|
471
471
|
:focus-visible {
|
|
472
|
-
background-color: ${
|
|
473
|
-
box-shadow: ${
|
|
472
|
+
background-color: ${n.colors.darkGreen};
|
|
473
|
+
box-shadow: ${n.boxShadows.black63};
|
|
474
474
|
}
|
|
475
475
|
&:disabled {
|
|
476
|
-
background-color: ${
|
|
476
|
+
background-color: ${n.colors.darkGreen};
|
|
477
477
|
}
|
|
478
|
-
`,
|
|
479
|
-
color: ${
|
|
480
|
-
border: 3px solid ${
|
|
478
|
+
`, io = c($)`
|
|
479
|
+
color: ${n.colors.black};
|
|
480
|
+
border: 3px solid ${n.colors.blue};
|
|
481
481
|
padding: 0.5rem 2rem;
|
|
482
|
-
`,
|
|
482
|
+
`, z = c($)(({ 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 = c(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 = c(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 = c(S)`
|
|
483
522
|
border-radius: 8px;
|
|
484
|
-
`,
|
|
485
|
-
shouldForwardProp: (o) => typeof o == "string" &&
|
|
486
|
-
})(({ size: o, color:
|
|
487
|
-
...
|
|
523
|
+
`, po = c(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 ${
|
|
498
|
-
drop-shadow(0 0 6px ${
|
|
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: ${
|
|
543
|
+
fill: ${a};
|
|
505
544
|
width: ${o}px;
|
|
506
545
|
height: ${o}px;
|
|
507
546
|
}
|
|
508
547
|
`
|
|
509
|
-
})),
|
|
548
|
+
})), So = ({
|
|
510
549
|
variant: o = 1,
|
|
511
|
-
size:
|
|
512
|
-
color:
|
|
513
|
-
highlightColor:
|
|
514
|
-
children:
|
|
515
|
-
...
|
|
516
|
-
}) => o === "
|
|
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, { ...{ size: a, color: r, highlightColor: e }, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
|
|
517
556
|
export {
|
|
518
|
-
|
|
519
|
-
|
|
557
|
+
So as Button,
|
|
558
|
+
So as default
|
|
520
559
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.130",
|
|
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/theme.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export interface ThemeColors {
|
|
2
|
+
bibiBlue: string;
|
|
3
|
+
bibiBlueHover: string;
|
|
2
4
|
black: string;
|
|
3
5
|
blue: string;
|
|
4
6
|
burgundy: string;
|
|
@@ -40,11 +42,11 @@ export interface ThemeColors {
|
|
|
40
42
|
}
|
|
41
43
|
export interface ThemeBoxShadows extends Partial<ThemeColors> {
|
|
42
44
|
black63?: string;
|
|
43
|
-
maroonThick?: string;
|
|
44
45
|
darkGreenThick?: string;
|
|
45
46
|
gray63?: string;
|
|
46
47
|
greenThick?: string;
|
|
47
48
|
indigoThick?: string;
|
|
49
|
+
maroonThick?: string;
|
|
48
50
|
}
|
|
49
51
|
export interface ThemeConstants {
|
|
50
52
|
appHeaderHeight: number;
|
|
@@ -62,22 +64,22 @@ export interface Theme {
|
|
|
62
64
|
boxShadows: ThemeBoxShadows;
|
|
63
65
|
colors: ThemeColors;
|
|
64
66
|
constants: ThemeConstants;
|
|
65
|
-
screenSizes: ThemeScreenSizes;
|
|
66
67
|
fonts: ThemeFonts;
|
|
68
|
+
screenSizes: ThemeScreenSizes;
|
|
67
69
|
}
|
|
68
70
|
export interface TemplateThemeProps {
|
|
69
71
|
backgroundPrimary: string;
|
|
70
72
|
backgroundSecondary: string;
|
|
71
73
|
backgroundTertiary: string;
|
|
72
74
|
borderPrimary: string;
|
|
73
|
-
iconPrimary: string;
|
|
74
75
|
highlightPrimary: string;
|
|
75
76
|
highlightSecondary: string;
|
|
76
77
|
highlightTertiary: string;
|
|
78
|
+
iconPrimary: string;
|
|
79
|
+
scrollColor: string;
|
|
77
80
|
shadowPrimary: string;
|
|
78
81
|
shadowSecondary: string;
|
|
79
82
|
shadowTertiary: string;
|
|
80
|
-
scrollColor: string;
|
|
81
83
|
}
|
|
82
84
|
declare const theme: Theme;
|
|
83
85
|
export default theme;
|
package/theme.js
CHANGED
|
@@ -4,6 +4,8 @@ const a = {
|
|
|
4
4
|
},
|
|
5
5
|
boxShadows: {},
|
|
6
6
|
colors: {
|
|
7
|
+
bibiBlue: "#009dde",
|
|
8
|
+
bibiBlueHover: "#0088c0",
|
|
7
9
|
black: "black",
|
|
8
10
|
blue: "#1976d2",
|
|
9
11
|
burgundy: "#920920",
|
|
@@ -68,8 +70,8 @@ a.boxShadows = {
|
|
|
68
70
|
`0 0 2px 1px ${a.colors[e]}`
|
|
69
71
|
])
|
|
70
72
|
),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
black63: "0px 0px 2px 1px rgba(0, 0, 0, 0.63)",
|
|
74
|
+
gray63: "0px 0px 2px 1px rgba(100, 100, 100, 0.63)"
|
|
73
75
|
};
|
|
74
76
|
export {
|
|
75
77
|
a as default
|