@hybridcore/ui 1.6.11 → 1.6.13

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 (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,83 +0,0 @@
1
- import { E as c, e as h, h as a, j as l, t as o, C as u, l as n } from "./Entity-4Lr2piVN.js";
2
- class p extends c {
3
- constructor() {
4
- super(...arguments), Object.defineProperty(this, "_checkDates", {
5
- enumerable: !0,
6
- configurable: !0,
7
- writable: !0,
8
- value: !1
9
- }), Object.defineProperty(this, "_checkNumbers", {
10
- enumerable: !0,
11
- configurable: !0,
12
- writable: !0,
13
- value: !1
14
- }), Object.defineProperty(this, "_checkColors", {
15
- enumerable: !0,
16
- configurable: !0,
17
- writable: !0,
18
- value: !1
19
- }), Object.defineProperty(this, "_checkEmpty", {
20
- enumerable: !0,
21
- configurable: !0,
22
- writable: !0,
23
- value: !1
24
- }), Object.defineProperty(this, "_checkDeep", {
25
- enumerable: !0,
26
- configurable: !0,
27
- writable: !0,
28
- value: !1
29
- });
30
- }
31
- _afterNew() {
32
- super._afterNew(), this._checkFeatures(), this.on("dateFields", () => this._checkFeatures()), this.on("dateFormat", () => this._checkFeatures()), this.on("numericFields", () => this._checkFeatures()), this.on("colorFields", () => this._checkFeatures()), this.on("emptyAs", () => this._checkFeatures());
33
- }
34
- _checkFeatures() {
35
- (this.isDirty("dateFields") || this.isDirty("dateFormat")) && (this._checkDates = this.get("dateFields") && this.get("dateFields").length > 0), this.isDirty("numericFields") && (this._checkNumbers = this.get("numericFields") && this.get("numericFields").length > 0), this.isDirty("colorFields") && (this._checkColors = this.get("colorFields") && this.get("colorFields").length > 0), this.isDirty("emptyAs") && (this._checkEmpty = this.get("emptyAs") != null), this._checkDeepFeatures();
36
- }
37
- _checkDeepFeatures() {
38
- const e = [];
39
- h(["dateFields", "numericFields", "colorFields"], (t) => {
40
- h(this.get(t, []), (s) => {
41
- const i = s.split(".");
42
- for (i.pop(); i.length > 0; )
43
- e.push(i.join(".")), i.pop();
44
- });
45
- }), this._checkDeep = e.length > 0, this.setPrivate("deepFields", e);
46
- }
47
- /**
48
- * Processess entire array of data.
49
- *
50
- * NOTE: calling this will modify original array!
51
- */
52
- processMany(e) {
53
- a(e) && (this._checkDates || this._checkNumbers || this._checkColors || this._checkEmpty) && h(e, (t) => {
54
- this.processRow(t);
55
- });
56
- }
57
- /**
58
- * Processes a row (object) of data.
59
- *
60
- * NOTE: calling this will modify values of the original object!
61
- */
62
- processRow(e, t = "") {
63
- l(e, (s, i) => {
64
- const r = t + s;
65
- this._checkEmpty && (e[s] = this._maybeToEmpty(e[s])), this._checkNumbers && (e[s] = this._maybeToNumber(r, e[s])), this._checkDates && (e[s] = this._maybeToDate(r, e[s])), this._checkColors && (e[s] = this._maybeToColor(r, e[s])), this._checkDeep && this.getPrivate("deepFields", []).indexOf(r) !== -1 && n(e[s]) && this.processRow(e[s], r + ".");
66
- });
67
- }
68
- _maybeToNumber(e, t) {
69
- return this.get("numericFields").indexOf(e) !== -1 ? o(t) : t;
70
- }
71
- _maybeToDate(e, t) {
72
- return this.get("dateFields").indexOf(e) !== -1 ? this._root.dateFormatter.parse(t, this.get("dateFormat", "")).getTime() : t;
73
- }
74
- _maybeToEmpty(e) {
75
- return (e == null || e == "") && this.get("emptyAs") != null ? this.get("emptyAs") : e;
76
- }
77
- _maybeToColor(e, t) {
78
- return this.get("colorFields").indexOf(e) !== -1 ? u.fromAny(t) : t;
79
- }
80
- }
81
- export {
82
- p as D
83
- };
@@ -1,23 +0,0 @@
1
- import { i as t } from "./generateUtilityClasses-C3ivN9Ie.js";
2
- import { r as a } from "./createSvgIcon-DuDuASu1.js";
3
- import u from "react/jsx-runtime";
4
- var e = {}, l = t;
5
- Object.defineProperty(e, "__esModule", {
6
- value: !0
7
- });
8
- var i = e.default = void 0, o = l(a()), d = u;
9
- i = e.default = (0, o.default)(/* @__PURE__ */ (0, d.jsx)("path", {
10
- d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
11
- }), "Edit");
12
- var r = {}, v = t;
13
- Object.defineProperty(r, "__esModule", {
14
- value: !0
15
- });
16
- var f = r.default = void 0, p = v(a()), _ = u;
17
- f = r.default = (0, p.default)(/* @__PURE__ */ (0, _.jsx)("path", {
18
- d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
19
- }), "Delete");
20
- export {
21
- f as a,
22
- i as d
23
- };
@@ -1,523 +0,0 @@
1
- import { a as t, _ as T } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as u from "react";
3
- import { P as o } from "./index-C__OZmYy.js";
4
- import { c as b } from "./clsx-OuTLNxxd.js";
5
- import { g as h, a as y, s as f, b as m, u as S, c as P } from "./generateUtilityClasses-C3ivN9Ie.js";
6
- import { P as R, u as G } from "./Paper-BkQLdsCI.js";
7
- import { jsx as p } from "react/jsx-runtime";
8
- import { B as J, M as Q, F as Z } from "./Modal-MUZygjmQ.js";
9
- import { u as oo } from "./useId-BW-oWmul.js";
10
- function eo(e) {
11
- return y("MuiDialog", e);
12
- }
13
- const W = h("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), j = /* @__PURE__ */ u.createContext({});
14
- process.env.NODE_ENV !== "production" && (j.displayName = "DialogContext");
15
- const ao = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], ro = f(J, {
16
- name: "MuiDialog",
17
- slot: "Backdrop",
18
- overrides: (e, a) => a.backdrop
19
- })({
20
- // Improve scrollable dialog support.
21
- zIndex: -1
22
- }), io = (e) => {
23
- const {
24
- classes: a,
25
- scroll: r,
26
- maxWidth: i,
27
- fullWidth: s,
28
- fullScreen: n
29
- } = e, l = {
30
- root: ["root"],
31
- container: ["container", `scroll${m(r)}`],
32
- paper: ["paper", `paperScroll${m(r)}`, `paperWidth${m(String(i))}`, s && "paperFullWidth", n && "paperFullScreen"]
33
- };
34
- return P(l, eo, a);
35
- }, to = f(Q, {
36
- name: "MuiDialog",
37
- slot: "Root",
38
- overridesResolver: (e, a) => a.root
39
- })({
40
- "@media print": {
41
- // Use !important to override the Modal inline-style.
42
- position: "absolute !important"
43
- }
44
- }), so = f("div", {
45
- name: "MuiDialog",
46
- slot: "Container",
47
- overridesResolver: (e, a) => {
48
- const {
49
- ownerState: r
50
- } = e;
51
- return [a.container, a[`scroll${m(r.scroll)}`]];
52
- }
53
- })(({
54
- ownerState: e
55
- }) => t({
56
- height: "100%",
57
- "@media print": {
58
- height: "auto"
59
- },
60
- // We disable the focus ring for mouse, touch and keyboard users.
61
- outline: 0
62
- }, e.scroll === "paper" && {
63
- display: "flex",
64
- justifyContent: "center",
65
- alignItems: "center"
66
- }, e.scroll === "body" && {
67
- overflowY: "auto",
68
- overflowX: "hidden",
69
- textAlign: "center",
70
- "&::after": {
71
- content: '""',
72
- display: "inline-block",
73
- verticalAlign: "middle",
74
- height: "100%",
75
- width: "0"
76
- }
77
- })), no = f(R, {
78
- name: "MuiDialog",
79
- slot: "Paper",
80
- overridesResolver: (e, a) => {
81
- const {
82
- ownerState: r
83
- } = e;
84
- return [a.paper, a[`scrollPaper${m(r.scroll)}`], a[`paperWidth${m(String(r.maxWidth))}`], r.fullWidth && a.paperFullWidth, r.fullScreen && a.paperFullScreen];
85
- }
86
- })(({
87
- theme: e,
88
- ownerState: a
89
- }) => t({
90
- margin: 32,
91
- position: "relative",
92
- overflowY: "auto",
93
- // Fix IE11 issue, to remove at some point.
94
- "@media print": {
95
- overflowY: "visible",
96
- boxShadow: "none"
97
- }
98
- }, a.scroll === "paper" && {
99
- display: "flex",
100
- flexDirection: "column",
101
- maxHeight: "calc(100% - 64px)"
102
- }, a.scroll === "body" && {
103
- display: "inline-block",
104
- verticalAlign: "middle",
105
- textAlign: "left"
106
- // 'initial' doesn't work on IE11
107
- }, !a.maxWidth && {
108
- maxWidth: "calc(100% - 64px)"
109
- }, a.maxWidth === "xs" && {
110
- maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
111
- [`&.${W.paperScrollBody}`]: {
112
- [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
113
- maxWidth: "calc(100% - 64px)"
114
- }
115
- }
116
- }, a.maxWidth && a.maxWidth !== "xs" && {
117
- maxWidth: `${e.breakpoints.values[a.maxWidth]}${e.breakpoints.unit}`,
118
- [`&.${W.paperScrollBody}`]: {
119
- [e.breakpoints.down(e.breakpoints.values[a.maxWidth] + 32 * 2)]: {
120
- maxWidth: "calc(100% - 64px)"
121
- }
122
- }
123
- }, a.fullWidth && {
124
- width: "calc(100% - 64px)"
125
- }, a.fullScreen && {
126
- margin: 0,
127
- width: "100%",
128
- maxWidth: "100%",
129
- height: "100%",
130
- maxHeight: "none",
131
- borderRadius: 0,
132
- [`&.${W.paperScrollBody}`]: {
133
- margin: 0,
134
- maxWidth: "100%"
135
- }
136
- })), lo = /* @__PURE__ */ u.forwardRef(function(a, r) {
137
- const i = S({
138
- props: a,
139
- name: "MuiDialog"
140
- }), s = G(), n = {
141
- enter: s.transitions.duration.enteringScreen,
142
- exit: s.transitions.duration.leavingScreen
143
- }, {
144
- "aria-describedby": l,
145
- "aria-labelledby": c,
146
- BackdropComponent: g,
147
- BackdropProps: A,
148
- children: E,
149
- className: _,
150
- disableEscapeKeyDown: M = !1,
151
- fullScreen: F = !1,
152
- fullWidth: U = !1,
153
- maxWidth: I = "sm",
154
- onBackdropClick: N,
155
- onClick: w,
156
- onClose: D,
157
- open: B,
158
- PaperComponent: L = R,
159
- PaperProps: $ = {},
160
- scroll: V = "paper",
161
- TransitionComponent: K = Z,
162
- transitionDuration: O = n,
163
- TransitionProps: Y
164
- } = i, X = T(i, ao), x = t({}, i, {
165
- disableEscapeKeyDown: M,
166
- fullScreen: F,
167
- fullWidth: U,
168
- maxWidth: I,
169
- scroll: V
170
- }), C = io(x), v = u.useRef(), z = (d) => {
171
- v.current = d.target === d.currentTarget;
172
- }, H = (d) => {
173
- w && w(d), v.current && (v.current = null, N && N(d), D && D(d, "backdropClick"));
174
- }, k = oo(c), q = u.useMemo(() => ({
175
- titleId: k
176
- }), [k]);
177
- return /* @__PURE__ */ p(to, t({
178
- className: b(C.root, _),
179
- closeAfterTransition: !0,
180
- components: {
181
- Backdrop: ro
182
- },
183
- componentsProps: {
184
- backdrop: t({
185
- transitionDuration: O,
186
- as: g
187
- }, A)
188
- },
189
- disableEscapeKeyDown: M,
190
- onClose: D,
191
- open: B,
192
- ref: r,
193
- onClick: H,
194
- ownerState: x
195
- }, X, {
196
- children: /* @__PURE__ */ p(K, t({
197
- appear: !0,
198
- in: B,
199
- timeout: O,
200
- role: "presentation"
201
- }, Y, {
202
- children: /* @__PURE__ */ p(so, {
203
- className: b(C.container),
204
- onMouseDown: z,
205
- ownerState: x,
206
- children: /* @__PURE__ */ p(no, t({
207
- as: L,
208
- elevation: 24,
209
- role: "dialog",
210
- "aria-describedby": l,
211
- "aria-labelledby": k
212
- }, $, {
213
- className: b(C.paper, $.className),
214
- ownerState: x,
215
- children: /* @__PURE__ */ p(j.Provider, {
216
- value: q,
217
- children: E
218
- })
219
- }))
220
- })
221
- }))
222
- }));
223
- });
224
- process.env.NODE_ENV !== "production" && (lo.propTypes = {
225
- // ┌────────────────────────────── Warning ──────────────────────────────┐
226
- // │ These PropTypes are generated from the TypeScript type definitions. │
227
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
228
- // └─────────────────────────────────────────────────────────────────────┘
229
- /**
230
- * The id(s) of the element(s) that describe the dialog.
231
- */
232
- "aria-describedby": o.string,
233
- /**
234
- * The id(s) of the element(s) that label the dialog.
235
- */
236
- "aria-labelledby": o.string,
237
- /**
238
- * A backdrop component. This prop enables custom backdrop rendering.
239
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
240
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
241
- * @default styled(Backdrop, {
242
- * name: 'MuiModal',
243
- * slot: 'Backdrop',
244
- * overridesResolver: (props, styles) => {
245
- * return styles.backdrop;
246
- * },
247
- * })({
248
- * zIndex: -1,
249
- * })
250
- */
251
- BackdropComponent: o.elementType,
252
- /**
253
- * @ignore
254
- */
255
- BackdropProps: o.object,
256
- /**
257
- * Dialog children, usually the included sub-components.
258
- */
259
- children: o.node,
260
- /**
261
- * Override or extend the styles applied to the component.
262
- */
263
- classes: o.object,
264
- /**
265
- * @ignore
266
- */
267
- className: o.string,
268
- /**
269
- * If `true`, hitting escape will not fire the `onClose` callback.
270
- * @default false
271
- */
272
- disableEscapeKeyDown: o.bool,
273
- /**
274
- * If `true`, the dialog is full-screen.
275
- * @default false
276
- */
277
- fullScreen: o.bool,
278
- /**
279
- * If `true`, the dialog stretches to `maxWidth`.
280
- *
281
- * Notice that the dialog width grow is limited by the default margin.
282
- * @default false
283
- */
284
- fullWidth: o.bool,
285
- /**
286
- * Determine the max-width of the dialog.
287
- * The dialog width grows with the size of the screen.
288
- * Set to `false` to disable `maxWidth`.
289
- * @default 'sm'
290
- */
291
- maxWidth: o.oneOfType([o.oneOf(["xs", "sm", "md", "lg", "xl", !1]), o.string]),
292
- /**
293
- * Callback fired when the backdrop is clicked.
294
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
295
- */
296
- onBackdropClick: o.func,
297
- /**
298
- * @ignore
299
- */
300
- onClick: o.func,
301
- /**
302
- * Callback fired when the component requests to be closed.
303
- *
304
- * @param {object} event The event source of the callback.
305
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
306
- */
307
- onClose: o.func,
308
- /**
309
- * If `true`, the component is shown.
310
- */
311
- open: o.bool.isRequired,
312
- /**
313
- * The component used to render the body of the dialog.
314
- * @default Paper
315
- */
316
- PaperComponent: o.elementType,
317
- /**
318
- * Props applied to the [`Paper`](/material-ui/api/paper/) element.
319
- * @default {}
320
- */
321
- PaperProps: o.object,
322
- /**
323
- * Determine the container for scrolling the dialog.
324
- * @default 'paper'
325
- */
326
- scroll: o.oneOf(["body", "paper"]),
327
- /**
328
- * The system prop that allows defining system overrides as well as additional CSS styles.
329
- */
330
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
331
- /**
332
- * The component used for the transition.
333
- * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
334
- * @default Fade
335
- */
336
- TransitionComponent: o.elementType,
337
- /**
338
- * The duration for the transition, in milliseconds.
339
- * You may specify a single timeout for all transitions, or individually with an object.
340
- * @default {
341
- * enter: theme.transitions.duration.enteringScreen,
342
- * exit: theme.transitions.duration.leavingScreen,
343
- * }
344
- */
345
- transitionDuration: o.oneOfType([o.number, o.shape({
346
- appear: o.number,
347
- enter: o.number,
348
- exit: o.number
349
- })]),
350
- /**
351
- * Props applied to the transition element.
352
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
353
- */
354
- TransitionProps: o.object
355
- });
356
- function co(e) {
357
- return y("MuiDialogActions", e);
358
- }
359
- h("MuiDialogActions", ["root", "spacing"]);
360
- const po = ["className", "disableSpacing"], uo = (e) => {
361
- const {
362
- classes: a,
363
- disableSpacing: r
364
- } = e;
365
- return P({
366
- root: ["root", !r && "spacing"]
367
- }, co, a);
368
- }, mo = f("div", {
369
- name: "MuiDialogActions",
370
- slot: "Root",
371
- overridesResolver: (e, a) => {
372
- const {
373
- ownerState: r
374
- } = e;
375
- return [a.root, !r.disableSpacing && a.spacing];
376
- }
377
- })(({
378
- ownerState: e
379
- }) => t({
380
- display: "flex",
381
- alignItems: "center",
382
- padding: 8,
383
- justifyContent: "flex-end",
384
- flex: "0 0 auto"
385
- }, !e.disableSpacing && {
386
- "& > :not(style) ~ :not(style)": {
387
- marginLeft: 8
388
- }
389
- })), fo = /* @__PURE__ */ u.forwardRef(function(a, r) {
390
- const i = S({
391
- props: a,
392
- name: "MuiDialogActions"
393
- }), {
394
- className: s,
395
- disableSpacing: n = !1
396
- } = i, l = T(i, po), c = t({}, i, {
397
- disableSpacing: n
398
- }), g = uo(c);
399
- return /* @__PURE__ */ p(mo, t({
400
- className: b(g.root, s),
401
- ownerState: c,
402
- ref: r
403
- }, l));
404
- });
405
- process.env.NODE_ENV !== "production" && (fo.propTypes = {
406
- // ┌────────────────────────────── Warning ──────────────────────────────┐
407
- // │ These PropTypes are generated from the TypeScript type definitions. │
408
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
409
- // └─────────────────────────────────────────────────────────────────────┘
410
- /**
411
- * The content of the component.
412
- */
413
- children: o.node,
414
- /**
415
- * Override or extend the styles applied to the component.
416
- */
417
- classes: o.object,
418
- /**
419
- * @ignore
420
- */
421
- className: o.string,
422
- /**
423
- * If `true`, the actions do not have additional margin.
424
- * @default false
425
- */
426
- disableSpacing: o.bool,
427
- /**
428
- * The system prop that allows defining system overrides as well as additional CSS styles.
429
- */
430
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
431
- });
432
- function go(e) {
433
- return y("MuiDialogContent", e);
434
- }
435
- h("MuiDialogContent", ["root", "dividers"]);
436
- function No(e) {
437
- return y("MuiDialogTitle", e);
438
- }
439
- const bo = h("MuiDialogTitle", ["root"]), xo = ["className", "dividers"], ho = (e) => {
440
- const {
441
- classes: a,
442
- dividers: r
443
- } = e;
444
- return P({
445
- root: ["root", r && "dividers"]
446
- }, go, a);
447
- }, yo = f("div", {
448
- name: "MuiDialogContent",
449
- slot: "Root",
450
- overridesResolver: (e, a) => {
451
- const {
452
- ownerState: r
453
- } = e;
454
- return [a.root, r.dividers && a.dividers];
455
- }
456
- })(({
457
- theme: e,
458
- ownerState: a
459
- }) => t({
460
- flex: "1 1 auto",
461
- // Add iOS momentum scrolling for iOS < 13.0
462
- WebkitOverflowScrolling: "touch",
463
- overflowY: "auto",
464
- padding: "20px 24px"
465
- }, a.dividers ? {
466
- padding: "16px 24px",
467
- borderTop: `1px solid ${(e.vars || e).palette.divider}`,
468
- borderBottom: `1px solid ${(e.vars || e).palette.divider}`
469
- } : {
470
- [`.${bo.root} + &`]: {
471
- paddingTop: 0
472
- }
473
- })), Do = /* @__PURE__ */ u.forwardRef(function(a, r) {
474
- const i = S({
475
- props: a,
476
- name: "MuiDialogContent"
477
- }), {
478
- className: s,
479
- dividers: n = !1
480
- } = i, l = T(i, xo), c = t({}, i, {
481
- dividers: n
482
- }), g = ho(c);
483
- return /* @__PURE__ */ p(yo, t({
484
- className: b(g.root, s),
485
- ownerState: c,
486
- ref: r
487
- }, l));
488
- });
489
- process.env.NODE_ENV !== "production" && (Do.propTypes = {
490
- // ┌────────────────────────────── Warning ──────────────────────────────┐
491
- // │ These PropTypes are generated from the TypeScript type definitions. │
492
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
493
- // └─────────────────────────────────────────────────────────────────────┘
494
- /**
495
- * The content of the component.
496
- */
497
- children: o.node,
498
- /**
499
- * Override or extend the styles applied to the component.
500
- */
501
- classes: o.object,
502
- /**
503
- * @ignore
504
- */
505
- className: o.string,
506
- /**
507
- * Display the top and bottom dividers.
508
- * @default false
509
- */
510
- dividers: o.bool,
511
- /**
512
- * The system prop that allows defining system overrides as well as additional CSS styles.
513
- */
514
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
515
- });
516
- export {
517
- lo as D,
518
- Do as a,
519
- j as b,
520
- fo as c,
521
- W as d,
522
- No as g
523
- };