jcicl 0.0.149 → 0.0.151
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 +6 -5
- package/.chunks/DefaultPropsProvider.js +6 -6
- package/.chunks/Grow.js +214 -0
- package/.chunks/Paper.js +1247 -0
- package/.chunks/Portal.js +223 -429
- package/.chunks/TextField.js +1555 -2785
- package/.chunks/TransitionGroupContext.js +33 -74
- package/.chunks/index.js +25 -102
- package/.chunks/resolveComponentProps.js +80 -0
- package/.chunks/useSlot.js +1 -1
- package/.chunks/useTimeout.js +44 -0
- package/AppContainer/AppContainer.js +16 -15
- package/Modal/Modal.d.ts +6 -0
- package/Modal/Modal.js +405 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +4 -0
- package/Pagination/Pagination.js +1 -1
- package/Tooltip/Tooltip.js +25 -22
- package/package.json +1 -1
package/Modal/Modal.js
ADDED
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { n as Y } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as z } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import * as c from "react";
|
|
5
|
+
import { g as H, a as _, s as d, c as i, u as q, b as y, P as e, d as G } from "../.chunks/DefaultPropsProvider.js";
|
|
6
|
+
import { u as J, b as Q } from "../.chunks/Portal.js";
|
|
7
|
+
import { m as Z } from "../.chunks/memoTheme.js";
|
|
8
|
+
import { B as ee, M as oe, P as w, F as re } from "../.chunks/Paper.js";
|
|
9
|
+
function ae(r) {
|
|
10
|
+
return H("MuiDialog", r);
|
|
11
|
+
}
|
|
12
|
+
const x = _("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), P = /* @__PURE__ */ c.createContext({});
|
|
13
|
+
process.env.NODE_ENV !== "production" && (P.displayName = "DialogContext");
|
|
14
|
+
const te = d(ee, {
|
|
15
|
+
name: "MuiDialog",
|
|
16
|
+
slot: "Backdrop",
|
|
17
|
+
overrides: (r, o) => o.backdrop
|
|
18
|
+
})({
|
|
19
|
+
// Improve scrollable dialog support.
|
|
20
|
+
zIndex: -1
|
|
21
|
+
}), ne = (r) => {
|
|
22
|
+
const {
|
|
23
|
+
classes: o,
|
|
24
|
+
scroll: a,
|
|
25
|
+
maxWidth: l,
|
|
26
|
+
fullWidth: s,
|
|
27
|
+
fullScreen: u
|
|
28
|
+
} = r, m = {
|
|
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 });
|
|
403
|
+
export {
|
|
404
|
+
he as default
|
|
405
|
+
};
|
package/Modal/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type ModalProps } from './Modal';
|
package/Modal/index.js
ADDED
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 { a 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,11 +1,14 @@
|
|
|
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, a as fo } from "../.chunks/index.js";
|
|
5
|
+
import { o as Rt, P as uo, H as Qe, u as mo, b as vo, g as ho, e as go } 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
|
|
7
|
+
import { c as yo } from "../.chunks/chainPropTypes.js";
|
|
8
|
+
import { r as Gt, u as ze, T as bo } from "../.chunks/useTimeout.js";
|
|
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";
|
|
9
12
|
import { i as jt } from "../.chunks/isFocusVisible.js";
|
|
10
13
|
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) {
|
|
11
14
|
return t.concat([e + "-" + Oe, e + "-" + ke]);
|
|
@@ -965,7 +968,7 @@ const jr = (t) => {
|
|
|
965
968
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
966
969
|
...v
|
|
967
970
|
} = e, w = C.useRef(null), E = it(w, o), O = C.useRef(null), d = it(O, g), y = C.useRef(d);
|
|
968
|
-
|
|
971
|
+
At(() => {
|
|
969
972
|
y.current = d;
|
|
970
973
|
}, [d]), C.useImperativeHandle(g, () => O.current, []);
|
|
971
974
|
const b = Cr(f, i), [R, D] = C.useState(b), [A, P] = C.useState(_e(n));
|
|
@@ -973,7 +976,7 @@ const jr = (t) => {
|
|
|
973
976
|
O.current && O.current.forceUpdate();
|
|
974
977
|
}), C.useEffect(() => {
|
|
975
978
|
n && P(_e(n));
|
|
976
|
-
}, [n]),
|
|
979
|
+
}, [n]), At(() => {
|
|
977
980
|
if (!A || !s)
|
|
978
981
|
return;
|
|
979
982
|
const G = (k) => {
|
|
@@ -1018,7 +1021,7 @@ const jr = (t) => {
|
|
|
1018
1021
|
placement: R
|
|
1019
1022
|
};
|
|
1020
1023
|
T !== null && (M.TransitionProps = T);
|
|
1021
|
-
const N = jr(e), j = u.root ?? "div", X =
|
|
1024
|
+
const N = jr(e), j = u.root ?? "div", X = wo({
|
|
1022
1025
|
elementType: j,
|
|
1023
1026
|
externalSlotProps: x.root,
|
|
1024
1027
|
externalForwardedProps: v,
|
|
@@ -1111,7 +1114,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
|
1111
1114
|
* It's used to set the position of the popper.
|
|
1112
1115
|
* The return value will passed as the reference object of the Popper instance.
|
|
1113
1116
|
*/
|
|
1114
|
-
anchorEl:
|
|
1117
|
+
anchorEl: yo(r.oneOfType([Qe, r.object, r.func]), (t) => {
|
|
1115
1118
|
if (t.open) {
|
|
1116
1119
|
const e = _e(t.anchorEl);
|
|
1117
1120
|
if (e && ot(e) && e.nodeType === 1) {
|
|
@@ -1669,7 +1672,7 @@ const Lr = (t) => {
|
|
|
1669
1672
|
}
|
|
1670
1673
|
})));
|
|
1671
1674
|
let Ge = !1;
|
|
1672
|
-
const Vt = new
|
|
1675
|
+
const Vt = new bo();
|
|
1673
1676
|
let Be = {
|
|
1674
1677
|
x: 0,
|
|
1675
1678
|
y: 0
|
|
@@ -1711,12 +1714,12 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1711
1714
|
slotProps: M = {},
|
|
1712
1715
|
slots: N = {},
|
|
1713
1716
|
title: j,
|
|
1714
|
-
TransitionComponent: X =
|
|
1717
|
+
TransitionComponent: X = Mt,
|
|
1715
1718
|
TransitionProps: G,
|
|
1716
1719
|
...S
|
|
1717
1720
|
} = n, $ = /* @__PURE__ */ C.isValidElement(i) ? i : /* @__PURE__ */ re("span", {
|
|
1718
1721
|
children: i
|
|
1719
|
-
}), k =
|
|
1722
|
+
}), k = mo(), te = Xt(), [L, de] = C.useState(), [oe, me] = C.useState(null), K = C.useRef(!1), H = x || w, ae = ze(), ie = ze(), U = ze(), ve = ze(), [rt, he] = fo({
|
|
1720
1723
|
controlled: R,
|
|
1721
1724
|
default: !1,
|
|
1722
1725
|
name: "Tooltip",
|
|
@@ -1732,13 +1735,13 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1732
1735
|
`));
|
|
1733
1736
|
}, [j, L, h]);
|
|
1734
1737
|
}
|
|
1735
|
-
const ge =
|
|
1738
|
+
const ge = vo(E), pe = C.useRef(), ye = Ct(() => {
|
|
1736
1739
|
pe.current !== void 0 && (document.body.style.WebkitUserSelect = pe.current, pe.current = void 0), ve.clear();
|
|
1737
1740
|
});
|
|
1738
1741
|
C.useEffect(() => ye, [ye]);
|
|
1739
1742
|
const Ee = (h) => {
|
|
1740
1743
|
Vt.clear(), Ge = !0, he(!0), b && !J && b(h);
|
|
1741
|
-
}, le =
|
|
1744
|
+
}, le = Ct(
|
|
1742
1745
|
/**
|
|
1743
1746
|
* @param {React.SyntheticEvent | Event} event
|
|
1744
1747
|
*/
|
|
@@ -1784,7 +1787,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1784
1787
|
document.removeEventListener("keydown", h);
|
|
1785
1788
|
};
|
|
1786
1789
|
}, [le, J]);
|
|
1787
|
-
const Ue = it(
|
|
1790
|
+
const Ue = it(ho($), de, o);
|
|
1788
1791
|
!j && j !== 0 && (J = !1);
|
|
1789
1792
|
const we = C.useRef(), Fe = (h) => {
|
|
1790
1793
|
const Q = $.props;
|
|
@@ -1834,17 +1837,17 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1834
1837
|
placement: D,
|
|
1835
1838
|
PopperComponentProp: A,
|
|
1836
1839
|
touch: K.current
|
|
1837
|
-
}, at = Lr(De), yt = N.popper ?? p.Popper ?? kr, bt = N.transition ?? p.Transition ?? X ??
|
|
1840
|
+
}, at = Lr(De), yt = N.popper ?? p.Popper ?? kr, bt = N.transition ?? p.Transition ?? X ?? Mt, wt = N.tooltip ?? p.Tooltip ?? Wr, Ot = N.arrow ?? p.Arrow ?? Ir, so = Ye(yt, {
|
|
1838
1841
|
...P,
|
|
1839
1842
|
...M.popper ?? s.popper,
|
|
1840
1843
|
className: qe(at.popper, P == null ? void 0 : P.className, (xt = M.popper ?? s.popper) == null ? void 0 : xt.className)
|
|
1841
|
-
}, De), po =
|
|
1844
|
+
}, De), po = Ye(bt, {
|
|
1842
1845
|
...G,
|
|
1843
1846
|
...M.transition ?? s.transition
|
|
1844
|
-
}, De), lo =
|
|
1847
|
+
}, De), lo = Ye(wt, {
|
|
1845
1848
|
...M.tooltip ?? s.tooltip,
|
|
1846
1849
|
className: qe(at.tooltip, (Tt = M.tooltip ?? s.tooltip) == null ? void 0 : Tt.className)
|
|
1847
|
-
}, De), co =
|
|
1850
|
+
}, De), co = Ye(Ot, {
|
|
1848
1851
|
...M.arrow ?? s.arrow,
|
|
1849
1852
|
className: qe(at.arrow, (Pt = M.arrow ?? s.arrow) == null ? void 0 : Pt.className)
|
|
1850
1853
|
}, De);
|
|
@@ -1899,7 +1902,7 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
1899
1902
|
/**
|
|
1900
1903
|
* Tooltip reference element.
|
|
1901
1904
|
*/
|
|
1902
|
-
children:
|
|
1905
|
+
children: go.isRequired,
|
|
1903
1906
|
/**
|
|
1904
1907
|
* Override or extend the styles applied to the component.
|
|
1905
1908
|
*/
|
|
@@ -2077,7 +2080,7 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
2077
2080
|
*/
|
|
2078
2081
|
TransitionProps: r.object
|
|
2079
2082
|
});
|
|
2080
|
-
const
|
|
2083
|
+
const Qr = ({
|
|
2081
2084
|
title: t,
|
|
2082
2085
|
children: e,
|
|
2083
2086
|
arrow: o = !0,
|
|
@@ -2088,6 +2091,6 @@ const Gr = ({
|
|
|
2088
2091
|
return /* @__PURE__ */ re(ao, { ...i, children: e });
|
|
2089
2092
|
};
|
|
2090
2093
|
export {
|
|
2091
|
-
|
|
2092
|
-
|
|
2094
|
+
Qr as Tooltip,
|
|
2095
|
+
Qr as default
|
|
2093
2096
|
};
|
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.151",
|
|
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",
|