@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
@@ -0,0 +1,599 @@
1
+ var Z = Object.defineProperty;
2
+ var ee = (r, l, c) => l in r ? Z(r, l, { enumerable: !0, configurable: !0, writable: !0, value: c }) : r[l] = c;
3
+ var q = (r, l, c) => ee(r, typeof l != "symbol" ? l + "" : l, c);
4
+ import { jsx as C, jsxs as B } from "react/jsx-runtime";
5
+ import te from "sortablejs";
6
+ import * as se from "react";
7
+ import oe from "react";
8
+ import { g as ne } from "../../_commonjsHelpers-BVfed4GL.js";
9
+ import { useSortableListLogic as re } from "./logic.js";
10
+ import { SortableListRoot as ae, SortableListItem as le } from "./styled.js";
11
+ import { a as M, _ as ie } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
12
+ import { P as f } from "../../index-C__OZmYy.js";
13
+ import { c as ce } from "../../clsx-OuTLNxxd.js";
14
+ import { g as de, a as pe, s as j, u as fe, c as ue } from "../../generateUtilityClasses-C3ivN9Ie.js";
15
+ import { T as R } from "../../Typography-DgsSLCFC.js";
16
+ function be(r) {
17
+ return pe("MuiCardHeader", r);
18
+ }
19
+ const G = de("MuiCardHeader", ["root", "avatar", "action", "content", "title", "subheader"]), he = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"], me = (r) => {
20
+ const {
21
+ classes: l
22
+ } = r;
23
+ return ue({
24
+ root: ["root"],
25
+ avatar: ["avatar"],
26
+ action: ["action"],
27
+ content: ["content"],
28
+ title: ["title"],
29
+ subheader: ["subheader"]
30
+ }, be, l);
31
+ }, xe = j("div", {
32
+ name: "MuiCardHeader",
33
+ slot: "Root",
34
+ overridesResolver: (r, l) => M({
35
+ [`& .${G.title}`]: l.title,
36
+ [`& .${G.subheader}`]: l.subheader
37
+ }, l.root)
38
+ })({
39
+ display: "flex",
40
+ alignItems: "center",
41
+ padding: 16
42
+ }), $e = j("div", {
43
+ name: "MuiCardHeader",
44
+ slot: "Avatar",
45
+ overridesResolver: (r, l) => l.avatar
46
+ })({
47
+ display: "flex",
48
+ flex: "0 0 auto",
49
+ marginRight: 16
50
+ }), ge = j("div", {
51
+ name: "MuiCardHeader",
52
+ slot: "Action",
53
+ overridesResolver: (r, l) => l.action
54
+ })({
55
+ flex: "0 0 auto",
56
+ alignSelf: "flex-start",
57
+ marginTop: -4,
58
+ marginRight: -8,
59
+ marginBottom: -4
60
+ }), ye = j("div", {
61
+ name: "MuiCardHeader",
62
+ slot: "Content",
63
+ overridesResolver: (r, l) => l.content
64
+ })({
65
+ flex: "1 1 auto"
66
+ }), W = /* @__PURE__ */ se.forwardRef(function(l, c) {
67
+ const b = fe({
68
+ props: l,
69
+ name: "MuiCardHeader"
70
+ }), {
71
+ action: g,
72
+ avatar: d,
73
+ className: u,
74
+ component: O = "div",
75
+ disableTypography: $ = !1,
76
+ subheader: N,
77
+ subheaderTypographyProps: E,
78
+ title: H,
79
+ titleTypographyProps: L
80
+ } = b, D = ie(b, he), w = M({}, b, {
81
+ component: O,
82
+ disableTypography: $
83
+ }), y = me(w);
84
+ let v = H;
85
+ v != null && v.type !== R && !$ && (v = /* @__PURE__ */ C(R, M({
86
+ variant: d ? "body2" : "h5",
87
+ className: y.title,
88
+ component: "span",
89
+ display: "block"
90
+ }, L, {
91
+ children: v
92
+ })));
93
+ let S = N;
94
+ return S != null && S.type !== R && !$ && (S = /* @__PURE__ */ C(R, M({
95
+ variant: d ? "body2" : "body1",
96
+ className: y.subheader,
97
+ color: "text.secondary",
98
+ component: "span",
99
+ display: "block"
100
+ }, E, {
101
+ children: S
102
+ }))), /* @__PURE__ */ B(xe, M({
103
+ className: ce(y.root, u),
104
+ as: O,
105
+ ref: c,
106
+ ownerState: w
107
+ }, D, {
108
+ children: [d && /* @__PURE__ */ C($e, {
109
+ className: y.avatar,
110
+ ownerState: w,
111
+ children: d
112
+ }), /* @__PURE__ */ B(ye, {
113
+ className: y.content,
114
+ ownerState: w,
115
+ children: [v, S]
116
+ }), g && /* @__PURE__ */ C(ge, {
117
+ className: y.action,
118
+ ownerState: w,
119
+ children: g
120
+ })]
121
+ }));
122
+ });
123
+ process.env.NODE_ENV !== "production" && (W.propTypes = {
124
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
125
+ // │ These PropTypes are generated from the TypeScript type definitions. │
126
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
127
+ // └─────────────────────────────────────────────────────────────────────┘
128
+ /**
129
+ * The action to display in the card header.
130
+ */
131
+ action: f.node,
132
+ /**
133
+ * The Avatar element to display.
134
+ */
135
+ avatar: f.node,
136
+ /**
137
+ * @ignore
138
+ */
139
+ children: f.node,
140
+ /**
141
+ * Override or extend the styles applied to the component.
142
+ */
143
+ classes: f.object,
144
+ /**
145
+ * @ignore
146
+ */
147
+ className: f.string,
148
+ /**
149
+ * The component used for the root node.
150
+ * Either a string to use a HTML element or a component.
151
+ */
152
+ component: f.elementType,
153
+ /**
154
+ * If `true`, `subheader` and `title` won't be wrapped by a Typography component.
155
+ * This can be useful to render an alternative Typography variant by wrapping
156
+ * the `title` text, and optional `subheader` text
157
+ * with the Typography component.
158
+ * @default false
159
+ */
160
+ disableTypography: f.bool,
161
+ /**
162
+ * The content of the component.
163
+ */
164
+ subheader: f.node,
165
+ /**
166
+ * These props will be forwarded to the subheader
167
+ * (as long as disableTypography is not `true`).
168
+ */
169
+ subheaderTypographyProps: f.object,
170
+ /**
171
+ * The system prop that allows defining system overrides as well as additional CSS styles.
172
+ */
173
+ sx: f.oneOfType([f.arrayOf(f.oneOfType([f.func, f.object, f.bool])), f.func, f.object]),
174
+ /**
175
+ * The content of the component.
176
+ */
177
+ title: f.node,
178
+ /**
179
+ * These props will be forwarded to the title
180
+ * (as long as disableTypography is not `true`).
181
+ */
182
+ titleTypographyProps: f.object
183
+ });
184
+ var J = { exports: {} }, K = { exports: {} };
185
+ /*!
186
+ Copyright (c) 2018 Jed Watson.
187
+ Licensed under the MIT License (MIT), see
188
+ http://jedwatson.github.io/classnames
189
+ */
190
+ (function(r) {
191
+ (function() {
192
+ var l = {}.hasOwnProperty;
193
+ function c() {
194
+ for (var b = [], g = 0; g < arguments.length; g++) {
195
+ var d = arguments[g];
196
+ if (d) {
197
+ var u = typeof d;
198
+ if (u === "string" || u === "number")
199
+ b.push(d);
200
+ else if (Array.isArray(d)) {
201
+ if (d.length) {
202
+ var O = c.apply(null, d);
203
+ O && b.push(O);
204
+ }
205
+ } else if (u === "object")
206
+ if (d.toString === Object.prototype.toString)
207
+ for (var $ in d)
208
+ l.call(d, $) && d[$] && b.push($);
209
+ else
210
+ b.push(d.toString());
211
+ }
212
+ }
213
+ return b.join(" ");
214
+ }
215
+ r.exports ? (c.default = c, r.exports = c) : window.classNames = c;
216
+ })();
217
+ })(K);
218
+ var we = K.exports, ve = process.env.NODE_ENV === "production", U = "Invariant failed";
219
+ function Ce(r, l) {
220
+ if (!r) {
221
+ if (ve)
222
+ throw new Error(U);
223
+ var c = typeof l == "function" ? l() : l, b = c ? U + ": " + c : U;
224
+ throw new Error(b);
225
+ }
226
+ }
227
+ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
228
+ __proto__: null,
229
+ default: Ce
230
+ }, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ ne(Oe);
231
+ (function(r) {
232
+ var l = te, c = we, b = oe, g = Se;
233
+ function d(s) {
234
+ return s && s.__esModule ? s.default : s;
235
+ }
236
+ function u(s, e, t, o) {
237
+ Object.defineProperty(s, e, { get: t, set: o, enumerable: !0, configurable: !0 });
238
+ }
239
+ function O(s, e) {
240
+ return Object.keys(e).forEach(function(t) {
241
+ t === "default" || t === "__esModule" || s.hasOwnProperty(t) || Object.defineProperty(s, t, {
242
+ enumerable: !0,
243
+ get: function() {
244
+ return e[t];
245
+ }
246
+ });
247
+ }), s;
248
+ }
249
+ u(r.exports, "Sortable", () => $882b6d93070905b3$re_export$Sortable), u(r.exports, "Direction", () => $882b6d93070905b3$re_export$Direction), u(r.exports, "DOMRect", () => $882b6d93070905b3$re_export$DOMRect), u(r.exports, "GroupOptions", () => $882b6d93070905b3$re_export$GroupOptions), u(r.exports, "MoveEvent", () => $882b6d93070905b3$re_export$MoveEvent), u(r.exports, "Options", () => $882b6d93070905b3$re_export$Options), u(r.exports, "PullResult", () => $882b6d93070905b3$re_export$PullResult), u(r.exports, "PutResult", () => $882b6d93070905b3$re_export$PutResult), u(r.exports, "SortableEvent", () => $882b6d93070905b3$re_export$SortableEvent), u(r.exports, "SortableOptions", () => $882b6d93070905b3$re_export$SortableOptions), u(r.exports, "Utils", () => $882b6d93070905b3$re_export$Utils), u(r.exports, "ReactSortable", () => T);
250
+ function $(s) {
251
+ s.parentElement !== null && s.parentElement.removeChild(s);
252
+ }
253
+ function N(s, e, t) {
254
+ const o = s.children[t] || null;
255
+ s.insertBefore(e, o);
256
+ }
257
+ function E(s) {
258
+ s.forEach((e) => $(e.element));
259
+ }
260
+ function H(s) {
261
+ s.forEach((e) => {
262
+ N(e.parentElement, e.element, e.oldIndex);
263
+ });
264
+ }
265
+ function L(s, e) {
266
+ const t = v(s), o = {
267
+ parentElement: s.from
268
+ };
269
+ let a = [];
270
+ switch (t) {
271
+ case "normal":
272
+ a = [
273
+ {
274
+ element: s.item,
275
+ newIndex: s.newIndex,
276
+ oldIndex: s.oldIndex,
277
+ parentElement: s.from
278
+ }
279
+ ];
280
+ break;
281
+ case "swap":
282
+ const p = {
283
+ element: s.item,
284
+ oldIndex: s.oldIndex,
285
+ newIndex: s.newIndex,
286
+ ...o
287
+ }, h = {
288
+ element: s.swapItem,
289
+ oldIndex: s.newIndex,
290
+ newIndex: s.oldIndex,
291
+ ...o
292
+ };
293
+ a = [
294
+ p,
295
+ h
296
+ ];
297
+ break;
298
+ case "multidrag":
299
+ a = s.oldIndicies.map((x, I) => ({
300
+ element: x.multiDragElement,
301
+ oldIndex: x.index,
302
+ newIndex: s.newIndicies[I].index,
303
+ ...o
304
+ }));
305
+ break;
306
+ }
307
+ return S(a, e);
308
+ }
309
+ function D(s, e) {
310
+ const t = w(s, e);
311
+ return y(s, t);
312
+ }
313
+ function w(s, e) {
314
+ const t = [
315
+ ...e
316
+ ];
317
+ return s.concat().reverse().forEach((o) => t.splice(o.oldIndex, 1)), t;
318
+ }
319
+ function y(s, e, t, o) {
320
+ const a = [
321
+ ...e
322
+ ];
323
+ return s.forEach((n) => {
324
+ const i = o && t && o(n.item, t);
325
+ a.splice(n.newIndex, 0, i || n.item);
326
+ }), a;
327
+ }
328
+ function v(s) {
329
+ return s.oldIndicies && s.oldIndicies.length > 0 ? "multidrag" : s.swapItem ? "swap" : "normal";
330
+ }
331
+ function S(s, e) {
332
+ return s.map((o) => ({
333
+ ...o,
334
+ item: e[o.oldIndex]
335
+ })).sort((o, a) => o.oldIndex - a.oldIndex);
336
+ }
337
+ function Q(s) {
338
+ const { list: e, setList: t, children: o, tag: a, style: n, className: i, clone: p, onAdd: h, onChange: x, onChoose: I, onClone: A, onEnd: P, onFilter: k, onRemove: _, onSort: z, onStart: F, onUnchoose: V, onUpdate: Ee, onMove: Le, onSpill: Pe, onSelect: Me, onDeselect: He, ...Y } = s;
339
+ return Y;
340
+ }
341
+ const m = {
342
+ dragging: null
343
+ };
344
+ class T extends b.Component {
345
+ constructor(e) {
346
+ super(e), this.ref = /* @__PURE__ */ (0, b.createRef)();
347
+ const t = [
348
+ ...e.list
349
+ ].map((o) => Object.assign(o, {
350
+ chosen: !1,
351
+ selected: !1
352
+ }));
353
+ e.setList(t, this.sortable, m), d(g)(
354
+ //@ts-expect-error: Doesn't exist. Will deprecate soon.
355
+ !e.plugins,
356
+ `
357
+ Plugins prop is no longer supported.
358
+ Instead, mount it with "Sortable.mount(new MultiDrag())"
359
+ Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
360
+ `
361
+ );
362
+ }
363
+ componentDidMount() {
364
+ if (this.ref.current === null) return;
365
+ const e = this.makeOptions();
366
+ d(l).create(this.ref.current, e);
367
+ }
368
+ componentDidUpdate(e) {
369
+ e.disabled !== this.props.disabled && this.sortable && this.sortable.option("disabled", this.props.disabled);
370
+ }
371
+ render() {
372
+ const { tag: e, style: t, className: o, id: a } = this.props, n = {
373
+ style: t,
374
+ className: o,
375
+ id: a
376
+ }, i = !e || e === null ? "div" : e;
377
+ return /* @__PURE__ */ (0, b.createElement)(i, {
378
+ // @todo - find a way (perhaps with the callback) to allow AntD components to work
379
+ ref: this.ref,
380
+ ...n
381
+ }, this.getChildren());
382
+ }
383
+ getChildren() {
384
+ const { children: e, dataIdAttr: t, selectedClass: o = "sortable-selected", chosenClass: a = "sortable-chosen", dragClass: n = "sortable-drag", fallbackClass: i = "sortable-falback", ghostClass: p = "sortable-ghost", swapClass: h = "sortable-swap-highlight", filter: x = "sortable-filter", list: I } = this.props;
385
+ if (!e || e == null) return null;
386
+ const A = t || "data-id";
387
+ return b.Children.map(e, (P, k) => {
388
+ if (P === void 0) return;
389
+ const _ = I[k] || {}, { className: z } = P.props, F = typeof x == "string" && {
390
+ [x.replace(".", "")]: !!_.filtered
391
+ }, V = d(c)(z, {
392
+ [o]: _.selected,
393
+ [a]: _.chosen,
394
+ ...F
395
+ });
396
+ return /* @__PURE__ */ (0, b.cloneElement)(P, {
397
+ [A]: P.key,
398
+ className: V
399
+ });
400
+ });
401
+ }
402
+ /** Appends the `sortable` property to this component */
403
+ get sortable() {
404
+ const e = this.ref.current;
405
+ if (e === null) return null;
406
+ const t = Object.keys(e).find((o) => o.includes("Sortable"));
407
+ return t ? e[t] : null;
408
+ }
409
+ /** Converts all the props from `ReactSortable` into the `options` object that `Sortable.create(el, [options])` can use. */
410
+ makeOptions() {
411
+ const e = [
412
+ "onAdd",
413
+ "onChoose",
414
+ "onDeselect",
415
+ "onEnd",
416
+ "onRemove",
417
+ "onSelect",
418
+ "onSpill",
419
+ "onStart",
420
+ "onUnchoose",
421
+ "onUpdate"
422
+ ], t = [
423
+ "onChange",
424
+ "onClone",
425
+ "onFilter",
426
+ "onSort"
427
+ ], o = Q(this.props);
428
+ return e.forEach((n) => o[n] = this.prepareOnHandlerPropAndDOM(n)), t.forEach((n) => o[n] = this.prepareOnHandlerProp(n)), {
429
+ ...o,
430
+ onMove: (n, i) => {
431
+ const { onMove: p } = this.props, h = n.willInsertAfter || -1;
432
+ if (!p) return h;
433
+ const x = p(n, i, this.sortable, m);
434
+ return typeof x > "u" ? !1 : x;
435
+ }
436
+ };
437
+ }
438
+ /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop & an `on[Handler]` ReactSortable method. */
439
+ prepareOnHandlerPropAndDOM(e) {
440
+ return (t) => {
441
+ this.callOnHandlerProp(t, e), this[e](t);
442
+ };
443
+ }
444
+ /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop */
445
+ prepareOnHandlerProp(e) {
446
+ return (t) => {
447
+ this.callOnHandlerProp(t, e);
448
+ };
449
+ }
450
+ /** Calls the `props.on[Handler]` function */
451
+ callOnHandlerProp(e, t) {
452
+ const o = this.props[t];
453
+ o && o(e, this.sortable, m);
454
+ }
455
+ // SORTABLE DOM HANDLING
456
+ onAdd(e) {
457
+ const { list: t, setList: o, clone: a } = this.props, n = [
458
+ ...m.dragging.props.list
459
+ ], i = L(e, n);
460
+ E(i);
461
+ const p = y(i, t, e, a).map((h) => Object.assign(h, {
462
+ selected: !1
463
+ }));
464
+ o(p, this.sortable, m);
465
+ }
466
+ onRemove(e) {
467
+ const { list: t, setList: o } = this.props, a = v(e), n = L(e, t);
468
+ H(n);
469
+ let i = [
470
+ ...t
471
+ ];
472
+ if (e.pullMode !== "clone") i = w(n, i);
473
+ else {
474
+ let p = n;
475
+ switch (a) {
476
+ case "multidrag":
477
+ p = n.map((h, x) => ({
478
+ ...h,
479
+ element: e.clones[x]
480
+ }));
481
+ break;
482
+ case "normal":
483
+ p = n.map((h) => ({
484
+ ...h,
485
+ element: e.clone
486
+ }));
487
+ break;
488
+ case "swap":
489
+ default:
490
+ d(g)(!0, `mode "${a}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${a}" plugin`);
491
+ }
492
+ E(p), n.forEach((h) => {
493
+ const x = h.oldIndex, I = this.props.clone(h.item, e);
494
+ i.splice(x, 1, I);
495
+ });
496
+ }
497
+ i = i.map((p) => Object.assign(p, {
498
+ selected: !1
499
+ })), o(i, this.sortable, m);
500
+ }
501
+ onUpdate(e) {
502
+ const { list: t, setList: o } = this.props, a = L(e, t);
503
+ E(a), H(a);
504
+ const n = D(a, t);
505
+ return o(n, this.sortable, m);
506
+ }
507
+ onStart() {
508
+ m.dragging = this;
509
+ }
510
+ onEnd() {
511
+ m.dragging = null;
512
+ }
513
+ onChoose(e) {
514
+ const { list: t, setList: o } = this.props, a = t.map((n, i) => {
515
+ let p = n;
516
+ return i === e.oldIndex && (p = Object.assign(n, {
517
+ chosen: !0
518
+ })), p;
519
+ });
520
+ o(a, this.sortable, m);
521
+ }
522
+ onUnchoose(e) {
523
+ const { list: t, setList: o } = this.props, a = t.map((n, i) => {
524
+ let p = n;
525
+ return i === e.oldIndex && (p = Object.assign(p, {
526
+ chosen: !1
527
+ })), p;
528
+ });
529
+ o(a, this.sortable, m);
530
+ }
531
+ onSpill(e) {
532
+ const { removeOnSpill: t, revertOnSpill: o } = this.props;
533
+ t && !o && $(e.item);
534
+ }
535
+ onSelect(e) {
536
+ const { list: t, setList: o } = this.props, a = t.map((n) => Object.assign(n, {
537
+ selected: !1
538
+ }));
539
+ e.newIndicies.forEach((n) => {
540
+ const i = n.index;
541
+ if (i === -1) {
542
+ console.log(`"${e.type}" had indice of "${n.index}", which is probably -1 and doesn't usually happen here.`), console.log(e);
543
+ return;
544
+ }
545
+ a[i].selected = !0;
546
+ }), o(a, this.sortable, m);
547
+ }
548
+ onDeselect(e) {
549
+ const { list: t, setList: o } = this.props, a = t.map((n) => Object.assign(n, {
550
+ selected: !1
551
+ }));
552
+ e.newIndicies.forEach((n) => {
553
+ const i = n.index;
554
+ i !== -1 && (a[i].selected = !0);
555
+ }), o(a, this.sortable, m);
556
+ }
557
+ }
558
+ /* eslint-disable-next-line */
559
+ q(T, "defaultProps", {
560
+ clone: (e) => e
561
+ });
562
+ var X = {};
563
+ O(r.exports, X);
564
+ })(J);
565
+ var Ie = J.exports;
566
+ const qe = (r) => {
567
+ const { actions: l } = re(r);
568
+ return /* @__PURE__ */ C(ae, { sx: r.sx, children: /* @__PURE__ */ C(
569
+ Ie.ReactSortable,
570
+ {
571
+ list: r.items,
572
+ setList: l.handleSetList,
573
+ disabled: r.disabled,
574
+ children: r.items.map((c) => /* @__PURE__ */ C(
575
+ le,
576
+ {
577
+ selected: c.selected,
578
+ onClick: l.handleClick(c),
579
+ children: /* @__PURE__ */ C(
580
+ W,
581
+ {
582
+ title: c.name,
583
+ avatar: c.icon,
584
+ action: c.actions,
585
+ titleTypographyProps: {
586
+ variant: "body2",
587
+ fontSize: 12
588
+ }
589
+ }
590
+ )
591
+ },
592
+ c.id
593
+ ))
594
+ }
595
+ ) });
596
+ };
597
+ export {
598
+ qe as SortableList
599
+ };
@@ -0,0 +1,18 @@
1
+ import { useThemeProps as r } from "@mui/material";
2
+ import a from "lodash";
3
+ const h = (e) => {
4
+ const o = r({ props: e, name: "HCSortableList" }), n = { ...o };
5
+ return {
6
+ refs: {},
7
+ state: { ownerState: n },
8
+ actions: { handleClick: (s) => () => {
9
+ var t;
10
+ (t = s.onClick) == null || t.call(s, s);
11
+ }, handleSetList: (s) => {
12
+ a.isEqual(o.items, s) || o.setItems(s);
13
+ } }
14
+ };
15
+ };
16
+ export {
17
+ h as useSortableListLogic
18
+ };
@@ -0,0 +1,38 @@
1
+ import { styled as t, Box as r, alpha as a } from "@mui/material";
2
+ const i = (o) => o !== "selected", d = t(r, {
3
+ name: "HCSortableList",
4
+ slot: "root"
5
+ })({}), p = t(r, {
6
+ name: "HCSortableList",
7
+ slot: "item",
8
+ shouldForwardProp: i
9
+ })(({ theme: o, selected: e }) => ({
10
+ position: "relative",
11
+ borderBottom: "1px solid",
12
+ borderBottomColor: o.palette.divider,
13
+ boxShadow: "none !important",
14
+ cursor: "pointer",
15
+ "&:hover": {
16
+ backgroundColor: "rgba(0, 0, 0, 0.04)"
17
+ },
18
+ "& .MuiCardHeader-root": {
19
+ padding: "4px 8px"
20
+ },
21
+ ...e && {
22
+ "&:before": {
23
+ content: '""',
24
+ position: "absolute",
25
+ left: 0,
26
+ top: 0,
27
+ bottom: 0,
28
+ right: 0,
29
+ borderLeft: "1px solid",
30
+ borderLeftColor: o.palette.primary.main,
31
+ backgroundColor: a(o.palette.primary.main, 0.1)
32
+ }
33
+ }
34
+ }));
35
+ export {
36
+ p as SortableListItem,
37
+ d as SortableListRoot
38
+ };
@@ -1,18 +1,18 @@
1
- import { jsx as m } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import { useStaticTextLogic as n } from "./logic.js";
3
3
  import { StaticTextRoot as c } from "./styled.js";
4
- function S(t) {
5
- const { html: o, ownerState: r, sx: e, other: i } = n(t);
6
- return /* @__PURE__ */ m(
4
+ const S = (t) => {
5
+ const { html: o, ownerState: r, sx: e, other: m } = n(t);
6
+ return /* @__PURE__ */ i(
7
7
  c,
8
8
  {
9
9
  ownerState: r,
10
10
  sx: e,
11
11
  dangerouslySetInnerHTML: { __html: o },
12
- ...i
12
+ ...m
13
13
  }
14
14
  );
15
- }
15
+ };
16
16
  export {
17
17
  S as StaticText
18
18
  };
@@ -0,0 +1,12 @@
1
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
+ import { StatsBoxRoot as s, StatsBoxCaption as e, StatsBoxValueContainer as x, StatsBoxValue as c } from "./styled.js";
3
+ const p = ({ label: a, value: r, icon: i, ...n }) => /* @__PURE__ */ t(s, { ...n, children: [
4
+ /* @__PURE__ */ o(e, { variant: "caption", children: a }),
5
+ /* @__PURE__ */ t(x, { children: [
6
+ /* @__PURE__ */ o(c, { variant: "h1", children: r }),
7
+ i
8
+ ] })
9
+ ] });
10
+ export {
11
+ p as StatsBox
12
+ };