@hybridcore/ui 1.6.13 → 1.6.16

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 (100) 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/_common/tooltip.js +44 -35
  31. package/dist/components/charts/chart-wrapper/index.js +44 -43
  32. package/dist/components/charts/donut-chart/logic.js +53 -40
  33. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  34. package/dist/components/charts/xy-chart/logic.js +135 -134
  35. package/dist/components/collapsible-card/index.js +30 -21
  36. package/dist/components/collapsible-card/styled.js +14 -16
  37. package/dist/components/color-picker/index.js +3358 -2228
  38. package/dist/components/color-picker/styled.js +7 -87
  39. package/dist/components/confirm/dialog.js +7 -89
  40. package/dist/components/confirm/index.js +1 -1
  41. package/dist/components/data-map/index.js +1 -1
  42. package/dist/components/data-map/logic.js +20 -20
  43. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  44. package/dist/components/date-range-picker/index.js +454 -466
  45. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  46. package/dist/components/duration-select/index.js +10 -10
  47. package/dist/components/duration-select/styled.js +1 -1
  48. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  49. package/dist/components/geometry-picker/edit/index.js +1 -1
  50. package/dist/components/geometry-picker/geometry/index.js +1 -1
  51. package/dist/components/geometry-picker/kml/index.js +11 -11
  52. package/dist/components/geometry-picker/map/logic.js +3656 -145
  53. package/dist/components/geometry-picker/map/style.js +17 -18
  54. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  55. package/dist/components/heat-map/index.js +1 -1
  56. package/dist/components/heat-map/logic.js +1924 -77
  57. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
  58. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  59. package/dist/components/map/helpers/mapbox.js +15 -17
  60. package/dist/components/map/helpers/ol.js +27 -386
  61. package/dist/components/map/index.js +10 -11
  62. package/dist/components/map/logic.js +22 -22
  63. package/dist/components/map/styled.js +27 -31
  64. package/dist/components/phone-input/index.js +9 -10
  65. package/dist/components/property-mapping/index.js +1 -1
  66. package/dist/components/prr-map/index.js +1 -1
  67. package/dist/components/prr-map/logic.js +26 -27
  68. package/dist/components/raster-grid-map/index.js +1 -1
  69. package/dist/components/raster-grid-map/logic.js +57 -60
  70. package/dist/components/sortable-list/index.js +1264 -1091
  71. package/dist/components/template-form/components/property-list/index.js +32 -36
  72. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  73. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  74. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  75. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  76. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  77. package/dist/components/tree-select/index.js +16 -16
  78. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  79. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  80. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  81. package/dist/debounce-46wSf_lW.js +15 -0
  82. package/dist/dialog-BtJhjyF5.js +664 -0
  83. package/dist/extends-C3382pL0.js +22 -0
  84. package/dist/formControlState-vgaj2ksH.js +10 -0
  85. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  86. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  87. package/dist/index-DH6qsPBn.js +153 -0
  88. package/dist/index.esm-DAf19hyR.js +318 -0
  89. package/dist/main.d.ts +9 -1
  90. package/dist/math-Bvt2Ubuz.js +704 -0
  91. package/dist/ol-yOE-NV0X.js +7465 -0
  92. package/dist/ownerWindow-wg6foiOE.js +10 -0
  93. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  94. package/dist/styled-DD4BkuVf.js +350 -0
  95. package/dist/useControlled-BYdyS7Pn.js +31 -0
  96. package/dist/useFormControl-CatNKXAi.js +10 -0
  97. package/dist/useId-BW-oWmul.js +19 -0
  98. package/dist/useSlot-u4t0X96G.js +42 -0
  99. package/package.json +1 -1
  100. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -0,0 +1,96 @@
1
+ import { P as u } from "./index-CblbdqjE.js";
2
+ import * as r from "react";
3
+ import p from "react";
4
+ import { _ as d } from "./setPrototypeOf-NPgp4cYc.js";
5
+ const _ = u.oneOfType([u.func, u.object]);
6
+ function m(e, t) {
7
+ return process.env.NODE_ENV === "production" ? () => null : function(...o) {
8
+ return e(...o) || t(...o);
9
+ };
10
+ }
11
+ function y(e) {
12
+ const {
13
+ prototype: t = {}
14
+ } = e;
15
+ return !!t.isReactComponent;
16
+ }
17
+ function h(e, t, n, o, a) {
18
+ const c = e[t], l = a || t;
19
+ if (c == null || // When server-side rendering React doesn't warn either.
20
+ // This is not an accurate check for SSR.
21
+ // This is only in place for emotion compat.
22
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
23
+ typeof window > "u")
24
+ return null;
25
+ let s;
26
+ return typeof c == "function" && !y(c) && (s = "Did you accidentally provide a plain function component instead?"), s !== void 0 ? new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
27
+ }
28
+ const O = m(u.elementType, h);
29
+ function E(e, t) {
30
+ typeof e == "function" ? e(t) : e && (e.current = t);
31
+ }
32
+ function $(...e) {
33
+ return r.useMemo(() => e.every((t) => t == null) ? null : (t) => {
34
+ e.forEach((n) => {
35
+ E(n, t);
36
+ });
37
+ }, e);
38
+ }
39
+ const T = typeof window < "u" ? r.useLayoutEffect : r.useEffect;
40
+ function b(e) {
41
+ const t = r.useRef(e);
42
+ return T(() => {
43
+ t.current = e;
44
+ }), r.useRef((...n) => (
45
+ // @ts-expect-error hide `this`
46
+ (0, t.current)(...n)
47
+ )).current;
48
+ }
49
+ const f = {};
50
+ function I(e, t) {
51
+ const n = r.useRef(f);
52
+ return n.current === f && (n.current = e(t)), n;
53
+ }
54
+ const R = [];
55
+ function w(e) {
56
+ r.useEffect(e, R);
57
+ }
58
+ class i {
59
+ constructor() {
60
+ this.currentId = null, this.clear = () => {
61
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
62
+ }, this.disposeEffect = () => this.clear;
63
+ }
64
+ static create() {
65
+ return new i();
66
+ }
67
+ /**
68
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
69
+ */
70
+ start(t, n) {
71
+ this.clear(), this.currentId = setTimeout(() => {
72
+ this.currentId = null, n();
73
+ }, t);
74
+ }
75
+ }
76
+ function x() {
77
+ const e = I(i.create).current;
78
+ return w(e.disposeEffect), e;
79
+ }
80
+ function L(e, t) {
81
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, d(e, t);
82
+ }
83
+ const N = p.createContext(null);
84
+ export {
85
+ i as T,
86
+ L as _,
87
+ T as a,
88
+ b,
89
+ m as c,
90
+ N as d,
91
+ x as e,
92
+ O as f,
93
+ _ as r,
94
+ E as s,
95
+ $ as u
96
+ };
@@ -0,0 +1,178 @@
1
+ import { a as s, _ as B } from "./extends-C3382pL0.js";
2
+ import * as W from "react";
3
+ import { P as t } from "./index-CblbdqjE.js";
4
+ import { c as C } from "./clsx-OuTLNxxd.js";
5
+ import { a as M, g as O, s as j, b as f, u as P, e as N, c as R } from "./generateUtilityClasses-Cc-owZ4J.js";
6
+ import { jsx as _ } from "react/jsx-runtime";
7
+ function U(a) {
8
+ return M("MuiTypography", a);
9
+ }
10
+ O("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
11
+ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (a) => {
12
+ const {
13
+ align: o,
14
+ gutterBottom: r,
15
+ noWrap: e,
16
+ paragraph: i,
17
+ variant: n,
18
+ classes: h
19
+ } = a, p = {
20
+ root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
21
+ };
22
+ return R(p, U, h);
23
+ }, L = j("span", {
24
+ name: "MuiTypography",
25
+ slot: "Root",
26
+ overridesResolver: (a, o) => {
27
+ const {
28
+ ownerState: r
29
+ } = a;
30
+ return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
31
+ }
32
+ })(({
33
+ theme: a,
34
+ ownerState: o
35
+ }) => s({
36
+ margin: 0
37
+ }, o.variant === "inherit" && {
38
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
39
+ font: "inherit"
40
+ }, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
41
+ textAlign: o.align
42
+ }, o.noWrap && {
43
+ overflow: "hidden",
44
+ textOverflow: "ellipsis",
45
+ whiteSpace: "nowrap"
46
+ }, o.gutterBottom && {
47
+ marginBottom: "0.35em"
48
+ }, o.paragraph && {
49
+ marginBottom: 16
50
+ })), u = {
51
+ h1: "h1",
52
+ h2: "h2",
53
+ h3: "h3",
54
+ h4: "h4",
55
+ h5: "h5",
56
+ h6: "h6",
57
+ subtitle1: "h6",
58
+ subtitle2: "h6",
59
+ body1: "p",
60
+ body2: "p",
61
+ inherit: "p"
62
+ }, V = {
63
+ primary: "primary.main",
64
+ textPrimary: "text.primary",
65
+ secondary: "secondary.main",
66
+ textSecondary: "text.secondary",
67
+ error: "error.main"
68
+ }, $ = (a) => V[a] || a, z = /* @__PURE__ */ W.forwardRef(function(o, r) {
69
+ const e = P({
70
+ props: o,
71
+ name: "MuiTypography"
72
+ }), i = $(e.color), n = N(s({}, e, {
73
+ color: i
74
+ })), {
75
+ align: h = "inherit",
76
+ className: p,
77
+ component: g,
78
+ gutterBottom: d = !1,
79
+ noWrap: b = !1,
80
+ paragraph: c = !1,
81
+ variant: l = "body1",
82
+ variantMapping: m = u
83
+ } = n, v = B(n, D), y = s({}, n, {
84
+ align: h,
85
+ color: i,
86
+ className: p,
87
+ component: g,
88
+ gutterBottom: d,
89
+ noWrap: b,
90
+ paragraph: c,
91
+ variant: l,
92
+ variantMapping: m
93
+ }), T = g || (c ? "p" : m[l] || u[l]) || "span", x = E(y);
94
+ return /* @__PURE__ */ _(L, s({
95
+ as: T,
96
+ ref: r,
97
+ ownerState: y,
98
+ className: C(x.root, p)
99
+ }, v));
100
+ });
101
+ process.env.NODE_ENV !== "production" && (z.propTypes = {
102
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
103
+ // │ These PropTypes are generated from the TypeScript type definitions. │
104
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
105
+ // └─────────────────────────────────────────────────────────────────────┘
106
+ /**
107
+ * Set the text-align on the component.
108
+ * @default 'inherit'
109
+ */
110
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
111
+ /**
112
+ * The content of the component.
113
+ */
114
+ children: t.node,
115
+ /**
116
+ * Override or extend the styles applied to the component.
117
+ */
118
+ classes: t.object,
119
+ /**
120
+ * @ignore
121
+ */
122
+ className: t.string,
123
+ /**
124
+ * The component used for the root node.
125
+ * Either a string to use a HTML element or a component.
126
+ */
127
+ component: t.elementType,
128
+ /**
129
+ * If `true`, the text will have a bottom margin.
130
+ * @default false
131
+ */
132
+ gutterBottom: t.bool,
133
+ /**
134
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
135
+ *
136
+ * Note that text overflow can only happen with block or inline-block level elements
137
+ * (the element needs to have a width in order to overflow).
138
+ * @default false
139
+ */
140
+ noWrap: t.bool,
141
+ /**
142
+ * If `true`, the element will be a paragraph element.
143
+ * @default false
144
+ */
145
+ paragraph: t.bool,
146
+ /**
147
+ * The system prop that allows defining system overrides as well as additional CSS styles.
148
+ */
149
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
150
+ /**
151
+ * Applies the theme typography styles.
152
+ * @default 'body1'
153
+ */
154
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
155
+ /**
156
+ * The component maps the variant prop to a range of different HTML element types.
157
+ * For instance, subtitle1 to `<h6>`.
158
+ * If you wish to change that mapping, you can provide your own.
159
+ * Alternatively, you can use the `component` prop.
160
+ * @default {
161
+ * h1: 'h1',
162
+ * h2: 'h2',
163
+ * h3: 'h3',
164
+ * h4: 'h4',
165
+ * h5: 'h5',
166
+ * h6: 'h6',
167
+ * subtitle1: 'h6',
168
+ * subtitle2: 'h6',
169
+ * body1: 'p',
170
+ * body2: 'p',
171
+ * inherit: 'p',
172
+ * }
173
+ */
174
+ variantMapping: t.object
175
+ });
176
+ export {
177
+ z as T
178
+ };