@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.
- package/dist/AccordionSummary-DUtr16g6.js +781 -0
- package/dist/Add-Bk8R160M.js +403 -0
- package/dist/Button-Cem3nbwc.js +357 -0
- package/dist/ButtonBase-DObmf4Q_.js +886 -0
- package/dist/Delete-CVJ6FeDn.js +203 -0
- package/dist/FormGroup-BRj1o7-E.js +89 -0
- package/dist/InputLabel-CjD30ZHz.js +341 -0
- package/dist/MenuItem-BKvRGLvM.js +233 -0
- package/dist/Modal-BVYydOr5.js +1156 -0
- package/dist/Paper-B1HV8GyO.js +582 -0
- package/dist/Select-Bfhvigsx.js +3914 -0
- package/dist/Source-BSZST_GH.js +4410 -0
- package/dist/SwitchBase-BEK49kdS.js +235 -0
- package/dist/Text-ChJRuaD8.js +2197 -0
- package/dist/TextField-Ca9ykixI.js +696 -0
- package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
- package/dist/Typography-D3X-Y5fh.js +178 -0
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +126 -82
- package/dist/components/charts/_common/tooltip.js +44 -35
- package/dist/components/charts/chart-wrapper/index.js +44 -43
- package/dist/components/charts/donut-chart/logic.js +53 -40
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/charts/xy-chart/logic.js +135 -134
- package/dist/components/collapsible-card/index.js +30 -21
- package/dist/components/collapsible-card/styled.js +14 -16
- package/dist/components/color-picker/index.js +3358 -2228
- package/dist/components/color-picker/styled.js +7 -87
- package/dist/components/confirm/dialog.js +7 -89
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
- package/dist/components/date-range-picker/index.js +454 -466
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +3656 -145
- package/dist/components/geometry-picker/map/style.js +17 -18
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +1924 -77
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
- package/dist/components/instance-hierarchy-table/styled.js +16 -18
- package/dist/components/map/helpers/mapbox.js +15 -17
- package/dist/components/map/helpers/ol.js +27 -386
- package/dist/components/map/index.js +10 -11
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +27 -31
- package/dist/components/phone-input/index.js +9 -10
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +26 -27
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +57 -60
- package/dist/components/sortable-list/index.js +1264 -1091
- package/dist/components/template-form/components/property-list/index.js +32 -36
- package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
- package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
- package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
- package/dist/components/tree-select/index.js +16 -16
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/createSvgIcon-D7U1nd99.js +185 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/dialog-BtJhjyF5.js +664 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/index.esm-DAf19hyR.js +318 -0
- package/dist/main.d.ts +9 -1
- package/dist/math-Bvt2Ubuz.js +704 -0
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-DD4BkuVf.js +350 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useSlot-u4t0X96G.js +42 -0
- package/package.json +1 -1
- package/dist/index.esm-UfGMjYOL.js +0 -197
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { a as l, _ as P } from "./extends-C3382pL0.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { P as t } from "./index-CblbdqjE.js";
|
|
4
|
+
import { c as I } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { g as u, a as F, s as _, r as j, d as p, u as D, c as E } from "./generateUtilityClasses-Cc-owZ4J.js";
|
|
6
|
+
import { L as $ } from "./Select-Bfhvigsx.js";
|
|
7
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
8
|
+
import { B as G } from "./ButtonBase-DObmf4Q_.js";
|
|
9
|
+
import { a as U, u as S } from "./TransitionGroupContext-Ja2CgIob.js";
|
|
10
|
+
const O = u("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), N = u("MuiListItemIcon", ["root", "alignItemsFlexStart"]), V = u("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
11
|
+
function H(e) {
|
|
12
|
+
return F("MuiMenuItem", e);
|
|
13
|
+
}
|
|
14
|
+
const n = u("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: b,
|
|
26
|
+
classes: i
|
|
27
|
+
} = e, r = E({
|
|
28
|
+
root: ["root", s && "dense", o && "disabled", !c && "gutters", a && "divider", b && "selected"]
|
|
29
|
+
}, H, i);
|
|
30
|
+
return l({}, i, r);
|
|
31
|
+
}, A = _(G, {
|
|
32
|
+
shouldForwardProp: (e) => j(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
|
+
[`& + .${O.root}`]: {
|
|
85
|
+
marginTop: e.spacing(1),
|
|
86
|
+
marginBottom: e.spacing(1)
|
|
87
|
+
},
|
|
88
|
+
[`& + .${O.inset}`]: {
|
|
89
|
+
marginLeft: 52
|
|
90
|
+
},
|
|
91
|
+
[`& .${V.root}`]: {
|
|
92
|
+
marginTop: 0,
|
|
93
|
+
marginBottom: 0
|
|
94
|
+
},
|
|
95
|
+
[`& .${V.inset}`]: {
|
|
96
|
+
paddingLeft: 36
|
|
97
|
+
},
|
|
98
|
+
[`& .${N.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
|
+
[`& .${N.root} svg`]: {
|
|
112
|
+
fontSize: "1.25rem"
|
|
113
|
+
}
|
|
114
|
+
}))), q = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
115
|
+
const a = D({
|
|
116
|
+
props: o,
|
|
117
|
+
name: "MuiMenuItem"
|
|
118
|
+
}), {
|
|
119
|
+
autoFocus: c = !1,
|
|
120
|
+
component: b = "li",
|
|
121
|
+
dense: i = !1,
|
|
122
|
+
divider: g = !1,
|
|
123
|
+
disableGutters: r = !1,
|
|
124
|
+
focusVisibleClassName: R,
|
|
125
|
+
role: T = "menuitem",
|
|
126
|
+
tabIndex: v,
|
|
127
|
+
className: k
|
|
128
|
+
} = a, w = P(a, W), y = d.useContext($), C = d.useMemo(() => ({
|
|
129
|
+
dense: i || y.dense || !1,
|
|
130
|
+
disableGutters: r
|
|
131
|
+
}), [y.dense, i, r]), m = d.useRef(null);
|
|
132
|
+
U(() => {
|
|
133
|
+
c && (m.current ? m.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 L = l({}, a, {
|
|
136
|
+
dense: C.dense,
|
|
137
|
+
divider: g,
|
|
138
|
+
disableGutters: r
|
|
139
|
+
}), f = z(a), B = S(m, s);
|
|
140
|
+
let x;
|
|
141
|
+
return a.disabled || (x = v !== void 0 ? v : -1), /* @__PURE__ */ M($.Provider, {
|
|
142
|
+
value: C,
|
|
143
|
+
children: /* @__PURE__ */ M(A, l({
|
|
144
|
+
ref: B,
|
|
145
|
+
role: T,
|
|
146
|
+
tabIndex: x,
|
|
147
|
+
component: b,
|
|
148
|
+
focusVisibleClassName: I(f.focusVisible, R),
|
|
149
|
+
className: I(f.root, k)
|
|
150
|
+
}, w, {
|
|
151
|
+
ownerState: L,
|
|
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
|
+
};
|