@hybridcore/ui 1.6.13 → 1.6.14

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 (95) hide show
  1. package/dist/AccordionSummary-DUtr16g6.js +781 -0
  2. package/dist/Add-Bk8R160M.js +403 -0
  3. package/dist/Button-Cem3nbwc.js +357 -0
  4. package/dist/ButtonBase-DObmf4Q_.js +886 -0
  5. package/dist/Delete-CVJ6FeDn.js +203 -0
  6. package/dist/FormGroup-BRj1o7-E.js +89 -0
  7. package/dist/InputLabel-CjD30ZHz.js +341 -0
  8. package/dist/MenuItem-BKvRGLvM.js +233 -0
  9. package/dist/Modal-BVYydOr5.js +1156 -0
  10. package/dist/Paper-B1HV8GyO.js +582 -0
  11. package/dist/Select-Bfhvigsx.js +3914 -0
  12. package/dist/Source-BSZST_GH.js +4410 -0
  13. package/dist/SwitchBase-BEK49kdS.js +235 -0
  14. package/dist/Text-ChJRuaD8.js +2197 -0
  15. package/dist/TextField-Ca9ykixI.js +696 -0
  16. package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
  17. package/dist/Typography-D3X-Y5fh.js +178 -0
  18. package/dist/Vector-BmuhQO4p.js +3606 -0
  19. package/dist/Vector-DfTqQEln.js +1735 -0
  20. package/dist/WKT-2wsDT-nq.js +2310 -0
  21. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  22. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/index2.css +1 -1
  25. package/dist/assets/index3.css +1 -0
  26. package/dist/assets/index4.css +1 -0
  27. package/dist/clsx-OuTLNxxd.js +16 -0
  28. package/dist/components/button/styled.js +1 -1
  29. package/dist/components/charts/_common/format.js +126 -82
  30. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  31. package/dist/components/collapsible-card/index.js +30 -21
  32. package/dist/components/collapsible-card/styled.js +14 -16
  33. package/dist/components/color-picker/index.js +3358 -2228
  34. package/dist/components/color-picker/styled.js +7 -87
  35. package/dist/components/confirm/dialog.js +7 -89
  36. package/dist/components/confirm/index.js +1 -1
  37. package/dist/components/data-map/index.js +1 -1
  38. package/dist/components/data-map/logic.js +20 -20
  39. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  40. package/dist/components/date-range-picker/index.js +454 -466
  41. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  42. package/dist/components/duration-select/index.js +10 -10
  43. package/dist/components/duration-select/styled.js +1 -1
  44. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  45. package/dist/components/geometry-picker/edit/index.js +1 -1
  46. package/dist/components/geometry-picker/geometry/index.js +1 -1
  47. package/dist/components/geometry-picker/kml/index.js +11 -11
  48. package/dist/components/geometry-picker/map/logic.js +3656 -145
  49. package/dist/components/geometry-picker/map/style.js +17 -18
  50. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  51. package/dist/components/heat-map/index.js +1 -1
  52. package/dist/components/heat-map/logic.js +1924 -77
  53. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
  54. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  55. package/dist/components/map/helpers/mapbox.js +15 -17
  56. package/dist/components/map/helpers/ol.js +27 -386
  57. package/dist/components/map/index.js +10 -11
  58. package/dist/components/map/logic.js +22 -22
  59. package/dist/components/map/styled.js +27 -31
  60. package/dist/components/phone-input/index.js +9 -10
  61. package/dist/components/property-mapping/index.js +1 -1
  62. package/dist/components/prr-map/index.js +1 -1
  63. package/dist/components/prr-map/logic.js +26 -27
  64. package/dist/components/raster-grid-map/index.js +1 -1
  65. package/dist/components/raster-grid-map/logic.js +57 -60
  66. package/dist/components/sortable-list/index.js +1264 -1091
  67. package/dist/components/template-form/components/property-list/index.js +32 -36
  68. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  69. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  70. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  71. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  72. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  73. package/dist/components/tree-select/index.js +16 -16
  74. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  75. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  76. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  77. package/dist/debounce-46wSf_lW.js +15 -0
  78. package/dist/dialog-BtJhjyF5.js +664 -0
  79. package/dist/extends-C3382pL0.js +22 -0
  80. package/dist/formControlState-vgaj2ksH.js +10 -0
  81. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  82. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  83. package/dist/index-DH6qsPBn.js +153 -0
  84. package/dist/index.esm-DAf19hyR.js +318 -0
  85. package/dist/math-Bvt2Ubuz.js +704 -0
  86. package/dist/ol-yOE-NV0X.js +7465 -0
  87. package/dist/ownerWindow-wg6foiOE.js +10 -0
  88. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  89. package/dist/styled-DD4BkuVf.js +350 -0
  90. package/dist/useControlled-BYdyS7Pn.js +31 -0
  91. package/dist/useFormControl-CatNKXAi.js +10 -0
  92. package/dist/useId-BW-oWmul.js +19 -0
  93. package/dist/useSlot-u4t0X96G.js +42 -0
  94. package/package.json +1 -1
  95. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -0,0 +1,357 @@
1
+ import { a as t, _ as j } from "./extends-C3382pL0.js";
2
+ import * as p from "react";
3
+ import { P as n } from "./index-CblbdqjE.js";
4
+ import { c as m } from "./clsx-OuTLNxxd.js";
5
+ import { g as D, a as F, s as f, r as G, b as r, d as v, f as U, u as H, c as A } from "./generateUtilityClasses-Cc-owZ4J.js";
6
+ import { jsx as R, jsxs as q } from "react/jsx-runtime";
7
+ import { B as J } from "./ButtonBase-DObmf4Q_.js";
8
+ function K(o) {
9
+ return F("MuiButton", o);
10
+ }
11
+ const b = D("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), E = /* @__PURE__ */ p.createContext({});
12
+ process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
13
+ const N = /* @__PURE__ */ p.createContext(void 0);
14
+ process.env.NODE_ENV !== "production" && (N.displayName = "ButtonGroupButtonContext");
15
+ const Q = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], X = (o) => {
16
+ const {
17
+ color: a,
18
+ disableElevation: i,
19
+ fullWidth: l,
20
+ size: s,
21
+ variant: e,
22
+ classes: c
23
+ } = o, g = {
24
+ root: ["root", e, `${e}${r(a)}`, `size${r(s)}`, `${e}Size${r(s)}`, `color${r(a)}`, i && "disableElevation", l && "fullWidth"],
25
+ label: ["label"],
26
+ startIcon: ["icon", "startIcon", `iconSize${r(s)}`],
27
+ endIcon: ["icon", "endIcon", `iconSize${r(s)}`]
28
+ }, x = A(g, K, c);
29
+ return t({}, c, x);
30
+ }, h = (o) => t({}, o.size === "small" && {
31
+ "& > *:nth-of-type(1)": {
32
+ fontSize: 18
33
+ }
34
+ }, o.size === "medium" && {
35
+ "& > *:nth-of-type(1)": {
36
+ fontSize: 20
37
+ }
38
+ }, o.size === "large" && {
39
+ "& > *:nth-of-type(1)": {
40
+ fontSize: 22
41
+ }
42
+ }), Y = f(J, {
43
+ shouldForwardProp: (o) => G(o) || o === "classes",
44
+ name: "MuiButton",
45
+ slot: "Root",
46
+ overridesResolver: (o, a) => {
47
+ const {
48
+ ownerState: i
49
+ } = o;
50
+ return [a.root, a[i.variant], a[`${i.variant}${r(i.color)}`], a[`size${r(i.size)}`], a[`${i.variant}Size${r(i.size)}`], i.color === "inherit" && a.colorInherit, i.disableElevation && a.disableElevation, i.fullWidth && a.fullWidth];
51
+ }
52
+ })(({
53
+ theme: o,
54
+ ownerState: a
55
+ }) => {
56
+ var i, l;
57
+ const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
58
+ return t({}, o.typography.button, {
59
+ minWidth: 64,
60
+ padding: "6px 16px",
61
+ borderRadius: (o.vars || o).shape.borderRadius,
62
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
63
+ duration: o.transitions.duration.short
64
+ }),
65
+ "&:hover": t({
66
+ textDecoration: "none",
67
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
68
+ // Reset on touch devices, it doesn't add specificity
69
+ "@media (hover: none)": {
70
+ backgroundColor: "transparent"
71
+ }
72
+ }, a.variant === "text" && a.color !== "inherit" && {
73
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
74
+ // Reset on touch devices, it doesn't add specificity
75
+ "@media (hover: none)": {
76
+ backgroundColor: "transparent"
77
+ }
78
+ }, a.variant === "outlined" && a.color !== "inherit" && {
79
+ border: `1px solid ${(o.vars || o).palette[a.color].main}`,
80
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
81
+ // Reset on touch devices, it doesn't add specificity
82
+ "@media (hover: none)": {
83
+ backgroundColor: "transparent"
84
+ }
85
+ }, a.variant === "contained" && {
86
+ backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
87
+ boxShadow: (o.vars || o).shadows[4],
88
+ // Reset on touch devices, it doesn't add specificity
89
+ "@media (hover: none)": {
90
+ boxShadow: (o.vars || o).shadows[2],
91
+ backgroundColor: (o.vars || o).palette.grey[300]
92
+ }
93
+ }, a.variant === "contained" && a.color !== "inherit" && {
94
+ backgroundColor: (o.vars || o).palette[a.color].dark,
95
+ // Reset on touch devices, it doesn't add specificity
96
+ "@media (hover: none)": {
97
+ backgroundColor: (o.vars || o).palette[a.color].main
98
+ }
99
+ }),
100
+ "&:active": t({}, a.variant === "contained" && {
101
+ boxShadow: (o.vars || o).shadows[8]
102
+ }),
103
+ [`&.${b.focusVisible}`]: t({}, a.variant === "contained" && {
104
+ boxShadow: (o.vars || o).shadows[6]
105
+ }),
106
+ [`&.${b.disabled}`]: t({
107
+ color: (o.vars || o).palette.action.disabled
108
+ }, a.variant === "outlined" && {
109
+ border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
110
+ }, a.variant === "contained" && {
111
+ color: (o.vars || o).palette.action.disabled,
112
+ boxShadow: (o.vars || o).shadows[0],
113
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
114
+ })
115
+ }, a.variant === "text" && {
116
+ padding: "6px 8px"
117
+ }, a.variant === "text" && a.color !== "inherit" && {
118
+ color: (o.vars || o).palette[a.color].main
119
+ }, a.variant === "outlined" && {
120
+ padding: "5px 15px",
121
+ border: "1px solid currentColor"
122
+ }, a.variant === "outlined" && a.color !== "inherit" && {
123
+ color: (o.vars || o).palette[a.color].main,
124
+ border: o.vars ? `1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[a.color].main, 0.5)}`
125
+ }, a.variant === "contained" && {
126
+ color: o.vars ? (
127
+ // this is safe because grey does not change between default light/dark mode
128
+ o.vars.palette.text.primary
129
+ ) : (i = (l = o.palette).getContrastText) == null ? void 0 : i.call(l, o.palette.grey[300]),
130
+ backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
131
+ boxShadow: (o.vars || o).shadows[2]
132
+ }, a.variant === "contained" && a.color !== "inherit" && {
133
+ color: (o.vars || o).palette[a.color].contrastText,
134
+ backgroundColor: (o.vars || o).palette[a.color].main
135
+ }, a.color === "inherit" && {
136
+ color: "inherit",
137
+ borderColor: "currentColor"
138
+ }, a.size === "small" && a.variant === "text" && {
139
+ padding: "4px 5px",
140
+ fontSize: o.typography.pxToRem(13)
141
+ }, a.size === "large" && a.variant === "text" && {
142
+ padding: "8px 11px",
143
+ fontSize: o.typography.pxToRem(15)
144
+ }, a.size === "small" && a.variant === "outlined" && {
145
+ padding: "3px 9px",
146
+ fontSize: o.typography.pxToRem(13)
147
+ }, a.size === "large" && a.variant === "outlined" && {
148
+ padding: "7px 21px",
149
+ fontSize: o.typography.pxToRem(15)
150
+ }, a.size === "small" && a.variant === "contained" && {
151
+ padding: "4px 10px",
152
+ fontSize: o.typography.pxToRem(13)
153
+ }, a.size === "large" && a.variant === "contained" && {
154
+ padding: "8px 22px",
155
+ fontSize: o.typography.pxToRem(15)
156
+ }, a.fullWidth && {
157
+ width: "100%"
158
+ });
159
+ }, ({
160
+ ownerState: o
161
+ }) => o.disableElevation && {
162
+ boxShadow: "none",
163
+ "&:hover": {
164
+ boxShadow: "none"
165
+ },
166
+ [`&.${b.focusVisible}`]: {
167
+ boxShadow: "none"
168
+ },
169
+ "&:active": {
170
+ boxShadow: "none"
171
+ },
172
+ [`&.${b.disabled}`]: {
173
+ boxShadow: "none"
174
+ }
175
+ }), Z = f("span", {
176
+ name: "MuiButton",
177
+ slot: "StartIcon",
178
+ overridesResolver: (o, a) => {
179
+ const {
180
+ ownerState: i
181
+ } = o;
182
+ return [a.startIcon, a[`iconSize${r(i.size)}`]];
183
+ }
184
+ })(({
185
+ ownerState: o
186
+ }) => t({
187
+ display: "inherit",
188
+ marginRight: 8,
189
+ marginLeft: -4
190
+ }, o.size === "small" && {
191
+ marginLeft: -2
192
+ }, h(o))), w = f("span", {
193
+ name: "MuiButton",
194
+ slot: "EndIcon",
195
+ overridesResolver: (o, a) => {
196
+ const {
197
+ ownerState: i
198
+ } = o;
199
+ return [a.endIcon, a[`iconSize${r(i.size)}`]];
200
+ }
201
+ })(({
202
+ ownerState: o
203
+ }) => t({
204
+ display: "inherit",
205
+ marginRight: -4,
206
+ marginLeft: 8
207
+ }, o.size === "small" && {
208
+ marginRight: -2
209
+ }, h(o))), oo = /* @__PURE__ */ p.forwardRef(function(a, i) {
210
+ const l = p.useContext(E), s = p.useContext(N), e = U(l, a), c = H({
211
+ props: e,
212
+ name: "MuiButton"
213
+ }), {
214
+ children: g,
215
+ color: x = "primary",
216
+ component: y = "button",
217
+ className: O,
218
+ disabled: z = !1,
219
+ disableElevation: k = !1,
220
+ disableFocusRipple: C = !1,
221
+ endIcon: I,
222
+ focusVisibleClassName: T,
223
+ fullWidth: P = !1,
224
+ size: W = "medium",
225
+ startIcon: $,
226
+ type: B,
227
+ variant: S = "text"
228
+ } = c, M = j(c, Q), u = t({}, c, {
229
+ color: x,
230
+ component: y,
231
+ disabled: z,
232
+ disableElevation: k,
233
+ disableFocusRipple: C,
234
+ fullWidth: P,
235
+ size: W,
236
+ type: B,
237
+ variant: S
238
+ }), d = X(u), V = $ && /* @__PURE__ */ R(Z, {
239
+ className: d.startIcon,
240
+ ownerState: u,
241
+ children: $
242
+ }), _ = I && /* @__PURE__ */ R(w, {
243
+ className: d.endIcon,
244
+ ownerState: u,
245
+ children: I
246
+ }), L = s || "";
247
+ return /* @__PURE__ */ q(Y, t({
248
+ ownerState: u,
249
+ className: m(l.className, d.root, O, L),
250
+ component: y,
251
+ disabled: z,
252
+ focusRipple: !C,
253
+ focusVisibleClassName: m(d.focusVisible, T),
254
+ ref: i,
255
+ type: B
256
+ }, M, {
257
+ classes: d,
258
+ children: [V, g, _]
259
+ }));
260
+ });
261
+ process.env.NODE_ENV !== "production" && (oo.propTypes = {
262
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
263
+ // │ These PropTypes are generated from the TypeScript type definitions. │
264
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
265
+ // └─────────────────────────────────────────────────────────────────────┘
266
+ /**
267
+ * The content of the component.
268
+ */
269
+ children: n.node,
270
+ /**
271
+ * Override or extend the styles applied to the component.
272
+ */
273
+ classes: n.object,
274
+ /**
275
+ * @ignore
276
+ */
277
+ className: n.string,
278
+ /**
279
+ * The color of the component.
280
+ * It supports both default and custom theme colors, which can be added as shown in the
281
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
282
+ * @default 'primary'
283
+ */
284
+ color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
285
+ /**
286
+ * The component used for the root node.
287
+ * Either a string to use a HTML element or a component.
288
+ */
289
+ component: n.elementType,
290
+ /**
291
+ * If `true`, the component is disabled.
292
+ * @default false
293
+ */
294
+ disabled: n.bool,
295
+ /**
296
+ * If `true`, no elevation is used.
297
+ * @default false
298
+ */
299
+ disableElevation: n.bool,
300
+ /**
301
+ * If `true`, the keyboard focus ripple is disabled.
302
+ * @default false
303
+ */
304
+ disableFocusRipple: n.bool,
305
+ /**
306
+ * If `true`, the ripple effect is disabled.
307
+ *
308
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
309
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
310
+ * @default false
311
+ */
312
+ disableRipple: n.bool,
313
+ /**
314
+ * Element placed after the children.
315
+ */
316
+ endIcon: n.node,
317
+ /**
318
+ * @ignore
319
+ */
320
+ focusVisibleClassName: n.string,
321
+ /**
322
+ * If `true`, the button will take up the full width of its container.
323
+ * @default false
324
+ */
325
+ fullWidth: n.bool,
326
+ /**
327
+ * The URL to link to when the button is clicked.
328
+ * If defined, an `a` element will be used as the root node.
329
+ */
330
+ href: n.string,
331
+ /**
332
+ * The size of the component.
333
+ * `small` is equivalent to the dense button styling.
334
+ * @default 'medium'
335
+ */
336
+ size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
337
+ /**
338
+ * Element placed before the children.
339
+ */
340
+ startIcon: n.node,
341
+ /**
342
+ * The system prop that allows defining system overrides as well as additional CSS styles.
343
+ */
344
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
345
+ /**
346
+ * @ignore
347
+ */
348
+ type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
349
+ /**
350
+ * The variant to use.
351
+ * @default 'text'
352
+ */
353
+ variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
354
+ });
355
+ export {
356
+ oo as B
357
+ };