@hybridcore/ui 1.1.3 → 1.2.0

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 (72) hide show
  1. package/dist/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
  2. package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
  3. package/dist/Checkbox-DP6_qp1v.js +469 -0
  4. package/dist/Collapse-9egEADkh.js +296 -0
  5. package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
  6. package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
  7. package/dist/FormControlLabel-j_atSYQA.js +827 -0
  8. package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
  9. package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
  10. package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
  11. package/dist/ListItem-BFDUUjHt.js +428 -0
  12. package/dist/MenuItem-BejUFNIP.js +233 -0
  13. package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
  14. package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
  15. package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
  16. package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
  17. package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/index.js +34 -0
  21. package/dist/components/collapsible-card/style.js +575 -0
  22. package/dist/components/confirm/dialog.js +5 -5
  23. package/dist/components/container/index.js +6 -6
  24. package/dist/components/context-menu/index.js +191 -603
  25. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  26. package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
  27. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  28. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  29. package/dist/components/geometry-picker/edit/index.js +1 -1
  30. package/dist/components/geometry-picker/geometry/index.js +1 -1
  31. package/dist/components/geometry-picker/index.js +2 -2
  32. package/dist/components/geometry-picker/kml/index.js +1 -1
  33. package/dist/components/geometry-picker/map/index.js +1 -1
  34. package/dist/components/geometry-picker/map/logic.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/map/helpers/ol.js +2 -2
  37. package/dist/components/map/index.js +2 -2
  38. package/dist/components/map/logic.js +1 -1
  39. package/dist/components/map/styled.js +89 -6
  40. package/dist/components/search-input/index.js +3 -3
  41. package/dist/components/template-property-filters/index.js +78 -0
  42. package/dist/components/template-property-filters/property.js +7019 -0
  43. package/dist/components/tree-select/index.js +14 -13
  44. package/dist/components/treeview-filter/index.js +263 -328
  45. package/dist/components/treeview-filter/item/index.js +1 -1
  46. package/dist/components/treeview-filter/item-label/index.js +2 -2
  47. package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
  48. package/dist/createSvgIcon-R_PakhKf.js +213 -0
  49. package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
  50. package/dist/debounce-46wSf_lW.js +15 -0
  51. package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
  52. package/dist/index-C7W2wuUG.js +609 -0
  53. package/dist/index-DHnXB0CB.js +287 -0
  54. package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
  55. package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
  56. package/dist/main.d.ts +138 -0
  57. package/dist/main.js +1 -1
  58. package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
  59. package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
  60. package/dist/styled-CHMAYxVs.js +142 -0
  61. package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
  62. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  63. package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
  64. package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
  65. package/dist/useThemeProps-D4or2IlT.js +62 -0
  66. package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
  67. package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
  68. package/package.json +1 -1
  69. package/dist/Checkbox-DostZSwR.js +0 -673
  70. package/dist/index-Bw_m9ult.js +0 -1105
  71. package/dist/index-wW2D1aTG.js +0 -957
  72. package/dist/styled-C43K9x7T.js +0 -229
@@ -0,0 +1,233 @@
1
+ import { a as l, _ as L } from "./extends-C3382pL0.js";
2
+ import * as d from "react";
3
+ import { P as t } from "./createTheme-oOCi1S_n.js";
4
+ import { g as V, u as _, c as x, a as j } from "./chainPropTypes-BmidnkZm.js";
5
+ import { g as D, s as E, r as F, a as p } from "./styled-Wx2vv4j8.js";
6
+ import { L as I } from "./List-CgBXAAKA.js";
7
+ import { jsx as $ } from "react/jsx-runtime";
8
+ import { B as G, b as U, a as S } from "./ButtonBase-C7CHOX3y.js";
9
+ import { l as O, a as M } from "./listItemTextClasses-CaI8l2PD.js";
10
+ const N = V("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
11
+ function H(e) {
12
+ return D("MuiMenuItem", e);
13
+ }
14
+ const n = V("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), W = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"], h = (e, o) => {
15
+ const {
16
+ ownerState: s
17
+ } = e;
18
+ return [o.root, s.dense && o.dense, s.divider && o.divider, !s.disableGutters && o.gutters];
19
+ }, z = (e) => {
20
+ const {
21
+ disabled: o,
22
+ dense: s,
23
+ divider: a,
24
+ disableGutters: c,
25
+ selected: u,
26
+ classes: i
27
+ } = e, r = j({
28
+ root: ["root", s && "dense", o && "disabled", !c && "gutters", a && "divider", u && "selected"]
29
+ }, H, i);
30
+ return l({}, i, r);
31
+ }, A = E(G, {
32
+ shouldForwardProp: (e) => F(e) || e === "classes",
33
+ name: "MuiMenuItem",
34
+ slot: "Root",
35
+ overridesResolver: h
36
+ })(({
37
+ theme: e,
38
+ ownerState: o
39
+ }) => l({}, e.typography.body1, {
40
+ display: "flex",
41
+ justifyContent: "flex-start",
42
+ alignItems: "center",
43
+ position: "relative",
44
+ textDecoration: "none",
45
+ minHeight: 48,
46
+ paddingTop: 6,
47
+ paddingBottom: 6,
48
+ boxSizing: "border-box",
49
+ whiteSpace: "nowrap"
50
+ }, !o.disableGutters && {
51
+ paddingLeft: 16,
52
+ paddingRight: 16
53
+ }, o.divider && {
54
+ borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
55
+ backgroundClip: "padding-box"
56
+ }, {
57
+ "&:hover": {
58
+ textDecoration: "none",
59
+ backgroundColor: (e.vars || e).palette.action.hover,
60
+ // Reset on touch devices, it doesn't add specificity
61
+ "@media (hover: none)": {
62
+ backgroundColor: "transparent"
63
+ }
64
+ },
65
+ [`&.${n.selected}`]: {
66
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p(e.palette.primary.main, e.palette.action.selectedOpacity),
67
+ [`&.${n.focusVisible}`]: {
68
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : p(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
69
+ }
70
+ },
71
+ [`&.${n.selected}:hover`]: {
72
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : p(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
73
+ // Reset on touch devices, it doesn't add specificity
74
+ "@media (hover: none)": {
75
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p(e.palette.primary.main, e.palette.action.selectedOpacity)
76
+ }
77
+ },
78
+ [`&.${n.focusVisible}`]: {
79
+ backgroundColor: (e.vars || e).palette.action.focus
80
+ },
81
+ [`&.${n.disabled}`]: {
82
+ opacity: (e.vars || e).palette.action.disabledOpacity
83
+ },
84
+ [`& + .${N.root}`]: {
85
+ marginTop: e.spacing(1),
86
+ marginBottom: e.spacing(1)
87
+ },
88
+ [`& + .${N.inset}`]: {
89
+ marginLeft: 52
90
+ },
91
+ [`& .${O.root}`]: {
92
+ marginTop: 0,
93
+ marginBottom: 0
94
+ },
95
+ [`& .${O.inset}`]: {
96
+ paddingLeft: 36
97
+ },
98
+ [`& .${M.root}`]: {
99
+ minWidth: 36
100
+ }
101
+ }, !o.dense && {
102
+ [e.breakpoints.up("sm")]: {
103
+ minHeight: "auto"
104
+ }
105
+ }, o.dense && l({
106
+ minHeight: 32,
107
+ // https://m2.material.io/components/menus#specs > Dense
108
+ paddingTop: 4,
109
+ paddingBottom: 4
110
+ }, e.typography.body2, {
111
+ [`& .${M.root} svg`]: {
112
+ fontSize: "1.25rem"
113
+ }
114
+ }))), q = /* @__PURE__ */ d.forwardRef(function(o, s) {
115
+ const a = _({
116
+ props: o,
117
+ name: "MuiMenuItem"
118
+ }), {
119
+ autoFocus: c = !1,
120
+ component: u = "li",
121
+ dense: i = !1,
122
+ divider: m = !1,
123
+ disableGutters: r = !1,
124
+ focusVisibleClassName: R,
125
+ role: k = "menuitem",
126
+ tabIndex: g,
127
+ className: w
128
+ } = a, T = L(a, W), v = d.useContext(I), y = d.useMemo(() => ({
129
+ dense: i || v.dense || !1,
130
+ disableGutters: r
131
+ }), [v.dense, i, r]), b = d.useRef(null);
132
+ U(() => {
133
+ c && (b.current ? b.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
134
+ }, [c]);
135
+ const B = l({}, a, {
136
+ dense: y.dense,
137
+ divider: m,
138
+ disableGutters: r
139
+ }), f = z(a), P = S(b, s);
140
+ let C;
141
+ return a.disabled || (C = g !== void 0 ? g : -1), /* @__PURE__ */ $(I.Provider, {
142
+ value: y,
143
+ children: /* @__PURE__ */ $(A, l({
144
+ ref: P,
145
+ role: k,
146
+ tabIndex: C,
147
+ component: u,
148
+ focusVisibleClassName: x(f.focusVisible, R),
149
+ className: x(f.root, w)
150
+ }, T, {
151
+ ownerState: B,
152
+ classes: f
153
+ }))
154
+ });
155
+ });
156
+ process.env.NODE_ENV !== "production" && (q.propTypes = {
157
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
158
+ // │ These PropTypes are generated from the TypeScript type definitions. │
159
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
160
+ // └─────────────────────────────────────────────────────────────────────┘
161
+ /**
162
+ * If `true`, the list item is focused during the first mount.
163
+ * Focus will also be triggered if the value changes from false to true.
164
+ * @default false
165
+ */
166
+ autoFocus: t.bool,
167
+ /**
168
+ * The content of the component.
169
+ */
170
+ children: t.node,
171
+ /**
172
+ * Override or extend the styles applied to the component.
173
+ */
174
+ classes: t.object,
175
+ /**
176
+ * @ignore
177
+ */
178
+ className: t.string,
179
+ /**
180
+ * The component used for the root node.
181
+ * Either a string to use a HTML element or a component.
182
+ */
183
+ component: t.elementType,
184
+ /**
185
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
186
+ * The prop defaults to the value inherited from the parent Menu component.
187
+ * @default false
188
+ */
189
+ dense: t.bool,
190
+ /**
191
+ * @ignore
192
+ */
193
+ disabled: t.bool,
194
+ /**
195
+ * If `true`, the left and right padding is removed.
196
+ * @default false
197
+ */
198
+ disableGutters: t.bool,
199
+ /**
200
+ * If `true`, a 1px light border is added to the bottom of the menu item.
201
+ * @default false
202
+ */
203
+ divider: t.bool,
204
+ /**
205
+ * This prop can help identify which element has keyboard focus.
206
+ * The class name will be applied when the element gains the focus through keyboard interaction.
207
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
208
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
209
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
210
+ * if needed.
211
+ */
212
+ focusVisibleClassName: t.string,
213
+ /**
214
+ * @ignore
215
+ */
216
+ role: t.string,
217
+ /**
218
+ * If `true`, the component is selected.
219
+ * @default false
220
+ */
221
+ selected: t.bool,
222
+ /**
223
+ * The system prop that allows defining system overrides as well as additional CSS styles.
224
+ */
225
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
226
+ /**
227
+ * @default 0
228
+ */
229
+ tabIndex: t.number
230
+ });
231
+ export {
232
+ q as M
233
+ };
@@ -1,12 +1,12 @@
1
1
  import { _ as $, a as n } from "./extends-C3382pL0.js";
2
2
  import * as T from "react";
3
- import { P as e } from "./createTheme-agWfFD64.js";
4
- import { s as c, r as h, g as P } from "./styled-Iq9jsO4F.js";
3
+ import { P as e } from "./createTheme-oOCi1S_n.js";
4
+ import { s as c, r as h, g as P } from "./styled-Wx2vv4j8.js";
5
5
  import { jsx as a, jsxs as A } from "react/jsx-runtime";
6
6
  import { u as S } from "./useFormControl-CatNKXAi.js";
7
- import { i as z, b as M, r as E, c as q, d as U, f as D, e as V } from "./FormControl-BiAFm76F.js";
8
- import { g as H, u as G, a as J } from "./chainPropTypes-DtBfUj5o.js";
9
- import { r as K } from "./ButtonBase-BYmh3G5j.js";
7
+ import { i as z, b as M, r as E, c as q, d as U, f as D, e as V } from "./FormControl-Cj5nc-Nv.js";
8
+ import { g as H, u as G, a as J } from "./chainPropTypes-BmidnkZm.js";
9
+ import { r as K } from "./ButtonBase-C7CHOX3y.js";
10
10
  var N;
11
11
  const Q = ["children", "classes", "className", "label", "notched"], X = c("fieldset", {
12
12
  shouldForwardProp: h
@@ -1,9 +1,9 @@
1
1
  import { a as l, _ as P } from "./extends-C3382pL0.js";
2
2
  import * as h from "react";
3
- import { P as t } from "./createTheme-agWfFD64.js";
4
- import { g as N, u as $, c as T, b as I, a as R } from "./chainPropTypes-DtBfUj5o.js";
5
- import { g as q, s as x, a as p } from "./styled-Iq9jsO4F.js";
6
- import { u as E } from "./useTheme-CeyGVuQP.js";
3
+ import { P as t } from "./createTheme-oOCi1S_n.js";
4
+ import { g as N, u as $, c as T, b as I, a as R } from "./chainPropTypes-BmidnkZm.js";
5
+ import { g as q, s as x, a as p } from "./styled-Wx2vv4j8.js";
6
+ import { u as E } from "./useTheme-CD5DEi5n.js";
7
7
  import { jsx as M } from "react/jsx-runtime";
8
8
  function O(e) {
9
9
  const o = typeof e;