@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,781 +0,0 @@
1
- import { a as i, _ as B } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as a from "react";
3
- import { r as le } from "./index-DH6qsPBn.js";
4
- import { P as e } from "./index-C__OZmYy.js";
5
- import { c as G } from "./clsx-OuTLNxxd.js";
6
- import { u as pe } from "./useSlot-B_Q4vnX5.js";
7
- import { g as q, a as F, s as T, u as H, j as ue, c as J } from "./generateUtilityClasses-C3ivN9Ie.js";
8
- import { jsx as g, jsxs as te } from "react/jsx-runtime";
9
- import { T as fe, u as me, g as oe, P as ge } from "./Paper-BkQLdsCI.js";
10
- import { u as be } from "./useControlled-BYdyS7Pn.js";
11
- import { e as he, u as xe, f as ye, c as Ce } from "./TransitionGroupContext-BDAp2T0O.js";
12
- import { B as ve } from "./ButtonBase-BEF7oTOe.js";
13
- function Ee(o) {
14
- return F("MuiCollapse", o);
15
- }
16
- q("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
17
- const Te = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], Re = (o) => {
18
- const {
19
- orientation: t,
20
- classes: r
21
- } = o, s = {
22
- root: ["root", `${t}`],
23
- entered: ["entered"],
24
- hidden: ["hidden"],
25
- wrapper: ["wrapper", `${t}`],
26
- wrapperInner: ["wrapperInner", `${t}`]
27
- };
28
- return J(s, Ee, r);
29
- }, we = T("div", {
30
- name: "MuiCollapse",
31
- slot: "Root",
32
- overridesResolver: (o, t) => {
33
- const {
34
- ownerState: r
35
- } = o;
36
- return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
37
- }
38
- })(({
39
- theme: o,
40
- ownerState: t
41
- }) => i({
42
- height: 0,
43
- overflow: "hidden",
44
- transition: o.transitions.create("height")
45
- }, t.orientation === "horizontal" && {
46
- height: "auto",
47
- width: 0,
48
- transition: o.transitions.create("width")
49
- }, t.state === "entered" && i({
50
- height: "auto",
51
- overflow: "visible"
52
- }, t.orientation === "horizontal" && {
53
- width: "auto"
54
- }), t.state === "exited" && !t.in && t.collapsedSize === "0px" && {
55
- visibility: "hidden"
56
- })), Ae = T("div", {
57
- name: "MuiCollapse",
58
- slot: "Wrapper",
59
- overridesResolver: (o, t) => t.wrapper
60
- })(({
61
- ownerState: o
62
- }) => i({
63
- // Hack to get children with a negative margin to not falsify the height computation.
64
- display: "flex",
65
- width: "100%"
66
- }, o.orientation === "horizontal" && {
67
- width: "auto",
68
- height: "100%"
69
- })), Se = T("div", {
70
- name: "MuiCollapse",
71
- slot: "WrapperInner",
72
- overridesResolver: (o, t) => t.wrapperInner
73
- })(({
74
- ownerState: o
75
- }) => i({
76
- width: "100%"
77
- }, o.orientation === "horizontal" && {
78
- width: "auto",
79
- height: "100%"
80
- })), Y = /* @__PURE__ */ a.forwardRef(function(t, r) {
81
- const s = H({
82
- props: t,
83
- name: "MuiCollapse"
84
- }), {
85
- addEndListener: c,
86
- children: u,
87
- className: f,
88
- collapsedSize: l = "0px",
89
- component: v,
90
- easing: N,
91
- in: b,
92
- onEnter: R,
93
- onEntered: w,
94
- onEntering: A,
95
- onExit: P,
96
- onExited: E,
97
- onExiting: h,
98
- orientation: d = "vertical",
99
- style: $,
100
- timeout: m = ue.standard,
101
- // eslint-disable-next-line react/prop-types
102
- TransitionComponent: j = fe
103
- } = s, K = B(s, Te), O = i({}, s, {
104
- orientation: d,
105
- collapsedSize: l
106
- }), x = Re(O), I = me(), Q = he(), y = a.useRef(null), V = a.useRef(), D = typeof l == "number" ? `${l}px` : l, S = d === "horizontal", W = S ? "width" : "height", U = a.useRef(null), ne = xe(r, U), M = (n) => (p) => {
107
- if (n) {
108
- const C = U.current;
109
- p === void 0 ? n(C) : n(C, p);
110
- }
111
- }, X = () => y.current ? y.current[S ? "clientWidth" : "clientHeight"] : 0, re = M((n, p) => {
112
- y.current && S && (y.current.style.position = "absolute"), n.style[W] = D, R && R(n, p);
113
- }), se = M((n, p) => {
114
- const C = X();
115
- y.current && S && (y.current.style.position = "");
116
- const {
117
- duration: k,
118
- easing: _
119
- } = oe({
120
- style: $,
121
- timeout: m,
122
- easing: N
123
- }, {
124
- mode: "enter"
125
- });
126
- if (m === "auto") {
127
- const ee = I.transitions.getAutoHeightDuration(C);
128
- n.style.transitionDuration = `${ee}ms`, V.current = ee;
129
- } else
130
- n.style.transitionDuration = typeof k == "string" ? k : `${k}ms`;
131
- n.style[W] = `${C}px`, n.style.transitionTimingFunction = _, A && A(n, p);
132
- }), ie = M((n, p) => {
133
- n.style[W] = "auto", w && w(n, p);
134
- }), ae = M((n) => {
135
- n.style[W] = `${X()}px`, P && P(n);
136
- }), ce = M(E), de = M((n) => {
137
- const p = X(), {
138
- duration: C,
139
- easing: k
140
- } = oe({
141
- style: $,
142
- timeout: m,
143
- easing: N
144
- }, {
145
- mode: "exit"
146
- });
147
- if (m === "auto") {
148
- const _ = I.transitions.getAutoHeightDuration(p);
149
- n.style.transitionDuration = `${_}ms`, V.current = _;
150
- } else
151
- n.style.transitionDuration = typeof C == "string" ? C : `${C}ms`;
152
- n.style[W] = D, n.style.transitionTimingFunction = k, h && h(n);
153
- });
154
- return /* @__PURE__ */ g(j, i({
155
- in: b,
156
- onEnter: re,
157
- onEntered: ie,
158
- onEntering: se,
159
- onExit: ae,
160
- onExited: ce,
161
- onExiting: de,
162
- addEndListener: (n) => {
163
- m === "auto" && Q.start(V.current || 0, n), c && c(U.current, n);
164
- },
165
- nodeRef: U,
166
- timeout: m === "auto" ? null : m
167
- }, K, {
168
- children: (n, p) => /* @__PURE__ */ g(we, i({
169
- as: v,
170
- className: G(x.root, f, {
171
- entered: x.entered,
172
- exited: !b && D === "0px" && x.hidden
173
- }[n]),
174
- style: i({
175
- [S ? "minWidth" : "minHeight"]: D
176
- }, $),
177
- ref: ne
178
- }, p, {
179
- // `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
180
- // that might have been forwarded from the Transition component.
181
- ownerState: i({}, O, {
182
- state: n
183
- }),
184
- children: /* @__PURE__ */ g(Ae, {
185
- ownerState: i({}, O, {
186
- state: n
187
- }),
188
- className: x.wrapper,
189
- ref: y,
190
- children: /* @__PURE__ */ g(Se, {
191
- ownerState: i({}, O, {
192
- state: n
193
- }),
194
- className: x.wrapperInner,
195
- children: u
196
- })
197
- })
198
- }))
199
- }));
200
- });
201
- process.env.NODE_ENV !== "production" && (Y.propTypes = {
202
- // ┌────────────────────────────── Warning ──────────────────────────────┐
203
- // │ These PropTypes are generated from the TypeScript type definitions. │
204
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
205
- // └─────────────────────────────────────────────────────────────────────┘
206
- /**
207
- * Add a custom transition end trigger. Called with the transitioning DOM
208
- * node and a done callback. Allows for more fine grained transition end
209
- * logic. Note: Timeouts are still used as a fallback if provided.
210
- */
211
- addEndListener: e.func,
212
- /**
213
- * The content node to be collapsed.
214
- */
215
- children: e.node,
216
- /**
217
- * Override or extend the styles applied to the component.
218
- */
219
- classes: e.object,
220
- /**
221
- * @ignore
222
- */
223
- className: e.string,
224
- /**
225
- * The width (horizontal) or height (vertical) of the container when collapsed.
226
- * @default '0px'
227
- */
228
- collapsedSize: e.oneOfType([e.number, e.string]),
229
- /**
230
- * The component used for the root node.
231
- * Either a string to use a HTML element or a component.
232
- */
233
- component: ye,
234
- /**
235
- * The transition timing function.
236
- * You may specify a single easing or a object containing enter and exit values.
237
- */
238
- easing: e.oneOfType([e.shape({
239
- enter: e.string,
240
- exit: e.string
241
- }), e.string]),
242
- /**
243
- * If `true`, the component will transition in.
244
- */
245
- in: e.bool,
246
- /**
247
- * @ignore
248
- */
249
- onEnter: e.func,
250
- /**
251
- * @ignore
252
- */
253
- onEntered: e.func,
254
- /**
255
- * @ignore
256
- */
257
- onEntering: e.func,
258
- /**
259
- * @ignore
260
- */
261
- onExit: e.func,
262
- /**
263
- * @ignore
264
- */
265
- onExited: e.func,
266
- /**
267
- * @ignore
268
- */
269
- onExiting: e.func,
270
- /**
271
- * The transition orientation.
272
- * @default 'vertical'
273
- */
274
- orientation: e.oneOf(["horizontal", "vertical"]),
275
- /**
276
- * @ignore
277
- */
278
- style: e.object,
279
- /**
280
- * The system prop that allows defining system overrides as well as additional CSS styles.
281
- */
282
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
283
- /**
284
- * The duration for the transition, in milliseconds.
285
- * You may specify a single timeout for all transitions, or individually with an object.
286
- *
287
- * Set to 'auto' to automatically calculate transition time based on height.
288
- * @default duration.standard
289
- */
290
- timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
291
- appear: e.number,
292
- enter: e.number,
293
- exit: e.number
294
- })])
295
- });
296
- Y.muiSupportAuto = !0;
297
- const Z = /* @__PURE__ */ a.createContext({});
298
- process.env.NODE_ENV !== "production" && (Z.displayName = "AccordionContext");
299
- function Ne(o) {
300
- return F("MuiAccordion", o);
301
- }
302
- const L = q("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), Pe = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"], $e = (o) => {
303
- const {
304
- classes: t,
305
- square: r,
306
- expanded: s,
307
- disabled: c,
308
- disableGutters: u
309
- } = o;
310
- return J({
311
- root: ["root", !r && "rounded", s && "expanded", c && "disabled", !u && "gutters"],
312
- region: ["region"]
313
- }, Ne, t);
314
- }, Oe = T(ge, {
315
- name: "MuiAccordion",
316
- slot: "Root",
317
- overridesResolver: (o, t) => {
318
- const {
319
- ownerState: r
320
- } = o;
321
- return [{
322
- [`& .${L.region}`]: t.region
323
- }, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
324
- }
325
- })(({
326
- theme: o
327
- }) => {
328
- const t = {
329
- duration: o.transitions.duration.shortest
330
- };
331
- return {
332
- position: "relative",
333
- transition: o.transitions.create(["margin"], t),
334
- overflowAnchor: "none",
335
- // Keep the same scrolling position
336
- "&::before": {
337
- position: "absolute",
338
- left: 0,
339
- top: -1,
340
- right: 0,
341
- height: 1,
342
- content: '""',
343
- opacity: 1,
344
- backgroundColor: (o.vars || o).palette.divider,
345
- transition: o.transitions.create(["opacity", "background-color"], t)
346
- },
347
- "&:first-of-type": {
348
- "&::before": {
349
- display: "none"
350
- }
351
- },
352
- [`&.${L.expanded}`]: {
353
- "&::before": {
354
- opacity: 0
355
- },
356
- "&:first-of-type": {
357
- marginTop: 0
358
- },
359
- "&:last-of-type": {
360
- marginBottom: 0
361
- },
362
- "& + &": {
363
- "&::before": {
364
- display: "none"
365
- }
366
- }
367
- },
368
- [`&.${L.disabled}`]: {
369
- backgroundColor: (o.vars || o).palette.action.disabledBackground
370
- }
371
- };
372
- }, ({
373
- theme: o
374
- }) => ({
375
- variants: [{
376
- props: (t) => !t.square,
377
- style: {
378
- borderRadius: 0,
379
- "&:first-of-type": {
380
- borderTopLeftRadius: (o.vars || o).shape.borderRadius,
381
- borderTopRightRadius: (o.vars || o).shape.borderRadius
382
- },
383
- "&:last-of-type": {
384
- borderBottomLeftRadius: (o.vars || o).shape.borderRadius,
385
- borderBottomRightRadius: (o.vars || o).shape.borderRadius,
386
- // Fix a rendering issue on Edge
387
- "@supports (-ms-ime-align: auto)": {
388
- borderBottomLeftRadius: 0,
389
- borderBottomRightRadius: 0
390
- }
391
- }
392
- }
393
- }, {
394
- props: (t) => !t.disableGutters,
395
- style: {
396
- [`&.${L.expanded}`]: {
397
- margin: "16px 0"
398
- }
399
- }
400
- }]
401
- })), De = /* @__PURE__ */ a.forwardRef(function(t, r) {
402
- const s = H({
403
- props: t,
404
- name: "MuiAccordion"
405
- }), {
406
- children: c,
407
- className: u,
408
- defaultExpanded: f = !1,
409
- disabled: l = !1,
410
- disableGutters: v = !1,
411
- expanded: N,
412
- onChange: b,
413
- square: R = !1,
414
- slots: w = {},
415
- slotProps: A = {},
416
- TransitionComponent: P,
417
- TransitionProps: E
418
- } = s, h = B(s, Pe), [d, $] = be({
419
- controlled: N,
420
- default: f,
421
- name: "Accordion",
422
- state: "expanded"
423
- }), m = a.useCallback((S) => {
424
- $(!d), b && b(S, !d);
425
- }, [d, b, $]), [j, ...K] = a.Children.toArray(c), O = a.useMemo(() => ({
426
- expanded: d,
427
- disabled: l,
428
- disableGutters: v,
429
- toggle: m
430
- }), [d, l, v, m]), x = i({}, s, {
431
- square: R,
432
- disabled: l,
433
- disableGutters: v,
434
- expanded: d
435
- }), I = $e(x), Q = i({
436
- transition: P
437
- }, w), y = i({
438
- transition: E
439
- }, A), [V, D] = pe("transition", {
440
- elementType: Y,
441
- externalForwardedProps: {
442
- slots: Q,
443
- slotProps: y
444
- },
445
- ownerState: x
446
- });
447
- return /* @__PURE__ */ te(Oe, i({
448
- className: G(I.root, u),
449
- ref: r,
450
- ownerState: x,
451
- square: R
452
- }, h, {
453
- children: [/* @__PURE__ */ g(Z.Provider, {
454
- value: O,
455
- children: j
456
- }), /* @__PURE__ */ g(V, i({
457
- in: d,
458
- timeout: "auto"
459
- }, D, {
460
- children: /* @__PURE__ */ g("div", {
461
- "aria-labelledby": j.props.id,
462
- id: j.props["aria-controls"],
463
- role: "region",
464
- className: I.region,
465
- children: K
466
- })
467
- }))]
468
- }));
469
- });
470
- process.env.NODE_ENV !== "production" && (De.propTypes = {
471
- // ┌────────────────────────────── Warning ──────────────────────────────┐
472
- // │ These PropTypes are generated from the TypeScript type definitions. │
473
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
474
- // └─────────────────────────────────────────────────────────────────────┘
475
- /**
476
- * The content of the component.
477
- */
478
- children: Ce(e.node.isRequired, (o) => {
479
- const t = a.Children.toArray(o.children)[0];
480
- return le.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ a.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
481
- }),
482
- /**
483
- * Override or extend the styles applied to the component.
484
- */
485
- classes: e.object,
486
- /**
487
- * @ignore
488
- */
489
- className: e.string,
490
- /**
491
- * If `true`, expands the accordion by default.
492
- * @default false
493
- */
494
- defaultExpanded: e.bool,
495
- /**
496
- * If `true`, the component is disabled.
497
- * @default false
498
- */
499
- disabled: e.bool,
500
- /**
501
- * If `true`, it removes the margin between two expanded accordion items and the increase of height.
502
- * @default false
503
- */
504
- disableGutters: e.bool,
505
- /**
506
- * If `true`, expands the accordion, otherwise collapse it.
507
- * Setting this prop enables control over the accordion.
508
- */
509
- expanded: e.bool,
510
- /**
511
- * Callback fired when the expand/collapse state is changed.
512
- *
513
- * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
514
- * @param {boolean} expanded The `expanded` state of the accordion.
515
- */
516
- onChange: e.func,
517
- /**
518
- * The props used for each slot inside.
519
- * @default {}
520
- */
521
- slotProps: e.shape({
522
- transition: e.oneOfType([e.func, e.object])
523
- }),
524
- /**
525
- * The components used for each slot inside.
526
- * @default {}
527
- */
528
- slots: e.shape({
529
- transition: e.elementType
530
- }),
531
- /**
532
- * If `true`, rounded corners are disabled.
533
- * @default false
534
- */
535
- square: e.bool,
536
- /**
537
- * The system prop that allows defining system overrides as well as additional CSS styles.
538
- */
539
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
540
- /**
541
- * The component used for the transition.
542
- * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
543
- * @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
544
- */
545
- TransitionComponent: e.elementType,
546
- /**
547
- * Props applied to the transition element.
548
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
549
- * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
550
- */
551
- TransitionProps: e.object
552
- });
553
- function Me(o) {
554
- return F("MuiAccordionDetails", o);
555
- }
556
- q("MuiAccordionDetails", ["root"]);
557
- const ze = ["className"], je = (o) => {
558
- const {
559
- classes: t
560
- } = o;
561
- return J({
562
- root: ["root"]
563
- }, Me, t);
564
- }, Ie = T("div", {
565
- name: "MuiAccordionDetails",
566
- slot: "Root",
567
- overridesResolver: (o, t) => t.root
568
- })(({
569
- theme: o
570
- }) => ({
571
- padding: o.spacing(1, 2, 2)
572
- })), Ve = /* @__PURE__ */ a.forwardRef(function(t, r) {
573
- const s = H({
574
- props: t,
575
- name: "MuiAccordionDetails"
576
- }), {
577
- className: c
578
- } = s, u = B(s, ze), f = s, l = je(f);
579
- return /* @__PURE__ */ g(Ie, i({
580
- className: G(l.root, c),
581
- ref: r,
582
- ownerState: f
583
- }, u));
584
- });
585
- process.env.NODE_ENV !== "production" && (Ve.propTypes = {
586
- // ┌────────────────────────────── Warning ──────────────────────────────┐
587
- // │ These PropTypes are generated from the TypeScript type definitions. │
588
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
589
- // └─────────────────────────────────────────────────────────────────────┘
590
- /**
591
- * The content of the component.
592
- */
593
- children: e.node,
594
- /**
595
- * Override or extend the styles applied to the component.
596
- */
597
- classes: e.object,
598
- /**
599
- * @ignore
600
- */
601
- className: e.string,
602
- /**
603
- * The system prop that allows defining system overrides as well as additional CSS styles.
604
- */
605
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
606
- });
607
- function We(o) {
608
- return F("MuiAccordionSummary", o);
609
- }
610
- const z = q("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), ke = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], Ge = (o) => {
611
- const {
612
- classes: t,
613
- expanded: r,
614
- disabled: s,
615
- disableGutters: c
616
- } = o;
617
- return J({
618
- root: ["root", r && "expanded", s && "disabled", !c && "gutters"],
619
- focusVisible: ["focusVisible"],
620
- content: ["content", r && "expanded", !c && "contentGutters"],
621
- expandIconWrapper: ["expandIconWrapper", r && "expanded"]
622
- }, We, t);
623
- }, Ue = T(ve, {
624
- name: "MuiAccordionSummary",
625
- slot: "Root",
626
- overridesResolver: (o, t) => t.root
627
- })(({
628
- theme: o
629
- }) => {
630
- const t = {
631
- duration: o.transitions.duration.shortest
632
- };
633
- return {
634
- display: "flex",
635
- minHeight: 48,
636
- padding: o.spacing(0, 2),
637
- transition: o.transitions.create(["min-height", "background-color"], t),
638
- [`&.${z.focusVisible}`]: {
639
- backgroundColor: (o.vars || o).palette.action.focus
640
- },
641
- [`&.${z.disabled}`]: {
642
- opacity: (o.vars || o).palette.action.disabledOpacity
643
- },
644
- [`&:hover:not(.${z.disabled})`]: {
645
- cursor: "pointer"
646
- },
647
- variants: [{
648
- props: (r) => !r.disableGutters,
649
- style: {
650
- [`&.${z.expanded}`]: {
651
- minHeight: 64
652
- }
653
- }
654
- }]
655
- };
656
- }), _e = T("div", {
657
- name: "MuiAccordionSummary",
658
- slot: "Content",
659
- overridesResolver: (o, t) => t.content
660
- })(({
661
- theme: o
662
- }) => ({
663
- display: "flex",
664
- flexGrow: 1,
665
- margin: "12px 0",
666
- variants: [{
667
- props: (t) => !t.disableGutters,
668
- style: {
669
- transition: o.transitions.create(["margin"], {
670
- duration: o.transitions.duration.shortest
671
- }),
672
- [`&.${z.expanded}`]: {
673
- margin: "20px 0"
674
- }
675
- }
676
- }]
677
- })), Le = T("div", {
678
- name: "MuiAccordionSummary",
679
- slot: "ExpandIconWrapper",
680
- overridesResolver: (o, t) => t.expandIconWrapper
681
- })(({
682
- theme: o
683
- }) => ({
684
- display: "flex",
685
- color: (o.vars || o).palette.action.active,
686
- transform: "rotate(0deg)",
687
- transition: o.transitions.create("transform", {
688
- duration: o.transitions.duration.shortest
689
- }),
690
- [`&.${z.expanded}`]: {
691
- transform: "rotate(180deg)"
692
- }
693
- })), Be = /* @__PURE__ */ a.forwardRef(function(t, r) {
694
- const s = H({
695
- props: t,
696
- name: "MuiAccordionSummary"
697
- }), {
698
- children: c,
699
- className: u,
700
- expandIcon: f,
701
- focusVisibleClassName: l,
702
- onClick: v
703
- } = s, N = B(s, ke), {
704
- disabled: b = !1,
705
- disableGutters: R,
706
- expanded: w,
707
- toggle: A
708
- } = a.useContext(Z), P = (d) => {
709
- A && A(d), v && v(d);
710
- }, E = i({}, s, {
711
- expanded: w,
712
- disabled: b,
713
- disableGutters: R
714
- }), h = Ge(E);
715
- return /* @__PURE__ */ te(Ue, i({
716
- focusRipple: !1,
717
- disableRipple: !0,
718
- disabled: b,
719
- component: "div",
720
- "aria-expanded": w,
721
- className: G(h.root, u),
722
- focusVisibleClassName: G(h.focusVisible, l),
723
- onClick: P,
724
- ref: r,
725
- ownerState: E
726
- }, N, {
727
- children: [/* @__PURE__ */ g(_e, {
728
- className: h.content,
729
- ownerState: E,
730
- children: c
731
- }), f && /* @__PURE__ */ g(Le, {
732
- className: h.expandIconWrapper,
733
- ownerState: E,
734
- children: f
735
- })]
736
- }));
737
- });
738
- process.env.NODE_ENV !== "production" && (Be.propTypes = {
739
- // ┌────────────────────────────── Warning ──────────────────────────────┐
740
- // │ These PropTypes are generated from the TypeScript type definitions. │
741
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
742
- // └─────────────────────────────────────────────────────────────────────┘
743
- /**
744
- * The content of the component.
745
- */
746
- children: e.node,
747
- /**
748
- * Override or extend the styles applied to the component.
749
- */
750
- classes: e.object,
751
- /**
752
- * @ignore
753
- */
754
- className: e.string,
755
- /**
756
- * The icon to display as the expand indicator.
757
- */
758
- expandIcon: e.node,
759
- /**
760
- * This prop can help identify which element has keyboard focus.
761
- * The class name will be applied when the element gains the focus through keyboard interaction.
762
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
763
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
764
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
765
- * if needed.
766
- */
767
- focusVisibleClassName: e.string,
768
- /**
769
- * @ignore
770
- */
771
- onClick: e.func,
772
- /**
773
- * The system prop that allows defining system overrides as well as additional CSS styles.
774
- */
775
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
776
- });
777
- export {
778
- De as A,
779
- Be as a,
780
- Ve as b
781
- };