@hybridcore/ui 1.0.2 → 1.1.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.
Files changed (103) hide show
  1. package/dist/Button-BZR43NHz.js +2025 -0
  2. package/dist/ButtonBase-B6WYZgVU.js +967 -0
  3. package/dist/CardContent-C8PxkJz4.js +73 -0
  4. package/dist/Checkbox-CxbQ9tJ5.js +673 -0
  5. package/dist/FormControl-C4PmH1vh.js +1491 -0
  6. package/dist/IconButton-CKHPuOyh.js +183 -0
  7. package/dist/Input-CH_JyT5B.js +324 -0
  8. package/dist/List-BX_5LP1i.js +132 -0
  9. package/dist/Object-DBPgar-D.js +688 -0
  10. package/dist/OutlinedInput-gnp48tDo.js +452 -0
  11. package/dist/Paper-CaiWdndQ.js +162 -0
  12. package/dist/Select-DOyHt8I_.js +2526 -0
  13. package/dist/Source-Bo1Eq6y-.js +4374 -0
  14. package/dist/Text-DVP2PrYM.js +2192 -0
  15. package/dist/Typography-XIiVCSto.js +178 -0
  16. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  17. package/dist/assets/index.css +1 -0
  18. package/dist/assets/index2.css +1 -0
  19. package/dist/chainPropTypes-DtBfUj5o.js +96 -0
  20. package/dist/components/access/helpers.js +32 -0
  21. package/dist/components/access/index.js +15 -0
  22. package/dist/components/card/index.js +159 -469
  23. package/dist/components/card/styled.js +75 -7
  24. package/dist/components/conditional-wrapper/index.js +9 -0
  25. package/dist/components/confirm/dialog.js +151 -0
  26. package/dist/components/confirm/index.js +23 -0
  27. package/dist/components/container/index.js +270 -0
  28. package/dist/components/context-menu/index.js +973 -0
  29. package/dist/components/data-management/instance-form/components/composite-list/index.js +12 -0
  30. package/dist/components/data-management/instance-form/components/composite-list/styled.js +64 -0
  31. package/dist/components/data-management/instance-form/components/policy-list/index.js +86 -0
  32. package/dist/components/data-management/instance-form/components/variable/index.js +15 -0
  33. package/dist/components/data-management/instance-form/components/variables/index.js +39 -0
  34. package/dist/components/data-management/instance-form/index.js +437 -0
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +3201 -0
  36. package/dist/components/data-security-selectors/security-level/index.js +81 -0
  37. package/dist/components/date-time-picker/index.js +103 -0
  38. package/dist/components/geometry-picker/coordinate/index.js +93 -0
  39. package/dist/components/geometry-picker/edit/index.js +71 -0
  40. package/dist/components/geometry-picker/geometry/index.js +160 -0
  41. package/dist/components/geometry-picker/geometry/map-overlay.js +22 -0
  42. package/dist/components/geometry-picker/index.js +140 -0
  43. package/dist/components/geometry-picker/kml/index.js +62 -0
  44. package/dist/components/geometry-picker/kml/select-input-method.js +75 -0
  45. package/dist/components/geometry-picker/logic.js +69 -0
  46. package/dist/components/geometry-picker/map/index.js +42 -0
  47. package/dist/components/geometry-picker/map/logic.js +2360 -0
  48. package/dist/components/geometry-picker/map/style.js +88 -0
  49. package/dist/components/geometry-picker/parser/coordinate-input/index.js +78 -0
  50. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1305 -0
  51. package/dist/components/geometry-picker/parser/index.js +179 -0
  52. package/dist/components/geometry-picker/parser/logic.js +84 -0
  53. package/dist/components/geometry-picker/parser/styled.js +25 -0
  54. package/dist/components/geometry-picker/styled.js +48 -0
  55. package/dist/components/geometry-picker/wkt/index.js +59 -0
  56. package/dist/components/geometry-picker/wkt/select-input-method.js +75 -0
  57. package/dist/components/icon-button/index.js +18 -0
  58. package/dist/components/icon-button/styled.js +51 -0
  59. package/dist/components/key-protection/index.js +4 -0
  60. package/dist/components/key-protection/menu.js +85 -0
  61. package/dist/components/key-protection/utils.js +10 -0
  62. package/dist/components/loading/index.js +7 -0
  63. package/dist/components/loading/styled.js +16 -0
  64. package/dist/components/map/helpers/kml.js +45 -0
  65. package/dist/components/map/helpers/mapbox.js +48 -0
  66. package/dist/components/map/helpers/ol.js +25 -0
  67. package/dist/components/map/helpers/wkt.js +29 -0
  68. package/dist/components/map/index.js +30 -0
  69. package/dist/components/map/logic.js +140 -0
  70. package/dist/components/map/styled.js +8 -0
  71. package/dist/components/phone-input/index.js +25 -0
  72. package/dist/components/phone-input/styled.js +26 -0
  73. package/dist/components/search-input/index.js +76 -0
  74. package/dist/components/tree-select/index.js +70 -0
  75. package/dist/components/tree-select/styled.js +64 -0
  76. package/dist/components/treeview-filter/index.js +621 -0
  77. package/dist/components/treeview-filter/item/index.js +7 -0
  78. package/dist/components/treeview-filter/item-label/index.js +44 -0
  79. package/dist/createTheme-agWfFD64.js +2392 -0
  80. package/dist/exactProp-CI8dagM-.js +36 -0
  81. package/dist/extends-C3382pL0.js +22 -0
  82. package/dist/hooks/useMenuLogic.js +21 -0
  83. package/dist/hooks/useToggle.js +23 -0
  84. package/dist/index-BQE8B4sc.js +957 -0
  85. package/dist/index-DHFb1Qpn.js +1105 -0
  86. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  87. package/dist/isMuiElement-CxT3_ACP.js +13 -0
  88. package/dist/main.d.ts +646 -0
  89. package/dist/ol-CMEkXXLJ.js +15041 -0
  90. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  91. package/dist/ownerWindow-niciwP7I.js +7 -0
  92. package/dist/styled-B22KrhDR.js +229 -0
  93. package/dist/styled-Iq9jsO4F.js +1033 -0
  94. package/dist/useFormControl-CatNKXAi.js +10 -0
  95. package/dist/useId-BHG98T5I.js +26 -0
  96. package/dist/useTheme-C0Dky5rV.js +17 -0
  97. package/dist/useTheme-CeyGVuQP.js +10 -0
  98. package/dist/useThemeProps-CzAjOL6F.js +26 -0
  99. package/dist/utils/ontology.js +37 -0
  100. package/dist/utils-Bq0ye5vf.js +115 -0
  101. package/dist/utils-C13eMoWa.js +365 -0
  102. package/package.json +26 -5
  103. package/dist/styled-BG5UIpPU.js +0 -3459
@@ -0,0 +1,452 @@
1
+ import { _ as $, a as n } from "./extends-C3382pL0.js";
2
+ import * as T from "react";
3
+ import { P as e } from "./createTheme-agWfFD64.js";
4
+ import { s as c, r as h, g as P } from "./styled-Iq9jsO4F.js";
5
+ import { jsx as a, jsxs as A } from "react/jsx-runtime";
6
+ import { u as S } from "./useFormControl-CatNKXAi.js";
7
+ import { i as z, b as M, r as E, c as q, d as U, f as D, e as V } from "./FormControl-C4PmH1vh.js";
8
+ import { g as H, u as G, a as J } from "./chainPropTypes-DtBfUj5o.js";
9
+ import { r as K } from "./ButtonBase-B6WYZgVU.js";
10
+ var N;
11
+ const Q = ["children", "classes", "className", "label", "notched"], X = c("fieldset", {
12
+ shouldForwardProp: h
13
+ })({
14
+ textAlign: "left",
15
+ position: "absolute",
16
+ bottom: 0,
17
+ right: 0,
18
+ top: -5,
19
+ left: 0,
20
+ margin: 0,
21
+ padding: "0 8px",
22
+ pointerEvents: "none",
23
+ borderRadius: "inherit",
24
+ borderStyle: "solid",
25
+ borderWidth: 1,
26
+ overflow: "hidden",
27
+ minWidth: "0%"
28
+ }), Y = c("legend", {
29
+ shouldForwardProp: h
30
+ })(({
31
+ ownerState: o,
32
+ theme: t
33
+ }) => n({
34
+ float: "unset",
35
+ // Fix conflict with bootstrap
36
+ width: "auto",
37
+ // Fix conflict with bootstrap
38
+ overflow: "hidden"
39
+ }, !o.withLabel && {
40
+ padding: 0,
41
+ lineHeight: "11px",
42
+ // sync with `height` in `legend` styles
43
+ transition: t.transitions.create("width", {
44
+ duration: 150,
45
+ easing: t.transitions.easing.easeOut
46
+ })
47
+ }, o.withLabel && n({
48
+ display: "block",
49
+ // Fix conflict with normalize.css and sanitize.css
50
+ padding: 0,
51
+ height: 11,
52
+ // sync with `lineHeight` in `legend` styles
53
+ fontSize: "0.75em",
54
+ visibility: "hidden",
55
+ maxWidth: 0.01,
56
+ transition: t.transitions.create("max-width", {
57
+ duration: 50,
58
+ easing: t.transitions.easing.easeOut
59
+ }),
60
+ whiteSpace: "nowrap",
61
+ "& > span": {
62
+ paddingLeft: 5,
63
+ paddingRight: 5,
64
+ display: "inline-block",
65
+ opacity: 0,
66
+ visibility: "visible"
67
+ }
68
+ }, o.notched && {
69
+ maxWidth: "100%",
70
+ transition: t.transitions.create("max-width", {
71
+ duration: 100,
72
+ easing: t.transitions.easing.easeOut,
73
+ delay: 50
74
+ })
75
+ })));
76
+ function W(o) {
77
+ const {
78
+ className: t,
79
+ label: r,
80
+ notched: l
81
+ } = o, f = $(o, Q), d = r != null && r !== "", u = n({}, o, {
82
+ notched: l,
83
+ withLabel: d
84
+ });
85
+ return /* @__PURE__ */ a(X, n({
86
+ "aria-hidden": !0,
87
+ className: t,
88
+ ownerState: u
89
+ }, f, {
90
+ children: /* @__PURE__ */ a(Y, {
91
+ ownerState: u,
92
+ children: d ? /* @__PURE__ */ a("span", {
93
+ children: r
94
+ }) : (
95
+ // notranslate needed while Google Translate will not fix zero-width space issue
96
+ N || (N = /* @__PURE__ */ a("span", {
97
+ className: "notranslate",
98
+ children: "​"
99
+ }))
100
+ )
101
+ })
102
+ }));
103
+ }
104
+ process.env.NODE_ENV !== "production" && (W.propTypes = {
105
+ /**
106
+ * The content of the component.
107
+ */
108
+ children: e.node,
109
+ /**
110
+ * Override or extend the styles applied to the component.
111
+ */
112
+ classes: e.object,
113
+ /**
114
+ * @ignore
115
+ */
116
+ className: e.string,
117
+ /**
118
+ * The label.
119
+ */
120
+ label: e.node,
121
+ /**
122
+ * If `true`, the outline is notched to accommodate the label.
123
+ */
124
+ notched: e.bool.isRequired,
125
+ /**
126
+ * @ignore
127
+ */
128
+ style: e.object
129
+ });
130
+ function Z(o) {
131
+ return P("MuiOutlinedInput", o);
132
+ }
133
+ const i = n({}, z, H("MuiOutlinedInput", ["root", "notchedOutline", "input"])), ee = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"], oe = (o) => {
134
+ const {
135
+ classes: t
136
+ } = o, l = J({
137
+ root: ["root"],
138
+ notchedOutline: ["notchedOutline"],
139
+ input: ["input"]
140
+ }, Z, t);
141
+ return n({}, t, l);
142
+ }, te = c(M, {
143
+ shouldForwardProp: (o) => h(o) || o === "classes",
144
+ name: "MuiOutlinedInput",
145
+ slot: "Root",
146
+ overridesResolver: E
147
+ })(({
148
+ theme: o,
149
+ ownerState: t
150
+ }) => {
151
+ const r = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
152
+ return n({
153
+ position: "relative",
154
+ borderRadius: (o.vars || o).shape.borderRadius,
155
+ [`&:hover .${i.notchedOutline}`]: {
156
+ borderColor: (o.vars || o).palette.text.primary
157
+ },
158
+ // Reset on touch devices, it doesn't add specificity
159
+ "@media (hover: none)": {
160
+ [`&:hover .${i.notchedOutline}`]: {
161
+ borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : r
162
+ }
163
+ },
164
+ [`&.${i.focused} .${i.notchedOutline}`]: {
165
+ borderColor: (o.vars || o).palette[t.color].main,
166
+ borderWidth: 2
167
+ },
168
+ [`&.${i.error} .${i.notchedOutline}`]: {
169
+ borderColor: (o.vars || o).palette.error.main
170
+ },
171
+ [`&.${i.disabled} .${i.notchedOutline}`]: {
172
+ borderColor: (o.vars || o).palette.action.disabled
173
+ }
174
+ }, t.startAdornment && {
175
+ paddingLeft: 14
176
+ }, t.endAdornment && {
177
+ paddingRight: 14
178
+ }, t.multiline && n({
179
+ padding: "16.5px 14px"
180
+ }, t.size === "small" && {
181
+ padding: "8.5px 14px"
182
+ }));
183
+ }), ne = c(W, {
184
+ name: "MuiOutlinedInput",
185
+ slot: "NotchedOutline",
186
+ overridesResolver: (o, t) => t.notchedOutline
187
+ })(({
188
+ theme: o
189
+ }) => {
190
+ const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
191
+ return {
192
+ borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
193
+ };
194
+ }), re = c(q, {
195
+ name: "MuiOutlinedInput",
196
+ slot: "Input",
197
+ overridesResolver: U
198
+ })(({
199
+ theme: o,
200
+ ownerState: t
201
+ }) => n({
202
+ padding: "16.5px 14px"
203
+ }, !o.vars && {
204
+ "&:-webkit-autofill": {
205
+ WebkitBoxShadow: o.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
206
+ WebkitTextFillColor: o.palette.mode === "light" ? null : "#fff",
207
+ caretColor: o.palette.mode === "light" ? null : "#fff",
208
+ borderRadius: "inherit"
209
+ }
210
+ }, o.vars && {
211
+ "&:-webkit-autofill": {
212
+ borderRadius: "inherit"
213
+ },
214
+ [o.getColorSchemeSelector("dark")]: {
215
+ "&:-webkit-autofill": {
216
+ WebkitBoxShadow: "0 0 0 100px #266798 inset",
217
+ WebkitTextFillColor: "#fff",
218
+ caretColor: "#fff"
219
+ }
220
+ }
221
+ }, t.size === "small" && {
222
+ padding: "8.5px 14px"
223
+ }, t.multiline && {
224
+ padding: 0
225
+ }, t.startAdornment && {
226
+ paddingLeft: 0
227
+ }, t.endAdornment && {
228
+ paddingRight: 0
229
+ })), _ = /* @__PURE__ */ T.forwardRef(function(t, r) {
230
+ var l, f, d, u, g;
231
+ const p = G({
232
+ props: t,
233
+ name: "MuiOutlinedInput"
234
+ }), {
235
+ components: O = {},
236
+ fullWidth: y = !1,
237
+ inputComponent: k = "input",
238
+ label: b,
239
+ multiline: v = !1,
240
+ notched: C,
241
+ slots: x = {},
242
+ type: R = "text"
243
+ } = p, F = $(p, ee), I = oe(p), w = S(), s = D({
244
+ props: p,
245
+ muiFormControl: w,
246
+ states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
247
+ }), L = n({}, p, {
248
+ color: s.color || "primary",
249
+ disabled: s.disabled,
250
+ error: s.error,
251
+ focused: s.focused,
252
+ formControl: w,
253
+ fullWidth: y,
254
+ hiddenLabel: s.hiddenLabel,
255
+ multiline: v,
256
+ size: s.size,
257
+ type: R
258
+ }), B = (l = (f = x.root) != null ? f : O.Root) != null ? l : te, j = (d = (u = x.input) != null ? u : O.Input) != null ? d : re;
259
+ return /* @__PURE__ */ a(V, n({
260
+ slots: {
261
+ root: B,
262
+ input: j
263
+ },
264
+ renderSuffix: (m) => /* @__PURE__ */ a(ne, {
265
+ ownerState: L,
266
+ className: I.notchedOutline,
267
+ label: b != null && b !== "" && s.required ? g || (g = /* @__PURE__ */ A(T.Fragment, {
268
+ children: [b, " ", "*"]
269
+ })) : b,
270
+ notched: typeof C < "u" ? C : !!(m.startAdornment || m.filled || m.focused)
271
+ }),
272
+ fullWidth: y,
273
+ inputComponent: k,
274
+ multiline: v,
275
+ ref: r,
276
+ type: R
277
+ }, F, {
278
+ classes: n({}, I, {
279
+ notchedOutline: null
280
+ })
281
+ }));
282
+ });
283
+ process.env.NODE_ENV !== "production" && (_.propTypes = {
284
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
285
+ // │ These PropTypes are generated from the TypeScript type definitions. │
286
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
287
+ // └─────────────────────────────────────────────────────────────────────┘
288
+ /**
289
+ * This prop helps users to fill forms faster, especially on mobile devices.
290
+ * The name can be confusing, as it's more like an autofill.
291
+ * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
292
+ */
293
+ autoComplete: e.string,
294
+ /**
295
+ * If `true`, the `input` element is focused during the first mount.
296
+ */
297
+ autoFocus: e.bool,
298
+ /**
299
+ * Override or extend the styles applied to the component.
300
+ */
301
+ classes: e.object,
302
+ /**
303
+ * The color of the component.
304
+ * It supports both default and custom theme colors, which can be added as shown in the
305
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
306
+ * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
307
+ */
308
+ color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
309
+ /**
310
+ * The components used for each slot inside.
311
+ *
312
+ * This prop is an alias for the `slots` prop.
313
+ * It's recommended to use the `slots` prop instead.
314
+ *
315
+ * @default {}
316
+ */
317
+ components: e.shape({
318
+ Input: e.elementType,
319
+ Root: e.elementType
320
+ }),
321
+ /**
322
+ * The default value. Use when the component is not controlled.
323
+ */
324
+ defaultValue: e.any,
325
+ /**
326
+ * If `true`, the component is disabled.
327
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
328
+ */
329
+ disabled: e.bool,
330
+ /**
331
+ * End `InputAdornment` for this component.
332
+ */
333
+ endAdornment: e.node,
334
+ /**
335
+ * If `true`, the `input` will indicate an error.
336
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
337
+ */
338
+ error: e.bool,
339
+ /**
340
+ * If `true`, the `input` will take up the full width of its container.
341
+ * @default false
342
+ */
343
+ fullWidth: e.bool,
344
+ /**
345
+ * The id of the `input` element.
346
+ */
347
+ id: e.string,
348
+ /**
349
+ * The component used for the `input` element.
350
+ * Either a string to use a HTML element or a component.
351
+ * @default 'input'
352
+ */
353
+ inputComponent: e.elementType,
354
+ /**
355
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
356
+ * @default {}
357
+ */
358
+ inputProps: e.object,
359
+ /**
360
+ * Pass a ref to the `input` element.
361
+ */
362
+ inputRef: K,
363
+ /**
364
+ * The label of the `input`. It is only used for layout. The actual labelling
365
+ * is handled by `InputLabel`.
366
+ */
367
+ label: e.node,
368
+ /**
369
+ * If `dense`, will adjust vertical spacing. This is normally obtained via context from
370
+ * FormControl.
371
+ * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
372
+ */
373
+ margin: e.oneOf(["dense", "none"]),
374
+ /**
375
+ * Maximum number of rows to display when multiline option is set to true.
376
+ */
377
+ maxRows: e.oneOfType([e.number, e.string]),
378
+ /**
379
+ * Minimum number of rows to display when multiline option is set to true.
380
+ */
381
+ minRows: e.oneOfType([e.number, e.string]),
382
+ /**
383
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
384
+ * @default false
385
+ */
386
+ multiline: e.bool,
387
+ /**
388
+ * Name attribute of the `input` element.
389
+ */
390
+ name: e.string,
391
+ /**
392
+ * If `true`, the outline is notched to accommodate the label.
393
+ */
394
+ notched: e.bool,
395
+ /**
396
+ * Callback fired when the value is changed.
397
+ *
398
+ * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
399
+ * You can pull out the new value by accessing `event.target.value` (string).
400
+ */
401
+ onChange: e.func,
402
+ /**
403
+ * The short hint displayed in the `input` before the user enters a value.
404
+ */
405
+ placeholder: e.string,
406
+ /**
407
+ * It prevents the user from changing the value of the field
408
+ * (not from interacting with the field).
409
+ */
410
+ readOnly: e.bool,
411
+ /**
412
+ * If `true`, the `input` element is required.
413
+ * The prop defaults to the value (`false`) inherited from the parent FormControl component.
414
+ */
415
+ required: e.bool,
416
+ /**
417
+ * Number of rows to display when multiline option is set to true.
418
+ */
419
+ rows: e.oneOfType([e.number, e.string]),
420
+ /**
421
+ * The components used for each slot inside.
422
+ *
423
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
424
+ *
425
+ * @default {}
426
+ */
427
+ slots: e.shape({
428
+ input: e.elementType,
429
+ root: e.elementType
430
+ }),
431
+ /**
432
+ * Start `InputAdornment` for this component.
433
+ */
434
+ startAdornment: e.node,
435
+ /**
436
+ * The system prop that allows defining system overrides as well as additional CSS styles.
437
+ */
438
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
439
+ /**
440
+ * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
441
+ * @default 'text'
442
+ */
443
+ type: e.string,
444
+ /**
445
+ * The value of the `input` element, required for a controlled component.
446
+ */
447
+ value: e.any
448
+ });
449
+ _.muiName = "Input";
450
+ export {
451
+ _ as O
452
+ };
@@ -0,0 +1,162 @@
1
+ import { a as l, _ as P } from "./extends-C3382pL0.js";
2
+ import * as h from "react";
3
+ import { P as t } from "./createTheme-agWfFD64.js";
4
+ import { g as N, u as $, c as T, b as I, a as R } from "./chainPropTypes-DtBfUj5o.js";
5
+ import { g as q, s as x, a as p } from "./styled-Iq9jsO4F.js";
6
+ import { u as E } from "./useTheme-CeyGVuQP.js";
7
+ import { jsx as M } from "react/jsx-runtime";
8
+ function O(e) {
9
+ const o = typeof e;
10
+ switch (o) {
11
+ case "number":
12
+ return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
13
+ case "object":
14
+ return e === null ? "null" : e.constructor.name;
15
+ default:
16
+ return o;
17
+ }
18
+ }
19
+ function _(e) {
20
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
21
+ }
22
+ const V = Number.isInteger || _;
23
+ function d(e, o, n, a) {
24
+ const r = e[o];
25
+ if (r == null || !V(r)) {
26
+ const i = O(r);
27
+ return new RangeError(`Invalid ${a} \`${o}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`);
28
+ }
29
+ return null;
30
+ }
31
+ function f(e, o, ...n) {
32
+ return e[o] === void 0 ? null : d(e, o, ...n);
33
+ }
34
+ function u() {
35
+ return null;
36
+ }
37
+ f.isRequired = d;
38
+ u.isRequired = u;
39
+ const j = process.env.NODE_ENV === "production" ? u : f, c = (e) => {
40
+ let o;
41
+ return e < 1 ? o = 5.11916 * e ** 2 : o = 4.5 * Math.log(e + 1) + 2, (o / 100).toFixed(2);
42
+ };
43
+ function w(e) {
44
+ return q("MuiPaper", e);
45
+ }
46
+ N("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
47
+ const C = ["className", "component", "elevation", "square", "variant"], k = (e) => {
48
+ const {
49
+ square: o,
50
+ elevation: n,
51
+ variant: a,
52
+ classes: r
53
+ } = e, i = {
54
+ root: ["root", a, !o && "rounded", a === "elevation" && `elevation${n}`]
55
+ };
56
+ return R(i, w, r);
57
+ }, U = x("div", {
58
+ name: "MuiPaper",
59
+ slot: "Root",
60
+ overridesResolver: (e, o) => {
61
+ const {
62
+ ownerState: n
63
+ } = e;
64
+ return [o.root, o[n.variant], !n.square && o.rounded, n.variant === "elevation" && o[`elevation${n.elevation}`]];
65
+ }
66
+ })(({
67
+ theme: e,
68
+ ownerState: o
69
+ }) => {
70
+ var n;
71
+ return l({
72
+ backgroundColor: (e.vars || e).palette.background.paper,
73
+ color: (e.vars || e).palette.text.primary,
74
+ transition: e.transitions.create("box-shadow")
75
+ }, !o.square && {
76
+ borderRadius: e.shape.borderRadius
77
+ }, o.variant === "outlined" && {
78
+ border: `1px solid ${(e.vars || e).palette.divider}`
79
+ }, o.variant === "elevation" && l({
80
+ boxShadow: (e.vars || e).shadows[o.elevation]
81
+ }, !e.vars && e.palette.mode === "dark" && {
82
+ backgroundImage: `linear-gradient(${p("#fff", c(o.elevation))}, ${p("#fff", c(o.elevation))})`
83
+ }, e.vars && {
84
+ backgroundImage: (n = e.vars.overlays) == null ? void 0 : n[o.elevation]
85
+ }));
86
+ }), D = /* @__PURE__ */ h.forwardRef(function(o, n) {
87
+ const a = $({
88
+ props: o,
89
+ name: "MuiPaper"
90
+ }), {
91
+ className: r,
92
+ component: i = "div",
93
+ elevation: s = 1,
94
+ square: m = !1,
95
+ variant: b = "elevation"
96
+ } = a, g = P(a, C), v = l({}, a, {
97
+ component: i,
98
+ elevation: s,
99
+ square: m,
100
+ variant: b
101
+ }), y = k(v);
102
+ return process.env.NODE_ENV !== "production" && E().shadows[s] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
103
+ `)), /* @__PURE__ */ M(U, l({
104
+ as: i,
105
+ ownerState: v,
106
+ className: T(y.root, r),
107
+ ref: n
108
+ }, g));
109
+ });
110
+ process.env.NODE_ENV !== "production" && (D.propTypes = {
111
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
112
+ // │ These PropTypes are generated from the TypeScript type definitions. │
113
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
114
+ // └─────────────────────────────────────────────────────────────────────┘
115
+ /**
116
+ * The content of the component.
117
+ */
118
+ children: t.node,
119
+ /**
120
+ * Override or extend the styles applied to the component.
121
+ */
122
+ classes: t.object,
123
+ /**
124
+ * @ignore
125
+ */
126
+ className: t.string,
127
+ /**
128
+ * The component used for the root node.
129
+ * Either a string to use a HTML element or a component.
130
+ */
131
+ component: t.elementType,
132
+ /**
133
+ * Shadow depth, corresponds to `dp` in the spec.
134
+ * It accepts values between 0 and 24 inclusive.
135
+ * @default 1
136
+ */
137
+ elevation: I(j, (e) => {
138
+ const {
139
+ elevation: o,
140
+ variant: n
141
+ } = e;
142
+ return o > 0 && n === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
143
+ }),
144
+ /**
145
+ * If `true`, rounded corners are disabled.
146
+ * @default false
147
+ */
148
+ square: t.bool,
149
+ /**
150
+ * The system prop that allows defining system overrides as well as additional CSS styles.
151
+ */
152
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
153
+ /**
154
+ * The variant to use.
155
+ * @default 'elevation'
156
+ */
157
+ variant: t.oneOfType([t.oneOf(["elevation", "outlined"]), t.string])
158
+ });
159
+ export {
160
+ D as P,
161
+ j as i
162
+ };