@hybridcore/ui 1.0.2 → 1.1.2
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 +967 -0
- package/dist/CardContent-C8PxkJz4.js +73 -0
- package/dist/Checkbox-DostZSwR.js +673 -0
- package/dist/DialogContent-2aPOjKE7.js +2025 -0
- package/dist/FormControl-BiAFm76F.js +1491 -0
- package/dist/IconButton-CQJ8wZE8.js +183 -0
- package/dist/Input-Bf5G3tFN.js +324 -0
- package/dist/OutlinedInput-BEVE8VZQ.js +452 -0
- package/dist/Paper-CaiWdndQ.js +162 -0
- package/dist/Select-DxpxZbJp.js +2526 -0
- package/dist/Source-CnCcu5UP.js +4374 -0
- package/dist/Text-BT5kPHOo.js +2192 -0
- package/dist/Typography-XIiVCSto.js +178 -0
- package/dist/assertThisInitialized-BUtkG-md.js +13 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/chainPropTypes-DtBfUj5o.js +96 -0
- package/dist/components/access/helpers.js +32 -0
- package/dist/components/access/index.js +15 -0
- package/dist/components/card/index.js +159 -469
- package/dist/components/card/styled.js +75 -7
- package/dist/components/conditional-wrapper/index.js +9 -0
- package/dist/components/confirm/dialog.js +151 -0
- package/dist/components/confirm/index.js +23 -0
- package/dist/components/container/index.js +270 -0
- package/dist/components/context-menu/index.js +973 -0
- package/dist/components/data-management/instance-form/components/composite-list/index.js +12 -0
- package/dist/components/data-management/instance-form/components/composite-list/styled.js +64 -0
- package/dist/components/data-management/instance-form/components/policy-list/index.js +86 -0
- package/dist/components/data-management/instance-form/components/variable/index.js +15 -0
- package/dist/components/data-management/instance-form/components/variables/index.js +39 -0
- package/dist/components/data-management/instance-form/index.js +437 -0
- package/dist/components/data-security-selectors/dissemination-list/index.js +3201 -0
- package/dist/components/data-security-selectors/security-level/index.js +81 -0
- package/dist/components/date-time-picker/index.js +103 -0
- package/dist/components/geometry-picker/coordinate/index.js +93 -0
- package/dist/components/geometry-picker/edit/index.js +71 -0
- package/dist/components/geometry-picker/geometry/index.js +160 -0
- package/dist/components/geometry-picker/geometry/map-overlay.js +22 -0
- package/dist/components/geometry-picker/index.js +140 -0
- package/dist/components/geometry-picker/kml/index.js +62 -0
- package/dist/components/geometry-picker/kml/select-input-method.js +75 -0
- package/dist/components/geometry-picker/logic.js +69 -0
- package/dist/components/geometry-picker/map/index.js +42 -0
- package/dist/components/geometry-picker/map/logic.js +2360 -0
- package/dist/components/geometry-picker/map/style.js +88 -0
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +78 -0
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1305 -0
- package/dist/components/geometry-picker/parser/index.js +179 -0
- package/dist/components/geometry-picker/parser/logic.js +84 -0
- package/dist/components/geometry-picker/parser/styled.js +25 -0
- package/dist/components/geometry-picker/styled.js +48 -0
- package/dist/components/geometry-picker/wkt/index.js +59 -0
- package/dist/components/geometry-picker/wkt/select-input-method.js +75 -0
- package/dist/components/icon-button/index.js +18 -0
- package/dist/components/icon-button/styled.js +51 -0
- package/dist/components/key-protection/index.js +4 -0
- package/dist/components/key-protection/menu.js +85 -0
- package/dist/components/key-protection/utils.js +10 -0
- package/dist/components/loading/index.js +7 -0
- package/dist/components/loading/styled.js +16 -0
- package/dist/components/map/helpers/kml.js +45 -0
- package/dist/components/map/helpers/mapbox.js +48 -0
- package/dist/components/map/helpers/ol.js +25 -0
- package/dist/components/map/helpers/wkt.js +29 -0
- package/dist/components/map/index.js +8 -0
- package/dist/components/map/logic.js +140 -0
- package/dist/components/map/styled.js +8 -0
- package/dist/components/phone-input/index.js +25 -0
- package/dist/components/phone-input/styled.js +26 -0
- package/dist/components/search-input/index.js +76 -0
- package/dist/components/tree-select/index.js +70 -0
- package/dist/components/tree-select/styled.js +64 -0
- package/dist/components/treeview-filter/index.js +621 -0
- package/dist/components/treeview-filter/item/index.js +7 -0
- package/dist/components/treeview-filter/item-label/index.js +44 -0
- package/dist/createTheme-agWfFD64.js +2392 -0
- package/dist/exactProp-CI8dagM-.js +36 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/has-9_asnBxn.js +688 -0
- package/dist/hooks/useMenuLogic.js +21 -0
- package/dist/hooks/useToggle.js +23 -0
- package/dist/index-Bw_m9ult.js +1105 -0
- package/dist/index-IvOfmM1F.js +34 -0
- package/dist/index-wW2D1aTG.js +957 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/isMuiElement-CxT3_ACP.js +13 -0
- package/dist/listItemTextClasses-BvXFz-Oc.js +132 -0
- package/dist/main.d.ts +1317 -0
- package/dist/main.js +41 -2
- package/dist/ol-DXmSLlWv.js +15041 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/styled-C43K9x7T.js +229 -0
- package/dist/styled-Iq9jsO4F.js +1033 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BHG98T5I.js +26 -0
- package/dist/useTheme-C0Dky5rV.js +17 -0
- package/dist/useTheme-CeyGVuQP.js +10 -0
- package/dist/useThemeProps-CzAjOL6F.js +26 -0
- package/dist/utils/ontology.js +37 -0
- package/dist/utils-Bq0ye5vf.js +115 -0
- package/dist/utils-DLpkeyhZ.js +365 -0
- package/package.json +26 -5
- package/dist/styled-BG5UIpPU.js +0 -3459
|
@@ -1,133 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Box as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return
|
|
13
|
-
}
|
|
14
|
-
function M() {
|
|
15
|
-
for (var t, e, r = 0, o = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e = A(t)) && (o && (o += " "), o += e);
|
|
16
|
-
return o;
|
|
17
|
-
}
|
|
18
|
-
function T(t, e, r = void 0) {
|
|
19
|
-
const o = {};
|
|
20
|
-
return Object.keys(t).forEach(
|
|
21
|
-
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
22
|
-
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
23
|
-
(i) => {
|
|
24
|
-
o[i] = t[i].reduce((a, c) => {
|
|
25
|
-
if (c) {
|
|
26
|
-
const l = e(c);
|
|
27
|
-
l !== "" && a.push(l), r && r[c] && a.push(r[c]);
|
|
28
|
-
}
|
|
29
|
-
return a;
|
|
30
|
-
}, []).join(" ");
|
|
31
|
-
}
|
|
32
|
-
), o;
|
|
33
|
-
}
|
|
34
|
-
function W(t, e) {
|
|
35
|
-
const r = d({}, e);
|
|
36
|
-
return Object.keys(t).forEach((o) => {
|
|
37
|
-
if (o.toString().match(/^(components|slots)$/))
|
|
38
|
-
r[o] = d({}, t[o], r[o]);
|
|
39
|
-
else if (o.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
40
|
-
const i = t[o] || {}, a = e[o];
|
|
41
|
-
r[o] = {}, !a || !Object.keys(a) ? r[o] = i : !i || !Object.keys(i) ? r[o] = a : (r[o] = d({}, a), Object.keys(i).forEach((c) => {
|
|
42
|
-
r[o][c] = W(i[c], a[c]);
|
|
43
|
-
}));
|
|
44
|
-
} else r[o] === void 0 && (r[o] = t[o]);
|
|
45
|
-
}), r;
|
|
46
|
-
}
|
|
47
|
-
const F = /* @__PURE__ */ y.createContext(void 0);
|
|
48
|
-
process.env.NODE_ENV !== "production" && (n.node, n.object);
|
|
49
|
-
function G(t) {
|
|
50
|
-
const {
|
|
51
|
-
theme: e,
|
|
52
|
-
name: r,
|
|
53
|
-
props: o
|
|
54
|
-
} = t;
|
|
55
|
-
if (!e || !e.components || !e.components[r])
|
|
56
|
-
return o;
|
|
57
|
-
const i = e.components[r];
|
|
58
|
-
return i.defaultProps ? W(i.defaultProps, o) : !i.styleOverrides && !i.variants ? W(i, o) : o;
|
|
59
|
-
}
|
|
60
|
-
function J({
|
|
61
|
-
props: t,
|
|
62
|
-
name: e
|
|
63
|
-
}) {
|
|
64
|
-
const r = y.useContext(F);
|
|
65
|
-
return G({
|
|
66
|
-
props: t,
|
|
67
|
-
name: e,
|
|
68
|
-
theme: {
|
|
69
|
-
components: r
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
process.env.NODE_ENV !== "production" && (n.node, n.object.isRequired);
|
|
74
|
-
function j(t) {
|
|
75
|
-
return J(t);
|
|
76
|
-
}
|
|
77
|
-
function w(t, e, r = "Mui") {
|
|
78
|
-
const o = {};
|
|
79
|
-
return e.forEach((i) => {
|
|
80
|
-
o[i] = C(t, i, r);
|
|
81
|
-
}), o;
|
|
82
|
-
}
|
|
83
|
-
function K(t) {
|
|
84
|
-
return C("MuiCardActions", t);
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Box as p, Avatar as b } from "@mui/material";
|
|
3
|
+
import { LandscapeCardRoot as A, LandscapeInfoBox as I, LandscapeCardExtraActions as P, PortraitCardRoot as _, PortraitCardExtraActions as L } from "./styled.js";
|
|
4
|
+
import { a as m, _ as v } from "../../extends-C3382pL0.js";
|
|
5
|
+
import * as M from "react";
|
|
6
|
+
import { P as t } from "../../createTheme-agWfFD64.js";
|
|
7
|
+
import { g as w, u as O, c as N, a as S, b as B } from "../../chainPropTypes-DtBfUj5o.js";
|
|
8
|
+
import { g as T, s as j } from "../../styled-Iq9jsO4F.js";
|
|
9
|
+
import { C as y } from "../../CardContent-C8PxkJz4.js";
|
|
10
|
+
import { T as d } from "../../Typography-XIiVCSto.js";
|
|
11
|
+
function U(e) {
|
|
12
|
+
return T("MuiCardActions", e);
|
|
85
13
|
}
|
|
86
14
|
w("MuiCardActions", ["root", "spacing"]);
|
|
87
|
-
const
|
|
15
|
+
const D = ["disableSpacing", "className"], H = (e) => {
|
|
88
16
|
const {
|
|
89
|
-
classes:
|
|
90
|
-
disableSpacing:
|
|
91
|
-
} =
|
|
92
|
-
return
|
|
93
|
-
root: ["root", !
|
|
94
|
-
},
|
|
95
|
-
},
|
|
17
|
+
classes: i,
|
|
18
|
+
disableSpacing: n
|
|
19
|
+
} = e;
|
|
20
|
+
return S({
|
|
21
|
+
root: ["root", !n && "spacing"]
|
|
22
|
+
}, U, i);
|
|
23
|
+
}, z = j("div", {
|
|
96
24
|
name: "MuiCardActions",
|
|
97
25
|
slot: "Root",
|
|
98
|
-
overridesResolver: (
|
|
26
|
+
overridesResolver: (e, i) => {
|
|
99
27
|
const {
|
|
100
|
-
ownerState:
|
|
101
|
-
} =
|
|
102
|
-
return [
|
|
28
|
+
ownerState: n
|
|
29
|
+
} = e;
|
|
30
|
+
return [i.root, !n.disableSpacing && i.spacing];
|
|
103
31
|
}
|
|
104
32
|
})(({
|
|
105
|
-
ownerState:
|
|
106
|
-
}) =>
|
|
33
|
+
ownerState: e
|
|
34
|
+
}) => m({
|
|
107
35
|
display: "flex",
|
|
108
36
|
alignItems: "center",
|
|
109
37
|
padding: 8
|
|
110
|
-
}, !
|
|
38
|
+
}, !e.disableSpacing && {
|
|
111
39
|
"& > :not(style) ~ :not(style)": {
|
|
112
40
|
marginLeft: 8
|
|
113
41
|
}
|
|
114
|
-
})),
|
|
115
|
-
const
|
|
116
|
-
props:
|
|
42
|
+
})), k = /* @__PURE__ */ M.forwardRef(function(i, n) {
|
|
43
|
+
const r = O({
|
|
44
|
+
props: i,
|
|
117
45
|
name: "MuiCardActions"
|
|
118
46
|
}), {
|
|
119
|
-
disableSpacing:
|
|
120
|
-
className:
|
|
121
|
-
} =
|
|
122
|
-
disableSpacing:
|
|
123
|
-
}),
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
className:
|
|
47
|
+
disableSpacing: s = !1,
|
|
48
|
+
className: h
|
|
49
|
+
} = r, a = v(r, D), l = m({}, r, {
|
|
50
|
+
disableSpacing: s
|
|
51
|
+
}), u = H(l);
|
|
52
|
+
return /* @__PURE__ */ o(z, m({
|
|
53
|
+
className: N(u.root, h),
|
|
126
54
|
ownerState: l,
|
|
127
|
-
ref:
|
|
128
|
-
},
|
|
55
|
+
ref: n
|
|
56
|
+
}, a));
|
|
129
57
|
});
|
|
130
|
-
process.env.NODE_ENV !== "production" && (
|
|
58
|
+
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
131
59
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
132
60
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
133
61
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -135,162 +63,93 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
|
135
63
|
/**
|
|
136
64
|
* The content of the component.
|
|
137
65
|
*/
|
|
138
|
-
children:
|
|
66
|
+
children: t.node,
|
|
139
67
|
/**
|
|
140
68
|
* Override or extend the styles applied to the component.
|
|
141
69
|
*/
|
|
142
|
-
classes:
|
|
70
|
+
classes: t.object,
|
|
143
71
|
/**
|
|
144
72
|
* @ignore
|
|
145
73
|
*/
|
|
146
|
-
className:
|
|
74
|
+
className: t.string,
|
|
147
75
|
/**
|
|
148
76
|
* If `true`, the actions do not have additional margin.
|
|
149
77
|
* @default false
|
|
150
78
|
*/
|
|
151
|
-
disableSpacing:
|
|
79
|
+
disableSpacing: t.bool,
|
|
152
80
|
/**
|
|
153
81
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
154
82
|
*/
|
|
155
|
-
sx:
|
|
83
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
156
84
|
});
|
|
157
|
-
function
|
|
158
|
-
return
|
|
159
|
-
}
|
|
160
|
-
w("MuiCardContent", ["root"]);
|
|
161
|
-
const tt = ["className", "component"], et = (t) => {
|
|
162
|
-
const {
|
|
163
|
-
classes: e
|
|
164
|
-
} = t;
|
|
165
|
-
return T({
|
|
166
|
-
root: ["root"]
|
|
167
|
-
}, Z, e);
|
|
168
|
-
}, ot = v("div", {
|
|
169
|
-
name: "MuiCardContent",
|
|
170
|
-
slot: "Root",
|
|
171
|
-
overridesResolver: (t, e) => e.root
|
|
172
|
-
})(() => ({
|
|
173
|
-
padding: 16,
|
|
174
|
-
"&:last-child": {
|
|
175
|
-
paddingBottom: 24
|
|
176
|
-
}
|
|
177
|
-
})), S = /* @__PURE__ */ y.forwardRef(function(e, r) {
|
|
178
|
-
const o = j({
|
|
179
|
-
props: e,
|
|
180
|
-
name: "MuiCardContent"
|
|
181
|
-
}), {
|
|
182
|
-
className: i,
|
|
183
|
-
component: a = "div"
|
|
184
|
-
} = o, c = O(o, tt), l = d({}, o, {
|
|
185
|
-
component: a
|
|
186
|
-
}), p = et(l);
|
|
187
|
-
return /* @__PURE__ */ s(ot, d({
|
|
188
|
-
as: a,
|
|
189
|
-
className: M(p.root, i),
|
|
190
|
-
ownerState: l,
|
|
191
|
-
ref: r
|
|
192
|
-
}, c));
|
|
193
|
-
});
|
|
194
|
-
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
195
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
196
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
197
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
198
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
199
|
-
/**
|
|
200
|
-
* The content of the component.
|
|
201
|
-
*/
|
|
202
|
-
children: n.node,
|
|
203
|
-
/**
|
|
204
|
-
* Override or extend the styles applied to the component.
|
|
205
|
-
*/
|
|
206
|
-
classes: n.object,
|
|
207
|
-
/**
|
|
208
|
-
* @ignore
|
|
209
|
-
*/
|
|
210
|
-
className: n.string,
|
|
211
|
-
/**
|
|
212
|
-
* The component used for the root node.
|
|
213
|
-
* Either a string to use a HTML element or a component.
|
|
214
|
-
*/
|
|
215
|
-
component: n.elementType,
|
|
216
|
-
/**
|
|
217
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
218
|
-
*/
|
|
219
|
-
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
220
|
-
});
|
|
221
|
-
function nt(t, e) {
|
|
222
|
-
return process.env.NODE_ENV === "production" ? () => null : function(...o) {
|
|
223
|
-
return t(...o) || e(...o);
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
function rt(t) {
|
|
227
|
-
return C("MuiCardMedia", t);
|
|
85
|
+
function $(e) {
|
|
86
|
+
return T("MuiCardMedia", e);
|
|
228
87
|
}
|
|
229
88
|
w("MuiCardMedia", ["root", "media", "img"]);
|
|
230
|
-
const
|
|
89
|
+
const V = ["children", "className", "component", "image", "src", "style"], F = (e) => {
|
|
231
90
|
const {
|
|
232
|
-
classes:
|
|
233
|
-
isMediaComponent:
|
|
234
|
-
isImageComponent:
|
|
235
|
-
} =
|
|
236
|
-
return
|
|
237
|
-
root: ["root",
|
|
238
|
-
},
|
|
239
|
-
},
|
|
91
|
+
classes: i,
|
|
92
|
+
isMediaComponent: n,
|
|
93
|
+
isImageComponent: r
|
|
94
|
+
} = e;
|
|
95
|
+
return S({
|
|
96
|
+
root: ["root", n && "media", r && "img"]
|
|
97
|
+
}, $, i);
|
|
98
|
+
}, G = j("div", {
|
|
240
99
|
name: "MuiCardMedia",
|
|
241
100
|
slot: "Root",
|
|
242
|
-
overridesResolver: (
|
|
101
|
+
overridesResolver: (e, i) => {
|
|
243
102
|
const {
|
|
244
|
-
ownerState:
|
|
245
|
-
} =
|
|
246
|
-
isMediaComponent:
|
|
247
|
-
isImageComponent:
|
|
248
|
-
} =
|
|
249
|
-
return [
|
|
103
|
+
ownerState: n
|
|
104
|
+
} = e, {
|
|
105
|
+
isMediaComponent: r,
|
|
106
|
+
isImageComponent: s
|
|
107
|
+
} = n;
|
|
108
|
+
return [i.root, r && i.media, s && i.img];
|
|
250
109
|
}
|
|
251
110
|
})(({
|
|
252
|
-
ownerState:
|
|
253
|
-
}) =>
|
|
111
|
+
ownerState: e
|
|
112
|
+
}) => m({
|
|
254
113
|
display: "block",
|
|
255
114
|
backgroundSize: "cover",
|
|
256
115
|
backgroundRepeat: "no-repeat",
|
|
257
116
|
backgroundPosition: "center"
|
|
258
|
-
},
|
|
117
|
+
}, e.isMediaComponent && {
|
|
259
118
|
width: "100%"
|
|
260
|
-
},
|
|
119
|
+
}, e.isImageComponent && {
|
|
261
120
|
// ⚠️ object-fit is not supported by IE11.
|
|
262
121
|
objectFit: "cover"
|
|
263
|
-
})),
|
|
264
|
-
const
|
|
265
|
-
props:
|
|
122
|
+
})), q = ["video", "audio", "picture", "iframe", "img"], J = ["picture", "img"], x = /* @__PURE__ */ M.forwardRef(function(i, n) {
|
|
123
|
+
const r = O({
|
|
124
|
+
props: i,
|
|
266
125
|
name: "MuiCardMedia"
|
|
267
126
|
}), {
|
|
268
|
-
children:
|
|
269
|
-
className:
|
|
270
|
-
component:
|
|
127
|
+
children: s,
|
|
128
|
+
className: h,
|
|
129
|
+
component: a = "div",
|
|
271
130
|
image: l,
|
|
272
|
-
src:
|
|
273
|
-
style:
|
|
274
|
-
} =
|
|
131
|
+
src: u,
|
|
132
|
+
style: f
|
|
133
|
+
} = r, E = v(r, V), g = q.indexOf(a) !== -1, R = !g && l ? m({
|
|
275
134
|
backgroundImage: `url("${l}")`
|
|
276
|
-
},
|
|
277
|
-
component:
|
|
278
|
-
isMediaComponent:
|
|
279
|
-
isImageComponent:
|
|
280
|
-
}),
|
|
281
|
-
return /* @__PURE__ */
|
|
282
|
-
className:
|
|
283
|
-
as:
|
|
284
|
-
role: !
|
|
285
|
-
ref:
|
|
286
|
-
style:
|
|
287
|
-
ownerState:
|
|
288
|
-
src:
|
|
135
|
+
}, f) : f, C = m({}, r, {
|
|
136
|
+
component: a,
|
|
137
|
+
isMediaComponent: g,
|
|
138
|
+
isImageComponent: J.indexOf(a) !== -1
|
|
139
|
+
}), W = F(C);
|
|
140
|
+
return /* @__PURE__ */ o(G, m({
|
|
141
|
+
className: N(W.root, h),
|
|
142
|
+
as: a,
|
|
143
|
+
role: !g && l ? "img" : void 0,
|
|
144
|
+
ref: n,
|
|
145
|
+
style: R,
|
|
146
|
+
ownerState: C,
|
|
147
|
+
src: g ? l || u : void 0
|
|
289
148
|
}, E, {
|
|
290
|
-
children:
|
|
149
|
+
children: s
|
|
291
150
|
}));
|
|
292
151
|
});
|
|
293
|
-
process.env.NODE_ENV !== "production" && (
|
|
152
|
+
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
294
153
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
295
154
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
296
155
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -298,242 +157,73 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
298
157
|
/**
|
|
299
158
|
* The content of the component.
|
|
300
159
|
*/
|
|
301
|
-
children:
|
|
160
|
+
children: B(t.node, (e) => !e.children && !e.image && !e.src && !e.component ? new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified.") : null),
|
|
302
161
|
/**
|
|
303
162
|
* Override or extend the styles applied to the component.
|
|
304
163
|
*/
|
|
305
|
-
classes:
|
|
164
|
+
classes: t.object,
|
|
306
165
|
/**
|
|
307
166
|
* @ignore
|
|
308
167
|
*/
|
|
309
|
-
className:
|
|
168
|
+
className: t.string,
|
|
310
169
|
/**
|
|
311
170
|
* The component used for the root node.
|
|
312
171
|
* Either a string to use a HTML element or a component.
|
|
313
172
|
*/
|
|
314
|
-
component:
|
|
173
|
+
component: t.elementType,
|
|
315
174
|
/**
|
|
316
175
|
* Image to be displayed as a background image.
|
|
317
176
|
* Either `image` or `src` prop must be specified.
|
|
318
177
|
* Note that caller must specify height otherwise the image will not be visible.
|
|
319
178
|
*/
|
|
320
|
-
image:
|
|
179
|
+
image: t.string,
|
|
321
180
|
/**
|
|
322
181
|
* An alias for `image` property.
|
|
323
182
|
* Available only with media components.
|
|
324
183
|
* Media components: `video`, `audio`, `picture`, `iframe`, `img`.
|
|
325
184
|
*/
|
|
326
|
-
src:
|
|
185
|
+
src: t.string,
|
|
327
186
|
/**
|
|
328
187
|
* @ignore
|
|
329
188
|
*/
|
|
330
|
-
style:
|
|
189
|
+
style: t.object,
|
|
331
190
|
/**
|
|
332
191
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
333
192
|
*/
|
|
334
|
-
sx:
|
|
335
|
-
});
|
|
336
|
-
function dt(t) {
|
|
337
|
-
return C("MuiTypography", t);
|
|
338
|
-
}
|
|
339
|
-
w("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
340
|
-
const pt = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], ut = (t) => {
|
|
341
|
-
const {
|
|
342
|
-
align: e,
|
|
343
|
-
gutterBottom: r,
|
|
344
|
-
noWrap: o,
|
|
345
|
-
paragraph: i,
|
|
346
|
-
variant: a,
|
|
347
|
-
classes: c
|
|
348
|
-
} = t, l = {
|
|
349
|
-
root: ["root", a, t.align !== "inherit" && `align${_(e)}`, r && "gutterBottom", o && "noWrap", i && "paragraph"]
|
|
350
|
-
};
|
|
351
|
-
return T(l, dt, c);
|
|
352
|
-
}, ht = v("span", {
|
|
353
|
-
name: "MuiTypography",
|
|
354
|
-
slot: "Root",
|
|
355
|
-
overridesResolver: (t, e) => {
|
|
356
|
-
const {
|
|
357
|
-
ownerState: r
|
|
358
|
-
} = t;
|
|
359
|
-
return [e.root, r.variant && e[r.variant], r.align !== "inherit" && e[`align${_(r.align)}`], r.noWrap && e.noWrap, r.gutterBottom && e.gutterBottom, r.paragraph && e.paragraph];
|
|
360
|
-
}
|
|
361
|
-
})(({
|
|
362
|
-
theme: t,
|
|
363
|
-
ownerState: e
|
|
364
|
-
}) => d({
|
|
365
|
-
margin: 0
|
|
366
|
-
}, e.variant === "inherit" && {
|
|
367
|
-
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
368
|
-
font: "inherit"
|
|
369
|
-
}, e.variant !== "inherit" && t.typography[e.variant], e.align !== "inherit" && {
|
|
370
|
-
textAlign: e.align
|
|
371
|
-
}, e.noWrap && {
|
|
372
|
-
overflow: "hidden",
|
|
373
|
-
textOverflow: "ellipsis",
|
|
374
|
-
whiteSpace: "nowrap"
|
|
375
|
-
}, e.gutterBottom && {
|
|
376
|
-
marginBottom: "0.35em"
|
|
377
|
-
}, e.paragraph && {
|
|
378
|
-
marginBottom: 16
|
|
379
|
-
})), k = {
|
|
380
|
-
h1: "h1",
|
|
381
|
-
h2: "h2",
|
|
382
|
-
h3: "h3",
|
|
383
|
-
h4: "h4",
|
|
384
|
-
h5: "h5",
|
|
385
|
-
h6: "h6",
|
|
386
|
-
subtitle1: "h6",
|
|
387
|
-
subtitle2: "h6",
|
|
388
|
-
body1: "p",
|
|
389
|
-
body2: "p",
|
|
390
|
-
inherit: "p"
|
|
391
|
-
}, ft = {
|
|
392
|
-
primary: "primary.main",
|
|
393
|
-
textPrimary: "text.primary",
|
|
394
|
-
secondary: "secondary.main",
|
|
395
|
-
textSecondary: "text.secondary",
|
|
396
|
-
error: "error.main"
|
|
397
|
-
}, mt = (t) => ft[t] || t, h = /* @__PURE__ */ y.forwardRef(function(e, r) {
|
|
398
|
-
const o = j({
|
|
399
|
-
props: e,
|
|
400
|
-
name: "MuiTypography"
|
|
401
|
-
}), i = mt(o.color), a = U(d({}, o, {
|
|
402
|
-
color: i
|
|
403
|
-
})), {
|
|
404
|
-
align: c = "inherit",
|
|
405
|
-
className: l,
|
|
406
|
-
component: p,
|
|
407
|
-
gutterBottom: g = !1,
|
|
408
|
-
noWrap: E = !1,
|
|
409
|
-
paragraph: m = !1,
|
|
410
|
-
variant: b = "body1",
|
|
411
|
-
variantMapping: x = k
|
|
412
|
-
} = a, R = O(a, pt), N = d({}, a, {
|
|
413
|
-
align: c,
|
|
414
|
-
color: i,
|
|
415
|
-
className: l,
|
|
416
|
-
component: p,
|
|
417
|
-
gutterBottom: g,
|
|
418
|
-
noWrap: E,
|
|
419
|
-
paragraph: m,
|
|
420
|
-
variant: b,
|
|
421
|
-
variantMapping: x
|
|
422
|
-
}), $ = p || (m ? "p" : x[b] || k[b]) || "span", I = ut(N);
|
|
423
|
-
return /* @__PURE__ */ s(ht, d({
|
|
424
|
-
as: $,
|
|
425
|
-
ref: r,
|
|
426
|
-
ownerState: N,
|
|
427
|
-
className: M(I.root, l)
|
|
428
|
-
}, R));
|
|
429
|
-
});
|
|
430
|
-
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
431
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
432
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
433
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
434
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
435
|
-
/**
|
|
436
|
-
* Set the text-align on the component.
|
|
437
|
-
* @default 'inherit'
|
|
438
|
-
*/
|
|
439
|
-
align: n.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
440
|
-
/**
|
|
441
|
-
* The content of the component.
|
|
442
|
-
*/
|
|
443
|
-
children: n.node,
|
|
444
|
-
/**
|
|
445
|
-
* Override or extend the styles applied to the component.
|
|
446
|
-
*/
|
|
447
|
-
classes: n.object,
|
|
448
|
-
/**
|
|
449
|
-
* @ignore
|
|
450
|
-
*/
|
|
451
|
-
className: n.string,
|
|
452
|
-
/**
|
|
453
|
-
* The component used for the root node.
|
|
454
|
-
* Either a string to use a HTML element or a component.
|
|
455
|
-
*/
|
|
456
|
-
component: n.elementType,
|
|
457
|
-
/**
|
|
458
|
-
* If `true`, the text will have a bottom margin.
|
|
459
|
-
* @default false
|
|
460
|
-
*/
|
|
461
|
-
gutterBottom: n.bool,
|
|
462
|
-
/**
|
|
463
|
-
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
464
|
-
*
|
|
465
|
-
* Note that text overflow can only happen with block or inline-block level elements
|
|
466
|
-
* (the element needs to have a width in order to overflow).
|
|
467
|
-
* @default false
|
|
468
|
-
*/
|
|
469
|
-
noWrap: n.bool,
|
|
470
|
-
/**
|
|
471
|
-
* If `true`, the element will be a paragraph element.
|
|
472
|
-
* @default false
|
|
473
|
-
*/
|
|
474
|
-
paragraph: n.bool,
|
|
475
|
-
/**
|
|
476
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
477
|
-
*/
|
|
478
|
-
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
479
|
-
/**
|
|
480
|
-
* Applies the theme typography styles.
|
|
481
|
-
* @default 'body1'
|
|
482
|
-
*/
|
|
483
|
-
variant: n.oneOfType([n.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), n.string]),
|
|
484
|
-
/**
|
|
485
|
-
* The component maps the variant prop to a range of different HTML element types.
|
|
486
|
-
* For instance, subtitle1 to `<h6>`.
|
|
487
|
-
* If you wish to change that mapping, you can provide your own.
|
|
488
|
-
* Alternatively, you can use the `component` prop.
|
|
489
|
-
* @default {
|
|
490
|
-
* h1: 'h1',
|
|
491
|
-
* h2: 'h2',
|
|
492
|
-
* h3: 'h3',
|
|
493
|
-
* h4: 'h4',
|
|
494
|
-
* h5: 'h5',
|
|
495
|
-
* h6: 'h6',
|
|
496
|
-
* subtitle1: 'h6',
|
|
497
|
-
* subtitle2: 'h6',
|
|
498
|
-
* body1: 'p',
|
|
499
|
-
* body2: 'p',
|
|
500
|
-
* inherit: 'p',
|
|
501
|
-
* }
|
|
502
|
-
*/
|
|
503
|
-
variantMapping: n.object
|
|
193
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
504
194
|
});
|
|
505
|
-
const
|
|
506
|
-
title:
|
|
507
|
-
text:
|
|
508
|
-
image:
|
|
509
|
-
orientation:
|
|
510
|
-
avatar:
|
|
511
|
-
actions:
|
|
512
|
-
extraActions:
|
|
195
|
+
const ne = ({
|
|
196
|
+
title: e,
|
|
197
|
+
text: i,
|
|
198
|
+
image: n,
|
|
199
|
+
orientation: r = "portrait",
|
|
200
|
+
avatar: s,
|
|
201
|
+
actions: h,
|
|
202
|
+
extraActions: a,
|
|
513
203
|
extraInfo: l,
|
|
514
|
-
stats:
|
|
515
|
-
}) =>
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
|
|
204
|
+
stats: u
|
|
205
|
+
}) => r === "landscape" ? /* @__PURE__ */ c(A, { children: [
|
|
206
|
+
/* @__PURE__ */ o(
|
|
207
|
+
x,
|
|
518
208
|
{
|
|
519
209
|
component: "img",
|
|
520
|
-
alt:
|
|
521
|
-
image:
|
|
210
|
+
alt: e,
|
|
211
|
+
image: n,
|
|
522
212
|
sx: { width: 330, height: 200 }
|
|
523
213
|
}
|
|
524
214
|
),
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
|
|
215
|
+
/* @__PURE__ */ c(y, { children: [
|
|
216
|
+
/* @__PURE__ */ o(p, { flex: 1, children: /* @__PURE__ */ c(
|
|
217
|
+
p,
|
|
528
218
|
{
|
|
529
219
|
display: "flex",
|
|
530
220
|
flexDirection: "column",
|
|
531
221
|
justifyContent: "space-between",
|
|
532
222
|
height: "100%",
|
|
533
223
|
children: [
|
|
534
|
-
/* @__PURE__ */
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
|
|
224
|
+
/* @__PURE__ */ c(p, { children: [
|
|
225
|
+
/* @__PURE__ */ o(
|
|
226
|
+
d,
|
|
537
227
|
{
|
|
538
228
|
gutterBottom: !0,
|
|
539
229
|
variant: "subtitle1",
|
|
@@ -545,11 +235,11 @@ const xt = ({
|
|
|
545
235
|
WebkitLineClamp: 3,
|
|
546
236
|
WebkitBoxOrient: "vertical"
|
|
547
237
|
},
|
|
548
|
-
children:
|
|
238
|
+
children: e
|
|
549
239
|
}
|
|
550
240
|
),
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
|
|
241
|
+
/* @__PURE__ */ o(
|
|
242
|
+
d,
|
|
553
243
|
{
|
|
554
244
|
variant: "caption",
|
|
555
245
|
component: "p",
|
|
@@ -562,18 +252,18 @@ const xt = ({
|
|
|
562
252
|
WebkitBoxOrient: "vertical",
|
|
563
253
|
lineHeight: "16px"
|
|
564
254
|
},
|
|
565
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ o("small", { children: i })
|
|
566
256
|
}
|
|
567
257
|
)
|
|
568
258
|
] }),
|
|
569
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ o(p, { children: u })
|
|
570
260
|
]
|
|
571
261
|
}
|
|
572
262
|
) }),
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
/* @__PURE__ */
|
|
576
|
-
|
|
263
|
+
/* @__PURE__ */ c(I, { children: [
|
|
264
|
+
/* @__PURE__ */ o(b, { src: s.image, sx: { width: 42, height: 42 } }),
|
|
265
|
+
/* @__PURE__ */ o(
|
|
266
|
+
d,
|
|
577
267
|
{
|
|
578
268
|
variant: "subtitle2",
|
|
579
269
|
sx: {
|
|
@@ -581,35 +271,35 @@ const xt = ({
|
|
|
581
271
|
lineHeight: "14px",
|
|
582
272
|
fontSize: "13px"
|
|
583
273
|
},
|
|
584
|
-
children:
|
|
274
|
+
children: s.title
|
|
585
275
|
}
|
|
586
276
|
),
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
|
|
277
|
+
/* @__PURE__ */ o(
|
|
278
|
+
d,
|
|
589
279
|
{
|
|
590
280
|
variant: "caption",
|
|
591
281
|
sx: { color: "text.secondary", lineHeight: "12px" },
|
|
592
|
-
children: /* @__PURE__ */
|
|
282
|
+
children: /* @__PURE__ */ o("small", { children: s.subTitle })
|
|
593
283
|
}
|
|
594
284
|
),
|
|
595
|
-
/* @__PURE__ */
|
|
596
|
-
/* @__PURE__ */
|
|
597
|
-
|
|
285
|
+
/* @__PURE__ */ o(P, { children: a }),
|
|
286
|
+
/* @__PURE__ */ o(
|
|
287
|
+
d,
|
|
598
288
|
{
|
|
599
289
|
variant: "caption",
|
|
600
290
|
sx: { color: "text.secondary", lineHeight: "12px" },
|
|
601
|
-
children: /* @__PURE__ */
|
|
291
|
+
children: /* @__PURE__ */ o("small", { children: l })
|
|
602
292
|
}
|
|
603
293
|
),
|
|
604
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ o(p, { display: "flex", mt: 1, width: "100%", children: h })
|
|
605
295
|
] })
|
|
606
296
|
] })
|
|
607
|
-
] }) : /* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */
|
|
612
|
-
|
|
297
|
+
] }) : /* @__PURE__ */ c(_, { children: [
|
|
298
|
+
/* @__PURE__ */ o(x, { component: "img", alt: e, height: "172", image: n }),
|
|
299
|
+
/* @__PURE__ */ c(y, { children: [
|
|
300
|
+
/* @__PURE__ */ o(d, { gutterBottom: !0, variant: "subtitle1", component: "h3", noWrap: !0, children: e }),
|
|
301
|
+
/* @__PURE__ */ o(
|
|
302
|
+
d,
|
|
613
303
|
{
|
|
614
304
|
variant: "caption",
|
|
615
305
|
component: "p",
|
|
@@ -622,24 +312,24 @@ const xt = ({
|
|
|
622
312
|
WebkitBoxOrient: "vertical",
|
|
623
313
|
lineHeight: "16px"
|
|
624
314
|
},
|
|
625
|
-
children: /* @__PURE__ */
|
|
315
|
+
children: /* @__PURE__ */ o("small", { children: i })
|
|
626
316
|
}
|
|
627
317
|
)
|
|
628
318
|
] }),
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
|
|
319
|
+
/* @__PURE__ */ c(
|
|
320
|
+
k,
|
|
631
321
|
{
|
|
632
322
|
sx: {
|
|
633
323
|
display: "flex",
|
|
634
324
|
justifyContent: "space-between",
|
|
635
|
-
p: (
|
|
325
|
+
p: (f) => f.spacing(2)
|
|
636
326
|
},
|
|
637
327
|
children: [
|
|
638
|
-
/* @__PURE__ */
|
|
639
|
-
/* @__PURE__ */
|
|
640
|
-
/* @__PURE__ */
|
|
641
|
-
/* @__PURE__ */
|
|
642
|
-
|
|
328
|
+
/* @__PURE__ */ c(p, { display: "flex", justifyItems: "center", children: [
|
|
329
|
+
/* @__PURE__ */ o(b, { src: s.image, sx: { width: 29, height: 29 } }),
|
|
330
|
+
/* @__PURE__ */ c(p, { display: "flex", flexDirection: "column", ml: 1, children: [
|
|
331
|
+
/* @__PURE__ */ o(
|
|
332
|
+
d,
|
|
643
333
|
{
|
|
644
334
|
variant: "subtitle2",
|
|
645
335
|
sx: {
|
|
@@ -648,26 +338,26 @@ const xt = ({
|
|
|
648
338
|
fontSize: "13px"
|
|
649
339
|
},
|
|
650
340
|
noWrap: !0,
|
|
651
|
-
children:
|
|
341
|
+
children: s.title
|
|
652
342
|
}
|
|
653
343
|
),
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
|
|
344
|
+
/* @__PURE__ */ o(
|
|
345
|
+
d,
|
|
656
346
|
{
|
|
657
347
|
variant: "caption",
|
|
658
348
|
sx: { color: "text.secondary" },
|
|
659
349
|
noWrap: !0,
|
|
660
|
-
children: /* @__PURE__ */
|
|
350
|
+
children: /* @__PURE__ */ o("small", { children: s.subTitle })
|
|
661
351
|
}
|
|
662
352
|
)
|
|
663
353
|
] })
|
|
664
354
|
] }),
|
|
665
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ o(p, { display: "flex", children: h })
|
|
666
356
|
]
|
|
667
357
|
}
|
|
668
358
|
),
|
|
669
|
-
|
|
359
|
+
a !== void 0 && /* @__PURE__ */ o(L, { className: "extra-actions", children: a })
|
|
670
360
|
] });
|
|
671
361
|
export {
|
|
672
|
-
|
|
362
|
+
ne as Card
|
|
673
363
|
};
|