jcicl 0.0.151 → 0.0.155
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/ButtonBase.js +5 -6
- package/.chunks/DefaultPropsProvider.js +6 -6
- package/.chunks/Portal.js +429 -223
- package/.chunks/TextField.js +2788 -1558
- package/.chunks/TransitionGroupContext.js +74 -33
- package/.chunks/index.js +102 -25
- package/.chunks/useSlot.js +1 -1
- package/AppContainer/AppContainer.js +15 -16
- package/Modal/Modal.d.ts +4 -4
- package/Modal/Modal.js +29 -403
- package/Pagination/Pagination.js +1 -1
- package/Tooltip/Tooltip.js +22 -25
- package/package.json +1 -1
- package/theme.d.ts +1 -0
- package/theme.js +1 -0
- package/.chunks/Grow.js +0 -214
- package/.chunks/Paper.js +0 -1247
- package/.chunks/resolveComponentProps.js +0 -80
- package/.chunks/useTimeout.js +0 -44
package/Modal/Modal.js
CHANGED
|
@@ -1,405 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
root: ["root"],
|
|
30
|
-
container: ["container", `scroll${i(a)}`],
|
|
31
|
-
paper: ["paper", `paperScroll${i(a)}`, `paperWidth${i(String(l))}`, s && "paperFullWidth", u && "paperFullScreen"]
|
|
32
|
-
};
|
|
33
|
-
return G(m, ae, o);
|
|
34
|
-
}, ie = d(oe, {
|
|
35
|
-
name: "MuiDialog",
|
|
36
|
-
slot: "Root",
|
|
37
|
-
overridesResolver: (r, o) => o.root
|
|
38
|
-
})({
|
|
39
|
-
"@media print": {
|
|
40
|
-
// Use !important to override the Modal inline-style.
|
|
41
|
-
position: "absolute !important"
|
|
42
|
-
}
|
|
43
|
-
}), le = d("div", {
|
|
44
|
-
name: "MuiDialog",
|
|
45
|
-
slot: "Container",
|
|
46
|
-
overridesResolver: (r, o) => {
|
|
47
|
-
const {
|
|
48
|
-
ownerState: a
|
|
49
|
-
} = r;
|
|
50
|
-
return [o.container, o[`scroll${i(a.scroll)}`]];
|
|
51
|
-
}
|
|
52
|
-
})({
|
|
53
|
-
height: "100%",
|
|
54
|
-
"@media print": {
|
|
55
|
-
height: "auto"
|
|
56
|
-
},
|
|
57
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
58
|
-
outline: 0,
|
|
59
|
-
variants: [{
|
|
60
|
-
props: {
|
|
61
|
-
scroll: "paper"
|
|
62
|
-
},
|
|
63
|
-
style: {
|
|
64
|
-
display: "flex",
|
|
65
|
-
justifyContent: "center",
|
|
66
|
-
alignItems: "center"
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
props: {
|
|
70
|
-
scroll: "body"
|
|
71
|
-
},
|
|
72
|
-
style: {
|
|
73
|
-
overflowY: "auto",
|
|
74
|
-
overflowX: "hidden",
|
|
75
|
-
textAlign: "center",
|
|
76
|
-
"&::after": {
|
|
77
|
-
content: '""',
|
|
78
|
-
display: "inline-block",
|
|
79
|
-
verticalAlign: "middle",
|
|
80
|
-
height: "100%",
|
|
81
|
-
width: "0"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}]
|
|
85
|
-
}), se = d(w, {
|
|
86
|
-
name: "MuiDialog",
|
|
87
|
-
slot: "Paper",
|
|
88
|
-
overridesResolver: (r, o) => {
|
|
89
|
-
const {
|
|
90
|
-
ownerState: a
|
|
91
|
-
} = r;
|
|
92
|
-
return [o.paper, o[`scrollPaper${i(a.scroll)}`], o[`paperWidth${i(String(a.maxWidth))}`], a.fullWidth && o.paperFullWidth, a.fullScreen && o.paperFullScreen];
|
|
93
|
-
}
|
|
94
|
-
})(Z(({
|
|
95
|
-
theme: r
|
|
96
|
-
}) => ({
|
|
97
|
-
margin: 32,
|
|
98
|
-
position: "relative",
|
|
99
|
-
overflowY: "auto",
|
|
100
|
-
"@media print": {
|
|
101
|
-
overflowY: "visible",
|
|
102
|
-
boxShadow: "none"
|
|
103
|
-
},
|
|
104
|
-
variants: [{
|
|
105
|
-
props: {
|
|
106
|
-
scroll: "paper"
|
|
107
|
-
},
|
|
108
|
-
style: {
|
|
109
|
-
display: "flex",
|
|
110
|
-
flexDirection: "column",
|
|
111
|
-
maxHeight: "calc(100% - 64px)"
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
props: {
|
|
115
|
-
scroll: "body"
|
|
116
|
-
},
|
|
117
|
-
style: {
|
|
118
|
-
display: "inline-block",
|
|
119
|
-
verticalAlign: "middle",
|
|
120
|
-
textAlign: "initial"
|
|
121
|
-
}
|
|
122
|
-
}, {
|
|
123
|
-
props: ({
|
|
124
|
-
ownerState: o
|
|
125
|
-
}) => !o.maxWidth,
|
|
126
|
-
style: {
|
|
127
|
-
maxWidth: "calc(100% - 64px)"
|
|
128
|
-
}
|
|
129
|
-
}, {
|
|
130
|
-
props: {
|
|
131
|
-
maxWidth: "xs"
|
|
132
|
-
},
|
|
133
|
-
style: {
|
|
134
|
-
maxWidth: r.breakpoints.unit === "px" ? Math.max(r.breakpoints.values.xs, 444) : `max(${r.breakpoints.values.xs}${r.breakpoints.unit}, 444px)`,
|
|
135
|
-
[`&.${x.paperScrollBody}`]: {
|
|
136
|
-
[r.breakpoints.down(Math.max(r.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
137
|
-
maxWidth: "calc(100% - 64px)"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}, ...Object.keys(r.breakpoints.values).filter((o) => o !== "xs").map((o) => ({
|
|
142
|
-
props: {
|
|
143
|
-
maxWidth: o
|
|
144
|
-
},
|
|
145
|
-
style: {
|
|
146
|
-
maxWidth: `${r.breakpoints.values[o]}${r.breakpoints.unit}`,
|
|
147
|
-
[`&.${x.paperScrollBody}`]: {
|
|
148
|
-
[r.breakpoints.down(r.breakpoints.values[o] + 32 * 2)]: {
|
|
149
|
-
maxWidth: "calc(100% - 64px)"
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
})), {
|
|
154
|
-
props: ({
|
|
155
|
-
ownerState: o
|
|
156
|
-
}) => o.fullWidth,
|
|
157
|
-
style: {
|
|
158
|
-
width: "calc(100% - 64px)"
|
|
159
|
-
}
|
|
160
|
-
}, {
|
|
161
|
-
props: ({
|
|
162
|
-
ownerState: o
|
|
163
|
-
}) => o.fullScreen,
|
|
164
|
-
style: {
|
|
165
|
-
margin: 0,
|
|
166
|
-
width: "100%",
|
|
167
|
-
maxWidth: "100%",
|
|
168
|
-
height: "100%",
|
|
169
|
-
maxHeight: "none",
|
|
170
|
-
borderRadius: 0,
|
|
171
|
-
[`&.${x.paperScrollBody}`]: {
|
|
172
|
-
margin: 0,
|
|
173
|
-
maxWidth: "100%"
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}]
|
|
177
|
-
}))), T = /* @__PURE__ */ c.forwardRef(function(o, a) {
|
|
178
|
-
const l = q({
|
|
179
|
-
props: o,
|
|
180
|
-
name: "MuiDialog"
|
|
181
|
-
}), s = J(), u = {
|
|
182
|
-
enter: s.transitions.duration.enteringScreen,
|
|
183
|
-
exit: s.transitions.duration.leavingScreen
|
|
184
|
-
}, {
|
|
185
|
-
"aria-describedby": m,
|
|
186
|
-
"aria-labelledby": B,
|
|
187
|
-
BackdropComponent: M,
|
|
188
|
-
BackdropProps: $,
|
|
189
|
-
children: N,
|
|
190
|
-
className: O,
|
|
191
|
-
disableEscapeKeyDown: k = !1,
|
|
192
|
-
fullScreen: R = !1,
|
|
193
|
-
fullWidth: j = !1,
|
|
194
|
-
maxWidth: F = "sm",
|
|
195
|
-
onBackdropClick: C,
|
|
196
|
-
onClick: D,
|
|
197
|
-
onClose: b,
|
|
198
|
-
open: v,
|
|
199
|
-
PaperComponent: E = w,
|
|
200
|
-
PaperProps: S = {},
|
|
201
|
-
scroll: A = "paper",
|
|
202
|
-
TransitionComponent: I = re,
|
|
203
|
-
transitionDuration: W = u,
|
|
204
|
-
TransitionProps: U,
|
|
205
|
-
...K
|
|
206
|
-
} = l, p = {
|
|
207
|
-
...l,
|
|
208
|
-
disableEscapeKeyDown: k,
|
|
209
|
-
fullScreen: R,
|
|
210
|
-
fullWidth: j,
|
|
211
|
-
maxWidth: F,
|
|
212
|
-
scroll: A
|
|
213
|
-
}, f = ne(p), g = c.useRef(), L = (t) => {
|
|
214
|
-
g.current = t.target === t.currentTarget;
|
|
215
|
-
}, V = (t) => {
|
|
216
|
-
D && D(t), g.current && (g.current = null, C && C(t), b && b(t, "backdropClick"));
|
|
217
|
-
}, h = Q(B), X = c.useMemo(() => ({
|
|
218
|
-
titleId: h
|
|
219
|
-
}), [h]);
|
|
220
|
-
return /* @__PURE__ */ n(ie, {
|
|
221
|
-
className: y(f.root, O),
|
|
222
|
-
closeAfterTransition: !0,
|
|
223
|
-
components: {
|
|
224
|
-
Backdrop: te
|
|
225
|
-
},
|
|
226
|
-
componentsProps: {
|
|
227
|
-
backdrop: {
|
|
228
|
-
transitionDuration: W,
|
|
229
|
-
as: M,
|
|
230
|
-
...$
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
disableEscapeKeyDown: k,
|
|
234
|
-
onClose: b,
|
|
235
|
-
open: v,
|
|
236
|
-
ref: a,
|
|
237
|
-
onClick: V,
|
|
238
|
-
ownerState: p,
|
|
239
|
-
...K,
|
|
240
|
-
children: /* @__PURE__ */ n(I, {
|
|
241
|
-
appear: !0,
|
|
242
|
-
in: v,
|
|
243
|
-
timeout: W,
|
|
244
|
-
role: "presentation",
|
|
245
|
-
...U,
|
|
246
|
-
children: /* @__PURE__ */ n(le, {
|
|
247
|
-
className: y(f.container),
|
|
248
|
-
onMouseDown: L,
|
|
249
|
-
ownerState: p,
|
|
250
|
-
children: /* @__PURE__ */ n(se, {
|
|
251
|
-
as: E,
|
|
252
|
-
elevation: 24,
|
|
253
|
-
role: "dialog",
|
|
254
|
-
"aria-describedby": m,
|
|
255
|
-
"aria-labelledby": h,
|
|
256
|
-
...S,
|
|
257
|
-
className: y(f.paper, S.className),
|
|
258
|
-
ownerState: p,
|
|
259
|
-
children: /* @__PURE__ */ n(P.Provider, {
|
|
260
|
-
value: X,
|
|
261
|
-
children: N
|
|
262
|
-
})
|
|
263
|
-
})
|
|
264
|
-
})
|
|
265
|
-
})
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
process.env.NODE_ENV !== "production" && (T.propTypes = {
|
|
269
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
270
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
271
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
272
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
273
|
-
/**
|
|
274
|
-
* The id(s) of the element(s) that describe the dialog.
|
|
275
|
-
*/
|
|
276
|
-
"aria-describedby": e.string,
|
|
277
|
-
/**
|
|
278
|
-
* The id(s) of the element(s) that label the dialog.
|
|
279
|
-
*/
|
|
280
|
-
"aria-labelledby": e.string,
|
|
281
|
-
/**
|
|
282
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
283
|
-
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
284
|
-
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
285
|
-
* @default styled(Backdrop, {
|
|
286
|
-
* name: 'MuiModal',
|
|
287
|
-
* slot: 'Backdrop',
|
|
288
|
-
* overridesResolver: (props, styles) => {
|
|
289
|
-
* return styles.backdrop;
|
|
290
|
-
* },
|
|
291
|
-
* })({
|
|
292
|
-
* zIndex: -1,
|
|
293
|
-
* })
|
|
294
|
-
*/
|
|
295
|
-
BackdropComponent: e.elementType,
|
|
296
|
-
/**
|
|
297
|
-
* @ignore
|
|
298
|
-
*/
|
|
299
|
-
BackdropProps: e.object,
|
|
300
|
-
/**
|
|
301
|
-
* Dialog children, usually the included sub-components.
|
|
302
|
-
*/
|
|
303
|
-
children: e.node,
|
|
304
|
-
/**
|
|
305
|
-
* Override or extend the styles applied to the component.
|
|
306
|
-
*/
|
|
307
|
-
classes: e.object,
|
|
308
|
-
/**
|
|
309
|
-
* @ignore
|
|
310
|
-
*/
|
|
311
|
-
className: e.string,
|
|
312
|
-
/**
|
|
313
|
-
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
314
|
-
* @default false
|
|
315
|
-
*/
|
|
316
|
-
disableEscapeKeyDown: e.bool,
|
|
317
|
-
/**
|
|
318
|
-
* If `true`, the dialog is full-screen.
|
|
319
|
-
* @default false
|
|
320
|
-
*/
|
|
321
|
-
fullScreen: e.bool,
|
|
322
|
-
/**
|
|
323
|
-
* If `true`, the dialog stretches to `maxWidth`.
|
|
324
|
-
*
|
|
325
|
-
* Notice that the dialog width grow is limited by the default margin.
|
|
326
|
-
* @default false
|
|
327
|
-
*/
|
|
328
|
-
fullWidth: e.bool,
|
|
329
|
-
/**
|
|
330
|
-
* Determine the max-width of the dialog.
|
|
331
|
-
* The dialog width grows with the size of the screen.
|
|
332
|
-
* Set to `false` to disable `maxWidth`.
|
|
333
|
-
* @default 'sm'
|
|
334
|
-
*/
|
|
335
|
-
maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
|
|
336
|
-
/**
|
|
337
|
-
* Callback fired when the backdrop is clicked.
|
|
338
|
-
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
339
|
-
*/
|
|
340
|
-
onBackdropClick: e.func,
|
|
341
|
-
/**
|
|
342
|
-
* @ignore
|
|
343
|
-
*/
|
|
344
|
-
onClick: e.func,
|
|
345
|
-
/**
|
|
346
|
-
* Callback fired when the component requests to be closed.
|
|
347
|
-
*
|
|
348
|
-
* @param {object} event The event source of the callback.
|
|
349
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
350
|
-
*/
|
|
351
|
-
onClose: e.func,
|
|
352
|
-
/**
|
|
353
|
-
* If `true`, the component is shown.
|
|
354
|
-
*/
|
|
355
|
-
open: e.bool.isRequired,
|
|
356
|
-
/**
|
|
357
|
-
* The component used to render the body of the dialog.
|
|
358
|
-
* @default Paper
|
|
359
|
-
*/
|
|
360
|
-
PaperComponent: e.elementType,
|
|
361
|
-
/**
|
|
362
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
363
|
-
* @default {}
|
|
364
|
-
*/
|
|
365
|
-
PaperProps: e.object,
|
|
366
|
-
/**
|
|
367
|
-
* Determine the container for scrolling the dialog.
|
|
368
|
-
* @default 'paper'
|
|
369
|
-
*/
|
|
370
|
-
scroll: e.oneOf(["body", "paper"]),
|
|
371
|
-
/**
|
|
372
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
373
|
-
*/
|
|
374
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
375
|
-
/**
|
|
376
|
-
* The component used for the transition.
|
|
377
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
378
|
-
* @default Fade
|
|
379
|
-
*/
|
|
380
|
-
TransitionComponent: e.elementType,
|
|
381
|
-
/**
|
|
382
|
-
* The duration for the transition, in milliseconds.
|
|
383
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
384
|
-
* @default {
|
|
385
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
386
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
387
|
-
* }
|
|
388
|
-
*/
|
|
389
|
-
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
390
|
-
appear: e.number,
|
|
391
|
-
enter: e.number,
|
|
392
|
-
exit: e.number
|
|
393
|
-
})]),
|
|
394
|
-
/**
|
|
395
|
-
* Props applied to the transition element.
|
|
396
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
397
|
-
*/
|
|
398
|
-
TransitionProps: e.object
|
|
399
|
-
});
|
|
400
|
-
const pe = Y(T)(() => ({
|
|
401
|
-
...z``
|
|
402
|
-
})), he = (r) => /* @__PURE__ */ n(pe, { ...r });
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as l } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import c from "../theme.js";
|
|
6
|
+
const d = s("div")(({ open: o }) => ({
|
|
7
|
+
...l`
|
|
8
|
+
opacity: ${o ? 1 : 0};
|
|
9
|
+
pointer-events: ${o ? "all" : "none"};
|
|
10
|
+
position: fixed;
|
|
11
|
+
z-index: 7007;
|
|
12
|
+
top: 0;
|
|
13
|
+
width: 100vw;
|
|
14
|
+
height: 100vh;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
background-color: ${c.colors.modalBackdrop};
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
transition: opacity 313ms ease-in-out;
|
|
22
|
+
`
|
|
23
|
+
})), y = ({ open: o = !1, onAreaClick: e, children: t }) => {
|
|
24
|
+
const [n, i] = r(o);
|
|
25
|
+
return /* @__PURE__ */ a(d, { className: "jcModal", open: n, onClick: () => {
|
|
26
|
+
e && e(), i(!1);
|
|
27
|
+
}, children: t });
|
|
28
|
+
};
|
|
403
29
|
export {
|
|
404
|
-
|
|
30
|
+
y as default
|
|
405
31
|
};
|
package/Pagination/Pagination.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as aa } from "../.chunks/emotion-styled.browser.esm.js";
|
|
|
3
3
|
import { c as ta } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
4
|
import * as G from "react";
|
|
5
5
|
import { a as _, g as H, s as B, e as N, u as q, b as U, P as t, c as I, d as J } from "../.chunks/DefaultPropsProvider.js";
|
|
6
|
-
import {
|
|
6
|
+
import { b as ea, u as oa } from "../.chunks/index.js";
|
|
7
7
|
import { u as j, i as w } from "../.chunks/useSlot.js";
|
|
8
8
|
import { c as D } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
9
9
|
import { c as h } from "../.chunks/createSvgIcon.js";
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { jsx as re, jsxs as Et } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import { a as Ht, g as Ut, P as r, d as Ft, s as et, u as qt, c as zt, e as Yt, b as qe } from "../.chunks/DefaultPropsProvider.js";
|
|
4
|
-
import { u as Xt,
|
|
5
|
-
import { o as Rt, P as uo, H as Qe,
|
|
4
|
+
import { u as Xt, b as fo, a as ze } from "../.chunks/index.js";
|
|
5
|
+
import { o as Rt, P as uo, H as Qe, c as mo, a as vo, d as ho, g as go, G as At, e as yo } from "../.chunks/Portal.js";
|
|
6
6
|
import { m as lt } from "../.chunks/memoTheme.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { r as Gt, u as
|
|
9
|
-
import { u as it, a as At, c as Ct } from "../.chunks/TransitionGroupContext.js";
|
|
10
|
-
import { u as wo, G as Mt } from "../.chunks/Grow.js";
|
|
11
|
-
import { a as Ye } from "../.chunks/resolveComponentProps.js";
|
|
7
|
+
import { c as bo } from "../.chunks/chainPropTypes.js";
|
|
8
|
+
import { r as Gt, u as it, a as Ct, d as Ye, e as Mt, f as wo } from "../.chunks/TransitionGroupContext.js";
|
|
12
9
|
import { i as jt } from "../.chunks/isFocusVisible.js";
|
|
13
10
|
var W = "top", z = "bottom", Y = "right", I = "left", ct = "auto", Ie = [W, z, Y, I], Oe = "start", ke = "end", Oo = "clippingParents", Kt = "viewport", Se = "popper", xo = "reference", $t = /* @__PURE__ */ Ie.reduce(function(t, e) {
|
|
14
11
|
return t.concat([e + "-" + Oe, e + "-" + ke]);
|
|
@@ -968,7 +965,7 @@ const jr = (t) => {
|
|
|
968
965
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
969
966
|
...v
|
|
970
967
|
} = e, w = C.useRef(null), E = it(w, o), O = C.useRef(null), d = it(O, g), y = C.useRef(d);
|
|
971
|
-
|
|
968
|
+
Ct(() => {
|
|
972
969
|
y.current = d;
|
|
973
970
|
}, [d]), C.useImperativeHandle(g, () => O.current, []);
|
|
974
971
|
const b = Cr(f, i), [R, D] = C.useState(b), [A, P] = C.useState(_e(n));
|
|
@@ -976,7 +973,7 @@ const jr = (t) => {
|
|
|
976
973
|
O.current && O.current.forceUpdate();
|
|
977
974
|
}), C.useEffect(() => {
|
|
978
975
|
n && P(_e(n));
|
|
979
|
-
}, [n]),
|
|
976
|
+
}, [n]), Ct(() => {
|
|
980
977
|
if (!A || !s)
|
|
981
978
|
return;
|
|
982
979
|
const G = (k) => {
|
|
@@ -1021,7 +1018,7 @@ const jr = (t) => {
|
|
|
1021
1018
|
placement: R
|
|
1022
1019
|
};
|
|
1023
1020
|
T !== null && (M.TransitionProps = T);
|
|
1024
|
-
const N = jr(e), j = u.root ?? "div", X =
|
|
1021
|
+
const N = jr(e), j = u.root ?? "div", X = mo({
|
|
1025
1022
|
elementType: j,
|
|
1026
1023
|
externalSlotProps: x.root,
|
|
1027
1024
|
externalForwardedProps: v,
|
|
@@ -1114,7 +1111,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
|
1114
1111
|
* It's used to set the position of the popper.
|
|
1115
1112
|
* The return value will passed as the reference object of the Popper instance.
|
|
1116
1113
|
*/
|
|
1117
|
-
anchorEl:
|
|
1114
|
+
anchorEl: bo(r.oneOfType([Qe, r.object, r.func]), (t) => {
|
|
1118
1115
|
if (t.open) {
|
|
1119
1116
|
const e = _e(t.anchorEl);
|
|
1120
1117
|
if (e && ot(e) && e.nodeType === 1) {
|
|
@@ -1672,7 +1669,7 @@ const Lr = (t) => {
|
|
|
1672
1669
|
}
|
|
1673
1670
|
})));
|
|
1674
1671
|
let Ge = !1;
|
|
1675
|
-
const Vt = new
|
|
1672
|
+
const Vt = new wo();
|
|
1676
1673
|
let Be = {
|
|
1677
1674
|
x: 0,
|
|
1678
1675
|
y: 0
|
|
@@ -1714,12 +1711,12 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1714
1711
|
slotProps: M = {},
|
|
1715
1712
|
slots: N = {},
|
|
1716
1713
|
title: j,
|
|
1717
|
-
TransitionComponent: X =
|
|
1714
|
+
TransitionComponent: X = At,
|
|
1718
1715
|
TransitionProps: G,
|
|
1719
1716
|
...S
|
|
1720
1717
|
} = n, $ = /* @__PURE__ */ C.isValidElement(i) ? i : /* @__PURE__ */ re("span", {
|
|
1721
1718
|
children: i
|
|
1722
|
-
}), k =
|
|
1719
|
+
}), k = vo(), te = Xt(), [L, de] = C.useState(), [oe, me] = C.useState(null), K = C.useRef(!1), H = x || w, ae = Ye(), ie = Ye(), U = Ye(), ve = Ye(), [rt, he] = fo({
|
|
1723
1720
|
controlled: R,
|
|
1724
1721
|
default: !1,
|
|
1725
1722
|
name: "Tooltip",
|
|
@@ -1735,13 +1732,13 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1735
1732
|
`));
|
|
1736
1733
|
}, [j, L, h]);
|
|
1737
1734
|
}
|
|
1738
|
-
const ge =
|
|
1735
|
+
const ge = ho(E), pe = C.useRef(), ye = Mt(() => {
|
|
1739
1736
|
pe.current !== void 0 && (document.body.style.WebkitUserSelect = pe.current, pe.current = void 0), ve.clear();
|
|
1740
1737
|
});
|
|
1741
1738
|
C.useEffect(() => ye, [ye]);
|
|
1742
1739
|
const Ee = (h) => {
|
|
1743
1740
|
Vt.clear(), Ge = !0, he(!0), b && !J && b(h);
|
|
1744
|
-
}, le =
|
|
1741
|
+
}, le = Mt(
|
|
1745
1742
|
/**
|
|
1746
1743
|
* @param {React.SyntheticEvent | Event} event
|
|
1747
1744
|
*/
|
|
@@ -1787,7 +1784,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1787
1784
|
document.removeEventListener("keydown", h);
|
|
1788
1785
|
};
|
|
1789
1786
|
}, [le, J]);
|
|
1790
|
-
const Ue = it(
|
|
1787
|
+
const Ue = it(go($), de, o);
|
|
1791
1788
|
!j && j !== 0 && (J = !1);
|
|
1792
1789
|
const we = C.useRef(), Fe = (h) => {
|
|
1793
1790
|
const Q = $.props;
|
|
@@ -1837,17 +1834,17 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1837
1834
|
placement: D,
|
|
1838
1835
|
PopperComponentProp: A,
|
|
1839
1836
|
touch: K.current
|
|
1840
|
-
}, at = Lr(De), yt = N.popper ?? p.Popper ?? kr, bt = N.transition ?? p.Transition ?? X ??
|
|
1837
|
+
}, at = Lr(De), yt = N.popper ?? p.Popper ?? kr, bt = N.transition ?? p.Transition ?? X ?? At, wt = N.tooltip ?? p.Tooltip ?? Wr, Ot = N.arrow ?? p.Arrow ?? Ir, so = ze(yt, {
|
|
1841
1838
|
...P,
|
|
1842
1839
|
...M.popper ?? s.popper,
|
|
1843
1840
|
className: qe(at.popper, P == null ? void 0 : P.className, (xt = M.popper ?? s.popper) == null ? void 0 : xt.className)
|
|
1844
|
-
}, De), po =
|
|
1841
|
+
}, De), po = ze(bt, {
|
|
1845
1842
|
...G,
|
|
1846
1843
|
...M.transition ?? s.transition
|
|
1847
|
-
}, De), lo =
|
|
1844
|
+
}, De), lo = ze(wt, {
|
|
1848
1845
|
...M.tooltip ?? s.tooltip,
|
|
1849
1846
|
className: qe(at.tooltip, (Tt = M.tooltip ?? s.tooltip) == null ? void 0 : Tt.className)
|
|
1850
|
-
}, De), co =
|
|
1847
|
+
}, De), co = ze(Ot, {
|
|
1851
1848
|
...M.arrow ?? s.arrow,
|
|
1852
1849
|
className: qe(at.arrow, (Pt = M.arrow ?? s.arrow) == null ? void 0 : Pt.className)
|
|
1853
1850
|
}, De);
|
|
@@ -1902,7 +1899,7 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
1902
1899
|
/**
|
|
1903
1900
|
* Tooltip reference element.
|
|
1904
1901
|
*/
|
|
1905
|
-
children:
|
|
1902
|
+
children: yo.isRequired,
|
|
1906
1903
|
/**
|
|
1907
1904
|
* Override or extend the styles applied to the component.
|
|
1908
1905
|
*/
|
|
@@ -2080,7 +2077,7 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
2080
2077
|
*/
|
|
2081
2078
|
TransitionProps: r.object
|
|
2082
2079
|
});
|
|
2083
|
-
const
|
|
2080
|
+
const Gr = ({
|
|
2084
2081
|
title: t,
|
|
2085
2082
|
children: e,
|
|
2086
2083
|
arrow: o = !0,
|
|
@@ -2091,6 +2088,6 @@ const Qr = ({
|
|
|
2091
2088
|
return /* @__PURE__ */ re(ao, { ...i, children: e });
|
|
2092
2089
|
};
|
|
2093
2090
|
export {
|
|
2094
|
-
|
|
2095
|
-
|
|
2091
|
+
Gr as Tooltip,
|
|
2092
|
+
Gr as default
|
|
2096
2093
|
};
|
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.155",
|
|
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