@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,380 +0,0 @@
1
- import { a, _ as z } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as B from "react";
3
- import { P as o } from "./index-C__OZmYy.js";
4
- import { g as j, b as N, s as u, u as L, c as w, a as E } from "./styled-Bsjp3kFh.js";
5
- import { darken as O, lighten as S } from "@mui/system";
6
- import { c as f } from "./createSvgIcon-DX-SqL8M.js";
7
- import Q, { jsx as r, jsxs as X } from "react/jsx-runtime";
8
- import { P as Y } from "./Paper-q9kKjAKx.js";
9
- import { c as k } from "./capitalize-quqpGCFu.js";
10
- import { I as oo } from "./IconButton-_opV1iNK.js";
11
- import { T as eo } from "./Typography-B-Z5Y0Xq.js";
12
- import { r as to, i as so } from "./createSvgIcon-BM3-TsGy.js";
13
- function ro(e) {
14
- return N("MuiAlert", e);
15
- }
16
- const P = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), no = f(/* @__PURE__ */ r("path", {
17
- d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
18
- }), "SuccessOutlined"), lo = f(/* @__PURE__ */ r("path", {
19
- d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
20
- }), "ReportProblemOutlined"), ao = f(/* @__PURE__ */ r("path", {
21
- d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
22
- }), "ErrorOutline"), co = f(/* @__PURE__ */ r("path", {
23
- d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
24
- }), "InfoOutlined"), io = f(/* @__PURE__ */ r("path", {
25
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
26
- }), "Close"), po = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"], uo = (e) => {
27
- const {
28
- variant: t,
29
- color: n,
30
- severity: l,
31
- classes: s
32
- } = e, c = {
33
- root: ["root", `${t}${k(n || l)}`, `${t}`],
34
- icon: ["icon"],
35
- message: ["message"],
36
- action: ["action"]
37
- };
38
- return E(c, ro, s);
39
- }, fo = u(Y, {
40
- name: "MuiAlert",
41
- slot: "Root",
42
- overridesResolver: (e, t) => {
43
- const {
44
- ownerState: n
45
- } = e;
46
- return [t.root, t[n.variant], t[`${n.variant}${k(n.color || n.severity)}`]];
47
- }
48
- })(({
49
- theme: e,
50
- ownerState: t
51
- }) => {
52
- const n = e.palette.mode === "light" ? O : S, l = e.palette.mode === "light" ? S : O, s = t.color || t.severity;
53
- return a({}, e.typography.body2, {
54
- backgroundColor: "transparent",
55
- display: "flex",
56
- padding: "6px 16px"
57
- }, s && t.variant === "standard" && {
58
- color: e.vars ? e.vars.palette.Alert[`${s}Color`] : n(e.palette[s].light, 0.6),
59
- backgroundColor: e.vars ? e.vars.palette.Alert[`${s}StandardBg`] : l(e.palette[s].light, 0.9),
60
- [`& .${P.icon}`]: e.vars ? {
61
- color: e.vars.palette.Alert[`${s}IconColor`]
62
- } : {
63
- color: e.palette[s].main
64
- }
65
- }, s && t.variant === "outlined" && {
66
- color: e.vars ? e.vars.palette.Alert[`${s}Color`] : n(e.palette[s].light, 0.6),
67
- border: `1px solid ${(e.vars || e).palette[s].light}`,
68
- [`& .${P.icon}`]: e.vars ? {
69
- color: e.vars.palette.Alert[`${s}IconColor`]
70
- } : {
71
- color: e.palette[s].main
72
- }
73
- }, s && t.variant === "filled" && a({
74
- fontWeight: e.typography.fontWeightMedium
75
- }, e.vars ? {
76
- color: e.vars.palette.Alert[`${s}FilledColor`],
77
- backgroundColor: e.vars.palette.Alert[`${s}FilledBg`]
78
- } : {
79
- backgroundColor: e.palette.mode === "dark" ? e.palette[s].dark : e.palette[s].main,
80
- color: e.palette.getContrastText(e.palette[s].main)
81
- }));
82
- }), vo = u("div", {
83
- name: "MuiAlert",
84
- slot: "Icon",
85
- overridesResolver: (e, t) => t.icon
86
- })({
87
- marginRight: 12,
88
- padding: "7px 0",
89
- display: "flex",
90
- fontSize: 22,
91
- opacity: 0.9
92
- }), go = u("div", {
93
- name: "MuiAlert",
94
- slot: "Message",
95
- overridesResolver: (e, t) => t.message
96
- })({
97
- padding: "8px 0",
98
- minWidth: 0,
99
- overflow: "auto"
100
- }), R = u("div", {
101
- name: "MuiAlert",
102
- slot: "Action",
103
- overridesResolver: (e, t) => t.action
104
- })({
105
- display: "flex",
106
- alignItems: "flex-start",
107
- padding: "4px 0 0 16px",
108
- marginLeft: "auto",
109
- marginRight: -8
110
- }), _ = {
111
- success: /* @__PURE__ */ r(no, {
112
- fontSize: "inherit"
113
- }),
114
- warning: /* @__PURE__ */ r(lo, {
115
- fontSize: "inherit"
116
- }),
117
- error: /* @__PURE__ */ r(ao, {
118
- fontSize: "inherit"
119
- }),
120
- info: /* @__PURE__ */ r(co, {
121
- fontSize: "inherit"
122
- })
123
- }, mo = /* @__PURE__ */ B.forwardRef(function(t, n) {
124
- var l, s, c, p, v, y;
125
- const g = L({
126
- props: t,
127
- name: "MuiAlert"
128
- }), {
129
- action: m,
130
- children: W,
131
- className: H,
132
- closeText: h = "Close",
133
- color: U,
134
- components: I = {},
135
- componentsProps: M = {},
136
- icon: T,
137
- iconMapping: V = _,
138
- onClose: x,
139
- role: q = "alert",
140
- severity: A = "success",
141
- slotProps: b = {},
142
- slots: $ = {},
143
- variant: D = "standard"
144
- } = g, F = z(g, po), i = a({}, g, {
145
- color: U,
146
- severity: A,
147
- variant: D
148
- }), d = uo(i), Z = (l = (s = $.closeButton) != null ? s : I.CloseButton) != null ? l : oo, G = (c = (p = $.closeIcon) != null ? p : I.CloseIcon) != null ? c : io, J = (v = b.closeButton) != null ? v : M.closeButton, K = (y = b.closeIcon) != null ? y : M.closeIcon;
149
- return /* @__PURE__ */ X(fo, a({
150
- role: q,
151
- elevation: 0,
152
- ownerState: i,
153
- className: w(d.root, H),
154
- ref: n
155
- }, F, {
156
- children: [T !== !1 ? /* @__PURE__ */ r(vo, {
157
- ownerState: i,
158
- className: d.icon,
159
- children: T || V[A] || _[A]
160
- }) : null, /* @__PURE__ */ r(go, {
161
- ownerState: i,
162
- className: d.message,
163
- children: W
164
- }), m != null ? /* @__PURE__ */ r(R, {
165
- ownerState: i,
166
- className: d.action,
167
- children: m
168
- }) : null, m == null && x ? /* @__PURE__ */ r(R, {
169
- ownerState: i,
170
- className: d.action,
171
- children: /* @__PURE__ */ r(Z, a({
172
- size: "small",
173
- "aria-label": h,
174
- title: h,
175
- color: "inherit",
176
- onClick: x
177
- }, J, {
178
- children: /* @__PURE__ */ r(G, a({
179
- fontSize: "small"
180
- }, K))
181
- }))
182
- }) : null]
183
- }));
184
- });
185
- process.env.NODE_ENV !== "production" && (mo.propTypes = {
186
- // ----------------------------- Warning --------------------------------
187
- // | These PropTypes are generated from the TypeScript type definitions |
188
- // | To update them edit the d.ts file and run "yarn proptypes" |
189
- // ----------------------------------------------------------------------
190
- /**
191
- * The action to display. It renders after the message, at the end of the alert.
192
- */
193
- action: o.node,
194
- /**
195
- * The content of the component.
196
- */
197
- children: o.node,
198
- /**
199
- * Override or extend the styles applied to the component.
200
- */
201
- classes: o.object,
202
- /**
203
- * @ignore
204
- */
205
- className: o.string,
206
- /**
207
- * Override the default label for the *close popup* icon button.
208
- *
209
- * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
210
- * @default 'Close'
211
- */
212
- closeText: o.string,
213
- /**
214
- * The color of the component. Unless provided, the value is taken from the `severity` prop.
215
- * It supports both default and custom theme colors, which can be added as shown in the
216
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
217
- */
218
- color: o.oneOfType([o.oneOf(["error", "info", "success", "warning"]), o.string]),
219
- /**
220
- * The components used for each slot inside.
221
- *
222
- * This prop is an alias for the `slots` prop.
223
- * It's recommended to use the `slots` prop instead.
224
- *
225
- * @default {}
226
- */
227
- components: o.shape({
228
- CloseButton: o.elementType,
229
- CloseIcon: o.elementType
230
- }),
231
- /**
232
- * The extra props for the slot components.
233
- * You can override the existing props or add new ones.
234
- *
235
- * This prop is an alias for the `slotProps` prop.
236
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
237
- *
238
- * @default {}
239
- */
240
- componentsProps: o.shape({
241
- closeButton: o.object,
242
- closeIcon: o.object
243
- }),
244
- /**
245
- * Override the icon displayed before the children.
246
- * Unless provided, the icon is mapped to the value of the `severity` prop.
247
- * Set to `false` to remove the `icon`.
248
- */
249
- icon: o.node,
250
- /**
251
- * The component maps the `severity` prop to a range of different icons,
252
- * for instance success to `<SuccessOutlined>`.
253
- * If you wish to change this mapping, you can provide your own.
254
- * Alternatively, you can use the `icon` prop to override the icon displayed.
255
- */
256
- iconMapping: o.shape({
257
- error: o.node,
258
- info: o.node,
259
- success: o.node,
260
- warning: o.node
261
- }),
262
- /**
263
- * Callback fired when the component requests to be closed.
264
- * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
265
- * @param {React.SyntheticEvent} event The event source of the callback.
266
- */
267
- onClose: o.func,
268
- /**
269
- * The ARIA role attribute of the element.
270
- * @default 'alert'
271
- */
272
- role: o.string,
273
- /**
274
- * The severity of the alert. This defines the color and icon used.
275
- * @default 'success'
276
- */
277
- severity: o.oneOf(["error", "info", "success", "warning"]),
278
- /**
279
- * The extra props for the slot components.
280
- * You can override the existing props or add new ones.
281
- *
282
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
283
- *
284
- * @default {}
285
- */
286
- slotProps: o.shape({
287
- closeButton: o.object,
288
- closeIcon: o.object
289
- }),
290
- /**
291
- * The components used for each slot inside.
292
- *
293
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
294
- *
295
- * @default {}
296
- */
297
- slots: o.shape({
298
- closeButton: o.elementType,
299
- closeIcon: o.elementType
300
- }),
301
- /**
302
- * The system prop that allows defining system overrides as well as additional CSS styles.
303
- */
304
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
305
- /**
306
- * The variant to use.
307
- * @default 'standard'
308
- */
309
- variant: o.oneOfType([o.oneOf(["filled", "outlined", "standard"]), o.string])
310
- });
311
- function Ao(e) {
312
- return N("MuiAlertTitle", e);
313
- }
314
- j("MuiAlertTitle", ["root"]);
315
- const Co = ["className"], yo = (e) => {
316
- const {
317
- classes: t
318
- } = e;
319
- return E({
320
- root: ["root"]
321
- }, Ao, t);
322
- }, ho = u(eo, {
323
- name: "MuiAlertTitle",
324
- slot: "Root",
325
- overridesResolver: (e, t) => t.root
326
- })(({
327
- theme: e
328
- }) => ({
329
- fontWeight: e.typography.fontWeightMedium,
330
- marginTop: -2
331
- })), Io = /* @__PURE__ */ B.forwardRef(function(t, n) {
332
- const l = L({
333
- props: t,
334
- name: "MuiAlertTitle"
335
- }), {
336
- className: s
337
- } = l, c = z(l, Co), p = l, v = yo(p);
338
- return /* @__PURE__ */ r(ho, a({
339
- gutterBottom: !0,
340
- component: "div",
341
- ownerState: p,
342
- ref: n,
343
- className: w(v.root, s)
344
- }, c));
345
- });
346
- process.env.NODE_ENV !== "production" && (Io.propTypes = {
347
- // ----------------------------- Warning --------------------------------
348
- // | These PropTypes are generated from the TypeScript type definitions |
349
- // | To update them edit the d.ts file and run "yarn proptypes" |
350
- // ----------------------------------------------------------------------
351
- /**
352
- * The content of the component.
353
- */
354
- children: o.node,
355
- /**
356
- * Override or extend the styles applied to the component.
357
- */
358
- classes: o.object,
359
- /**
360
- * @ignore
361
- */
362
- className: o.string,
363
- /**
364
- * The system prop that allows defining system overrides as well as additional CSS styles.
365
- */
366
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
367
- });
368
- var C = {}, Mo = so;
369
- Object.defineProperty(C, "__esModule", {
370
- value: !0
371
- });
372
- var To = C.default = void 0, xo = Mo(to()), bo = Q;
373
- To = C.default = (0, xo.default)(/* @__PURE__ */ (0, bo.jsx)("path", {
374
- d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
375
- }), "Add");
376
- export {
377
- mo as A,
378
- Io as a,
379
- To as d
380
- };