@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,67 @@
1
+ import { jsx as i, jsxs as m } from "react/jsx-runtime";
2
+ import { Close as p } from "@mui/icons-material";
3
+ import { Fade as h } from "@mui/material";
4
+ import { useState as v, useEffect as l } from "react";
5
+ import { useNotificationProviderLogic as N } from "./logic.js";
6
+ import { NotificationRoot as x, NotificationStack as C, NotificationAlert as D, NotificationCloseButton as E, NotificationTitle as g, NotificationMessage as H } from "./styled.js";
7
+ import { notify as I, removeNotification as M } from "./store.js";
8
+ const S = 250, T = ({
9
+ item: t,
10
+ defaultAutoHide: o,
11
+ defaultVariant: e,
12
+ onDismiss: n
13
+ }) => {
14
+ const [c, r] = v(!1);
15
+ l(() => {
16
+ r(!0);
17
+ }, []), l(() => {
18
+ const a = t.options.autoHideDuration === void 0 ? o : t.options.autoHideDuration;
19
+ if (a === null) return;
20
+ const d = setTimeout(() => r(!1), a);
21
+ return () => clearTimeout(d);
22
+ }, [t.options.autoHideDuration, o]);
23
+ const s = () => {
24
+ r(!1);
25
+ }, u = () => {
26
+ n(t.id);
27
+ }, f = t.options.variant ?? e;
28
+ return /* @__PURE__ */ i(h, { in: c, timeout: S, onExited: u, unmountOnExit: !0, children: /* @__PURE__ */ m(
29
+ D,
30
+ {
31
+ severity: t.severity,
32
+ variant: f,
33
+ onClose: s,
34
+ action: /* @__PURE__ */ i(
35
+ E,
36
+ {
37
+ "aria-label": "Dismiss",
38
+ size: "small",
39
+ color: "inherit",
40
+ onClick: s,
41
+ children: /* @__PURE__ */ i(p, { fontSize: "small" })
42
+ }
43
+ ),
44
+ children: [
45
+ t.options.title ? /* @__PURE__ */ i(g, { children: t.options.title }) : null,
46
+ /* @__PURE__ */ i(H, { children: t.message })
47
+ ]
48
+ }
49
+ ) });
50
+ }, k = (t) => {
51
+ const { state: o, actions: e } = N(t);
52
+ return o.visible.length === 0 ? null : /* @__PURE__ */ i(x, { ownerState: o.ownerState, sx: o.sx, children: /* @__PURE__ */ i(C, { spacing: 1, children: o.visible.map((n) => /* @__PURE__ */ i(
53
+ T,
54
+ {
55
+ item: n,
56
+ defaultAutoHide: o.defaultAutoHide,
57
+ defaultVariant: o.defaultVariant,
58
+ onDismiss: e.dismiss
59
+ },
60
+ n.id
61
+ )) }) });
62
+ };
63
+ export {
64
+ k as HCNotificationProvider,
65
+ I as notify,
66
+ M as removeNotification
67
+ };
@@ -0,0 +1,30 @@
1
+ import { useThemeProps as m } from "@mui/material";
2
+ import { useSyncExternalStore as u } from "react";
3
+ import { subscribe as l, getItems as s, removeNotification as A } from "./store.js";
4
+ const f = 4e3, p = 5, d = "filled", D = {
5
+ vertical: "bottom",
6
+ horizontal: "right"
7
+ }, N = (n) => {
8
+ const t = m({ props: n, name: "HCNotification" }), r = u(l, s, s), o = t.maxVisible ?? p, i = t.autoHideDuration ?? f, e = t.variant ?? d, a = t.anchorOrigin ?? D, c = r.slice(-o);
9
+ return {
10
+ refs: {},
11
+ state: {
12
+ ownerState: {
13
+ maxVisible: o,
14
+ anchorOrigin: a,
15
+ autoHideDuration: i,
16
+ variant: e
17
+ },
18
+ visible: c,
19
+ defaultAutoHide: i,
20
+ defaultVariant: e,
21
+ sx: t.sx
22
+ },
23
+ actions: {
24
+ dismiss: A
25
+ }
26
+ };
27
+ };
28
+ export {
29
+ N as useNotificationProviderLogic
30
+ };
@@ -0,0 +1,23 @@
1
+ const s = /* @__PURE__ */ new Set();
2
+ let n = [];
3
+ const r = () => {
4
+ s.forEach((e) => e());
5
+ }, o = (e, t, c = {}) => {
6
+ const i = `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
7
+ n = [...n, { id: i, severity: e, message: t, options: c }], r();
8
+ }, a = (e) => (s.add(e), () => {
9
+ s.delete(e);
10
+ }), d = () => n, f = (e) => {
11
+ n = n.filter((t) => t.id !== e), r();
12
+ }, u = {
13
+ error: (e, t) => o("error", e, t),
14
+ warning: (e, t) => o("warning", e, t),
15
+ info: (e, t) => o("info", e, t),
16
+ success: (e, t) => o("success", e, t)
17
+ };
18
+ export {
19
+ d as getItems,
20
+ u as notify,
21
+ f as removeNotification,
22
+ a as subscribe
23
+ };
@@ -0,0 +1,52 @@
1
+ import { styled as o, Box as a, Stack as e, Alert as s, AlertTitle as c, IconButton as l } from "@mui/material";
2
+ const r = (t) => t !== "ownerState", d = o(a, {
3
+ name: "HCNotification",
4
+ slot: "root",
5
+ shouldForwardProp: r
6
+ })(({ theme: t, ownerState: n }) => {
7
+ const i = n.anchorOrigin ?? { vertical: "bottom", horizontal: "right" };
8
+ return {
9
+ position: "fixed",
10
+ zIndex: t.zIndex.snackbar,
11
+ padding: t.spacing(2),
12
+ pointerEvents: "none",
13
+ display: "flex",
14
+ flexDirection: "column",
15
+ gap: t.spacing(1),
16
+ maxWidth: 420,
17
+ width: "100%",
18
+ ...i.vertical === "top" ? { top: 0 } : { bottom: 0 },
19
+ ...i.horizontal === "left" ? { left: 0, alignItems: "flex-start" } : i.horizontal === "center" ? { left: "50%", transform: "translateX(-50%)", alignItems: "center" } : { right: 0, alignItems: "flex-end" }
20
+ };
21
+ }), m = o(e, {
22
+ name: "HCNotification",
23
+ slot: "stack"
24
+ })({
25
+ width: "100%",
26
+ pointerEvents: "auto"
27
+ }), p = o(s, {
28
+ name: "HCNotification",
29
+ slot: "alert"
30
+ })(({ theme: t }) => ({
31
+ width: "100%",
32
+ boxShadow: t.shadows[6]
33
+ })), g = o(c, {
34
+ name: "HCNotification",
35
+ slot: "title"
36
+ })({}), h = o("span", {
37
+ name: "HCNotification",
38
+ slot: "message"
39
+ })({
40
+ display: "block"
41
+ }), N = o(l, {
42
+ name: "HCNotification",
43
+ slot: "closeButton"
44
+ })({});
45
+ export {
46
+ p as NotificationAlert,
47
+ N as NotificationCloseButton,
48
+ h as NotificationMessage,
49
+ d as NotificationRoot,
50
+ m as NotificationStack,
51
+ g as NotificationTitle
52
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { Loading as h } from "../../../loading/index.js";
3
3
  import { useObjectProfileCardAvatarLogic as g } from "./logic.js";
4
- import { AvatarContainer as f, AvatarButton as m, AvatarCaption as v } from "./styled.js";
4
+ import { AvatarContainer as m, AvatarButton as v, AvatarCaption as f } from "./styled.js";
5
5
  import { c as u } from "../../../../createReactComponent-C7L-DMHj.js";
6
6
  /**
7
7
  * @license @tabler/icons-react v3.44.0 - MIT
@@ -9,10 +9,9 @@ import { c as u } from "../../../../createReactComponent-C7L-DMHj.js";
9
9
  * This source code is licensed under the MIT license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const y = [["path", { d: "M15 8h.01", key: "svg-0" }], ["path", { d: "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12", key: "svg-1" }], ["path", { d: "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5", key: "svg-2" }], ["path", { d: "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3", key: "svg-3" }]], C = u("outline", "photo", "Photo", y);
13
- function M(e) {
14
- const { imageUrl: a, loading: r, onUpload: l, accept: c = ".jpg, .jpeg, .png", sx: d } = e, { fileInputRef: p, handleStartUpload: n, handleFileChange: s } = g(e), o = !!l;
15
- return /* @__PURE__ */ i(f, { sx: d, children: [
12
+ const y = [["path", { d: "M15 8h.01", key: "svg-0" }], ["path", { d: "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12", key: "svg-1" }], ["path", { d: "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5", key: "svg-2" }], ["path", { d: "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3", key: "svg-3" }]], C = u("outline", "photo", "Photo", y), M = (e) => {
13
+ const { imageUrl: a, loading: r, onUpload: l, accept: c = ".jpg, .jpeg, .png", sx: d } = e, { fileInputRef: s, handleStartUpload: n, handleFileChange: p } = g(e), o = !!l;
14
+ return /* @__PURE__ */ i(m, { sx: d, children: [
16
15
  a ? /* @__PURE__ */ t(
17
16
  "img",
18
17
  {
@@ -22,23 +21,23 @@ function M(e) {
22
21
  onClick: o ? n : void 0,
23
22
  style: { cursor: o ? "pointer" : "default" }
24
23
  }
25
- ) : /* @__PURE__ */ i(m, { onClick: n, disabled: !o, children: [
24
+ ) : /* @__PURE__ */ i(v, { onClick: n, disabled: !o, children: [
26
25
  /* @__PURE__ */ t(C, { size: 24 }),
27
- o && /* @__PURE__ */ t(v, { variant: "body2", children: "click here to upload" })
26
+ o && /* @__PURE__ */ t(f, { variant: "body2", children: "click here to upload" })
28
27
  ] }),
29
28
  o && /* @__PURE__ */ t(
30
29
  "input",
31
30
  {
32
- ref: p,
31
+ ref: s,
33
32
  type: "file",
34
33
  accept: c,
35
34
  style: { display: "none" },
36
- onChange: s
35
+ onChange: p
37
36
  }
38
37
  ),
39
38
  /* @__PURE__ */ t(h, { show: !!r, position: "absolute" })
40
39
  ] });
41
- }
40
+ };
42
41
  export {
43
42
  M as ObjectProfileCardAvatar
44
43
  };
@@ -1,10 +1,10 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { useTheme as y, Typography as o, Box as a, Divider as C } from "@mui/material";
3
3
  import j from "lodash";
4
4
  import { A as x } from "../../index.es-CHNMhaMi.js";
5
5
  import { FlexRow as P } from "../flex-row/index.js";
6
- import { InstanceVariableList as u } from "../instance-variable-list/index.js";
7
- import { ObjectProfileCardAvatar as O } from "./components/avatar/index.js";
6
+ import { InstanceVariableList as O } from "../instance-variable-list/index.js";
7
+ import { ObjectProfileCardAvatar as u } from "./components/avatar/index.js";
8
8
  import { useObjectProfileCardLogic as A } from "./logic.js";
9
9
  import { ObjectProfileCardRoot as R, ObjectProfileCardContent as U, ObjectProfileCardHeader as H, ObjectProfileCardHierarchy as D, ObjectProfileCardVariables as I } from "./styled.js";
10
10
  import { c as T } from "../../createReactComponent-C7L-DMHj.js";
@@ -14,35 +14,34 @@ import { c as T } from "../../createReactComponent-C7L-DMHj.js";
14
14
  * This source code is licensed under the MIT license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
16
  */
17
- const _ = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], d = T("outline", "chevron-right", "ChevronRight", _);
18
- function S(m) {
17
+ const _ = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], d = T("outline", "chevron-right", "ChevronRight", _), S = (m) => {
19
18
  const l = y(), {
20
19
  data: r,
21
- template: p,
22
- templateHierarchy: s,
20
+ template: s,
21
+ templateHierarchy: p,
23
22
  icon: n,
24
23
  avatarUploading: h,
25
24
  onAvatarUpload: f,
26
- ownerState: t,
25
+ ownerState: i,
27
26
  sx: g,
28
27
  other: v
29
28
  } = A(m);
30
- return j.isEmpty(r) ? null : /* @__PURE__ */ e(R, { ownerState: t, sx: g, ...v, children: /* @__PURE__ */ i(U, { ownerState: t, children: [
31
- /* @__PURE__ */ i(H, { ownerState: t, children: [
29
+ return j.isEmpty(r) ? null : /* @__PURE__ */ e(R, { ownerState: i, sx: g, ...v, children: /* @__PURE__ */ t(U, { ownerState: i, children: [
30
+ /* @__PURE__ */ t(H, { ownerState: i, children: [
32
31
  /* @__PURE__ */ e(
33
- O,
32
+ u,
34
33
  {
35
34
  imageUrl: r.profileImageUrl,
36
35
  loading: h,
37
36
  onUpload: f
38
37
  }
39
38
  ),
40
- /* @__PURE__ */ i(P, { gap: 1, mt: 1, children: [
39
+ /* @__PURE__ */ t(P, { gap: 1, mt: 1, children: [
41
40
  n && /* @__PURE__ */ e("img", { src: n, height: 24 }),
42
41
  /* @__PURE__ */ e(o, { variant: "h2", children: r.title })
43
42
  ] }),
44
- /* @__PURE__ */ i(D, { ownerState: t, children: [
45
- s.map((b, c) => /* @__PURE__ */ i(a, { display: "inline", children: [
43
+ /* @__PURE__ */ t(D, { ownerState: i, children: [
44
+ p.map((b, c) => /* @__PURE__ */ t(a, { display: "inline", children: [
46
45
  c > 0 && /* @__PURE__ */ e(
47
46
  d,
48
47
  {
@@ -53,7 +52,7 @@ function S(m) {
53
52
  ),
54
53
  /* @__PURE__ */ e(o, { variant: "caption", color: "text.secondary", children: b.name })
55
54
  ] }, c)),
56
- /* @__PURE__ */ i(a, { display: "inline", children: [
55
+ /* @__PURE__ */ t(a, { display: "inline", children: [
57
56
  /* @__PURE__ */ e(
58
57
  d,
59
58
  {
@@ -66,13 +65,13 @@ function S(m) {
66
65
  ] })
67
66
  ] })
68
67
  ] }),
69
- /* @__PURE__ */ i(a, { flex: 1, minHeight: 0, children: [
68
+ /* @__PURE__ */ t(a, { flex: 1, minHeight: 0, children: [
70
69
  /* @__PURE__ */ e(C, {}),
71
- /* @__PURE__ */ e(x, { heightRelativeToParent: "100%", children: /* @__PURE__ */ e(I, { ownerState: t, children: /* @__PURE__ */ e(
72
- u,
70
+ /* @__PURE__ */ e(x, { heightRelativeToParent: "100%", children: /* @__PURE__ */ e(I, { ownerState: i, children: /* @__PURE__ */ e(
71
+ O,
73
72
  {
74
73
  variables: r.variables,
75
- template: p,
74
+ template: s,
76
75
  extraData: r.description ? [
77
76
  {
78
77
  title: "Details",
@@ -84,7 +83,7 @@ function S(m) {
84
83
  ) }) })
85
84
  ] })
86
85
  ] }) });
87
- }
86
+ };
88
87
  export {
89
88
  S as ObjectProfileCard
90
89
  };
@@ -3,8 +3,7 @@ import { Typography as l, Divider as h, Box as k, ListItem as I, Checkbox as w,
3
3
  import S from "lodash";
4
4
  import { usePaginatedListLogic as _ } from "./logic.js";
5
5
  import { PaginatedListRoot as E, PaginatedListHeader as D, PaginatedListContent as j, PaginatedListList as A, PaginatedListPagination as F } from "./styled.js";
6
- const N = [5, 10, 25, 50];
7
- function U(g) {
6
+ const N = [5, 10, 25, 50], U = (g) => {
8
7
  const {
9
8
  title: t,
10
9
  displayData: r,
@@ -93,7 +92,7 @@ function U(g) {
93
92
  ]
94
93
  }
95
94
  );
96
- }
95
+ };
97
96
  export {
98
97
  U as PaginatedList
99
98
  };
@@ -0,0 +1,10 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { usePlaceholderLogic as t } from "./logic.js";
3
+ import { PlaceholderRoot as c } from "./styled.js";
4
+ const i = (e) => {
5
+ const { state: o } = t(e);
6
+ return /* @__PURE__ */ r(c, { ownerState: o.ownerState, sx: e.sx, children: e.children });
7
+ };
8
+ export {
9
+ i as Placeholder
10
+ };
@@ -0,0 +1,12 @@
1
+ import { useThemeProps as r } from "@mui/material";
2
+ const p = (e) => {
3
+ const o = { ...r({ props: e, name: "HCPlaceholder" }) };
4
+ return {
5
+ refs: {},
6
+ state: { ownerState: o },
7
+ actions: {}
8
+ };
9
+ };
10
+ export {
11
+ p as usePlaceholderLogic
12
+ };
@@ -0,0 +1,32 @@
1
+ import { styled as a, Box as l } from "@mui/material";
2
+ const s = (o) => o !== "ownerState", p = a(l, {
3
+ name: "HCPlaceholder",
4
+ slot: "root",
5
+ shouldForwardProp: s
6
+ })(({ theme: o, ownerState: t }) => ({
7
+ position: "absolute",
8
+ width: t.width ?? "auto",
9
+ zIndex: 1100,
10
+ transition: "all .3s",
11
+ ...t.placement === "TOP" && {
12
+ top: o.spacing(1),
13
+ left: "50%",
14
+ transform: "translate(-50%, 0)"
15
+ },
16
+ ...t.placement === "RIGHT" && {
17
+ top: o.spacing(1),
18
+ right: o.spacing(1)
19
+ },
20
+ ...t.placement === "BOTTOM" && {
21
+ bottom: o.spacing(1),
22
+ left: "50%",
23
+ transform: "translate(-50%, 0)"
24
+ },
25
+ ...t.placement === "LEFT" && {
26
+ top: o.spacing(1),
27
+ left: o.spacing(1)
28
+ }
29
+ }));
30
+ export {
31
+ p as PlaceholderRoot
32
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Typography as e } from "@mui/material";
3
+ import { PositionalTooltipRoot as m } from "./styled.js";
4
+ const y = ({
5
+ show: t,
6
+ text: i,
7
+ top: n = 0,
8
+ left: p = 0,
9
+ topOffset: l = 7,
10
+ leftOffset: a = 7,
11
+ sx: o
12
+ }) => t ? /* @__PURE__ */ r(
13
+ m,
14
+ {
15
+ sx: [
16
+ { top: n + l, left: p + a },
17
+ ...Array.isArray(o) ? o : [o]
18
+ ],
19
+ children: /* @__PURE__ */ r(e, { variant: "caption", children: i })
20
+ }
21
+ ) : null;
22
+ export {
23
+ y as PositionalTooltip
24
+ };
@@ -0,0 +1,17 @@
1
+ import { styled as i, Box as a } from "@mui/material";
2
+ const p = i(a, {
3
+ name: "HCPositionalTooltip",
4
+ slot: "root"
5
+ })(({ theme: o }) => ({
6
+ position: "absolute",
7
+ paddingLeft: o.spacing(1.5),
8
+ paddingRight: o.spacing(1.5),
9
+ paddingTop: o.spacing(0.25),
10
+ paddingBottom: o.spacing(0.25),
11
+ borderRadius: o.spacing(0.25),
12
+ background: "rgba(0,0,0,0.85)",
13
+ color: "#fff"
14
+ }));
15
+ export {
16
+ p as PositionalTooltipRoot
17
+ };