@hybridcore/ui 1.6.13 → 1.6.14
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/dist/AccordionSummary-DUtr16g6.js +781 -0
- package/dist/Add-Bk8R160M.js +403 -0
- package/dist/Button-Cem3nbwc.js +357 -0
- package/dist/ButtonBase-DObmf4Q_.js +886 -0
- package/dist/Delete-CVJ6FeDn.js +203 -0
- package/dist/FormGroup-BRj1o7-E.js +89 -0
- package/dist/InputLabel-CjD30ZHz.js +341 -0
- package/dist/MenuItem-BKvRGLvM.js +233 -0
- package/dist/Modal-BVYydOr5.js +1156 -0
- package/dist/Paper-B1HV8GyO.js +582 -0
- package/dist/Select-Bfhvigsx.js +3914 -0
- package/dist/Source-BSZST_GH.js +4410 -0
- package/dist/SwitchBase-BEK49kdS.js +235 -0
- package/dist/Text-ChJRuaD8.js +2197 -0
- package/dist/TextField-Ca9ykixI.js +696 -0
- package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
- package/dist/Typography-D3X-Y5fh.js +178 -0
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +126 -82
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/collapsible-card/index.js +30 -21
- package/dist/components/collapsible-card/styled.js +14 -16
- package/dist/components/color-picker/index.js +3358 -2228
- package/dist/components/color-picker/styled.js +7 -87
- package/dist/components/confirm/dialog.js +7 -89
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
- package/dist/components/date-range-picker/index.js +454 -466
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +3656 -145
- package/dist/components/geometry-picker/map/style.js +17 -18
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +1924 -77
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
- package/dist/components/instance-hierarchy-table/styled.js +16 -18
- package/dist/components/map/helpers/mapbox.js +15 -17
- package/dist/components/map/helpers/ol.js +27 -386
- package/dist/components/map/index.js +10 -11
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +27 -31
- package/dist/components/phone-input/index.js +9 -10
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +26 -27
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +57 -60
- package/dist/components/sortable-list/index.js +1264 -1091
- package/dist/components/template-form/components/property-list/index.js +32 -36
- package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
- package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
- package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
- package/dist/components/tree-select/index.js +16 -16
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/createSvgIcon-D7U1nd99.js +185 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/dialog-BtJhjyF5.js +664 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/index.esm-DAf19hyR.js +318 -0
- package/dist/math-Bvt2Ubuz.js +704 -0
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-DD4BkuVf.js +350 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useSlot-u4t0X96G.js +42 -0
- package/package.json +1 -1
- package/dist/index.esm-UfGMjYOL.js +0 -197
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { styled as l, Box as h, ButtonBase as U } from "@mui/material";
|
|
2
|
+
import { a as i, _ as D } from "./extends-C3382pL0.js";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { P as e } from "./index-CblbdqjE.js";
|
|
5
|
+
import { c as F } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
import { s as f, r as I, g as H, a as G, b as u, d as V, u as W, c as q } from "./generateUtilityClasses-Cc-owZ4J.js";
|
|
7
|
+
import { S as L } from "./SwitchBase-BEK49kdS.js";
|
|
8
|
+
import { c as z } from "./createSvgIcon-D7U1nd99.js";
|
|
9
|
+
import { jsx as s, jsxs as Z } from "react/jsx-runtime";
|
|
10
|
+
import { c as A } from "./createChainedFunction-C0nujS3O.js";
|
|
11
|
+
import { r as J } from "./TransitionGroupContext-Ja2CgIob.js";
|
|
12
|
+
const P = /* @__PURE__ */ d.createContext(void 0);
|
|
13
|
+
process.env.NODE_ENV !== "production" && (P.displayName = "RadioGroupContext");
|
|
14
|
+
function K() {
|
|
15
|
+
return d.useContext(P);
|
|
16
|
+
}
|
|
17
|
+
const Q = z(/* @__PURE__ */ s("path", {
|
|
18
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
19
|
+
}), "RadioButtonUnchecked"), X = z(/* @__PURE__ */ s("path", {
|
|
20
|
+
d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"
|
|
21
|
+
}), "RadioButtonChecked"), Y = f("span", {
|
|
22
|
+
name: "MuiRadioButtonIcon",
|
|
23
|
+
shouldForwardProp: I
|
|
24
|
+
})({
|
|
25
|
+
position: "relative",
|
|
26
|
+
display: "flex"
|
|
27
|
+
}), oo = f(Q, {
|
|
28
|
+
name: "MuiRadioButtonIcon"
|
|
29
|
+
})({
|
|
30
|
+
// Scale applied to prevent dot misalignment in Safari
|
|
31
|
+
transform: "scale(1)"
|
|
32
|
+
}), eo = f(X, {
|
|
33
|
+
name: "MuiRadioButtonIcon"
|
|
34
|
+
})(({
|
|
35
|
+
theme: o,
|
|
36
|
+
ownerState: a
|
|
37
|
+
}) => i({
|
|
38
|
+
left: 0,
|
|
39
|
+
position: "absolute",
|
|
40
|
+
transform: "scale(0)",
|
|
41
|
+
transition: o.transitions.create("transform", {
|
|
42
|
+
easing: o.transitions.easing.easeIn,
|
|
43
|
+
duration: o.transitions.duration.shortest
|
|
44
|
+
})
|
|
45
|
+
}, a.checked && {
|
|
46
|
+
transform: "scale(1)",
|
|
47
|
+
transition: o.transitions.create("transform", {
|
|
48
|
+
easing: o.transitions.easing.easeOut,
|
|
49
|
+
duration: o.transitions.duration.shortest
|
|
50
|
+
})
|
|
51
|
+
}));
|
|
52
|
+
function k(o) {
|
|
53
|
+
const {
|
|
54
|
+
checked: a = !1,
|
|
55
|
+
classes: t = {},
|
|
56
|
+
fontSize: r
|
|
57
|
+
} = o, n = i({}, o, {
|
|
58
|
+
checked: a
|
|
59
|
+
});
|
|
60
|
+
return /* @__PURE__ */ Z(Y, {
|
|
61
|
+
className: t.root,
|
|
62
|
+
ownerState: n,
|
|
63
|
+
children: [/* @__PURE__ */ s(oo, {
|
|
64
|
+
fontSize: r,
|
|
65
|
+
className: t.background,
|
|
66
|
+
ownerState: n
|
|
67
|
+
}), /* @__PURE__ */ s(eo, {
|
|
68
|
+
fontSize: r,
|
|
69
|
+
className: t.dot,
|
|
70
|
+
ownerState: n
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
75
|
+
/**
|
|
76
|
+
* If `true`, the component is checked.
|
|
77
|
+
*/
|
|
78
|
+
checked: e.bool,
|
|
79
|
+
/**
|
|
80
|
+
* Override or extend the styles applied to the component.
|
|
81
|
+
*/
|
|
82
|
+
classes: e.object,
|
|
83
|
+
/**
|
|
84
|
+
* The size of the component.
|
|
85
|
+
* `small` is equivalent to the dense radio styling.
|
|
86
|
+
*/
|
|
87
|
+
fontSize: e.oneOf(["small", "medium"])
|
|
88
|
+
});
|
|
89
|
+
function ao(o) {
|
|
90
|
+
return G("MuiRadio", o);
|
|
91
|
+
}
|
|
92
|
+
const y = H("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSecondary", "sizeSmall"]), to = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"], ro = (o) => {
|
|
93
|
+
const {
|
|
94
|
+
classes: a,
|
|
95
|
+
color: t,
|
|
96
|
+
size: r
|
|
97
|
+
} = o, n = {
|
|
98
|
+
root: ["root", `color${u(t)}`, r !== "medium" && `size${u(r)}`]
|
|
99
|
+
};
|
|
100
|
+
return i({}, a, q(n, ao, a));
|
|
101
|
+
}, no = f(L, {
|
|
102
|
+
shouldForwardProp: (o) => I(o) || o === "classes",
|
|
103
|
+
name: "MuiRadio",
|
|
104
|
+
slot: "Root",
|
|
105
|
+
overridesResolver: (o, a) => {
|
|
106
|
+
const {
|
|
107
|
+
ownerState: t
|
|
108
|
+
} = o;
|
|
109
|
+
return [a.root, t.size !== "medium" && a[`size${u(t.size)}`], a[`color${u(t.color)}`]];
|
|
110
|
+
}
|
|
111
|
+
})(({
|
|
112
|
+
theme: o,
|
|
113
|
+
ownerState: a
|
|
114
|
+
}) => i({
|
|
115
|
+
color: (o.vars || o).palette.text.secondary
|
|
116
|
+
}, !a.disableRipple && {
|
|
117
|
+
"&:hover": {
|
|
118
|
+
backgroundColor: o.vars ? `rgba(${a.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : V(a.color === "default" ? o.palette.action.active : o.palette[a.color].main, o.palette.action.hoverOpacity),
|
|
119
|
+
// Reset on touch devices, it doesn't add specificity
|
|
120
|
+
"@media (hover: none)": {
|
|
121
|
+
backgroundColor: "transparent"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}, a.color !== "default" && {
|
|
125
|
+
[`&.${y.checked}`]: {
|
|
126
|
+
color: (o.vars || o).palette[a.color].main
|
|
127
|
+
}
|
|
128
|
+
}, {
|
|
129
|
+
[`&.${y.disabled}`]: {
|
|
130
|
+
color: (o.vars || o).palette.action.disabled
|
|
131
|
+
}
|
|
132
|
+
}));
|
|
133
|
+
function so(o, a) {
|
|
134
|
+
return typeof a == "object" && a !== null ? o === a : String(o) === String(a);
|
|
135
|
+
}
|
|
136
|
+
const v = /* @__PURE__ */ s(k, {
|
|
137
|
+
checked: !0
|
|
138
|
+
}), x = /* @__PURE__ */ s(k, {}), S = /* @__PURE__ */ d.forwardRef(function(a, t) {
|
|
139
|
+
var r, n;
|
|
140
|
+
const p = W({
|
|
141
|
+
props: a,
|
|
142
|
+
name: "MuiRadio"
|
|
143
|
+
}), {
|
|
144
|
+
checked: w,
|
|
145
|
+
checkedIcon: N = v,
|
|
146
|
+
color: O = "primary",
|
|
147
|
+
icon: $ = x,
|
|
148
|
+
name: M,
|
|
149
|
+
onChange: j,
|
|
150
|
+
size: m = "medium",
|
|
151
|
+
className: T
|
|
152
|
+
} = p, _ = D(p, to), b = i({}, p, {
|
|
153
|
+
color: O,
|
|
154
|
+
size: m
|
|
155
|
+
}), R = ro(b), c = K();
|
|
156
|
+
let C = w;
|
|
157
|
+
const E = A(j, c && c.onChange);
|
|
158
|
+
let g = M;
|
|
159
|
+
return c && (typeof C > "u" && (C = so(c.value, p.value)), typeof g > "u" && (g = c.name)), /* @__PURE__ */ s(no, i({
|
|
160
|
+
type: "radio",
|
|
161
|
+
icon: /* @__PURE__ */ d.cloneElement($, {
|
|
162
|
+
fontSize: (r = x.props.fontSize) != null ? r : m
|
|
163
|
+
}),
|
|
164
|
+
checkedIcon: /* @__PURE__ */ d.cloneElement(N, {
|
|
165
|
+
fontSize: (n = v.props.fontSize) != null ? n : m
|
|
166
|
+
}),
|
|
167
|
+
ownerState: b,
|
|
168
|
+
classes: R,
|
|
169
|
+
name: g,
|
|
170
|
+
checked: C,
|
|
171
|
+
onChange: E,
|
|
172
|
+
ref: t,
|
|
173
|
+
className: F(R.root, T)
|
|
174
|
+
}, _));
|
|
175
|
+
});
|
|
176
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
177
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
178
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
179
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
180
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
181
|
+
/**
|
|
182
|
+
* If `true`, the component is checked.
|
|
183
|
+
*/
|
|
184
|
+
checked: e.bool,
|
|
185
|
+
/**
|
|
186
|
+
* The icon to display when the component is checked.
|
|
187
|
+
* @default <RadioButtonIcon checked />
|
|
188
|
+
*/
|
|
189
|
+
checkedIcon: e.node,
|
|
190
|
+
/**
|
|
191
|
+
* Override or extend the styles applied to the component.
|
|
192
|
+
*/
|
|
193
|
+
classes: e.object,
|
|
194
|
+
/**
|
|
195
|
+
* @ignore
|
|
196
|
+
*/
|
|
197
|
+
className: e.string,
|
|
198
|
+
/**
|
|
199
|
+
* The color of the component.
|
|
200
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
201
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
202
|
+
* @default 'primary'
|
|
203
|
+
*/
|
|
204
|
+
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
205
|
+
/**
|
|
206
|
+
* If `true`, the component is disabled.
|
|
207
|
+
*/
|
|
208
|
+
disabled: e.bool,
|
|
209
|
+
/**
|
|
210
|
+
* If `true`, the ripple effect is disabled.
|
|
211
|
+
* @default false
|
|
212
|
+
*/
|
|
213
|
+
disableRipple: e.bool,
|
|
214
|
+
/**
|
|
215
|
+
* The icon to display when the component is unchecked.
|
|
216
|
+
* @default <RadioButtonIcon />
|
|
217
|
+
*/
|
|
218
|
+
icon: e.node,
|
|
219
|
+
/**
|
|
220
|
+
* The id of the `input` element.
|
|
221
|
+
*/
|
|
222
|
+
id: e.string,
|
|
223
|
+
/**
|
|
224
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
225
|
+
*/
|
|
226
|
+
inputProps: e.object,
|
|
227
|
+
/**
|
|
228
|
+
* Pass a ref to the `input` element.
|
|
229
|
+
*/
|
|
230
|
+
inputRef: J,
|
|
231
|
+
/**
|
|
232
|
+
* Name attribute of the `input` element.
|
|
233
|
+
*/
|
|
234
|
+
name: e.string,
|
|
235
|
+
/**
|
|
236
|
+
* Callback fired when the state is changed.
|
|
237
|
+
*
|
|
238
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
239
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
240
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
241
|
+
*/
|
|
242
|
+
onChange: e.func,
|
|
243
|
+
/**
|
|
244
|
+
* If `true`, the `input` element is required.
|
|
245
|
+
* @default false
|
|
246
|
+
*/
|
|
247
|
+
required: e.bool,
|
|
248
|
+
/**
|
|
249
|
+
* The size of the component.
|
|
250
|
+
* `small` is equivalent to the dense radio styling.
|
|
251
|
+
* @default 'medium'
|
|
252
|
+
*/
|
|
253
|
+
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
254
|
+
/**
|
|
255
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
256
|
+
*/
|
|
257
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
258
|
+
/**
|
|
259
|
+
* The value of the component. The DOM API casts this to a string.
|
|
260
|
+
*/
|
|
261
|
+
value: e.any
|
|
262
|
+
});
|
|
263
|
+
const B = (o) => o !== "itemcolor", ko = l(h, {
|
|
264
|
+
name: "HCColorPicker",
|
|
265
|
+
slot: "root"
|
|
266
|
+
})({
|
|
267
|
+
display: "flex"
|
|
268
|
+
}), bo = l(S, {
|
|
269
|
+
name: "HCColorPicker",
|
|
270
|
+
slot: "radio",
|
|
271
|
+
shouldForwardProp: B
|
|
272
|
+
})(({ itemcolor: o }) => ({
|
|
273
|
+
color: o,
|
|
274
|
+
padding: 0,
|
|
275
|
+
"&.Mui-checked": {
|
|
276
|
+
color: o,
|
|
277
|
+
"&:before": {
|
|
278
|
+
position: "absolute",
|
|
279
|
+
display: "block",
|
|
280
|
+
content: '" "',
|
|
281
|
+
width: 22,
|
|
282
|
+
height: 22,
|
|
283
|
+
zIndex: 0,
|
|
284
|
+
border: "2px solid",
|
|
285
|
+
borderColor: o === "#ffffff" ? "#333" : o,
|
|
286
|
+
borderRadius: "50%",
|
|
287
|
+
opacity: 0.5
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"& .PrivateSwitchBase-input": {
|
|
291
|
+
zIndex: 2
|
|
292
|
+
},
|
|
293
|
+
"& .MuiSvgIcon-root": {
|
|
294
|
+
position: "relative",
|
|
295
|
+
zIndex: 1
|
|
296
|
+
},
|
|
297
|
+
...o === "#ffffff" && {
|
|
298
|
+
"&:after": {
|
|
299
|
+
position: "absolute",
|
|
300
|
+
display: "block",
|
|
301
|
+
content: '" "',
|
|
302
|
+
width: 18,
|
|
303
|
+
height: 18,
|
|
304
|
+
backgroundColor: "#333",
|
|
305
|
+
zIndex: 0,
|
|
306
|
+
borderRadius: "50%"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
})), Ro = l(h, {
|
|
310
|
+
name: "HCColorPicker",
|
|
311
|
+
slot: "pickerWrapper"
|
|
312
|
+
})({
|
|
313
|
+
position: "fixed",
|
|
314
|
+
marginTop: 25.6,
|
|
315
|
+
right: 32,
|
|
316
|
+
zIndex: 9999
|
|
317
|
+
}), yo = l(U, {
|
|
318
|
+
name: "HCColorPicker",
|
|
319
|
+
slot: "trigger"
|
|
320
|
+
})(({ theme: o }) => ({
|
|
321
|
+
display: "flex",
|
|
322
|
+
alignItems: "center",
|
|
323
|
+
gap: o.spacing(1),
|
|
324
|
+
width: "100%",
|
|
325
|
+
justifyContent: "flex-start",
|
|
326
|
+
padding: o.spacing(0.75, 1),
|
|
327
|
+
border: `1px solid ${o.palette.divider}`,
|
|
328
|
+
borderRadius: o.shape.borderRadius,
|
|
329
|
+
...o.typography.body2,
|
|
330
|
+
color: o.palette.text.primary
|
|
331
|
+
})), vo = l(h, {
|
|
332
|
+
name: "HCColorPicker",
|
|
333
|
+
slot: "swatch",
|
|
334
|
+
shouldForwardProp: B
|
|
335
|
+
})(({ theme: o, itemcolor: a }) => ({
|
|
336
|
+
width: 18,
|
|
337
|
+
height: 18,
|
|
338
|
+
flexShrink: 0,
|
|
339
|
+
borderRadius: o.shape.borderRadius,
|
|
340
|
+
border: `1px solid ${o.palette.divider}`,
|
|
341
|
+
backgroundColor: a || "transparent"
|
|
342
|
+
}));
|
|
343
|
+
export {
|
|
344
|
+
ko as C,
|
|
345
|
+
P as R,
|
|
346
|
+
yo as a,
|
|
347
|
+
vo as b,
|
|
348
|
+
bo as c,
|
|
349
|
+
Ro as d
|
|
350
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
function d({
|
|
3
|
+
controlled: o,
|
|
4
|
+
default: s,
|
|
5
|
+
name: n,
|
|
6
|
+
state: r = "value"
|
|
7
|
+
}) {
|
|
8
|
+
const {
|
|
9
|
+
current: e
|
|
10
|
+
} = t.useRef(o !== void 0), [c, l] = t.useState(s), u = e ? o : c;
|
|
11
|
+
if (process.env.NODE_ENV !== "production") {
|
|
12
|
+
t.useEffect(() => {
|
|
13
|
+
e !== (o !== void 0) && console.error([`MUI: A component is changing the ${e ? "" : "un"}controlled ${r} state of ${n} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
14
|
+
`));
|
|
15
|
+
}, [r, n, o]);
|
|
16
|
+
const {
|
|
17
|
+
current: i
|
|
18
|
+
} = t.useRef(s);
|
|
19
|
+
t.useEffect(() => {
|
|
20
|
+
!e && !Object.is(i, s) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
21
|
+
`));
|
|
22
|
+
}, [JSON.stringify(s)]);
|
|
23
|
+
}
|
|
24
|
+
const f = t.useCallback((i) => {
|
|
25
|
+
e || l(i);
|
|
26
|
+
}, []);
|
|
27
|
+
return [u, f];
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
d as u
|
|
31
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
let n = 0;
|
|
3
|
+
function l(t) {
|
|
4
|
+
const [u, o] = e.useState(t), a = t || u;
|
|
5
|
+
return e.useEffect(() => {
|
|
6
|
+
u == null && (n += 1, o(`mui-${n}`));
|
|
7
|
+
}, [u]), a;
|
|
8
|
+
}
|
|
9
|
+
const s = e.useId;
|
|
10
|
+
function c(t) {
|
|
11
|
+
if (s !== void 0) {
|
|
12
|
+
const u = s();
|
|
13
|
+
return t ?? u;
|
|
14
|
+
}
|
|
15
|
+
return l(t);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as u
|
|
19
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { _ as s, a as n } from "./extends-C3382pL0.js";
|
|
2
|
+
import { r as v, m as b, a as j } from "./Paper-B1HV8GyO.js";
|
|
3
|
+
import { u as k } from "./TransitionGroupContext-Ja2CgIob.js";
|
|
4
|
+
const E = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], L = ["component", "slots", "slotProps"], N = ["component"];
|
|
5
|
+
function z(o, e) {
|
|
6
|
+
const {
|
|
7
|
+
className: x,
|
|
8
|
+
elementType: _,
|
|
9
|
+
ownerState: p,
|
|
10
|
+
externalForwardedProps: l,
|
|
11
|
+
getSlotOwnerState: d,
|
|
12
|
+
internalForwardedProps: a
|
|
13
|
+
} = e, F = s(e, E), {
|
|
14
|
+
component: c,
|
|
15
|
+
slots: t = {
|
|
16
|
+
[o]: void 0
|
|
17
|
+
},
|
|
18
|
+
slotProps: O = {
|
|
19
|
+
[o]: void 0
|
|
20
|
+
}
|
|
21
|
+
} = l, g = s(l, L), i = t[o] || _, r = v(O[o], p), P = b(n({
|
|
22
|
+
className: x
|
|
23
|
+
}, F, {
|
|
24
|
+
externalForwardedProps: o === "root" ? g : void 0,
|
|
25
|
+
externalSlotProps: r
|
|
26
|
+
})), {
|
|
27
|
+
props: {
|
|
28
|
+
component: f
|
|
29
|
+
},
|
|
30
|
+
internalRef: y
|
|
31
|
+
} = P, m = s(P.props, N), C = k(y, r == null ? void 0 : r.ref, e.ref), u = d ? d(m) : {}, T = n({}, p, u), S = o === "root" ? f || c : f, w = j(i, n({}, o === "root" && !c && !t[o] && a, o !== "root" && !t[o] && a, m, S && {
|
|
32
|
+
as: S
|
|
33
|
+
}, {
|
|
34
|
+
ref: C
|
|
35
|
+
}), T);
|
|
36
|
+
return Object.keys(u).forEach((h) => {
|
|
37
|
+
delete w[h];
|
|
38
|
+
}), [i, w];
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
z as u
|
|
42
|
+
};
|
package/package.json
CHANGED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import L, { useRef as N, useState as q, useCallback as M, useEffect as x, isValidElement as V, createRef as B, cloneElement as P, PureComponent as G } from "react";
|
|
2
|
-
import { findDOMNode as J } from "react-dom";
|
|
3
|
-
import K from "lodash/debounce";
|
|
4
|
-
import Q from "lodash/throttle";
|
|
5
|
-
var T = function(n, t) {
|
|
6
|
-
return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, e) {
|
|
7
|
-
r.__proto__ = e;
|
|
8
|
-
} || function(r, e) {
|
|
9
|
-
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (r[a] = e[a]);
|
|
10
|
-
}, T(n, t);
|
|
11
|
-
};
|
|
12
|
-
function X(n, t) {
|
|
13
|
-
if (typeof t != "function" && t !== null)
|
|
14
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
15
|
-
T(n, t);
|
|
16
|
-
function r() {
|
|
17
|
-
this.constructor = n;
|
|
18
|
-
}
|
|
19
|
-
n.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
20
|
-
}
|
|
21
|
-
var j = function() {
|
|
22
|
-
return j = Object.assign || function(t) {
|
|
23
|
-
for (var r, e = 1, a = arguments.length; e < a; e++) {
|
|
24
|
-
r = arguments[e];
|
|
25
|
-
for (var d in r) Object.prototype.hasOwnProperty.call(r, d) && (t[d] = r[d]);
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}, j.apply(this, arguments);
|
|
29
|
-
};
|
|
30
|
-
function Y(n, t) {
|
|
31
|
-
var r = {};
|
|
32
|
-
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && t.indexOf(e) < 0 && (r[e] = n[e]);
|
|
33
|
-
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
34
|
-
for (var a = 0, e = Object.getOwnPropertySymbols(n); a < e.length; a++)
|
|
35
|
-
t.indexOf(e[a]) < 0 && Object.prototype.propertyIsEnumerable.call(n, e[a]) && (r[e[a]] = n[e[a]]);
|
|
36
|
-
return r;
|
|
37
|
-
}
|
|
38
|
-
var I = function(n, t, r, e) {
|
|
39
|
-
switch (t) {
|
|
40
|
-
case "debounce":
|
|
41
|
-
return K(n, r, e);
|
|
42
|
-
case "throttle":
|
|
43
|
-
return Q(n, r, e);
|
|
44
|
-
default:
|
|
45
|
-
return n;
|
|
46
|
-
}
|
|
47
|
-
}, F = function(n) {
|
|
48
|
-
return typeof n == "function";
|
|
49
|
-
}, z = function() {
|
|
50
|
-
return typeof window > "u";
|
|
51
|
-
}, U = function(n) {
|
|
52
|
-
return n instanceof Element || n instanceof HTMLDocument;
|
|
53
|
-
};
|
|
54
|
-
(function(n) {
|
|
55
|
-
X(t, n);
|
|
56
|
-
function t(r) {
|
|
57
|
-
var e = n.call(this, r) || this;
|
|
58
|
-
e.cancelHandler = function() {
|
|
59
|
-
e.resizeHandler && e.resizeHandler.cancel && (e.resizeHandler.cancel(), e.resizeHandler = null);
|
|
60
|
-
}, e.attachObserver = function() {
|
|
61
|
-
var s = e.props, o = s.targetRef, u = s.observerOptions;
|
|
62
|
-
if (!z()) {
|
|
63
|
-
o && o.current && (e.targetRef.current = o.current);
|
|
64
|
-
var i = e.getElement();
|
|
65
|
-
i && (e.observableElement && e.observableElement === i || (e.observableElement = i, e.resizeObserver.observe(i, u)));
|
|
66
|
-
}
|
|
67
|
-
}, e.getElement = function() {
|
|
68
|
-
var s = e.props, o = s.querySelector, u = s.targetDomEl;
|
|
69
|
-
if (z())
|
|
70
|
-
return null;
|
|
71
|
-
if (o)
|
|
72
|
-
return document.querySelector(o);
|
|
73
|
-
if (u && U(u))
|
|
74
|
-
return u;
|
|
75
|
-
if (e.targetRef && U(e.targetRef.current))
|
|
76
|
-
return e.targetRef.current;
|
|
77
|
-
var i = J(e);
|
|
78
|
-
if (!i)
|
|
79
|
-
return null;
|
|
80
|
-
var l = e.getRenderType();
|
|
81
|
-
switch (l) {
|
|
82
|
-
case "renderProp":
|
|
83
|
-
return i;
|
|
84
|
-
case "childFunction":
|
|
85
|
-
return i;
|
|
86
|
-
case "child":
|
|
87
|
-
return i;
|
|
88
|
-
case "childArray":
|
|
89
|
-
return i;
|
|
90
|
-
default:
|
|
91
|
-
return i.parentElement;
|
|
92
|
-
}
|
|
93
|
-
}, e.createResizeHandler = function(s) {
|
|
94
|
-
var o = e.props, u = o.handleWidth, i = u === void 0 ? !0 : u, l = o.handleHeight, y = l === void 0 ? !0 : l, p = o.onResize;
|
|
95
|
-
if (!(!i && !y)) {
|
|
96
|
-
var R = function(c) {
|
|
97
|
-
var v = c.width, g = c.height;
|
|
98
|
-
e.state.width === v && e.state.height === g || e.state.width === v && !y || e.state.height === g && !i || (p == null || p(v, g), e.setState({ width: v, height: g }));
|
|
99
|
-
};
|
|
100
|
-
s.forEach(function(c) {
|
|
101
|
-
var v = c && c.contentRect || {}, g = v.width, w = v.height, H = !e.skipOnMount && !z();
|
|
102
|
-
H && R({ width: g, height: w }), e.skipOnMount = !1;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}, e.getRenderType = function() {
|
|
106
|
-
var s = e.props, o = s.render, u = s.children;
|
|
107
|
-
return F(o) ? "renderProp" : F(u) ? "childFunction" : V(u) ? "child" : Array.isArray(u) ? "childArray" : "parent";
|
|
108
|
-
};
|
|
109
|
-
var a = r.skipOnMount, d = r.refreshMode, m = r.refreshRate, O = m === void 0 ? 1e3 : m, _ = r.refreshOptions;
|
|
110
|
-
return e.state = {
|
|
111
|
-
width: void 0,
|
|
112
|
-
height: void 0
|
|
113
|
-
}, e.sizeRef = {
|
|
114
|
-
current: e.state
|
|
115
|
-
}, e.skipOnMount = a, e.targetRef = B(), e.observableElement = null, z() || (e.resizeHandler = I(e.createResizeHandler, d, O, _), e.resizeObserver = new window.ResizeObserver(e.resizeHandler)), e;
|
|
116
|
-
}
|
|
117
|
-
return t.prototype.componentDidMount = function() {
|
|
118
|
-
this.attachObserver();
|
|
119
|
-
}, t.prototype.componentDidUpdate = function() {
|
|
120
|
-
this.attachObserver(), this.sizeRef.current = this.state;
|
|
121
|
-
}, t.prototype.componentWillUnmount = function() {
|
|
122
|
-
z() || (this.observableElement = null, this.resizeObserver.disconnect(), this.cancelHandler());
|
|
123
|
-
}, t.prototype.render = function() {
|
|
124
|
-
var r = this.props, e = r.render, a = r.children, d = r.nodeType, m = d === void 0 ? "div" : d, O = this.state, _ = O.width, s = O.height, o = { width: _, height: s, targetRef: this.targetRef }, u = this.getRenderType();
|
|
125
|
-
switch (u) {
|
|
126
|
-
case "renderProp":
|
|
127
|
-
return e == null ? void 0 : e(o);
|
|
128
|
-
case "childFunction": {
|
|
129
|
-
var i = a;
|
|
130
|
-
return i == null ? void 0 : i(o);
|
|
131
|
-
}
|
|
132
|
-
case "child": {
|
|
133
|
-
var l = a;
|
|
134
|
-
if (l.type && typeof l.type == "string") {
|
|
135
|
-
o.targetRef;
|
|
136
|
-
var y = Y(o, ["targetRef"]);
|
|
137
|
-
return P(l, y);
|
|
138
|
-
}
|
|
139
|
-
return P(l, o);
|
|
140
|
-
}
|
|
141
|
-
case "childArray": {
|
|
142
|
-
var p = a;
|
|
143
|
-
return p.map(function(R) {
|
|
144
|
-
return !!R && P(R, o);
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
default:
|
|
148
|
-
return L.createElement(m, null);
|
|
149
|
-
}
|
|
150
|
-
}, t;
|
|
151
|
-
})(G);
|
|
152
|
-
function re(n) {
|
|
153
|
-
var t = {}, r = t.skipOnMount, e = r === void 0 ? !1 : r, a = t.refreshMode, d = t.refreshRate, m = d === void 0 ? 1e3 : d, O = t.refreshOptions, _ = t.handleWidth, s = _ === void 0 ? !0 : _, o = t.handleHeight, u = o === void 0 ? !0 : o, i = t.targetRef, l = t.observerOptions, y = t.onResize, p = N(e), R = q({
|
|
154
|
-
width: void 0,
|
|
155
|
-
height: void 0
|
|
156
|
-
}), c = R[0], v = R[1], g = q((i == null ? void 0 : i.current) || null), w = g[0], H = g[1];
|
|
157
|
-
i && setTimeout(function() {
|
|
158
|
-
i.current !== w && H(i.current);
|
|
159
|
-
}, 0);
|
|
160
|
-
var k = M(function(f) {
|
|
161
|
-
f !== w && H(f);
|
|
162
|
-
}, [w]);
|
|
163
|
-
k.current = w;
|
|
164
|
-
var D = M(function(f, h) {
|
|
165
|
-
return !(f.width === h.width && f.height === h.height || f.width === h.width && !u || f.height === h.height && !s);
|
|
166
|
-
}, [s, u]), A = M(function(f) {
|
|
167
|
-
if (!(!s && !u)) {
|
|
168
|
-
if (p.current) {
|
|
169
|
-
p.current = !1;
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
f.forEach(function(h) {
|
|
173
|
-
var E = (h == null ? void 0 : h.contentRect) || {}, b = E.width, W = E.height;
|
|
174
|
-
v(function(C) {
|
|
175
|
-
return D(C, { width: b, height: W }) ? { width: b, height: W } : C;
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
}, [s, u, p, D]), S = M(I(A, a, m, O), [
|
|
180
|
-
A,
|
|
181
|
-
a,
|
|
182
|
-
m,
|
|
183
|
-
O
|
|
184
|
-
]);
|
|
185
|
-
return x(function() {
|
|
186
|
-
var f;
|
|
187
|
-
return w ? (f = new window.ResizeObserver(S), f.observe(w, l)) : (c.width || c.height) && v({ width: void 0, height: void 0 }), function() {
|
|
188
|
-
var h, E, b;
|
|
189
|
-
(h = f == null ? void 0 : f.disconnect) === null || h === void 0 || h.call(f), (b = (E = S).cancel) === null || b === void 0 || b.call(E);
|
|
190
|
-
};
|
|
191
|
-
}, [S, w]), x(function() {
|
|
192
|
-
y == null || y(c.width, c.height);
|
|
193
|
-
}, [c]), j({ ref: k }, c);
|
|
194
|
-
}
|
|
195
|
-
export {
|
|
196
|
-
re as u
|
|
197
|
-
};
|