@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,84 @@
1
+ import { styled as e, TextField as l, FormGroup as a, Box as o, Button as m, FormLabel as n } from "@mui/material";
2
+ const s = e("form", {
3
+ name: "HCTemplateForm",
4
+ slot: "root"
5
+ })({}), p = e(l, {
6
+ name: "HCTemplateForm",
7
+ slot: "field"
8
+ })(({ theme: t }) => ({
9
+ marginBottom: t.spacing(2)
10
+ })), c = e(a, {
11
+ name: "HCTemplateForm",
12
+ slot: "fieldGroup"
13
+ })(({ theme: t }) => ({
14
+ marginBottom: t.spacing(2)
15
+ })), i = e(a, {
16
+ name: "HCTemplateForm",
17
+ slot: "checkboxesRow"
18
+ })(({ theme: t }) => ({
19
+ marginBottom: t.spacing(2)
20
+ })), T = e(o, {
21
+ name: "HCTemplateForm",
22
+ slot: "actionsRow"
23
+ })(({ theme: t }) => ({
24
+ display: "flex",
25
+ justifyContent: "space-between",
26
+ marginTop: t.spacing(3)
27
+ })), F = e(o, {
28
+ name: "HCTemplateForm",
29
+ slot: "actionsRight"
30
+ })({}), C = e(m, {
31
+ name: "HCTemplateForm",
32
+ slot: "cancelButton"
33
+ })({
34
+ textTransform: "none"
35
+ }), f = e(m, {
36
+ name: "HCTemplateForm",
37
+ slot: "saveButton"
38
+ })({
39
+ textTransform: "none"
40
+ }), g = e(m, {
41
+ name: "HCTemplateForm",
42
+ slot: "extraSaveButton"
43
+ })(({ theme: t }) => ({
44
+ marginLeft: t.spacing(1),
45
+ textTransform: "none"
46
+ })), u = e(n, {
47
+ name: "HCTemplateForm",
48
+ slot: "topLabel"
49
+ })(({ theme: t }) => ({
50
+ display: "block",
51
+ marginBottom: t.spacing(0.5)
52
+ })), B = e(o, {
53
+ name: "HCTemplateForm",
54
+ slot: "leftLayout"
55
+ })(({ theme: t }) => ({
56
+ display: "flex",
57
+ alignItems: "center",
58
+ marginBottom: t.spacing(2)
59
+ })), H = e(n, {
60
+ name: "HCTemplateForm",
61
+ slot: "leftLabel"
62
+ })({
63
+ width: "32%"
64
+ }), x = e(o, {
65
+ name: "HCTemplateForm",
66
+ slot: "leftContent"
67
+ })({
68
+ width: "68%"
69
+ });
70
+ export {
71
+ F as TemplateFormActionsRight,
72
+ T as TemplateFormActionsRow,
73
+ C as TemplateFormCancelButton,
74
+ i as TemplateFormCheckboxesRow,
75
+ g as TemplateFormExtraSaveButton,
76
+ p as TemplateFormField,
77
+ c as TemplateFormFieldGroup,
78
+ x as TemplateFormLeftContent,
79
+ H as TemplateFormLeftLabel,
80
+ B as TemplateFormLeftLayout,
81
+ s as TemplateFormRoot,
82
+ f as TemplateFormSaveButton,
83
+ u as TemplateFormTopLabel
84
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { TextOverflowRoot as o } from "./styled.js";
3
+ const l = (t) => /* @__PURE__ */ e(o, { title: t.title, sx: t.sx, children: t.children });
4
+ export {
5
+ l as TextOverflow
6
+ };
@@ -0,0 +1,13 @@
1
+ import { styled as e, Box as o } from "@mui/material";
2
+ const l = e(o, {
3
+ name: "HCTextOverflow",
4
+ slot: "root"
5
+ })({
6
+ display: "table-cell",
7
+ whiteSpace: "nowrap",
8
+ textOverflow: "ellipsis",
9
+ overflow: "hidden"
10
+ });
11
+ export {
12
+ l as TextOverflowRoot
13
+ };
@@ -1,9 +1,9 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import { Timeline as C, TimelineItem as v, TimelineOppositeContent as M, TimelineSeparator as S, TimelineConnector as d, TimelineContent as W } from "@mui/lab";
3
3
  import { Skeleton as b, Typography as o, Divider as c, Box as k, Button as w } from "@mui/material";
4
4
  import { useTimelineLogic as D } from "./logic.js";
5
5
  import { TimelineRoot as h, TimelineContentWrap as m, TimelineHeader as L, TimelineDotStyled as j, LoadMoreWrap as B } from "./styled.js";
6
- function q(p) {
6
+ const q = (p) => {
7
7
  const {
8
8
  items: s,
9
9
  hasMore: T,
@@ -16,11 +16,11 @@ function q(p) {
16
16
  sx: l,
17
17
  other: a
18
18
  } = D(p);
19
- return u ? /* @__PURE__ */ e(h, { ownerState: i, sx: l, ...a, children: /* @__PURE__ */ e(m, { ownerState: i, children: /* @__PURE__ */ e(b, { variant: "rectangular", width: "100%", height: "100%" }) }) }) : /* @__PURE__ */ n(h, { ownerState: i, sx: l, ...a, children: [
19
+ return u ? /* @__PURE__ */ e(h, { ownerState: i, sx: l, ...a, children: /* @__PURE__ */ e(m, { ownerState: i, children: /* @__PURE__ */ e(b, { variant: "rectangular", width: "100%", height: "100%" }) }) }) : /* @__PURE__ */ r(h, { ownerState: i, sx: l, ...a, children: [
20
20
  t && /* @__PURE__ */ e(L, { ownerState: i, children: /* @__PURE__ */ e(o, { variant: "h2", children: t }) }),
21
- /* @__PURE__ */ n(m, { ownerState: i, children: [
21
+ /* @__PURE__ */ r(m, { ownerState: i, children: [
22
22
  /* @__PURE__ */ e(c, {}),
23
- /* @__PURE__ */ e(C, { children: s.map((r) => /* @__PURE__ */ n(v, { children: [
23
+ /* @__PURE__ */ e(C, { children: s.map((n) => /* @__PURE__ */ r(v, { children: [
24
24
  /* @__PURE__ */ e(
25
25
  M,
26
26
  {
@@ -28,10 +28,10 @@ function q(p) {
28
28
  align: "right",
29
29
  variant: "caption",
30
30
  color: "text.secondary",
31
- children: g(r)
31
+ children: g(n)
32
32
  }
33
33
  ),
34
- /* @__PURE__ */ n(S, { children: [
34
+ /* @__PURE__ */ r(S, { children: [
35
35
  /* @__PURE__ */ e(d, {}),
36
36
  /* @__PURE__ */ e(j, { children: f || /* @__PURE__ */ e(
37
37
  k,
@@ -46,16 +46,16 @@ function q(p) {
46
46
  ) }),
47
47
  /* @__PURE__ */ e(d, {})
48
48
  ] }),
49
- /* @__PURE__ */ n(W, { sx: { py: "12px", px: 2 }, children: [
50
- /* @__PURE__ */ e(o, { variant: "body2", component: "span", children: r.title }),
51
- /* @__PURE__ */ e(o, { component: "span", children: r.description })
49
+ /* @__PURE__ */ r(W, { sx: { py: "12px", px: 2 }, children: [
50
+ /* @__PURE__ */ e(o, { variant: "body2", component: "span", children: n.title }),
51
+ /* @__PURE__ */ e(o, { component: "span", children: n.description })
52
52
  ] })
53
- ] }, r.id)) }),
53
+ ] }, n.id)) }),
54
54
  /* @__PURE__ */ e(c, {}),
55
55
  T && /* @__PURE__ */ e(B, { ownerState: i, children: /* @__PURE__ */ e(w, { onClick: x, fullWidth: !0, size: "large", children: "Load More" }) })
56
56
  ] })
57
57
  ] });
58
- }
58
+ };
59
59
  export {
60
60
  q as TimelineWidget
61
61
  };
@@ -0,0 +1,35 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { FormControlLabel as r, Radio as d, Button as u, Tooltip as m, IconButton as h } from "@mui/material";
3
+ import { useToggleViewButtonLogic as s } from "./logic.js";
4
+ import { ToggleViewButtonRoot as l } from "./styled.js";
5
+ const b = (t) => {
6
+ const { state: a, actions: i } = s(t), { ownerState: o, isActive: n, type: c } = a;
7
+ return c === "radio" ? /* @__PURE__ */ e(l, { ownerState: o, sx: t.sx, children: /* @__PURE__ */ e(
8
+ r,
9
+ {
10
+ value: t.view,
11
+ control: /* @__PURE__ */ e(d, { size: t.size }),
12
+ label: t.label,
13
+ sx: t.size === "small" ? { "& .MuiTypography-root": { fontSize: 14 } } : void 0,
14
+ onClick: i.handleClick
15
+ }
16
+ ) }) : c === "button" ? /* @__PURE__ */ e(l, { ownerState: o, sx: t.sx, children: /* @__PURE__ */ e(
17
+ u,
18
+ {
19
+ variant: n ? "contained" : "outlined",
20
+ onClick: i.handleClick,
21
+ startIcon: t.icon,
22
+ children: t.label
23
+ }
24
+ ) }) : /* @__PURE__ */ e(l, { ownerState: o, sx: t.sx, children: /* @__PURE__ */ e(m, { title: t.label, placement: "top", children: /* @__PURE__ */ e(
25
+ h,
26
+ {
27
+ color: n ? "primary" : "default",
28
+ onClick: i.handleClick,
29
+ children: t.icon
30
+ }
31
+ ) }) });
32
+ };
33
+ export {
34
+ b as ToggleViewButton
35
+ };
@@ -0,0 +1,22 @@
1
+ import { useThemeProps as s } from "@mui/material";
2
+ const a = (c) => {
3
+ const e = s({
4
+ props: c,
5
+ name: "HCToggleViewButton"
6
+ }), t = e.type ?? "icononly", o = e.currentView === e.view, i = {
7
+ ...e,
8
+ type: t,
9
+ isActive: o
10
+ };
11
+ return {
12
+ refs: {},
13
+ state: { ownerState: i, isActive: o, type: t },
14
+ actions: { handleClick: () => {
15
+ var n;
16
+ (n = e.onClick) == null || n.call(e, e.view);
17
+ } }
18
+ };
19
+ };
20
+ export {
21
+ a as useToggleViewButtonLogic
22
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as t, Box as e } from "@mui/material";
2
+ const l = (o) => o !== "ownerState", r = t(e, {
3
+ name: "HCToggleViewButton",
4
+ slot: "root",
5
+ shouldForwardProp: l
6
+ })({
7
+ display: "inline-flex"
8
+ });
9
+ export {
10
+ r as ToggleViewButtonRoot
11
+ };
@@ -3,7 +3,7 @@ import c from "lodash";
3
3
  import { TreeViewFilter as T } from "../treeview-filter/index.js";
4
4
  import { useTreeSelectLogic as f } from "./logic.js";
5
5
  import { TreeSelectRoot as g, TreeSelectLabel as S, TreeSelectFormControl as x, TreeSelectInput as C, TreeSelectMenuItem as v, TreeSelectDialog as I, TreeSelectDialogContent as W, TreeSelectDialogActions as D, TreeSelectConfirmButton as L } from "./styled.js";
6
- import { I as O } from "../../InputLabel-rEwwnD4_.js";
6
+ import { I as O } from "../../InputLabel-Dd8RrneV.js";
7
7
  const K = (e) => {
8
8
  const { state: h, actions: t } = f(e), { ownerState: s, open: u, expanded: m, selectedItems: i, idKey: o, variant: r, labelPosition: a } = h;
9
9
  return /* @__PURE__ */ d(g, { ownerState: s, sx: e.sx, children: [
@@ -0,0 +1,4 @@
1
+ import { VisuallyHiddenInput as i } from "./styled.js";
2
+ export {
3
+ i as VisuallyHiddenInput
4
+ };
@@ -0,0 +1,18 @@
1
+ import { styled as t } from "@mui/material";
2
+ const o = t("input", {
3
+ name: "HCVisuallyHiddenInput",
4
+ slot: "root"
5
+ })({
6
+ clip: "rect(0 0 0 0)",
7
+ clipPath: "inset(50%)",
8
+ height: 1,
9
+ overflow: "hidden",
10
+ position: "absolute",
11
+ bottom: 0,
12
+ left: 0,
13
+ whiteSpace: "nowrap",
14
+ width: 1
15
+ });
16
+ export {
17
+ o as VisuallyHiddenInput
18
+ };
@@ -0,0 +1,9 @@
1
+ function u(...i) {
2
+ return i.reduce((n, t) => t == null ? n : function(...e) {
3
+ n.apply(this, e), t.apply(this, e);
4
+ }, () => {
5
+ });
6
+ }
7
+ export {
8
+ u as c
9
+ };
@@ -1,103 +1,106 @@
1
- import { _ as b, a as $ } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as _ from "react";
3
- import { jsxs as I, jsx as w } from "react/jsx-runtime";
1
+ import { _ as b, a as S } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
+ import * as g from "react";
3
+ import { jsxs as I, jsx as _ } from "react/jsx-runtime";
4
4
  import { P as o } from "./index-C__OZmYy.js";
5
- import { b as T, g as N, s as C, u as R, c as O, a as B } from "./styled-Bsjp3kFh.js";
6
- import { c as y } from "./capitalize-quqpGCFu.js";
7
- function j(e) {
8
- return T("MuiSvgIcon", e);
5
+ import { c as w } from "./clsx-OuTLNxxd.js";
6
+ import { a as C, g as N, s as T, b as v, u as R, c as O } from "./generateUtilityClasses-C3ivN9Ie.js";
7
+ function B(e) {
8
+ return C("MuiSvgIcon", e);
9
9
  }
10
10
  N("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
11
- const E = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], M = (e) => {
11
+ const j = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], A = (e) => {
12
12
  const {
13
13
  color: t,
14
14
  fontSize: n,
15
- classes: i
16
- } = e, r = {
17
- root: ["root", t !== "inherit" && `color${y(t)}`, `fontSize${y(n)}`]
15
+ classes: r
16
+ } = e, i = {
17
+ root: ["root", t !== "inherit" && `color${v(t)}`, `fontSize${v(n)}`]
18
18
  };
19
- return B(r, j, i);
20
- }, V = C("svg", {
19
+ return O(i, B, r);
20
+ }, E = T("svg", {
21
21
  name: "MuiSvgIcon",
22
22
  slot: "Root",
23
23
  overridesResolver: (e, t) => {
24
24
  const {
25
25
  ownerState: n
26
26
  } = e;
27
- return [t.root, n.color !== "inherit" && t[`color${y(n.color)}`], t[`fontSize${y(n.fontSize)}`]];
27
+ return [t.root, n.color !== "inherit" && t[`color${v(n.color)}`], t[`fontSize${v(n.fontSize)}`]];
28
28
  }
29
29
  })(({
30
30
  theme: e,
31
31
  ownerState: t
32
32
  }) => {
33
- var n, i, r, f, a, c, p, v, s, l, d, h, m, u, g, x, z;
33
+ var n, r, i, u, f, c, h, d, m, s, a, p, l;
34
34
  return {
35
35
  userSelect: "none",
36
36
  width: "1em",
37
37
  height: "1em",
38
38
  display: "inline-block",
39
- fill: "currentColor",
39
+ // the <svg> will define the property that has `currentColor`
40
+ // for example heroicons uses fill="none" and stroke="currentColor"
41
+ fill: t.hasSvgAsChild ? void 0 : "currentColor",
40
42
  flexShrink: 0,
41
- transition: (n = e.transitions) == null || (i = n.create) == null ? void 0 : i.call(n, "fill", {
42
- duration: (r = e.transitions) == null || (f = r.duration) == null ? void 0 : f.shorter
43
+ transition: (n = e.transitions) == null || (r = n.create) == null ? void 0 : r.call(n, "fill", {
44
+ duration: (i = e.transitions) == null || (i = i.duration) == null ? void 0 : i.shorter
43
45
  }),
44
46
  fontSize: {
45
47
  inherit: "inherit",
46
- small: ((a = e.typography) == null || (c = a.pxToRem) == null ? void 0 : c.call(a, 20)) || "1.25rem",
47
- medium: ((p = e.typography) == null || (v = p.pxToRem) == null ? void 0 : v.call(p, 24)) || "1.5rem",
48
- large: ((s = e.typography) == null || (l = s.pxToRem) == null ? void 0 : l.call(s, 35)) || "2.1875rem"
48
+ small: ((u = e.typography) == null || (f = u.pxToRem) == null ? void 0 : f.call(u, 20)) || "1.25rem",
49
+ medium: ((c = e.typography) == null || (h = c.pxToRem) == null ? void 0 : h.call(c, 24)) || "1.5rem",
50
+ large: ((d = e.typography) == null || (m = d.pxToRem) == null ? void 0 : m.call(d, 35)) || "2.1875rem"
49
51
  }[t.fontSize],
50
52
  // TODO v5 deprecate, v6 remove for sx
51
- color: (d = (h = (e.vars || e).palette) == null || (m = h[t.color]) == null ? void 0 : m.main) != null ? d : {
52
- action: (u = (e.vars || e).palette) == null || (g = u.action) == null ? void 0 : g.active,
53
- disabled: (x = (e.vars || e).palette) == null || (z = x.action) == null ? void 0 : z.disabled,
53
+ color: (s = (a = (e.vars || e).palette) == null || (a = a[t.color]) == null ? void 0 : a.main) != null ? s : {
54
+ action: (p = (e.vars || e).palette) == null || (p = p.action) == null ? void 0 : p.active,
55
+ disabled: (l = (e.vars || e).palette) == null || (l = l.action) == null ? void 0 : l.disabled,
54
56
  inherit: void 0
55
57
  }[t.color]
56
58
  };
57
- }), S = /* @__PURE__ */ _.forwardRef(function(t, n) {
58
- const i = R({
59
+ }), y = /* @__PURE__ */ g.forwardRef(function(t, n) {
60
+ const r = R({
59
61
  props: t,
60
62
  name: "MuiSvgIcon"
61
63
  }), {
62
- children: r,
63
- className: f,
64
- color: a = "inherit",
64
+ children: i,
65
+ className: u,
66
+ color: f = "inherit",
65
67
  component: c = "svg",
66
- fontSize: p = "medium",
67
- htmlColor: v,
68
- inheritViewBox: s = !1,
69
- titleAccess: l,
70
- viewBox: d = "0 0 24 24"
71
- } = i, h = b(i, E), m = $({}, i, {
72
- color: a,
68
+ fontSize: h = "medium",
69
+ htmlColor: d,
70
+ inheritViewBox: m = !1,
71
+ titleAccess: s,
72
+ viewBox: a = "0 0 24 24"
73
+ } = r, p = b(r, j), l = /* @__PURE__ */ g.isValidElement(i) && i.type === "svg", x = S({}, r, {
74
+ color: f,
73
75
  component: c,
74
- fontSize: p,
76
+ fontSize: h,
75
77
  instanceFontSize: t.fontSize,
76
- inheritViewBox: s,
77
- viewBox: d
78
- }), u = {};
79
- s || (u.viewBox = d);
80
- const g = M(m);
81
- return /* @__PURE__ */ I(V, $({
78
+ inheritViewBox: m,
79
+ viewBox: a,
80
+ hasSvgAsChild: l
81
+ }), $ = {};
82
+ m || ($.viewBox = a);
83
+ const z = A(x);
84
+ return /* @__PURE__ */ I(E, S({
82
85
  as: c,
83
- className: O(g.root, f),
86
+ className: w(z.root, u),
84
87
  focusable: "false",
85
- color: v,
86
- "aria-hidden": l ? void 0 : !0,
87
- role: l ? "img" : void 0,
88
+ color: d,
89
+ "aria-hidden": s ? void 0 : !0,
90
+ role: s ? "img" : void 0,
88
91
  ref: n
89
- }, u, h, {
90
- ownerState: m,
91
- children: [r, l ? /* @__PURE__ */ w("title", {
92
- children: l
92
+ }, $, p, l && i.props, {
93
+ ownerState: x,
94
+ children: [l ? i.props.children : i, s ? /* @__PURE__ */ _("title", {
95
+ children: s
93
96
  }) : null]
94
97
  }));
95
98
  });
96
- process.env.NODE_ENV !== "production" && (S.propTypes = {
97
- // ----------------------------- Warning --------------------------------
98
- // | These PropTypes are generated from the TypeScript type definitions |
99
- // | To update them edit the d.ts file and run "yarn proptypes" |
100
- // ----------------------------------------------------------------------
99
+ process.env.NODE_ENV !== "production" && (y.propTypes = {
100
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
101
+ // These PropTypes are generated from the TypeScript type definitions.
102
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
103
+ // └─────────────────────────────────────────────────────────────────────┘
101
104
  /**
102
105
  * Node passed into the SVG element.
103
106
  */
@@ -113,7 +116,7 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
113
116
  /**
114
117
  * The color of the component.
115
118
  * It supports both default and custom theme colors, which can be added as shown in the
116
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
119
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
117
120
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
118
121
  * @default 'inherit'
119
122
  */
@@ -165,18 +168,18 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
165
168
  */
166
169
  viewBox: o.string
167
170
  });
168
- S.muiName = "SvgIcon";
169
- function L(e, t) {
170
- function n(i, r) {
171
- return /* @__PURE__ */ w(S, $({
171
+ y.muiName = "SvgIcon";
172
+ function k(e, t) {
173
+ function n(r, i) {
174
+ return /* @__PURE__ */ _(y, S({
172
175
  "data-testid": `${t}Icon`,
173
- ref: r
174
- }, i, {
176
+ ref: i
177
+ }, r, {
175
178
  children: e
176
179
  }));
177
180
  }
178
- return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = S.muiName, /* @__PURE__ */ _.memo(/* @__PURE__ */ _.forwardRef(n));
181
+ return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = y.muiName, /* @__PURE__ */ g.memo(/* @__PURE__ */ g.forwardRef(n));
179
182
  }
180
183
  export {
181
- L as c
184
+ k as c
182
185
  };
@@ -0,0 +1,62 @@
1
+ import { g as l } from "./_commonjsHelpers-BVfed4GL.js";
2
+ import { c as f } from "./createSvgIcon-Ch_cT8az.js";
3
+ import { C as d, b as p } from "./generateUtilityClasses-C3ivN9Ie.js";
4
+ import { d as g } from "./debounce-46wSf_lW.js";
5
+ import { o as b, a as v } from "./ownerWindow-wg6foiOE.js";
6
+ import { i as h, r as _, u as E } from "./unsupportedProp-DuqR2hj9.js";
7
+ import { s as N, a as C, b as I, u as S } from "./TransitionGroupContext-BDAp2T0O.js";
8
+ import { c as y } from "./createChainedFunction-C0nujS3O.js";
9
+ import { u as $ } from "./useId-BW-oWmul.js";
10
+ import { u as O } from "./useControlled-BYdyS7Pn.js";
11
+ import { u as P } from "./ButtonBase-BEF7oTOe.js";
12
+ var t = {};
13
+ function j(e, r) {
14
+ return process.env.NODE_ENV === "production" ? () => null : (s, o, n, u, i) => {
15
+ const c = n || "<<anonymous>>", m = i || o;
16
+ return typeof s[o] < "u" ? new Error(`The ${u} \`${m}\` of \`${c}\` is deprecated. ${r}`) : null;
17
+ };
18
+ }
19
+ const w = {
20
+ configure: (e) => {
21
+ process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
22
+ `)), d.configure(e);
23
+ }
24
+ }, F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
+ __proto__: null,
26
+ capitalize: p,
27
+ createChainedFunction: y,
28
+ createSvgIcon: f,
29
+ debounce: g,
30
+ deprecatedPropType: j,
31
+ isMuiElement: h,
32
+ ownerDocument: b,
33
+ ownerWindow: v,
34
+ requirePropFactory: _,
35
+ setRef: N,
36
+ unstable_ClassNameGenerator: w,
37
+ unstable_useEnhancedEffect: C,
38
+ unstable_useId: $,
39
+ unsupportedProp: E,
40
+ useControlled: O,
41
+ useEventCallback: I,
42
+ useForkRef: S,
43
+ useIsFocusVisible: P
44
+ }, Symbol.toStringTag, { value: "Module" })), T = /* @__PURE__ */ l(F);
45
+ var a;
46
+ function W() {
47
+ return a || (a = 1, function(e) {
48
+ "use client";
49
+ Object.defineProperty(e, "__esModule", {
50
+ value: !0
51
+ }), Object.defineProperty(e, "default", {
52
+ enumerable: !0,
53
+ get: function() {
54
+ return r.createSvgIcon;
55
+ }
56
+ });
57
+ var r = T;
58
+ }(t)), t;
59
+ }
60
+ export {
61
+ W as r
62
+ };
@@ -0,0 +1,15 @@
1
+ function i(o, u = 166) {
2
+ let e;
3
+ function t(...c) {
4
+ const n = () => {
5
+ o.apply(this, c);
6
+ };
7
+ clearTimeout(e), e = setTimeout(n, u);
8
+ }
9
+ return t.clear = () => {
10
+ clearTimeout(e);
11
+ }, t;
12
+ }
13
+ export {
14
+ i as d
15
+ };