@hybridcore/ui 1.1.3 → 1.3.0
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/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
- package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
- package/dist/Checkbox-DP6_qp1v.js +469 -0
- package/dist/Collapse-9egEADkh.js +296 -0
- package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
- package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
- package/dist/FormControlLabel-j_atSYQA.js +827 -0
- package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
- package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
- package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
- package/dist/ListItem-BFDUUjHt.js +428 -0
- package/dist/MenuItem-BejUFNIP.js +233 -0
- package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
- package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
- package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
- package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
- package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/index.js +34 -0
- package/dist/components/collapsible-card/style.js +575 -0
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +191 -603
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- 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/index.js +2 -2
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/ol.js +2 -2
- package/dist/components/map/index.js +2 -2
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +89 -6
- package/dist/components/search-input/index.js +3 -3
- package/dist/components/template-property-filters/index.js +78 -0
- package/dist/components/template-property-filters/property.js +7019 -0
- package/dist/components/tree-select/index.js +14 -13
- package/dist/components/treeview-filter/index.js +263 -328
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
- package/dist/createSvgIcon-R_PakhKf.js +213 -0
- package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
- package/dist/index-C7W2wuUG.js +609 -0
- package/dist/index-DHnXB0CB.js +287 -0
- package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
- package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
- package/dist/main.d.ts +158 -0
- package/dist/main.js +33 -29
- package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
- package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
- package/dist/styled-CHMAYxVs.js +142 -0
- package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
- package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
- package/dist/useThemeProps-D4or2IlT.js +62 -0
- package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
- package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
- package/package.json +1 -1
- package/dist/Checkbox-DostZSwR.js +0 -673
- package/dist/index-Bw_m9ult.js +0 -1105
- package/dist/index-wW2D1aTG.js +0 -957
- package/dist/styled-C43K9x7T.js +0 -229
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { a as r, _ as ee } from "./extends-C3382pL0.js";
|
|
2
|
+
import * as z from "react";
|
|
3
|
+
import { g as te, u as ne, c as oe, a as ie } from "./chainPropTypes-BmidnkZm.js";
|
|
4
|
+
import { P as e } from "./createTheme-oOCi1S_n.js";
|
|
5
|
+
import { g as re, s as b, b as se } from "./styled-Wx2vv4j8.js";
|
|
6
|
+
import { T as ae, g as A } from "./utils-BEaBPoDF.js";
|
|
7
|
+
import { u as le } from "./useTheme-CD5DEi5n.js";
|
|
8
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
9
|
+
import { u as pe, a as ce, e as de } from "./ButtonBase-C7CHOX3y.js";
|
|
10
|
+
function ue(o) {
|
|
11
|
+
return re("MuiCollapse", o);
|
|
12
|
+
}
|
|
13
|
+
te("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
14
|
+
const he = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], fe = (o) => {
|
|
15
|
+
const {
|
|
16
|
+
orientation: n,
|
|
17
|
+
classes: s
|
|
18
|
+
} = o, d = {
|
|
19
|
+
root: ["root", `${n}`],
|
|
20
|
+
entered: ["entered"],
|
|
21
|
+
hidden: ["hidden"],
|
|
22
|
+
wrapper: ["wrapper", `${n}`],
|
|
23
|
+
wrapperInner: ["wrapperInner", `${n}`]
|
|
24
|
+
};
|
|
25
|
+
return ie(d, ue, s);
|
|
26
|
+
}, me = b("div", {
|
|
27
|
+
name: "MuiCollapse",
|
|
28
|
+
slot: "Root",
|
|
29
|
+
overridesResolver: (o, n) => {
|
|
30
|
+
const {
|
|
31
|
+
ownerState: s
|
|
32
|
+
} = o;
|
|
33
|
+
return [n.root, n[s.orientation], s.state === "entered" && n.entered, s.state === "exited" && !s.in && s.collapsedSize === "0px" && n.hidden];
|
|
34
|
+
}
|
|
35
|
+
})(({
|
|
36
|
+
theme: o,
|
|
37
|
+
ownerState: n
|
|
38
|
+
}) => r({
|
|
39
|
+
height: 0,
|
|
40
|
+
overflow: "hidden",
|
|
41
|
+
transition: o.transitions.create("height")
|
|
42
|
+
}, n.orientation === "horizontal" && {
|
|
43
|
+
height: "auto",
|
|
44
|
+
width: 0,
|
|
45
|
+
transition: o.transitions.create("width")
|
|
46
|
+
}, n.state === "entered" && r({
|
|
47
|
+
height: "auto",
|
|
48
|
+
overflow: "visible"
|
|
49
|
+
}, n.orientation === "horizontal" && {
|
|
50
|
+
width: "auto"
|
|
51
|
+
}), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
|
|
52
|
+
visibility: "hidden"
|
|
53
|
+
})), ge = b("div", {
|
|
54
|
+
name: "MuiCollapse",
|
|
55
|
+
slot: "Wrapper",
|
|
56
|
+
overridesResolver: (o, n) => n.wrapper
|
|
57
|
+
})(({
|
|
58
|
+
ownerState: o
|
|
59
|
+
}) => r({
|
|
60
|
+
// Hack to get children with a negative margin to not falsify the height computation.
|
|
61
|
+
display: "flex",
|
|
62
|
+
width: "100%"
|
|
63
|
+
}, o.orientation === "horizontal" && {
|
|
64
|
+
width: "auto",
|
|
65
|
+
height: "100%"
|
|
66
|
+
})), Ee = b("div", {
|
|
67
|
+
name: "MuiCollapse",
|
|
68
|
+
slot: "WrapperInner",
|
|
69
|
+
overridesResolver: (o, n) => n.wrapperInner
|
|
70
|
+
})(({
|
|
71
|
+
ownerState: o
|
|
72
|
+
}) => r({
|
|
73
|
+
width: "100%"
|
|
74
|
+
}, o.orientation === "horizontal" && {
|
|
75
|
+
width: "auto",
|
|
76
|
+
height: "100%"
|
|
77
|
+
})), F = /* @__PURE__ */ z.forwardRef(function(n, s) {
|
|
78
|
+
const d = ne({
|
|
79
|
+
props: n,
|
|
80
|
+
name: "MuiCollapse"
|
|
81
|
+
}), {
|
|
82
|
+
addEndListener: S,
|
|
83
|
+
children: H,
|
|
84
|
+
className: _,
|
|
85
|
+
collapsedSize: g = "0px",
|
|
86
|
+
component: U,
|
|
87
|
+
easing: D,
|
|
88
|
+
in: $,
|
|
89
|
+
onEnter: O,
|
|
90
|
+
onEntered: N,
|
|
91
|
+
onEntering: W,
|
|
92
|
+
onExit: L,
|
|
93
|
+
onExited: V,
|
|
94
|
+
onExiting: P,
|
|
95
|
+
orientation: j = "vertical",
|
|
96
|
+
style: T,
|
|
97
|
+
timeout: l = se.standard,
|
|
98
|
+
// eslint-disable-next-line react/prop-types
|
|
99
|
+
TransitionComponent: k = ae
|
|
100
|
+
} = d, q = ee(d, he), E = r({}, d, {
|
|
101
|
+
orientation: j,
|
|
102
|
+
collapsedSize: g
|
|
103
|
+
}), u = fe(E), I = le(), B = pe(), p = z.useRef(null), v = z.useRef(), x = typeof g == "number" ? `${g}px` : g, h = j === "horizontal", f = h ? "width" : "height", y = z.useRef(null), G = ce(s, y), c = (t) => (i) => {
|
|
104
|
+
if (t) {
|
|
105
|
+
const a = y.current;
|
|
106
|
+
i === void 0 ? t(a) : t(a, i);
|
|
107
|
+
}
|
|
108
|
+
}, R = () => p.current ? p.current[h ? "clientWidth" : "clientHeight"] : 0, J = c((t, i) => {
|
|
109
|
+
p.current && h && (p.current.style.position = "absolute"), t.style[f] = x, O && O(t, i);
|
|
110
|
+
}), K = c((t, i) => {
|
|
111
|
+
const a = R();
|
|
112
|
+
p.current && h && (p.current.style.position = "");
|
|
113
|
+
const {
|
|
114
|
+
duration: m,
|
|
115
|
+
easing: w
|
|
116
|
+
} = A({
|
|
117
|
+
style: T,
|
|
118
|
+
timeout: l,
|
|
119
|
+
easing: D
|
|
120
|
+
}, {
|
|
121
|
+
mode: "enter"
|
|
122
|
+
});
|
|
123
|
+
if (l === "auto") {
|
|
124
|
+
const M = I.transitions.getAutoHeightDuration(a);
|
|
125
|
+
t.style.transitionDuration = `${M}ms`, v.current = M;
|
|
126
|
+
} else
|
|
127
|
+
t.style.transitionDuration = typeof m == "string" ? m : `${m}ms`;
|
|
128
|
+
t.style[f] = `${a}px`, t.style.transitionTimingFunction = w, W && W(t, i);
|
|
129
|
+
}), Q = c((t, i) => {
|
|
130
|
+
t.style[f] = "auto", N && N(t, i);
|
|
131
|
+
}), X = c((t) => {
|
|
132
|
+
t.style[f] = `${R()}px`, L && L(t);
|
|
133
|
+
}), Y = c(V), Z = c((t) => {
|
|
134
|
+
const i = R(), {
|
|
135
|
+
duration: a,
|
|
136
|
+
easing: m
|
|
137
|
+
} = A({
|
|
138
|
+
style: T,
|
|
139
|
+
timeout: l,
|
|
140
|
+
easing: D
|
|
141
|
+
}, {
|
|
142
|
+
mode: "exit"
|
|
143
|
+
});
|
|
144
|
+
if (l === "auto") {
|
|
145
|
+
const w = I.transitions.getAutoHeightDuration(i);
|
|
146
|
+
t.style.transitionDuration = `${w}ms`, v.current = w;
|
|
147
|
+
} else
|
|
148
|
+
t.style.transitionDuration = typeof a == "string" ? a : `${a}ms`;
|
|
149
|
+
t.style[f] = x, t.style.transitionTimingFunction = m, P && P(t);
|
|
150
|
+
});
|
|
151
|
+
return /* @__PURE__ */ C(k, r({
|
|
152
|
+
in: $,
|
|
153
|
+
onEnter: J,
|
|
154
|
+
onEntered: Q,
|
|
155
|
+
onEntering: K,
|
|
156
|
+
onExit: X,
|
|
157
|
+
onExited: Y,
|
|
158
|
+
onExiting: Z,
|
|
159
|
+
addEndListener: (t) => {
|
|
160
|
+
l === "auto" && B.start(v.current || 0, t), S && S(y.current, t);
|
|
161
|
+
},
|
|
162
|
+
nodeRef: y,
|
|
163
|
+
timeout: l === "auto" ? null : l
|
|
164
|
+
}, q, {
|
|
165
|
+
children: (t, i) => /* @__PURE__ */ C(me, r({
|
|
166
|
+
as: U,
|
|
167
|
+
className: oe(u.root, _, {
|
|
168
|
+
entered: u.entered,
|
|
169
|
+
exited: !$ && x === "0px" && u.hidden
|
|
170
|
+
}[t]),
|
|
171
|
+
style: r({
|
|
172
|
+
[h ? "minWidth" : "minHeight"]: x
|
|
173
|
+
}, T),
|
|
174
|
+
ref: G
|
|
175
|
+
}, i, {
|
|
176
|
+
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
177
|
+
// that might have been forwarded from the Transition component.
|
|
178
|
+
ownerState: r({}, E, {
|
|
179
|
+
state: t
|
|
180
|
+
}),
|
|
181
|
+
children: /* @__PURE__ */ C(ge, {
|
|
182
|
+
ownerState: r({}, E, {
|
|
183
|
+
state: t
|
|
184
|
+
}),
|
|
185
|
+
className: u.wrapper,
|
|
186
|
+
ref: p,
|
|
187
|
+
children: /* @__PURE__ */ C(Ee, {
|
|
188
|
+
ownerState: r({}, E, {
|
|
189
|
+
state: t
|
|
190
|
+
}),
|
|
191
|
+
className: u.wrapperInner,
|
|
192
|
+
children: H
|
|
193
|
+
})
|
|
194
|
+
})
|
|
195
|
+
}))
|
|
196
|
+
}));
|
|
197
|
+
});
|
|
198
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
199
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
200
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
201
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
202
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
203
|
+
/**
|
|
204
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
205
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
206
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
207
|
+
*/
|
|
208
|
+
addEndListener: e.func,
|
|
209
|
+
/**
|
|
210
|
+
* The content node to be collapsed.
|
|
211
|
+
*/
|
|
212
|
+
children: e.node,
|
|
213
|
+
/**
|
|
214
|
+
* Override or extend the styles applied to the component.
|
|
215
|
+
*/
|
|
216
|
+
classes: e.object,
|
|
217
|
+
/**
|
|
218
|
+
* @ignore
|
|
219
|
+
*/
|
|
220
|
+
className: e.string,
|
|
221
|
+
/**
|
|
222
|
+
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
223
|
+
* @default '0px'
|
|
224
|
+
*/
|
|
225
|
+
collapsedSize: e.oneOfType([e.number, e.string]),
|
|
226
|
+
/**
|
|
227
|
+
* The component used for the root node.
|
|
228
|
+
* Either a string to use a HTML element or a component.
|
|
229
|
+
*/
|
|
230
|
+
component: de,
|
|
231
|
+
/**
|
|
232
|
+
* The transition timing function.
|
|
233
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
234
|
+
*/
|
|
235
|
+
easing: e.oneOfType([e.shape({
|
|
236
|
+
enter: e.string,
|
|
237
|
+
exit: e.string
|
|
238
|
+
}), e.string]),
|
|
239
|
+
/**
|
|
240
|
+
* If `true`, the component will transition in.
|
|
241
|
+
*/
|
|
242
|
+
in: e.bool,
|
|
243
|
+
/**
|
|
244
|
+
* @ignore
|
|
245
|
+
*/
|
|
246
|
+
onEnter: e.func,
|
|
247
|
+
/**
|
|
248
|
+
* @ignore
|
|
249
|
+
*/
|
|
250
|
+
onEntered: e.func,
|
|
251
|
+
/**
|
|
252
|
+
* @ignore
|
|
253
|
+
*/
|
|
254
|
+
onEntering: e.func,
|
|
255
|
+
/**
|
|
256
|
+
* @ignore
|
|
257
|
+
*/
|
|
258
|
+
onExit: e.func,
|
|
259
|
+
/**
|
|
260
|
+
* @ignore
|
|
261
|
+
*/
|
|
262
|
+
onExited: e.func,
|
|
263
|
+
/**
|
|
264
|
+
* @ignore
|
|
265
|
+
*/
|
|
266
|
+
onExiting: e.func,
|
|
267
|
+
/**
|
|
268
|
+
* The transition orientation.
|
|
269
|
+
* @default 'vertical'
|
|
270
|
+
*/
|
|
271
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
272
|
+
/**
|
|
273
|
+
* @ignore
|
|
274
|
+
*/
|
|
275
|
+
style: e.object,
|
|
276
|
+
/**
|
|
277
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
278
|
+
*/
|
|
279
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
280
|
+
/**
|
|
281
|
+
* The duration for the transition, in milliseconds.
|
|
282
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
283
|
+
*
|
|
284
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
285
|
+
* @default duration.standard
|
|
286
|
+
*/
|
|
287
|
+
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
288
|
+
appear: e.number,
|
|
289
|
+
enter: e.number,
|
|
290
|
+
exit: e.number
|
|
291
|
+
})])
|
|
292
|
+
});
|
|
293
|
+
F.muiSupportAuto = !0;
|
|
294
|
+
export {
|
|
295
|
+
F as C
|
|
296
|
+
};
|