jcicl 1.0.65 → 1.0.66
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/.chunks/Button.js +1 -1
- package/.chunks/ButtonBase.js +1 -1
- package/.chunks/CircularProgress.js +1 -1
- package/.chunks/DefaultPropsProvider.js +2 -2
- package/.chunks/Paper.js +3 -3
- package/.chunks/SwitchBase.js +1 -1
- package/.chunks/TextField.js +1 -1
- package/.chunks/createSvgIcon.js +1 -1
- package/.chunks/index.js +1 -1
- package/AppContainer/AppContainer.js +1 -1
- package/Button/Button.d.ts +2 -0
- package/Button/Button.js +131 -217
- package/Divider/Divider.js +1 -1
- package/LabeledCheckbox/LabeledCheckbox.js +1 -1
- package/LabeledDropdown/LabeledDropdown.js +1 -1
- package/LabeledRadio/LabeledRadio.js +1 -1
- package/Pagination/Pagination.js +1 -1
- package/Stepper/Stepper.js +1 -1
- package/Toast/Toaster.d.ts +2 -0
- package/Toast/Toaster.js +7 -6
- package/Tooltip/Tooltip.js +1 -1
- package/package.json +5 -2
package/.chunks/Button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { g as L, a as j, s as b, r as D,
|
|
2
|
+
import { g as L, a as j, s as b, r as D, b as e, u as F, c as I, P as a, d as G, e as c } from "./DefaultPropsProvider.js";
|
|
3
3
|
import { m as U } from "./memoTheme.js";
|
|
4
4
|
import { c as _ } from "./createSimplePaletteValueFilter.js";
|
|
5
5
|
import { jsxs as H, jsx as m } from "react/jsx-runtime";
|
package/.chunks/ButtonBase.js
CHANGED
|
@@ -3,7 +3,7 @@ var ke = (o, t, n) => t in o ? Le(o, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var le = (o, t, n) => ke(o, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as d from "react";
|
|
5
5
|
import W, { Children as Oe, isValidElement as G, cloneElement as J } from "react";
|
|
6
|
-
import { P as e,
|
|
6
|
+
import { P as e, c as E, a as fe, s as te, u as de, g as je, d as Fe } from "./DefaultPropsProvider.js";
|
|
7
7
|
import { jsx as I, jsxs as $e } from "react/jsx-runtime";
|
|
8
8
|
import { k as ne } from "./emotion-react.browser.esm.js";
|
|
9
9
|
import { c as Ie, d as Ue, _ as ze, e as ue, a as _e, u as ce, b as H, r as Xe } from "./TransitionGroupContext.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import { g as T, a as R, s as g, c, u as N,
|
|
2
|
+
import { g as T, a as R, s as g, b as c, u as N, c as j, P as r, d as U } from "./DefaultPropsProvider.js";
|
|
3
3
|
import { m as P } from "./memoTheme.js";
|
|
4
4
|
import { c as E } from "./createSimplePaletteValueFilter.js";
|
|
5
5
|
import { jsx as h } from "react/jsx-runtime";
|
package/.chunks/Paper.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as P from "react";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as h, g as b, s as g, u as w, c as T, e as u, P as a, d as $, f } from "./DefaultPropsProvider.js";
|
|
3
3
|
import { u as x } from "./Portal.js";
|
|
4
4
|
import { jsx as O } from "react/jsx-runtime";
|
|
5
5
|
import { m as C } from "./memoTheme.js";
|
|
6
6
|
import { c as N } from "./chainPropTypes.js";
|
|
7
7
|
import { i as R } from "./integerPropType.js";
|
|
8
8
|
function j(e) {
|
|
9
|
-
return
|
|
9
|
+
return b("MuiPaper", e);
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
h("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
12
12
|
const E = (e) => {
|
|
13
13
|
const {
|
|
14
14
|
square: o,
|
package/.chunks/SwitchBase.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
|
-
import { g as V, a as _, s as C, r as $,
|
|
2
|
+
import { g as V, a as _, s as C, r as $, c as A, P as e, b as G, d as H } from "./DefaultPropsProvider.js";
|
|
3
3
|
import { u as J } from "./useFormControl.js";
|
|
4
4
|
import { jsxs as K, jsx as M } from "react/jsx-runtime";
|
|
5
5
|
import { B as Q } from "./ButtonBase.js";
|
package/.chunks/TextField.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { P as e, k as Vo, T as Ho, a as oe, g as te,
|
|
2
|
+
import { P as e, k as Vo, T as Ho, a as oe, g as te, b as ce, s as j, u as de, c as ee, d as ne, m as qo, r as Se, n as bo, o as ho, i as Ot } from "./DefaultPropsProvider.js";
|
|
3
3
|
import { u as ye } from "./useSlot.js";
|
|
4
4
|
import { jsx as R, jsxs as he } from "react/jsx-runtime";
|
|
5
5
|
import { u as De, F as _o } from "./useFormControl.js";
|
package/.chunks/createSvgIcon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "react";
|
|
2
2
|
import { jsxs as I, jsx as b } from "react/jsx-runtime";
|
|
3
|
-
import { g as w, a as C, s as T,
|
|
3
|
+
import { g as w, a as C, s as T, b as x, u as N, c as O, P as e, d as R } from "./DefaultPropsProvider.js";
|
|
4
4
|
import { m as j } from "./memoTheme.js";
|
|
5
5
|
function E(o) {
|
|
6
6
|
return w("MuiSvgIcon", o);
|
package/.chunks/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { Button as ne } from "../Button/Button.js";
|
|
|
11
11
|
import a from "../theme.js";
|
|
12
12
|
import { l as Ye } from "../.chunks/jocologo.js";
|
|
13
13
|
import { X as Qe } from "../.chunks/Close.js";
|
|
14
|
-
import { P as r, g as _e, a as qe, s as he, r as Je,
|
|
14
|
+
import { P as r, g as _e, a as qe, s as he, r as Je, b as ie, u as Ke, c as re, d as Ze } from "../.chunks/DefaultPropsProvider.js";
|
|
15
15
|
import { u as eo } from "../.chunks/index.js";
|
|
16
16
|
import { e as oo, H as ro, u as ze, g as to, T as no, r as io, b as Ce } from "../.chunks/Portal.js";
|
|
17
17
|
import { m as De } from "../.chunks/memoTheme.js";
|
package/Button/Button.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export interface ButtonProps extends Omit<MuiButtonProps, 'variant' | 'size' | '
|
|
|
11
11
|
customShadow1?: string;
|
|
12
12
|
customShadow2?: string;
|
|
13
13
|
textToCopy?: string;
|
|
14
|
+
/** Width for bibi variants (e.g. "200px"). Defaults to "114px". */
|
|
15
|
+
width?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare const Button: React.FC<ButtonProps & {
|
|
16
18
|
children: React.ReactNode;
|
package/Button/Button.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as t, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { useState as T } from "react";
|
|
3
3
|
import { B as F } from "../.chunks/Button.js";
|
|
4
4
|
import { i as I } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { c as u } from "../.chunks/emotion-react.browser.esm.js";
|
|
6
|
+
import { s as b, c } from "../.chunks/DefaultPropsProvider.js";
|
|
7
|
+
import i from "../theme.js";
|
|
8
|
+
import { Tooltip as S } from "../Tooltip/Tooltip.js";
|
|
9
|
+
import { useThemeColors as z } from "../ThemeContext.js";
|
|
10
10
|
import { B as p } from "../.chunks/ButtonBase.js";
|
|
11
|
-
import { C as
|
|
12
|
-
const
|
|
11
|
+
import { C as A } from "../.chunks/check.js";
|
|
12
|
+
const v = [
|
|
13
13
|
"active",
|
|
14
14
|
"customBackgroundColor",
|
|
15
15
|
"customHoverColor",
|
|
16
16
|
"customTextColor",
|
|
17
17
|
"customShadow1",
|
|
18
18
|
"customShadow2"
|
|
19
|
-
],
|
|
19
|
+
], a = b(F, { shouldForwardProp: (e) => !v.includes(e) })`
|
|
20
20
|
text-transform: none;
|
|
21
21
|
&:disabled {
|
|
22
22
|
opacity: 0.5;
|
|
23
|
-
color: ${
|
|
23
|
+
color: ${i.colors.black};
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: center;
|
|
26
26
|
align-items: center;
|
|
@@ -29,47 +29,19 @@ const w = [
|
|
|
29
29
|
span {
|
|
30
30
|
align-items: center !important;
|
|
31
31
|
}
|
|
32
|
-
`, G =
|
|
33
|
-
|
|
34
|
-
height: 2.5rem;
|
|
35
|
-
border: 2px solid transparent;
|
|
36
|
-
color: ${o.colors.white};
|
|
37
|
-
transition: 313ms all ease-in;
|
|
38
|
-
border-radius: 32px;
|
|
39
|
-
font-weight: 400;
|
|
40
|
-
padding: 0.75rem 2rem;
|
|
41
|
-
font-size: 1rem;
|
|
42
|
-
box-shadow: ${o.boxShadows.gray63};
|
|
43
|
-
&:hover,
|
|
44
|
-
:focus-visible {
|
|
45
|
-
background-color: ${o.colors.darkGreen};
|
|
46
|
-
box-shadow: ${o.boxShadows.black63};
|
|
47
|
-
}
|
|
48
|
-
&:disabled {
|
|
49
|
-
background-color: ${o.colors.darkGreen};
|
|
50
|
-
}
|
|
51
|
-
`, O = s(u, {
|
|
52
|
-
shouldForwardProp: (r) => !w.includes(r)
|
|
32
|
+
`, G = "!bg-[#009200] !h-10 !border-2 !border-transparent !text-white transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base shadow-[0px_0px_2px_1px_rgba(100,100,100,0.63)] hover:!bg-[#005c00] hover:shadow-[0px_0px_2px_1px_rgba(0,0,0,0.63)] focus-visible:!bg-[#005c00] focus-visible:shadow-[0px_0px_2px_1px_rgba(0,0,0,0.63)] disabled:!bg-[#005c00]", k = "!bg-[#fab62d] !h-10 !border-2 !border-transparent !text-[#131313] transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base shadow-[0px_0px_2px_1px_rgba(100,100,100,0.63)] hover:!bg-[#e0a022] focus-visible:!bg-[#e0a022] disabled:!bg-[#e0a022]", m = "!box-border !bg-[#009dde] !rounded-none !h-[47px] !border-2 !border-transparent text-white transition-all duration-[108ms] ease-in !font-medium !p-0 !text-[19px] !min-w-0 hover:!bg-[#0088c0] focus-visible:!bg-[#0088c0]", H = "!h-10 !border-2 !border-transparent transition-all duration-[313ms] ease-in !rounded-[32px] !font-normal !py-3 !px-8 !text-base", O = b(a, {
|
|
33
|
+
shouldForwardProp: (e) => !v.includes(e)
|
|
53
34
|
})(
|
|
54
35
|
({
|
|
55
|
-
customBackgroundColor
|
|
56
|
-
customHoverColor: e =
|
|
57
|
-
customTextColor:
|
|
58
|
-
customShadow1:
|
|
59
|
-
customShadow2: d =
|
|
36
|
+
// customBackgroundColor = theme.colors.green,
|
|
37
|
+
customHoverColor: e = i.colors.darkGreen,
|
|
38
|
+
customTextColor: o = i.colors.white,
|
|
39
|
+
customShadow1: n = i.boxShadows.gray63,
|
|
40
|
+
customShadow2: d = i.boxShadows.black63
|
|
60
41
|
}) => ({
|
|
61
|
-
...
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
height: 2.5rem;
|
|
65
|
-
border: 2px solid transparent;
|
|
66
|
-
color: ${l};
|
|
67
|
-
transition: 313ms all ease-in;
|
|
68
|
-
border-radius: 32px;
|
|
69
|
-
font-weight: 400;
|
|
70
|
-
padding: 0.75rem 2rem;
|
|
71
|
-
font-size: 1rem;
|
|
72
|
-
box-shadow: ${c};
|
|
42
|
+
...u`
|
|
43
|
+
color: ${o};
|
|
44
|
+
box-shadow: ${n};
|
|
73
45
|
&:hover,
|
|
74
46
|
:focus-visible {
|
|
75
47
|
background-color: ${e};
|
|
@@ -80,93 +52,11 @@ const w = [
|
|
|
80
52
|
}
|
|
81
53
|
`
|
|
82
54
|
})
|
|
83
|
-
),
|
|
84
|
-
|
|
85
|
-
height: 2.5rem;
|
|
86
|
-
border: 2px solid transparent;
|
|
87
|
-
color: ${o.colors.midnight};
|
|
88
|
-
transition: 313ms all ease-in;
|
|
89
|
-
border-radius: 32px;
|
|
90
|
-
font-weight: 400;
|
|
91
|
-
padding: 0.75rem 2rem;
|
|
92
|
-
font-size: 1rem;
|
|
93
|
-
box-shadow: ${o.boxShadows.gray63};
|
|
94
|
-
&:hover,
|
|
95
|
-
:focus-visible {
|
|
96
|
-
background-color: ${o.colors.goldHover};
|
|
97
|
-
box-shadow: ${o.boxShadows.gray63};
|
|
98
|
-
}
|
|
99
|
-
&:disabled {
|
|
100
|
-
background-color: ${o.colors.goldHover};
|
|
101
|
-
}
|
|
102
|
-
`, A = s(B)`
|
|
103
|
-
width: 447px;
|
|
104
|
-
align-self: center;
|
|
105
|
-
`, b = s(u)(({ width: r = "114px" }) => ({
|
|
106
|
-
...a`
|
|
107
|
-
box-sizing: border-box;
|
|
108
|
-
background-color: ${o.colors.bibiBlue};
|
|
109
|
-
border-radius: 0;
|
|
110
|
-
height: 47px;
|
|
111
|
-
width: ${r};
|
|
112
|
-
border: 2px solid transparent;
|
|
113
|
-
color: ${o.colors.white};
|
|
114
|
-
transition: 108ms all ease-in;
|
|
115
|
-
font-weight: 500;
|
|
116
|
-
padding: 0;
|
|
117
|
-
font-size: 19px;
|
|
118
|
-
&:hover,
|
|
119
|
-
:focus-visible {
|
|
120
|
-
background-color: ${o.colors.bibiBlueHover};
|
|
121
|
-
}
|
|
122
|
-
`
|
|
123
|
-
})), U = s(b)(({ active: r }) => ({
|
|
124
|
-
...a`
|
|
125
|
-
background-color: ${r && o.colors.white};
|
|
126
|
-
color: ${r && o.colors.bibiBlue};
|
|
127
|
-
&:hover,
|
|
128
|
-
:focus-visible {
|
|
129
|
-
background-color: ${o.colors.white};
|
|
130
|
-
color: ${o.colors.bibiBlue};
|
|
131
|
-
}
|
|
132
|
-
`
|
|
133
|
-
})), V = s(b)(() => ({
|
|
134
|
-
...a`
|
|
135
|
-
background-color: ${o.colors.white};
|
|
136
|
-
color: ${o.colors.bibiBlue};
|
|
137
|
-
&:hover,
|
|
138
|
-
:focus-visible {
|
|
139
|
-
background-color: ${o.colors.bibiBlue};
|
|
140
|
-
border: 2px solid ${o.colors.white};
|
|
141
|
-
color: ${o.colors.white};
|
|
142
|
-
}
|
|
143
|
-
`
|
|
144
|
-
})), k = s(p)`
|
|
145
|
-
display: block;
|
|
146
|
-
`, W = s(k)`
|
|
147
|
-
font-family: inherit;
|
|
148
|
-
font-size: inherit;
|
|
149
|
-
font-weight: inherit;
|
|
150
|
-
`, q = s("div")`
|
|
151
|
-
display: flex;
|
|
152
|
-
.isCopied {
|
|
153
|
-
color: ${o.colors.gray};
|
|
154
|
-
display: inline;
|
|
155
|
-
margin-left: 8px;
|
|
156
|
-
font-size: smaller;
|
|
157
|
-
align-content: center;
|
|
158
|
-
}
|
|
159
|
-
.isCopied > svg {
|
|
160
|
-
vertical-align: middle;
|
|
161
|
-
height: 14px !important;
|
|
162
|
-
width: 14px !important;
|
|
163
|
-
margin: 0;
|
|
164
|
-
}
|
|
165
|
-
`, D = s(p, {
|
|
166
|
-
shouldForwardProp: (r) => typeof r == "string" && I(r)
|
|
55
|
+
), V = b(p, {
|
|
56
|
+
shouldForwardProp: (e) => typeof e == "string" && I(e)
|
|
167
57
|
})(
|
|
168
|
-
({ size:
|
|
169
|
-
...
|
|
58
|
+
({ size: e, color: o, highlightColor: n, hoverColor: d }) => ({
|
|
59
|
+
...u`
|
|
170
60
|
display: flex;
|
|
171
61
|
align-items: center;
|
|
172
62
|
justify-content: center;
|
|
@@ -176,49 +66,30 @@ const w = [
|
|
|
176
66
|
&:hover,
|
|
177
67
|
:focus-visible {
|
|
178
68
|
svg {
|
|
179
|
-
filter: drop-shadow(0 0 6px ${
|
|
180
|
-
drop-shadow(0 0 6px ${
|
|
181
|
-
fill: ${
|
|
69
|
+
filter: drop-shadow(0 0 6px ${n}) drop-shadow(0 0 6px ${n})
|
|
70
|
+
drop-shadow(0 0 6px ${n}) drop-shadow(0 0 6px ${n});
|
|
71
|
+
fill: ${d || o};
|
|
182
72
|
}
|
|
183
73
|
}
|
|
184
74
|
|
|
185
75
|
svg {
|
|
186
76
|
transition: 313ms all ease-in-out;
|
|
187
|
-
fill: ${
|
|
188
|
-
width: ${
|
|
189
|
-
height: ${
|
|
77
|
+
fill: ${o};
|
|
78
|
+
width: ${e}px;
|
|
79
|
+
height: ${e}px;
|
|
190
80
|
}
|
|
191
81
|
`
|
|
192
82
|
})
|
|
193
|
-
),
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
background-color: ${r ? o.colors.black : o.colors.white};
|
|
197
|
-
height: 28px;
|
|
198
|
-
border-radius: 18px;
|
|
199
|
-
display: flex;
|
|
200
|
-
align-items: center;
|
|
201
|
-
justify-content: center;
|
|
202
|
-
border: 2px solid ${r ? "transparent" : o.colors.black};
|
|
203
|
-
color: ${r ? o.colors.white : o.colors.black};
|
|
204
|
-
transition: 108ms all ease-in;
|
|
205
|
-
font-weight: 500;
|
|
206
|
-
|
|
207
|
-
&:hover,
|
|
208
|
-
:focus-visible {
|
|
209
|
-
background-color: ${r ? o.colors.charcoal : o.colors.gray2};
|
|
210
|
-
}
|
|
211
|
-
`
|
|
212
|
-
})), J = s(p)(
|
|
213
|
-
({ backgroundColor: r, borderColor: e }) => ({
|
|
214
|
-
...a`
|
|
83
|
+
), q = b(p)(
|
|
84
|
+
({ backgroundColor: e, borderColor: o }) => ({
|
|
85
|
+
...u`
|
|
215
86
|
height: 28px;
|
|
216
87
|
border-radius: 20px;
|
|
217
88
|
border-width: 2px;
|
|
218
89
|
border-style: solid;
|
|
219
|
-
border-color: ${
|
|
220
|
-
background: ${
|
|
221
|
-
color: ${
|
|
90
|
+
border-color: ${o}aa ${o} ${o} ${o}aa;
|
|
91
|
+
background: ${e};
|
|
92
|
+
color: ${o};
|
|
222
93
|
padding: 10px;
|
|
223
94
|
font-size: 0.9rem !important;
|
|
224
95
|
font-weight: 500;
|
|
@@ -234,7 +105,7 @@ const w = [
|
|
|
234
105
|
height: 15px;
|
|
235
106
|
margin-left: 5px;
|
|
236
107
|
margin-right: -8px;
|
|
237
|
-
stroke: ${
|
|
108
|
+
stroke: ${o};
|
|
238
109
|
transition: all 313ms ease;
|
|
239
110
|
}
|
|
240
111
|
|
|
@@ -245,71 +116,114 @@ const w = [
|
|
|
245
116
|
}
|
|
246
117
|
`
|
|
247
118
|
})
|
|
248
|
-
),
|
|
249
|
-
variant:
|
|
250
|
-
size:
|
|
251
|
-
color:
|
|
252
|
-
highlightColor:
|
|
253
|
-
hoverColor:
|
|
254
|
-
backgroundColor:
|
|
255
|
-
textColor:
|
|
256
|
-
customShadow1:
|
|
257
|
-
customShadow2:
|
|
258
|
-
children:
|
|
259
|
-
textToCopy:
|
|
260
|
-
active:
|
|
261
|
-
|
|
119
|
+
), Z = ({
|
|
120
|
+
variant: e = 1,
|
|
121
|
+
size: o = 50,
|
|
122
|
+
color: n,
|
|
123
|
+
highlightColor: d,
|
|
124
|
+
hoverColor: l,
|
|
125
|
+
backgroundColor: f,
|
|
126
|
+
textColor: h,
|
|
127
|
+
customShadow1: _,
|
|
128
|
+
customShadow2: N,
|
|
129
|
+
children: s,
|
|
130
|
+
textToCopy: j,
|
|
131
|
+
active: g,
|
|
132
|
+
width: x,
|
|
133
|
+
...r
|
|
262
134
|
}) => {
|
|
263
|
-
const
|
|
264
|
-
if (
|
|
135
|
+
const w = z();
|
|
136
|
+
if (e === "custom")
|
|
265
137
|
return /* @__PURE__ */ t(
|
|
266
138
|
O,
|
|
267
139
|
{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
children: i
|
|
140
|
+
customHoverColor: l,
|
|
141
|
+
customTextColor: h,
|
|
142
|
+
customShadow1: _,
|
|
143
|
+
customShadow2: N,
|
|
144
|
+
className: c("jcCustomButton", H, `background-[${f}]`),
|
|
145
|
+
...r,
|
|
146
|
+
children: s
|
|
276
147
|
}
|
|
277
148
|
);
|
|
278
|
-
if (
|
|
279
|
-
return /* @__PURE__ */ t(
|
|
280
|
-
if (
|
|
281
|
-
return /* @__PURE__ */ t(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
149
|
+
if (e === "bibi")
|
|
150
|
+
return /* @__PURE__ */ t(a, { className: m, style: { width: x ?? "114px" }, ...r, children: s });
|
|
151
|
+
if (e === "bibiOutlined")
|
|
152
|
+
return /* @__PURE__ */ t(
|
|
153
|
+
a,
|
|
154
|
+
{
|
|
155
|
+
className: c(
|
|
156
|
+
m,
|
|
157
|
+
g && "!bg-white !text-[#009dde]",
|
|
158
|
+
"hover:!bg-white hover:!text-[#009dde] focus-visible:!bg-white focus-visible:!text-[#009dde]"
|
|
159
|
+
),
|
|
160
|
+
style: { width: x ?? "114px" },
|
|
161
|
+
...r,
|
|
162
|
+
children: s
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
if (e === "bibiInverse")
|
|
166
|
+
return /* @__PURE__ */ t(
|
|
167
|
+
a,
|
|
168
|
+
{
|
|
169
|
+
className: c(
|
|
170
|
+
m,
|
|
171
|
+
"!bg-white !text-[#009dde]",
|
|
172
|
+
"hover:!bg-[#009dde] hover:!border-white hover:!text-white",
|
|
173
|
+
"focus-visible:!bg-[#009dde] focus-visible:!border-white focus-visible:!text-white",
|
|
174
|
+
`w-[${x ?? "114px"}]`
|
|
175
|
+
),
|
|
176
|
+
...r,
|
|
177
|
+
children: s
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
if (e === "unstyled")
|
|
181
|
+
return /* @__PURE__ */ t(p, { className: "block", ...r, children: s });
|
|
182
|
+
if (e === "copy") {
|
|
183
|
+
const [y, $] = T(!1);
|
|
184
|
+
return /* @__PURE__ */ B("div", { className: "flex", onClick: async () => {
|
|
289
185
|
try {
|
|
290
|
-
await navigator.clipboard.writeText(
|
|
291
|
-
} catch (
|
|
292
|
-
console.error("Failed to copy text: ",
|
|
186
|
+
await navigator.clipboard.writeText(j || String(s)), $(!0), setTimeout(() => $(!1), 1100);
|
|
187
|
+
} catch (C) {
|
|
188
|
+
console.error("Failed to copy text: ", C);
|
|
293
189
|
}
|
|
294
190
|
}, children: [
|
|
295
|
-
/* @__PURE__ */ t(
|
|
296
|
-
|
|
297
|
-
|
|
191
|
+
/* @__PURE__ */ t(S, { title: "Copy to clipboard", children: /* @__PURE__ */ t(
|
|
192
|
+
p,
|
|
193
|
+
{
|
|
194
|
+
className: "block [font-family:inherit] [font-size:inherit] [font-weight:inherit]",
|
|
195
|
+
...r,
|
|
196
|
+
children: s
|
|
197
|
+
}
|
|
198
|
+
) }),
|
|
199
|
+
y && /* @__PURE__ */ B("span", { className: "inline ml-2 text-sm text-[#727272] content-center", children: [
|
|
200
|
+
/* @__PURE__ */ t(A, { size: 12, className: "inline align-middle !h-[14px] !w-[14px] m-0" }),
|
|
298
201
|
" Copied"
|
|
299
202
|
] })
|
|
300
203
|
] });
|
|
301
204
|
}
|
|
302
|
-
return
|
|
303
|
-
|
|
205
|
+
return e === 2 ? /* @__PURE__ */ t(a, { className: k, ...r, children: /* @__PURE__ */ t("span", { children: s }) }) : e === "icon" ? (n = n || i.colors.green, d = d || i.colors.dandelion, l = l || i.colors.green, /* @__PURE__ */ t(V, { className: "jcIconButton", ...{ size: o, color: n, highlightColor: d, hoverColor: l }, ...r, children: s })) : e === "filter" ? /* @__PURE__ */ t(
|
|
206
|
+
a,
|
|
207
|
+
{
|
|
208
|
+
className: c(
|
|
209
|
+
"jcFilterButton",
|
|
210
|
+
"!box-border !h-[28px] !rounded-[18px] !flex !items-center !justify-center !border-2 transition-all duration-[108ms] ease-in !font-medium",
|
|
211
|
+
g ? "!bg-black !border-transparent !text-white hover:!bg-[#404040]" : "!bg-white !border-black !text-black hover:!bg-[#dddddd]"
|
|
212
|
+
),
|
|
213
|
+
...r,
|
|
214
|
+
children: s
|
|
215
|
+
}
|
|
216
|
+
) : e === "form" ? /* @__PURE__ */ t(a, { className: c("jcFormButton", k, "!w-[447px] !self-center"), ...r, children: /* @__PURE__ */ t("span", { children: s }) }) : e === "pill" ? /* @__PURE__ */ t(
|
|
217
|
+
q,
|
|
304
218
|
{
|
|
305
|
-
backgroundColor:
|
|
306
|
-
borderColor:
|
|
307
|
-
...
|
|
308
|
-
children: /* @__PURE__ */ t("span", { children:
|
|
219
|
+
backgroundColor: f || w.themeIconBackgroundB,
|
|
220
|
+
borderColor: h || w.themeIconBackgroundA,
|
|
221
|
+
...r,
|
|
222
|
+
children: /* @__PURE__ */ t("span", { children: s })
|
|
309
223
|
}
|
|
310
|
-
) : /* @__PURE__ */ t(
|
|
224
|
+
) : /* @__PURE__ */ t(a, { className: G, ...r, children: /* @__PURE__ */ t("span", { children: s }) });
|
|
311
225
|
};
|
|
312
226
|
export {
|
|
313
|
-
|
|
314
|
-
|
|
227
|
+
Z as Button,
|
|
228
|
+
Z as default
|
|
315
229
|
};
|
package/Divider/Divider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { n as C, i as D } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import { a as R, g as S, s as u, u as T,
|
|
4
|
+
import { a as R, g as S, s as u, u as T, c as L, P as r, d as W, e as $ } from "../.chunks/DefaultPropsProvider.js";
|
|
5
5
|
import { m as b } from "../.chunks/memoTheme.js";
|
|
6
6
|
function I(t) {
|
|
7
7
|
return S("MuiDivider", t);
|
|
@@ -3,7 +3,7 @@ import { n as B } from "../.chunks/emotion-styled.browser.esm.js";
|
|
|
3
3
|
import { c as g } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
4
|
import { useThemeColors as P } from "../ThemeContext.js";
|
|
5
5
|
import * as f from "react";
|
|
6
|
-
import { a as R, g as T, s as M, r as N,
|
|
6
|
+
import { a as R, g as T, s as M, r as N, b as p, e as z, u as L, c as V, P as o, d as H } from "../.chunks/DefaultPropsProvider.js";
|
|
7
7
|
import { S as E } from "../.chunks/SwitchBase.js";
|
|
8
8
|
import { c as b } from "../.chunks/createSvgIcon.js";
|
|
9
9
|
import { m as F } from "../.chunks/memoTheme.js";
|
|
@@ -4,7 +4,7 @@ import { c as No } from "../.chunks/emotion-react.browser.esm.js";
|
|
|
4
4
|
import Jo from "../theme.js";
|
|
5
5
|
import { useThemeColors as Xo } from "../ThemeContext.js";
|
|
6
6
|
import * as b from "react";
|
|
7
|
-
import { g as po, a as co, s as F,
|
|
7
|
+
import { g as po, a as co, s as F, b as d, u as uo, c as J, P as o, d as fo, e as V } from "../.chunks/DefaultPropsProvider.js";
|
|
8
8
|
import { i as Io, a as be, b as Eo, f as Ae, A as Qo, T as zo } from "../.chunks/TextField.js";
|
|
9
9
|
import { c as Ho } from "../.chunks/createSvgIcon.js";
|
|
10
10
|
import { m as ee } from "../.chunks/memoTheme.js";
|
|
@@ -3,7 +3,7 @@ import { n as G } from "../.chunks/emotion-styled.browser.esm.js";
|
|
|
3
3
|
import { c as S } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
4
|
import { useThemeColors as _ } from "../ThemeContext.js";
|
|
5
5
|
import * as l from "react";
|
|
6
|
-
import { s as m, r as I, P as e, a as q, g as A,
|
|
6
|
+
import { s as m, r as I, P as e, a as q, g as A, b as f, e as w, u as W, c as Z, d as H } from "../.chunks/DefaultPropsProvider.js";
|
|
7
7
|
import { S as J } from "../.chunks/SwitchBase.js";
|
|
8
8
|
import { c as B } from "../.chunks/createSvgIcon.js";
|
|
9
9
|
import { m as P } from "../.chunks/memoTheme.js";
|
package/Pagination/Pagination.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as d, jsxs as Z } from "react/jsx-runtime";
|
|
|
2
2
|
import { n as tt } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
3
|
import { c as at } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
4
|
import * as G from "react";
|
|
5
|
-
import { a as _, g as H, s as B, e as N, u as q,
|
|
5
|
+
import { a as _, g as H, s as B, e as N, u as q, c as U, P as a, b as I, d as J } from "../.chunks/DefaultPropsProvider.js";
|
|
6
6
|
import { u as et } from "../.chunks/useControlled.js";
|
|
7
7
|
import { i as w } from "../.chunks/integerPropType.js";
|
|
8
8
|
import { u as ot } from "../.chunks/index.js";
|
package/Stepper/Stepper.js
CHANGED
|
@@ -7,7 +7,7 @@ import { k as A, c as P } from "../.chunks/emotion-react.browser.esm.js";
|
|
|
7
7
|
import { Button as q } from "../Button/Button.js";
|
|
8
8
|
import { SlideOut as J, SlideIn as Q, SlideInReverse as z, SlideOutReverse as W } from "../animation/Slide/Slide.js";
|
|
9
9
|
import { useThemeColors as Z } from "../ThemeContext.js";
|
|
10
|
-
import { g as V, a as _, s as g,
|
|
10
|
+
import { g as V, a as _, s as g, b as f, u as F, c as O, P as o, d as K, l as rr, h as er, i as tr } from "../.chunks/DefaultPropsProvider.js";
|
|
11
11
|
import { m as w } from "../.chunks/memoTheme.js";
|
|
12
12
|
import { P as or } from "../.chunks/Paper.js";
|
|
13
13
|
import { u as ar } from "../.chunks/index.js";
|
package/Toast/Toaster.d.ts
CHANGED
|
@@ -5,5 +5,7 @@ export type ToastItem = ToastProps & {
|
|
|
5
5
|
export type ToasterProps = {
|
|
6
6
|
toastQueue: ToastItem[];
|
|
7
7
|
onDismiss?: (id: string) => void;
|
|
8
|
+
/** Override the default positioning (fixed, bottom-right). Merges with defaults. */
|
|
9
|
+
style?: React.CSSProperties;
|
|
8
10
|
};
|
|
9
11
|
export declare const Toaster: React.FC<ToasterProps>;
|
package/Toast/Toaster.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
import n from "./Toast.js";
|
|
3
|
+
const a = ({ toastQueue: s = [], onDismiss: t, style: r }) => {
|
|
4
|
+
const e = (o) => {
|
|
5
5
|
t && t(o);
|
|
6
6
|
};
|
|
7
7
|
return /* @__PURE__ */ i(
|
|
@@ -14,12 +14,13 @@ const x = ({ toastQueue: s = [], onDismiss: t }) => {
|
|
|
14
14
|
display: "flex",
|
|
15
15
|
flexDirection: "column",
|
|
16
16
|
gap: "8px",
|
|
17
|
-
zIndex: 9999
|
|
17
|
+
zIndex: 9999,
|
|
18
|
+
...r
|
|
18
19
|
},
|
|
19
|
-
children: s.map(({ id: o, ...
|
|
20
|
+
children: s.map(({ id: o, ...m }) => /* @__PURE__ */ i(n, { ...m, onDismiss: () => e(o) }, o))
|
|
20
21
|
}
|
|
21
22
|
);
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
a as Toaster
|
|
25
26
|
};
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as Pe, jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { a as Qe, g as Ze, s as Y,
|
|
3
|
+
import { a as Qe, g as Ze, s as Y, b as Me, e as Ee, u as eo, c as I, P as o, d as oo } from "../.chunks/DefaultPropsProvider.js";
|
|
4
4
|
import { u as to, a as j } from "../.chunks/index.js";
|
|
5
5
|
import { u as ro, a as po, g as no, G as Re, e as so } from "../.chunks/Portal.js";
|
|
6
6
|
import { m as G } from "../.chunks/memoTheme.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.66",
|
|
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",
|
|
@@ -24,9 +24,12 @@
|
|
|
24
24
|
"@mui/icons-material": "^6.1.3",
|
|
25
25
|
"@mui/material": "^6.1.1",
|
|
26
26
|
"@react-hook/resize-observer": "^2.0.2",
|
|
27
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
27
28
|
"@uiw/react-color": "^2.9.2",
|
|
29
|
+
"clsx": "^2.1.1",
|
|
28
30
|
"lucide-react": "^0.525.0",
|
|
29
31
|
"overlayscrollbars-react": "^0.5.6",
|
|
30
|
-
"react-device-detect": "^2.2.3"
|
|
32
|
+
"react-device-detect": "^2.2.3",
|
|
33
|
+
"tailwindcss": "^4.2.2"
|
|
31
34
|
}
|
|
32
35
|
}
|