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